// *** Create pdf object *** $pdf = new PDF('L'); $pdf->SetTitle(REPORT_NAME_EMPLOYEES); $pdf->SetAuthor(TITLE); $pdf->AddPage(); $pdf->SetFont('Arial', '', 12); $pdf->Cell(30, 6, REPORT_TEXT_DATE, 0, 0, 'L'); $pdf->Cell(100, 6, tep_strftime(DATE_FORMAT_SHORT), 0, 0, 'L'); $pdf->Ln(); if ($_POST['show_timesheet_info'] || $_POST['show_travel_distance_and_expenses']) { $pdf->Cell(30, 6, REPORT_TEXT_PERIOD, 0, 0, 'L'); $pdf->Cell(100, 6, $_POST['period'] . ' (' . tep_strftime(DATE_FORMAT_SHORT, tep_datetouts('%Y-%m-%d', tep_periodstartdate($_POST['period']))) . ' - ' . tep_strftime(DATE_FORMAT_SHORT, tep_datetouts('%Y-%m-%d', tep_periodenddate($_POST['period']))) . ')', 0, 0, 'L'); $pdf->Ln(); } $pdf->Ln(6); $employees_array = employee::get_array($_POST['show_all_employees']); $table_contents = array(); $index = 0; // Set the header and orientation $table_header = array(REPORT_EMPLOYEES_ID, REPORT_EMPLOYEES_FULLNAME); $table_contents_orientation = array('R', 'L'); $column_count = 2; if ($_POST['show_user_rights']) { // Add to header $table_header[$column_count] = REPORT_EMPLOYEES_LOGIN; $table_header[$column_count + 1] = REPORT_EMPLOYEES_PROJECTLISTING; $table_header[$column_count + 2] = REPORT_EMPLOYEES_TIMEREGISTRATION; $table_header[$column_count + 3] = REPORT_EMPLOYEES_ANALYSIS; $table_header[$column_count + 4] = REPORT_EMPLOYEES_ADMINISTRATION; // Add to orientation $table_contents_orientation[$column_count] = 'C';