Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Customer Service Request Class
- *
- * This file is for customer service request module
- * in-code documentation through DocBlocks and tags.
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @version v1.000.09052017
- * @package TPM
- * @since 09/05/2017
- *
- * @todos
- * + Add prooflist
- * + Add "Add New" link
- * + Add "Edit" link
- * + Add comprehensive reports
- *
- * @internal revision(s):
- * + 09222017 - lean - code review
- */
- class JobOrder extends MyDatabase {
- /**
- * Application self version
- *
- * @access private
- * @var string $self_version
- */
- private $self_version = "v1.000.07102017x";
- /**
- * HTML Decoy
- *
- * @access public
- * @var string
- */
- public $cfg_decoy;
- /**
- * Form file name
- *
- * @access public
- * @var string
- */
- public $frm;
- /**
- * Crud file name
- *
- * @access public
- * @var string
- */
- public $crud;
- /**
- * Parameter resource
- *
- * @access public
- * @var resource
- */
- public $CfgParam;
- /**
- * Password resource
- *
- * @access public
- * @var resource
- */
- public $CfgPassword;
- /**
- * User login
- *
- * @access public
- * @var string
- */
- public $logged_user;
- /**
- * Schema
- *
- * @access public
- * @var string
- */
- public $schema;
- /**
- * Access Level
- *
- * @access public
- * @var char
- */
- public $access_level;
- /**
- * Constructor sets up
- *
- * Calls parent DB Type, Link, Selects Database and sets schema
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @internal used-by:
- * + job_order_frm.php
- * + job_order_crud.php
- *
- * @param type $db_type
- * @param type $db_link
- * @param type $db_name
- * @param type $db_schema
- *
- */
- function __construct($db_type, $db_link, $db_name, $db_schema) {
- parent::SetDbType($db_type);
- parent::SetDbLink($db_link);
- parent::SelectDb($db_name);
- parent::SetSchema($db_schema);
- }
- /**
- * Display Customer Service Request
- *
- * This function display the list of customer service request list
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by job_order_list.php
- *
- * @global resource $CfgParam
- * @param stirng $performed_by
- * @param datetime $resolution_datetime
- * @param char $incident_type
- * @param char $fix_type
- * @param int $satisfaction_rating
- * @param char $status
- * @return HTML
- */
- function Display_JobOrder($performed_by, $incident_type, $fix_type, $satisfaction_rating, $status) {
- global $CfgParam;
- $ctr = 0;
- $retval = "";
- $oTable = new Table;
- $retval .= $oTable->NewTable("100%", "financial", true, true);
- $retval .= $oTable->UnsetValue();
- $oTable->coltextArray[] = "Customer Information";
- $oTable->colwidthArray[] = "30%";
- $oTable->coltextArray[] = "Service Request Info";
- $oTable->colwidthArray[] = "20%";
- $oTable->coltextArray[] = "Action/s taken Info";
- $oTable->colwidthArray[] = "30%";
- $oTable->coltextArray[] = "Status";
- $oTable->colwidthArray[] = "30%";
- $oTable->coltextArray[] = "Action/s";
- $oTable->colwidthArray[] = "10%";
- $oTable->SetTableHeaderWithTrClass();
- $retval .= $oTable->TableHeader();
- // List of department schedule
- $jo_arr_ = $this->Get_ServiceRequest($performed_by, $incident_type, $fix_type, $satisfaction_rating, $status);
- $incident_prio_details = $this->incident_prioritization();
- // Loop through the departmental schedule list
- foreach ($jo_arr_ as $jo_details_arr_) {
- // extract the array $jo_details_arr_
- extract($jo_details_arr_);
- // Loop through the fields and variable for preparation for pass parameters
- $link_code = "";
- foreach ($jo_details_arr_ as $key => $value) {
- $link_code .= "&$key=$value";
- }
- $customer_info = "";
- //$customer_info .= "ID: <b>" . $id . "</b><br/>";
- $customer_info .= "CSR#: <b>" . $csr_no . "</b><br/>";
- if (trim($customer_position_code) == 'STUDENT') {
- $student_info = $this->Get_StudentName($customer);
- foreach ($student_info as $key => $value) {
- $link_code .= "&$key=$value";
- }
- $customer_info .= "Student Number: <b>" . $customer . "</b><br/>";
- if (strlen(trim($student_info['fullname'])) > 0) {
- $customer_info .= "Name: <b>" . $student_info['fullname'] . "</b><br/>";
- $customer_info .= "Program: <b>" . $student_info['program_id'] . "</b><br/>";
- $customer_info .= "Year Level: <b>" . $student_info['year_level'] . "</b><br/>";
- } else {
- $customer_info .=" -<i>Student Information not Found </i>-<br/>";
- }
- } else {
- $link_code .= "&fullname=" . $this->Get_EmployeeName($customer);
- $link_code .= "&customer_dept_name=" . $this->Get_DepartmentName($customer_dept_code);
- $customer_info .= "Name: <b>" . $this->Get_EmployeeName($customer) . "</b><br/>";
- $customer_info .= "Department: <b>" . $this->Get_DepartmentName($customer_dept_code) . "</b><br/>";
- $customer_info .= "Position: <b>" . $customer_position_code . "</b><br/>";
- }
- $customer_info .= "Date/Time Requested : <b>" . date('F d, Y h:i A', strtotime($datetime)) . "</b><br/>";
- // Service request information
- $service_request_info = "";
- $service_request_info .= "Incident Type: <b>" . $incident_type_desc . "</b><br/>";
- $service_request_info .= $incident_type == 'O' ? "<b>" . $incident_type_desc . "</b><br/>" : '';
- $service_request_info .= "Problem :<b> " . $this->detectEncodingUTF8($problem_description) . "</b><br/>";
- $service_request_info .= "Impact :<b> " . $incident_prio_details[$incident_prioritization]['impact'] . "</b><br/>";
- $service_request_info .= "Urgency :<b> " . $incident_prio_details[$incident_prioritization]['urgency'] . "</b><br/>";
- //star generate
- $star_f = str_repeat("<i class='star yellow icon'></i>", $satisfaction_rating);
- $star_e = (5 - $satisfaction_rating) > 0 ? str_repeat("<i class='empty star icon'></i>", (5 - $satisfaction_rating)) : '';
- $star = $star_f . $star_e;
- $service_request_info .= "<br/>Satisfaction Rating:<br/> $star <br/>";
- // Action taken information
- $action_taken_info = "";
- $action_taken_info .= "Fix Type: <b>" . $fix_type_desc . "</b><br/>";
- $action_taken_info .= "Action Taken: <b>" . $action_taken . "</b><br/>";
- $action_taken_info .= "Recommendation: <b>" . $recommendation . "</b><br/>";
- $action_taken_info .= "Response Time: <b>" . date('F d, Y h:i A', strtotime($response_datetime)) . "</b><br/>";
- $action_taken_info .= "Resolution Time: <b>" . date('F d, Y h:i A', strtotime($resolution_datetime)) . "</b><br/>";
- $turn_around_time = strtotime($resolution_datetime) - strtotime($response_datetime);
- $action_taken_info .= "Turn Around Time:";
- if(gmdate("H", $turn_around_time ) == 1 ){
- $action_taken_info .= " <b>" . gmdate("H", $turn_around_time ) * 1 . "</b> Hour";
- }else if(gmdate("H", $turn_around_time ) > 1 ){
- $action_taken_info .= " <b>" . gmdate("H", $turn_around_time ) * 1 . "</b> Hours";
- }else {
- }
- if(gmdate("i", $turn_around_time ) == 1 ){
- $action_taken_info .= " <b>" . gmdate("i", $turn_around_time ) * 1 . "</b> Minute";
- }else if(gmdate("i", $turn_around_time ) > 1 ){
- $action_taken_info .= " <b>" . gmdate("i", $turn_around_time ) * 1 . "</b> Minutes";
- }else{
- }
- // Status information
- $status_info = "";
- if ($status == "O") {
- $status_info .= "<br/><a class='ui red label'>" . $status_desc . "</a><br/><br/>";
- $status_info .= "Performed by: <b>" . $this->Get_EmployeeName($performed_by) . "</b><br/>";
- } else {
- $status_info .= "<br/><a class='ui blue label'>" . $status_desc . "</a><br/><br/>";
- $status_info .= "Performed by: <b>" . $this->Get_EmployeeName($performed_by) . "</b><br/>";
- $status_info .= "Validated by: <b>" . $this->Get_EmployeeName($validated_by) . "</b><br/>";
- $status_info .= "<b>" . date('F d, Y h:i A', strtotime($validated_datetime)) . "</b><br/>";
- }
- // Post
- $validate_status_param_protected = "p=" . $this->CfgPassword->StringProtect("do=validate&$link_code");
- $validate_status = "<li class='link_validate'><a style='cursor: pointer' title='Validate' id='Validate' onClick='validate_status(\"$validate_status_param_protected\",\"" . $status . "\");' > Validate </a></li>";
- // Unset arrays
- $oTable->UnsetTextArrayValue();
- $oTable->coltextArray[] = $this->detectEncodingUTF8($customer_info . '<br/>' . $CfgParam->Ago($logs));
- $oTable->coltextArray[] = $this->detectEncodingUTF8($service_request_info);
- $oTable->coltextArray[] = $this->detectEncodingUTF8($action_taken_info);
- $oTable->coltextArray[] = $this->detectEncodingUTF8($status_info);
- // Edit
- $edit_link = "$this->frm?p=" . $this->CfgPassword->StringProtect("do=edit$link_code");
- // $edit = "<li class='link2'><a href='$this->cfg_decoy' style='cursor: pointer' id='open_edit_frm_$ctr' title='Edit this Information'>Edit</a></li>";
- $my_script .= openFormUrl("open_edit_frm_$ctr", $edit_link);
- // Delete
- $delete_param_protected = "p=" . $this->CfgPassword->StringProtect("do=delete&$link_code");
- $delete_link = "$this->crud?$delete_param_protected";
- $delete = "<li class='link2'><a href='$this->cfg_decoy' title='delete' onClick='return DeleteRecord(\"$delete_link\")'>Delete</a></li>";
- // Generate PDF CSR
- $generate_csr_param_protected = $this->crud . "?p=" . $this->CfgPassword->StringProtect("do=generate_csr&$link_code");
- $generate_csr = "<li class='link_post_status'><a href='$generate_csr_param_protected'" . ' target="_blank" ' . " style='cursor: pointer' title='generate_csr' id='generate_csr' > Generate CSR </a></li>";
- if ($this->access_level == 'A' && $status == 'O') {
- $oTable->SetActionLink($edit . $delete . '<hr>______<br/><br/>' . $generate_csr . '<hr>______<br/><br/>' . $validate_status);
- } else if ($this->access_level == 'S' && $status == 'O') {
- $oTable->SetActionLink($edit . $delete . '<hr>______<br/><br/>' . $generate_csr);
- } else {
- $oTable->SetActionLink($generate_csr);
- }
- $retval .= $oTable->TableBody();
- $ctr++;
- }
- $retval .= $oTable->EndTable();
- $retval .= $my_script;
- $retval .= "<br><center><font size='1'>" . $this->self_version . "</font></center>";
- return $retval;
- }
- /**
- * convert number of incident prioritization to string information
- *
- * This function gets the list of incident prioritization
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by this
- * @param type $number
- * @return array
- */
- function incident_prioritization($number = null) {
- $level = array('Low', 'Medium', 'High');
- $data = array();
- $count = 1;
- foreach ($level as $impact) {
- foreach ($level as $urgency) {
- $data[$count++] = array('impact' => $impact, 'urgency' => $urgency);
- }
- }
- return $number ? $data[$number] : $data;
- }
- /**
- * Get Service Requests
- *
- * This function gets the list of service requests
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by this
- *
- * @param string $performed_by
- * @param char $incident_type
- * @param char $fix_type
- * @param int $satisfaction_rating
- * @param char $status
- * @return array
- */
- function Get_ServiceRequest($performed_by, $incident_type, $fix_type, $satisfaction_rating, $status) {
- global $cfg_enroll_db_schema;
- $filter_status = $status ? " AND jo.status = '$status' " : '';
- $filter_satisfaction_rating = $satisfaction_rating ? " AND jo.satisfaction_rating = '$satisfaction_rating' " : '';
- $filter_fix_type = $fix_type ? " AND jo.fix_type = '$fix_type' " : '';
- $filter_incident_type = $incident_type ? " AND jo.incident_type = '$incident_type' " : '';
- $filter_performed_by = $performed_by ? " AND jo.performed_by = '$performed_by' " : '';
- //R - Request, I - Inquiry, S - Software, H - Hardware, N - Network, D - Database, O - Others ( Specify other incident)
- ///P - Permanent Fix, W - Workaround, F - For Disposal/Retire, D - DFA/Outside Repair
- $query = "SELECT
- jo.[id] + '' as id,
- jo.[csr_no] + '' as csr_no,
- jo.[customer] + '' as customer,
- jo.[customer_dept_code] + '' as customer_dept_code,
- jo.[customer_position_code] + '' as customer_position_code,
- jo.[datetime] + '' as datetime,
- jo.[incident_type] + '' as incident_type,
- CASE incident_type
- WHEN 'R' THEN 'Request'
- WHEN 'I' THEN 'Inquiry'
- WHEN 'S' THEN 'Software'
- WHEN 'H' THEN 'Hardware'
- WHEN 'N' THEN 'Network'
- WHEN 'D' THEN 'Database'
- WHEN 'O' THEN 'Others'
- ELSE 'Error incedent type - ' + incident_type
- End as incident_type_desc,
- jo.[problem_description] + '' as problem_description,
- jo.[action_taken] + '' as action_taken,
- jo.[recommendation] + '' as recommendation,
- jo.[fix_type] + '' as fix_type,
- jo.[response_datetime] as response_datetime,
- jo.[resolution_datetime] as resolution_datetime,
- jo.[performed_by] + '' as performed_by,
- jo.[validated_by] + '' as validated_by,
- jo.[incident_prioritization] + '' as incident_prioritization,
- jo.[satisfaction_rating] + '' as satisfaction_rating,
- jo.[status] + '' as status,
- jo.[validated_datetime] + '' as validated_datetime,
- CASE jo.[status]
- WHEN 'O' then 'Open'
- WHEN 'C' then 'Closed-out'
- ELSE 'error status'+ jo.[status]
- END as status_desc,
- CASE fix_type
- WHEN 'P' THEN 'Permanent Fix'
- WHEN 'W' THEN 'Workaround'
- WHEN 'F' THEN 'For Disposal/Retire'
- WHEN 'D' THEN 'DFA/Outside Repair'
- ELSE 'Error fix type - ' + fix_type
- End as fix_type_desc,
- jo.[logs] + '' as logs
- FROM " . parent::GetSchema() . "job_order AS jo
- WHERE 1=1
- $filter_status
- $filter_satisfaction_rating
- $filter_fix_type
- $filter_incident_type
- $filter_performed_by
- ORDER BY id DESC";
- $data = array();
- $result = parent::Query($query);
- while ($row = parent::FetchArray($result)) {
- $data[] = $row;
- }
- return $data;
- }
- /**
- * Get Employee Name
- *
- * This function extracts the fullname of the employee by their employee id
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by this
- *
- * @param string $emp_id
- * @return string
- */
- function Get_EmployeeName($emp_id) {
- $query = "SELECT FirstName + ' ' + MidName + ' ' + LastName as [fullname] FROM vHR_Employee WHERE emp_id = '$emp_id' ";
- $result = parent::Query($query);
- $row = parent::FetchArray($result);
- return $row['fullname'];
- }
- /**
- * Get Student Name
- *
- * This function gets the student name based on the student number
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by this
- *
- * @global int $cfg_db_type
- * @global int $cfg_db_link
- * @global string $cfg_db_name
- * @global string $cfg_reg_db_schema
- * @global int $cfg_shs_db_type
- * @global int $cfg_shs_db_link
- * @global string $cfg_shs_db_name
- * @global string $cfg_shs_reg_db_schema
- * @param string $student_number
- * @return array
- */
- function Get_StudentName($student_number) {
- global $cfg_db_type;
- global $cfg_db_link;
- global $cfg_db_name;
- global $cfg_reg_db_schema;
- global $cfg_shs_db_type;
- global $cfg_shs_db_link;
- global $cfg_shs_db_name;
- global $cfg_shs_reg_db_schema;
- if (strtoupper($student_number[0]) == 'S') {
- include_once "../classes/reg-shs/student_shs.class.php";
- $oStudentShs = new StudentShs($cfg_shs_db_type, $cfg_shs_db_link, $cfg_shs_db_name, $cfg_shs_reg_db_schema);
- $query = "SELECT first_name + ' ' + middle_name + ' ' + last_name as [fullname] , program_id, grade_level + '' as year_level FROM " . $cfg_shs_reg_db_schema . "student_masterfile WHERE student_number = '" . trim($student_number) . "' ";
- $oStudentShs_result = $oStudentShs->Query($query);
- $rows = array();
- while ($row = $oStudentShs->FetchArray($oStudentShs_result)) {
- $rows = $row;
- }
- } else {
- include_once "../classes/reg/student.class.php";
- $oStudent = new Student($cfg_db_type, $cfg_db_link, $cfg_db_name, $cfg_reg_db_schema);
- $query = "SELECT first_name + ' ' + middle_name + ' ' + last_name as [fullname] , program_id, year_level FROM " . $cfg_reg_db_schema . "student_masterfile WHERE student_number = '" . trim($student_number) . "' ";
- $result = $oStudent->Query($query);
- $rows = array();
- while ($row = $oStudent->FetchArray($result)) {
- $rows = $row;
- }
- }
- return $rows;
- }
- /**
- * Get Department Name
- *
- * This function gets the department name based on department code
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by this
- *
- * @param string $dept_code
- * @return string
- */
- function Get_DepartmentName($dept_code) {
- $query = "SELECT DEPT_NAME + '' as department_name FROM vdepartment WHERE DEPT_id = '$dept_code' ";
- $result = parent::Query($query);
- $row = parent::FetchArray($result);
- return $row['department_name'];
- }
- /**
- * Convert for special char
- *
- * This function detects for latin chars and convert it
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by this
- *
- * @param type $value
- * @return type
- */
- function detectEncodingUTF8($value) {
- if (!mb_detect_encoding($value, 'utf-8', true)) {
- $value = utf8_encode($value);
- }
- return $value;
- }
- /**
- * this function will generate cs no
- *
- * @global type $cfg_report_branch
- * @global type $cfg_tpm_db_schema
- * @return type
- */
- function generate_csr_no(){
- global $cfg_report_branch,$cfg_tpm_db_schema;
- $report_code = $cfg_report_branch[0];
- $csr_year = date('Y');
- $csr_yeardate = date('Ymd');
- $csr_head = $report_code . $csr_year ;
- $query = "SELECT MAX(csr_no) as max_csr_no FROM ".$cfg_tpm_db_schema."job_order
- WHERE csr_no like '$csr_head%'
- ";
- $result = parent::Query($query);
- $row = parent::FetchArray($result);
- $csr_no = $row['max_csr_no'] ? ltrim($row['max_csr_no'],$csr_head) : '00000' ;
- $next_csr_no = $csr_no + 1 ;
- $new_csr_no =$row['max_csr_no'] ? $csr_head.str_pad($next_csr_no, 8, "0", STR_PAD_LEFT) : $report_code. $csr_yeardate. str_pad($next_csr_no, 4, "0", STR_PAD_LEFT) ;
- return $new_csr_no;
- }
- }
- class RepCustomerServiceRequest extends Pdf {
- public $branch;
- public $printed_by;
- public $title = "Customer Service Report";
- public $sy;
- public $period_from;
- public $department_type;
- public $customer_dept_name;
- public $customer_id;
- public $customer_dept_code;
- public $csr_no;
- public $fullname;
- public $request_date_time;
- public $incident_type;
- public $problem_description;
- public $recommendation;
- public $fix_type;
- public $response_datetime;
- public $resolution_datetime;
- public $action_taken;
- public $signiture;
- public $satisfaction_rating;
- public $preformed_by;
- public $preformed_by_id;
- public $validated_by;
- public $validated_by_id;
- public $incident_prioritization;
- public function PageHeader() {
- $this->SetMargins(13, 6, 5, true);
- $this->SetAuthor($this->preformed_by);
- $this->SetTitle($this->title);
- $this->SetSubject($this->csr_no);
- }
- public function PageFooter() {
- }
- /**
- * printing of body
- *
- * This function generate the body of csr
- *
- * @author John Paul Oduca Caagusan <jpcaagusan.itso@tip.edu.ph>
- * @since 04/24/2017
- *
- * @used-by job_order_crud.php
- *
- * @param type $value
- * @return type
- */
- public function PrintHtmlJo() {
- $image_location = '../upload/jo_signature_pic/' . trim($this->csr_no) . '_' . trim($this->customer_id) . '_' . trim($this->customer_dept_code) . '.jpg';
- $bg = '#C0C0C0';
- $this->AddPage();
- $checkbox[0] = '<img src="../components/images/checkbox.jpg" width="7" height="7"/>';
- $checkbox[1] = '<img src="../components/images/checked_checkbox.jpg" width="7" height="7"/>';
- $this->Ln();
- $this->SetFillColorArray(array(192, 192, 192));
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 192, $h = 3, $txt = 'TIP-ITS-007', $border =0, $align = 'R', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->Ln();
- $this->MultiCell($w = 192, $h = 3, $txt = 'REVISION STATUS/DATE:0/2017 JUL 7', $border=0, $align = 'R', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->Ln();
- $this->SetFont('arial', 'B', 9);
- //$this->MultiCell(190, 0, 'CUSTOMER SERVICE REPORT', 0, 'L', false, 0);
- $this->MultiCell($w = 192, $h = 6, $txt = 'CUSTOMER SERVICE REPORT', $border=0, $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->Ln();
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 35, $h = 4, $txt = 'Department:', $border = array('LTRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 60, $h = 4, $txt = $this->customer_dept_name, $border = array('LTRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', 'B', 9);
- $this->SetFillColorArray(array(192, 192, 192));
- $this->MultiCell($w = 35, $h = 4, $txt = 'CSR #:', $border = array('LTRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 60, $h = 4, $txt = ($this->csr_no), $border = array('LTRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- // 2nd row
- $this->ln();
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 35, $h = 6, $txt = 'Name of Customer:', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'B', $fitcell = true);
- $this->SetFont('arial', '', 9);
- //$this->MultiCell($w=60,$h=20, $signiture , $border=array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align='C', $fill=false, $ln=0, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=false, $maxh=0, $valign='M', $fitcell=true);
- //$this->MultiCell($w=60,$h=6, '<img src="../upload/jo_signature_pic/Q201709110053_S1234567_.jpg" style="width: 100px; height: 29px; border-top:0.4px solid #021a40;" />' , $border=array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align='C', $fill=false, $ln=0, $x='', $y='', $reseth=true, $stretch=0, $ishtml=true, $autopadding=false, $maxh=0, $valign='M', $fitcell=true);
- // Image($file, $x='', $y='', $w=0, $h=0, $type='', $link='', $align='', $resize=false, $dpi=300, $palign='', $ismask=false, $imgmask=false, $border=0, $fitbox=false, $hidden=false, $fitonpage=false)
- /**** *****/
- if (file_exists($image_location)) {
- $image = base64_encode(file_get_contents($image_location));
- $this->MultiCell($w = 60, $h = 6, '<img src="' . $image_location . '" style="width: 100px; height: 29px; border-top:0.4px solid #021a40;" >', $border = array('' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = false, $maxh = 0, $valign = 'M', $fitcell = true);
- } else {
- $this->MultiCell($w = 60, $h = 6, '', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = false, $maxh = 0, $valign = 'M', $fitcell = true);
- }
- $this->MultiCell($w = 35, $h = 6, '', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'B', $fitcell = true);
- $this->MultiCell($w = 60, $h = 6, '', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = false, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->ln();
- $this->SetFont('arial', '', 6.5);
- $this->MultiCell($w = 35, $h = 8, $txt = '(Signature Over Printed Name)', $border = array('LRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'T', $fitcell = true);
- $this->SetFont('arial', '', 8);
- $this->MultiCell($w = 60, $h = 8, $txt = $this->fullname, $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', 'B', 9);
- $this->SetFillColorArray(array(192, 192, 192));
- $this->MultiCell($w = 35, $h = 8, $txt = 'Request Date/Time:', $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'T', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 60, $h = 8, $txt = ($this->request_date_time), $border = array('LRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'T', $fitcell = true);
- //type of incident a
- $this->ln();
- $this->SetFont('arial', 'B', 8);
- $this->MultiCell($w = 95, $h = 2, $txt = 'Type of Incident:', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = True, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->MultiCell($w = 95, $h = 2, $txt = 'Action Taken:', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = True, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->ln();
- $html .='<table>';
- $html .= '<tr>';
- $html .= '<td rowspan="4" width="10%">';
- $html .= '</td>';
- $html .= '<td width="22.5%" >';
- $html .= ($this->incident_type == 'R' ? $checkbox[1] : $checkbox[0] ) . ' Request ';
- $html .= '</td>';
- $html .= '<td width="22.5%" >';
- $html .= ($this->incident_type == 'I' ? $checkbox[1] : $checkbox[0] ) . ' Inquiry ';
- $html .= '</td >';
- $html .= '<td width="22.5%" >';
- $html .= ($this->incident_type == 'S' ? $checkbox[1] : $checkbox[0] ) . ' Software ';
- $html .= '</td>';
- $html .= '<td width="22.5%" >';
- $html .= ($this->incident_type == 'H' ? $checkbox[1] : $checkbox[0] ) . ' Hardware ';
- $html .= '</td>';
- $html .= '</tr>';
- $html .= '<tr>';
- $html .= '<td width="22.5%" >';
- $html .= '<br/>';
- $html .= '</td>';
- $html .= '<td width="22.5%" >';
- $html .= '<br/>';
- $html .= '</td >';
- $html .= '<td width="22.5%" >';
- $html .= '<br/>';
- $html .= '</td>';
- $html .= '<td width="22.5%" >';
- $html .= '<br/>';
- $html .= '</td>';
- $html .= '</tr>';
- $html .= '<tr>';
- $html .= '<td width="22.5%">';
- $html .= ($this->incident_type == 'N' ? $checkbox[1] : $checkbox[0] ) . ' Network ';
- $html .= '</td>';
- $html .= '<td width="22.5%" >';
- $html .= ($this->incident_type == 'D' ? $checkbox[1] : $checkbox[0] ) . ' Database ';
- $html .= '</td>';
- $html .= '<td colspan="2">';
- $html .= ($this->incident_type == 'O' ? $checkbox[1] : $checkbox[0] ) . ' Other ';
- $html .= '_________________';
- $html .= '</td>';
- $html .= '</tr>';
- $html .='</table>';
- $this->SetFont('arial', '', 8);
- $this->MultiCell($w = 95, $h = 40, $html, $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = True, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', '', 8);
- $this->MultiCell($w = 95, $h = 9, $this->action_taken, $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->ln();
- $this->MultiCell($w = 95, $h = 1, '', $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = False, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->MultiCell($w = 95, $h = 1, '', $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = False, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->ln();
- $this->SetFont('arial', 'B', 8);
- $this->MultiCell($w = 95, $h = 3, 'Nature of the Problem:', $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'B', $fitcell = true);
- $this->SetFont('arial', 'B', 8);
- $this->MultiCell($w = 95, $h = 3, 'Recommendation:', $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'B', $fitcell = true);
- $this->ln();
- $this->SetFont('arial', '', 6);
- $this->MultiCell($w = 95, $h = 3, '(Attach file if necessary)', $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = False, $autopadding = true, $maxh = 0, $valign = 'T', $fitcell = true);
- $this->MultiCell($w = 95, $h = 3, '', $border = array('LR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = False, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->ln();
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 95, $h = 10, $this->problem_description, $border = array('LBR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'T', $fitcell = True);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 95, $h = 10, $this->recommendation, $border = array('LBR' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'T', $fitcell = true);
- $html = '<b>Incident Prioritization:</b><br/><br/>';
- $html .='<table align="center"> ';
- $html .='<tr>';
- $html .='<td width="7%">';
- $html .='<br/>';
- $html .='</td>';
- $html .='<td width="93%">';
- $html .='<table border="1" width="100%" align="center"> ';
- $html .='<tr align="center" >';
- $html .='<td rowspan="4" width="9%" align="center" bgcolor="#C0C0C0" style="' . $bg . '" >';
- $html .='<br/><font size= "8" ><br /><br /><br />I <br /> M <br /> P <br /> A <br /> C <br /> T</font>';
- $html .='</td>';
- $html .='<td align="center">';
- $html .=' <br />HIGH<br />';
- $html .='</td>';
- $html .='<td >';
- $html .='<center> <br />' . ($this->incident_prioritization == '7' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='<td >';
- $html .='<center> <br />' . ($this->incident_prioritization == '8' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='<td >';
- $html .='<center> <br />' . ($this->incident_prioritization == '9' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='</tr>';
- $html .='<tr align="center" >';
- $html .='<td align="center" >';
- $html .=' <br />MEDIUM<br />';
- $html .='</td>';
- $html .='<td>';
- $html .='<center> <br />' . ($this->incident_prioritization == '4' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='<td>';
- $html .='<center> <br />' . ($this->incident_prioritization == '5' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='<td>';
- $html .='<center> <br />' . ($this->incident_prioritization == '6' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='</tr>';
- $html .='<tr align="center" >';
- $html .='<td align="center" >';
- $html .=' <br />LOW<br />';
- $html .='</td>';
- $html .='<td>';
- $html .='<center> <br />' . ($this->incident_prioritization == '1' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='<td>';
- $html .='<center> <br />' . ($this->incident_prioritization == '2' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='<td>';
- $html .='<center> <br />' . ($this->incident_prioritization == '3' ? $checkbox[1] : $checkbox[0] ) . '<br /></center>';
- $html .='</td>';
- $html .='</tr>';
- $html .='<tr align="center" >';
- $html .='<td align="center" >';
- $html .='<br/>';
- $html .='</td>';
- $html .='<td align="center" >';
- $html .='LOW';
- $html .='</td>';
- $html .='<td align="center" >';
- $html .='MEDIUM ';
- $html .='</td>';
- $html .='<td align="center" >';
- $html .='HIGH';
- $html .='</td>';
- $html .='</tr>';
- $html .='<tr align="center">';
- $html .='<td >';
- $html .='<br />';
- $html .='</td >';
- $html .='<td colspan ="4" style="padding-bottom:10px;" bgcolor="#C0C0C0" >';
- $html .='<br/><font size= "8" >U R G E N C Y</font>';
- $html .='</td>';
- $html .='</tr>';
- $html .='</table>';
- $html .='</td >';
- $html .='</tr >';
- $html .='</table>';
- $this->ln();
- $this->SetFont('arial', '', 7.5);
- $this->MultiCell($w = 95, $h = 50, $html, $border = array('LRTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- // Left pane, type fix
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 47.5, $h = 25, 'Type of Fix:', $border = array('LRTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = true, $maxh = 0, $valign = 'T', $fitcell = true);
- $html = ($this->fix_type == 'P' ? $checkbox[1] : $checkbox[0] ) . ' Permanent Fix <br/>';
- $html .= ($this->fix_type == 'W' ? $checkbox[1] : $checkbox[0] ) . ' Workaround <br/>';
- $html .= ($this->fix_type == 'F' ? $checkbox[1] : $checkbox[0] ) . ' For Disposal/Retire <br/>';
- $html .= ($this->fix_type == 'O' ? $checkbox[1] : $checkbox[0] ) . ' DFA/Outside Repair ';
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 47.5, $h = 20, $txt = $html, $border = array('LRTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- // response date time
- $this->Ln();
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 95, $h = 7, '', $border = 0, $align = 'R', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 47.5, $h = 7, 'Response Date/Time:', $border = array('LRTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 47.5, $h = 7, $this->response_datetime, $border = array('LRTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- // resolution date time
- $this->Ln();
- $this->MultiCell($w = 95, $h = 7, '', $border = 0, $align = 'R', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 47.5, $h = 7, 'Resolution Date/Time:', $border = array('LRTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 47.5, $h = 7, $this->resolution_datetime, $border = array('LRTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- // performed by 1
- $this->Ln();
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 95, $h = 4, '', $border = 0, $align = 'R', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 47.5, $h = 4, 'Performed by:', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'B', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 47.5, $h = 4, '', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'C', $fitcell = true);
- // performed by 2
- $this->Ln();
- $this->MultiCell($w = 95, $h = 4, '', $border = 0, $align = 'R', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = true, $maxh = 8, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', '', 6.5);
- $this->MultiCell($w = 47.5, $h = 4, '(Signature Over Printed Name)', $border = array('LRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'T', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 47.5, $h = 4, $this->preformed_by, $border = array('LRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 8, $valign = 'C', $fitcell = true);
- $full_star = $empty_star = '';
- for ($i = 1; $i <= $this->satisfaction_rating; $i++) {
- $full_star .= TCPDF_FONTS::unichr(72) . " ";
- }
- for ($i = 1; $i <= (5 - $this->satisfaction_rating); $i++) {
- $empty_star .= TCPDF_FONTS::unichr(73) . " ";
- }
- //service rating
- $this->Ln();
- $this->SetFont('arial', 'B', 10);
- $this->MultiCell($w = 63, $h = 10, ' Are you satisfied with our service? ', $border = array('LTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->SetFont('zapfdingbats', '', 11);
- $this->MultiCell($w = 32, $h = 10, $full_star . $empty_star, $border = array('RTB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'L', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'M', $fitcell = true);
- $this->SetFont('arial', 'B', 9);
- $this->MultiCell($w = 47.5, $h = 5, 'Validated By:', $border = array('LRT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'B', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 47.5, $h = 5, '', $border = array('RT' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'C', $fitcell = true);
- $this->Ln();
- $this->SetFont('arial', '', 7);
- $this->MultiCell($w = 95, $h = 2, '', $border = 0, $align = 'R', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = true, $maxh = 0, $valign = 'C', $fitcell = true);
- $this->SetFont('arial', '', 6.5);
- $this->MultiCell($w = 47.5, $h = 5, '(Signature Over Printed Name)', $border = array('LRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'R', $fill = true, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = true, $autopadding = true, $maxh = 0, $valign = 'C', $fitcell = true);
- $this->SetFont('arial', '', 9);
- $this->MultiCell($w = 47.5, $h = 5, $this->validated_by, $border = array('LRB' => array('width' => 0.10, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0))), $align = 'C', $fill = false, $ln = 0, $x = '', $y = '', $reseth = true, $stretch = 0, $ishtml = false, $autopadding = true, $maxh = 0, $valign = 'C', $fitcell = true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement