Beispiel #1
0
		':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);
	$pdf->Cell(100, 6, $item['yot'].' '.$item['name'].' '.$item['surname'],0,1);
            $script .= "pp.interactive = pp.constants.interactionLevel.automatic;";
        }
        $script .= "pp.printerName = '\\\\\\\\" . $server . "\\\\" . $printer . "';";
        $script .= "print(pp);";
        $this->IncludeJS($script);
    }
}
$pdf = new PDF_AutoPrint('P', 'cm', 'custom', 431.3, 263.622);
//$pdf->FPDF('P','mm','A4');
//$pdf=new FPDF('P','cm','custom',362.835,263.622);  //ingreso medida puntos
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(1.8);
$pdf->PageNo();
$pdf->SetTopMargin(1.7);
$pdf->SetAutoPageBreak(0.5);
$pdf->AddPage();
$pdf->SetFont('arial', '', 8);
$venta->ventas_ver($_REQUEST['venta']);
$nro_documento = $venta->ven_nrodoc;
$cliente_nombre = $venta->cli_razonsocial;
$cliente_direccion = $venta->cli_direccion;
$cliente_ruc = $venta->cli_ruc;
$e_fecha = $venta->_util->obtiene_fecha($venta->ven_fecha);
$fecha = explode("/", $e_fecha);
//si fecha esta en formato dia-mes-año
$dia = $fecha[0];
$mes = $venta->_util->ver_nombre_mes($fecha[1]);
$mes_numero = $fecha[1];
$anio = substr($fecha[2], 2);
$pdf->Cell(1.2, 0.4, '', 0, 0, 'L');
Beispiel #3
0
        $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 ������Т��
$item_i = 0;
for ($i = 1; $i <= $full_rows; $i++) {
        } else {
            $script .= "pp.interactive = pp.constants.interactionLevel.automatic;";
        }
        $script .= "pp.printerName = '\\\\\\\\" . $server . "\\\\" . $printer . "';";
        $script .= "print(pp);";
        $this->IncludeJS($script);
    }
}
$pdf = new PDF_AutoPrint('P', 'cm', 'custom', 714.0, 394.016);
//ingreso medida puntos
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(0.3);
$pdf->PageNo();
$pdf->SetTopMargin(2.5);
$pdf->SetAutoPageBreak(0.9);
$pdf->AddPage();
$pdf->SetFont('arial', '', 9);
$venta->ventas_ver($_REQUEST['venta']);
$nro_documento = $venta->ven_nrodoc;
$cliente_nombre = $venta->cli_razonsocial;
$cliente_direccion = $venta->cli_direccion;
$cliente_ruc = $venta->cli_ruc;
$e_fecha = $venta->_util->obtiene_fecha($venta->ven_fecha);
$fecha = explode("/", $e_fecha);
//si fecha esta en formato dia-mes-año
$dia = $fecha[0];
$mes = $venta->_util->ver_nombre_mes($fecha[1]);
$mes_numero = $fecha[1];
$anio = substr($fecha[2], 2);
$pdf->Cell(1.7, 0.5, '', 0, 0, 'L');