':no_card' => $no_card, ':hn' => $cHn ); $db->update($sql, $data); $sql = "SELECT `hn`,`idcard`,`yot`,`name`,`surname`,`ptright`,`dbirth`,`no_card` FROM `opcard` WHERE `hn` LIKE :hn_patient "; $data = array(':hn_patient' => $cHn); $db->select($sql, $data); $item = $db->get_item(); $pdf = new PDF_AutoPrint("P",'mm', "A4"); $pdf->SetThaiFont(); // à«çµ¿Í¹µì $pdf->SetAutoPageBreak(false, 0); $pdf->SetMargins(0, 0); $pdf->SetTopMargin(2); $pdf->AddPage(); $pdf->SetFont('THSarabun'); // àÃÕ¡ãªé§Ò¹¿Í¹µì·ÕèàµÃÕÂÁäÇé $pdf->SetFontSize(17); $pdf->SetXY(185, 7); $pdf->Cell(10, 6, $item['no_card'],0,1); $pdf->SetXY(45, 19); $pdf->Cell(40, 6, $item['hn'],0,1); $pdf->SetXY(110, 19);
$this->SetXY(8, 235); $this->Cell(45, 7, '�����¢ͧ', 0, 1, 'C'); $this->SetXY(58, 235); $this->Cell(32, 7, '�ѹ �� ��', 0, 1, 'C'); $this->SetXY(94, 235); $this->Cell(45, 7, '����Ѻ�ͧ', 0, 1, 'C'); $this->SetXY(144, 235); $this->Cell(32, 7, '�ѹ �� ��', 0, 1, 'C'); } } $m = date('m'); if (!isset($date_serve)) { $date_serve = date('d') . ' ' . $def_fullm_th[$m] . ' ' . (date('Y') + 543); } $pdf = new PDF_AutoPrint("P", 'mm', "A4"); $pdf->SetThaiFont(); // �絿�� $pdf->SetAutoPageBreak(true, 0); $pdf->SetMargins(8, 4); $pdf->AddPage(); $pdf->SetFont('THSarabun', '', 15); $max_row = 34; // �ӹǹ�ǵ��˹��˹�ҡ�д�� $y_start = 59; $line_height = 7.5; // �Ҩӹǹ����ͧ���ҧ $item_rows = count($full_items); $full_rows = ceil($item_rows / $max_row) * $max_row; $row_i = 0; $line_num = 0; // �Ѻ�ӹǹ�Ǣͧ column ������Т��