Server IP : 103.233.192.212 / Your IP : 3.134.105.118 Web Server : Apache/2 System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : sumpatuan ( 1058) PHP Version : 5.5.38 Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sumpatuan/public_html/backup/protected/views/admin/ |
Upload File : |
<?php echo Yii::app()->params['copyright']; include_once '../MPDF54/mpdf.php'; $report = new mPDF('UTF-8'); $report ->SetAutoFont(); //style // header $html .=' <div style="text-align:center;font-size:18px;"> ประวัติพนักงาน <br> </div> '; $html .=' <style> .cell-head { padding:10px; font-size:15px; } </style> '; $html .=' <table width="700" border="1" cellspacing="0" cellpadding="0"> <tr> <td class="cell-head" width="150" ><img src="'.$personal["personal_pic"].'" style="width:150px;"> </td> <td class="cell-head">ข้อมูลหน่วยงาน : '.$personal_group["group_name"].' <br><br> ข้อมูลตำเเหน่ง : '.$personal_position["position_name"].' <br><br> เลขที่ตำเเหน่ง : <br><br> ชื่อ - นามสกุล : '.$personal["name"].' '.$personal["surname"].'<br><br> วัน เดือน ปี เกิด : '.$personal["birthday"].' <br><br> เลขที่บัตรประจำตัวประชาชน : '.$personal["personal_id"].' <br><br> </td> </tr> </table> <br> <table width="700" border="1" cellspacing="0" cellpadding="0"> '; $html .=' <tr> <td class="cell-head">ที่อยู่ : </td> </tr> <tr> <td class="cell-head">วันที่รับราชการ: '.$personal["date_officer_in"].' | เงินเดือน : '.$personal["salary"].' '.บาท.' | วันที่เกษียนอายุ : '.$personal["date_officer_retire"].' </td> </tr> <tr> <td class="cell-head">รับเครื่องราชฯ ขั้นสูงสุด : '.$personal["royal_level"].' </td> </tr> <tr> <td class="cell-head">วันเดือนปี รับเครื่องราชฯ :'.$personal["royal_date"].' </td> </tr> '; $html .=' </table> <br> '; // $html .=' <table width="700" border="1" cellspacing="0" cellpadding="0"> '; $html .=' <CAPTION> ประวัติการศึกษา </CAPTION> <TR> <TH> สถานศึกษา </TH> <TH> สาขาวิชา</TH> <TH> วุฒิที่ได้รับ </TH> </TR> <TR> <td class="cell-head"> '.$personal["institute_name"].' </TD> <td class="cell-head"> '.$personal["major_name"].' </TD> <td class="cell-head"> '.$personal["edu_level"].' </TD> </TR> <TR> <td class="cell-head"> </TD> <td class="cell-head"> </TD> <td class="cell-head"> </TD> </TR> <TR> <td class="cell-head"> </TD> <td class="cell-head"> </TD> <td class="cell-head"> </TD> </TR> '; $html .=' </table> <br> '; // $html .=' <table width="700" border="1" cellspacing="0" cellpadding="0"> '; $html .=' <CAPTION> ประวัติการฝึกอบรม</CAPTION> <tr> <td class="cell-head">'.$personal["profile_train_detail"].' </td> </tr> '; $html .=' </table> <br> '; // $html .=' <table width="700" border="1" cellspacing="0" cellpadding="0"> '; $html .=' <CAPTION> ความผิดทางวินัย</CAPTION> <TR> <TH>วัน เดือน ปี</TH> <TH>เรื่อง</TH> <TH>โทษ</TH> </TR> <TR> <td class="cell-head">'.$personal["accuse_date"].'</TD> <td class="cell-head">'.$personal["accuse_choice"].' </TD> <td class="cell-head">'.$personal["accuse_detail"].' </TD> </TR> <TR> <td class="cell-head"> </TD> <td class="cell-head"> </TD> <td class="cell-head"> </TD> </TR> <TR> <td class="cell-head"> </TD> <td class="cell-head"> </TD> <td class="cell-head"> </TD> </TR> '; $html .=' </table> <br> '; $report->WriteHTML($html); $report->Output(); exit(); ?>