require_once("Globe/include/connectDB.php"); include('mpdf/mpdf.php'); $sql = "SELECT * FROM `certificate_detail`,certificate ,school,cer_project WHERE school.school_id=`certificate`.school and certificate.id_certificate=`certificate_detail`.`Id_c` and certificate.name_project =cer_project.id and `certificate_detail`.`Id_c_Detail`=$_GET[ids] "; $query = mysqli_query($conn,$sql); $row = mysqli_fetch_array($query); echo $row["name_project"]." ".$row["school_name"]." ".$row["name_std"]; echo $sql; $sci_dean=$row["sci_dean"]; $president_name=$row["president_name"]; $president_rank=$row["president_rank"]; $deen_sign_height=$row["deen_sign_height"]; $president_sign_height=$row["president_sign_height"]; function DateThai($strDate) { $strYear = date("Y",strtotime($strDate))+543; $strMonth= date("n",strtotime($strDate)); $strDay= date("j",strtotime($strDate)); $strHour= date("H",strtotime($strDate)); $strMinute= date("i",strtotime($strDate)); $strSeconds= date("s",strtotime($strDate)); $strMonthCut = Array("","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"); $strMonthThai=$strMonthCut[$strMonth]; //return "$strDay $strMonthThai $strYear, $strHour:$strMinute"; return "$strDay $strMonthThai $strYear"; } // echo DateThai($strDate); $gd=DateThai($row["dategive"]); $dst=explode("-",$row["datest"]); if($row["dategive"]!=$row["datest"]){ $msg="ระหว่างวันที่ ".$dst[2]." - ".$gd; }else{ $msg="ในวันที่ ".$gd; } //$gd=DateThai($row["dategive"]); //$st=DateThai($row["datest"]); $sd=explode("-",$row["datest"]); $yy=explode("-",$row["dategive"]); if($row["status_c"]==2){$st="(ครูที่ปรึกษา)";} $y=$yy[0]+543; $mpdf = new mPDF('th', 'A4-L', '0', ''); $mpdf->SetDisplayMode('fullpage'); //$mpdf->SetWatermarkText('GLOBE TSU'); $mpdf->showWatermarkText = true; $mpdf->SetMargins(1,1,7,0 ); if($yy[0]<=2020){ $header = '
![]() ![]() ![]() |
![]() |
![]() |
|
(อาจารย์ ดร.ธนพันธุ์ ปัทมานนท์) คณบดีคณะวิทยาศาสตร์ มหาวิทยาลัยทักษิณ |
(อาจารย์ ดร.นันทิดา สุธรรมวงศ์) ประธานโครงการ GLOBE คณะวิทยาศาสตร์ มหาวิทยาลัยทักษิณ |
![]() ![]() ![]() |
('.$sci_dean.') คณบดีคณะวิทยาศาสตร์ มหาวิทยาลัยทักษิณ |
('.$president_name.') '.$president_rank.' คณะวิทยาศาสตร์ มหาวิทยาลัยทักษิณ |