employee_invoicer_check(); $approver=$queue_approval->employee_approver_check('false'); $client_managers = new time_sheets_client_managers(); echo "
"; if (isset($_GET['menu'])) { if ($_GET['menu']=='New Client') { $this->add_client(); } if ($_GET['menu']=='Edit Client') { $this->add_client_users(); } if ($_GET['menu']=='New Project') { $this->NewProject(); } if ($_GET['menu']=='Edit Project') { $this->EditProject(); } if ($_GET['menu']=='view_timesheets_for_project') { $this->view_timesheets_for_project(); } if ($_GET['menu'] == 'title_override') { $this->title_override(); } } } function check_unique_project_name ($client_id, $project_id, $project_name) { global $wpdb; $db = new time_sheets_db(); $sql = "select ProjectId from {$wpdb->prefix}timesheet_client_projects where ClientId = %d and ProjectName = %s and ProjectId <> %d"; $params = array($client_id, $project_name, $project_id); $projects = $db->get_results ($sql, $params); $return = ''; if ($projects) { $return = 'The project name has already been used by another project for this client.
The project name is queued for use by another project for this client.
| Timesheet ID | Week Starting | Employee | Hours Invoiced | Is Approved | Is Invoiced | Is Embargoed |
| {$timesheet->timesheet_id} | {$start_date} | {$timesheet->display_name} | {$timesheet->total_hours} |
Client Updated.
Client Added.
Client already exists.
Access granted to client.