employee_approver_check()!=0) { $vcount_pending_approval = $queue_approval->count_pending_approval(); } if ($queue_invoice->employee_invoicer_check()!=0) { $vcount_pending_invoice = $queue_invoice->count_pending_invoice(); } if ($queue_payroll->employee_payroll_check()!=0) { $vcount_pending_payroll = $queue_payroll->count_pending_payroll(); } $vcount_open_invoices = $queue_invoice->count_users_open_invoice(); $dashboard_url = admin_url('admin.php?page=search_timesheet'); $timesheet_url = admin_url('admin.php?page=show_timesheet'); $page = ""; if (isset($vcount_pending_approval )) { if ($vcount_pending_approval->NotRetainer != 0 || $vcount_pending_approval->Retainer != 0 || $vcount_pending_approval->Embargoed != 0) { $approve_url = admin_url('admin.php?page=approve_timesheet'); $page = $page . ""; } } if (isset($vcount_pending_invoice)) { if ($vcount_pending_invoice->NotRetainer != 0 || $vcount_pending_invoice->Retainer != 0) { $invoice_url = admin_url('admin.php?page=invoice_timesheet'); $page = $page . ""; } } if (isset($vcount_pending_payroll)) { if ($vcount_pending_payroll != 0) { $payroll_url = admin_url('admin.php?page=payroll_timesheet'); $page = $page . ""; } } $page = $page . "
Item Count
Open Timehseets {$vcount_open_invoices}
Pending Approval {$vcount_pending_approval->NotRetainer} / {$vcount_pending_approval->Retainer}"; if ($vcount_pending_approval->Embargoed != 0) { $page = $page . " / {$vcount_pending_approval->Embargoed}"; } echo "
Pending Invoicing {$vcount_pending_invoice->NotRetainer} / {$vcount_pending_invoice->Retainer}
Pending Payroll {$vcount_pending_payroll}
"; $page = $page . "
Create Timesheet   Timesheet Dashboard
"; echo $page; } }