ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'REPORTE DE VENTAS PX INTERNOS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'De la fecha: '.cambia_a_normal($_GET['fechaInicial']).' a la fecha: '.cambia_a_normal($_GET['fechaFinal']),0,0,R);


    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE entidad='" . $_GET['entidad'] . "' and folioVenta='" . $_GET['folioVenta'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
//*************************************************************
$pdf->SetFont('Arial', 'B', 13);
//establece el encabezado de la empresa
$pdf->SetXY(75, 9);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetXY(65, 13);
$pdf->Cell(0, 0, 'Camino al Vapor #209 Col. Zambrano, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(84, 17);
$pdf->Cell(0, 0, 'CP 67500, Tel.(826)263.3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 25);
/* $pdf->Cell(0,0,'Paciente: '.$paciente,0,0,L); */
$sSQL317 = "Select nomCliente From clientes WHERE entidad='" . $_GET['entidad'] . "' and numCliente = '" . $myrow311['seguro'] . "'";
$result317 = mysql_db_query($basedatos, $sSQL317);
$myrow317 = mysql_fetch_array($result317);
//Compa�ia
$pdf->SetXY(2, 33);
if ($myrow317['nomCliente']) {
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1];
    return $lafecha;
}

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'POLIZA DE DIARIO',0,0,M);

$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,cambia_a_normal($fecha1),0,0,R);

Esempio n. 4
0
$myrow455 = mysql_fetch_array($result455);
if ($_GET['rfc'] and !$_GET['seguro']) {
    $sSQL455 = "Select * from RFC where rfc='" . $_GET['rfc'] . "'";
    $result455 = mysql_db_query($basedatos, $sSQL455);
    $myrow455 = mysql_fetch_array($result455);
} else {
    $sSQL455 = "Select * from clientes where entidad='" . $_GET['entidad'] . "' and numCliente='" . $_GET['seguro'] . "'";
    $result455 = mysql_db_query($basedatos, $sSQL455);
    $myrow455 = mysql_fetch_array($result455);
}
$razonSocial1 = $myrow455['razonSocial1'];
$razonSocial = $myrow455['razonSocial'];
$nombreCliente = $myrow455['nomCliente'];
$pdf->SetXY(28, 27);
if ($_GET['razonSocial']) {
    $pdf->Cell(0, 0, $_GET['razonSocial'], 0, 0, L);
} else {
    if ($razonSocial) {
        if ($razonSocial1) {
            $pdf->Cell(0, 0, $razonSocial, 0, 0, L);
            $pdf->Ln(3);
            //salto de linea
            $pdf->SetXY(22, 30);
            $pdf->Cell(0, 0, $razonSocial1, 0, 0, L);
        } else {
            $pdf->Cell(0, 0, $razonSocial, 0, 0, L);
        }
    } else {
        $pdf->Cell(0, 0, $nombreCliente, 0, L);
    }
}
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;

$sSQL2c= "Select * From contadorEntregaGranel WHERE keySol='".$_GET['keySol']."' ";
$result2c=mysql_db_query($basedatos,$sSQL2c);
$myrow2c = mysql_fetch_array($result2c);

$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'HOSPITAL LA CARLOTA',0,0,M);
$pdf->SetX(1);


//*****************ech*************





//$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'Orden: '.$myrow2c['contador'],0,0,R);


    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'DETALLES',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'Fecha Inicial: '.cambia_a_normal($_GET['fechaInicial']).' a la fecha: '.cambia_a_normal($_GET['fechaFinal']),0,0,R);


    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'CORTESIAS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=date("d-M-Y");
$pdf->SetY(10);
$pdf->Cell(0,0,$fecha1,0,0,R);


Esempio n. 8
0
     $x3 = 68;
     $x4 = 78;
     $x5 = 87;
 } elseif ($row_i >= 18 && $row_i <= 34) {
     // ����� column �����ͨ����� X ������
     $x1 = 93;
     $x2 = 143;
     $x3 = 153;
     $x4 = 163;
     $x5 = 172;
 }
 if (isset($full_items[$i])) {
     ++$item_i;
     $item = $full_items[$i];
     $pdf->SetXY($x1, $y_start);
     $pdf->Cell(50, $line_height, $item['tradename'], 1, 1, 'L');
     $pdf->SetXY($x2, $y_start);
     $pdf->Cell(10, $line_height, $item['num'], 1, 1, 'R');
 } else {
     $pdf->Rect($x1, $y_start, 50, $line_height);
     //��¡��
     $pdf->Rect($x2, $y_start, 10, $line_height);
     //�ӹǹ�ԡ
 }
 // �����ͧ��ҹ��Ңͧ���� column �繤����ҧ
 $pdf->Rect($x3, $y_start, 10, $line_height);
 //���¨�ԧ
 $pdf->Rect($x4, $y_start, 9, $line_height);
 //���Թ(�ҷ)
 $pdf->Rect($x5, $y_start, 6, $line_height);
 //���Թ(ʵ.)
Esempio n. 9
0
	$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);

	$pdf->SetXY(45, 27);
	$pdf->Cell(0, 6, "Ç/´/» à¡Ô´: ".$item['dbirth']." ID: ".$item['idcard']." ÊÔ·¸Ô: ".$item['ptright'],0,1);

	$pdf->AutoPrint(true);
	$pdf->Output();
	exit;

}
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'REPORTE X FOLIOS DE VENTA PX EXTERNOS' ,0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'Fecha Inicial: '.cambia_a_normal($_GET['fechaInicial']).' a la fecha: '.cambia_a_normal($_GET['fechaFinal']),0,0,R);


    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'MOVIMIENTOS DE CAJA',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,cambia_a_normal($fecha1),0,0,R);


    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(4,5);
$pdf->Cell(0,0,'BENEFICENCIAS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=date("d-M-Y");
$pdf->SetY(10);
$pdf->Cell(0,0,$fecha1,0,0,R);


Esempio n. 13
0
$sql = "SELECT * FROM  `booking`  WHERE  `row_id` ='" . $row_id . "' ";
$query = mysql_query($sql);
$dbarr = mysql_fetch_array($query);
$age = calcage($dbarr['bdate']);
// header('Content-type: application/pdf');
$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->Cell(0, 4, "�ͧ/Ἱ�/��ǹ �ٹ��������  �͡��������Ţ FR-IPC-001/3  ��䢤��駷�� 00  �ѹ����ռźѧ�Ѻ�� 28 �.�.44", 0, 1, "C");
$pdf->SetFontSize(30);
$pdf->Cell(0, 10, "㺨ͧ��§", 0, 1, "C");
$pdf->SetFontSize(23);
$pdf->Cell(0, 8, "�ç��Һ�Ť�������ѡ�������� �.���ͧ �.�ӻҧ", 0, 1, "C");
$pdf->SetXY(0, 26);
$pdf->Cell(30, 6, "����-ʡ��", 0, 1);
$pdf->SetXY(30, 26);
$pdf->Cell(60, 6, $dbarr['ptname'], 0, 1);
$pdf->SetXY(90, 26);
$pdf->Cell(40, 6, "����", 0, 1);
$pdf->SetXY(130, 26);
$pdf->Cell(80, 6, $age, 0, 1);
$pdf->SetXY(0, 34);
$pdf->Cell(30, 6, "HN", 0, 1);
$pdf->SetXY(30, 34);
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'REPORTE DE INGRESOS POR ALMACEN',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'De la Fecha: '.cambia_a_normal($_GET['fechaInicial']) .' a la Fecha: '.cambia_a_normal($_GET['fechaFinal']),0,0,R);


    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'REPORTE DE VENTAS DIRECTAS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,'Fecha Inicial: '.cambia_a_normal($_GET['fechaInicial']).' a la fecha: '.cambia_a_normal($_GET['fechaFinal']),0,0,R);


Esempio n. 16
0
$result16 = mysql_db_query($basedatos, $sSQL16);
$myrow16 = mysql_fetch_array($result16);
$Tabonos = $myrow16['Tabonos'];
$sSQL2 = "\r\n\tSELECT \r\n  sum(precioVenta) as TCargos\r\nFROM\r\ncargosCuentaPaciente\r\nWHERE \r\nnumeroE = '" . $numeroE1 . "'\r\n and\r\n nCuenta='" . $nCuenta1 . "'\r\nand \r\nstatus='transaccion'\r\nand\r\nnaturaleza='C' \r\n\r\n";
$result2 = mysql_db_query($basedatos, $sSQL2);
$myrow2 = mysql_fetch_array($result2);
$TCargos = $myrow2['TCargos'];
$TOTAL = $myrow17['sumaCargos'] - $Tabonos + $TCargos;
$sSQL13 = "\r\n\tSELECT \r\n  sum(iva*cantidad) as sumaiva\r\nFROM\r\ncargosCuentaPaciente\r\nWHERE \r\nnumeroE = '" . $_GET['numeroE'] . "'\r\n and\r\n nCuenta='" . $_GET['nCuenta'] . "'\r\nand\r\nstatusCargo='cargado'\r\n\r\n";
$result13 = mysql_db_query($basedatos, $sSQL13);
$myrow13 = mysql_fetch_array($result13);
$iva = $myrow13['sumaiva'];
$pdf->SetFont('Arial', '', 12);
//establece el nombre del paciente
$pdf->SetXY(22, 18);
$pdf->Cell(0, 0, 'Descripci�n', 0, 0, L);
$pdf->SetXY(175, 18);
$pdf->Cell(0, 0, 'Descuento', 0, 0, L);
$pdf->Line(23, 21, 200, 21);
$pdf->SetY(5);
$pdf->Cell(0, 0, $numeroTransaccion, 0, 0, R);
//numero de paciente
$pdf->SetXY(30, 5);
$pdf->Cell(0, 0, $_GET['titulo'], 0, 0, L);
$pdf->SetX(1);
//cambiar fecha
//$myrow1['fecha1']=cambia_a_normal($myrow1['fecha1']);
$fecha1 = date("d/m/Y");
/* $pdf->SetY(10);
$pdf->Cell(0,0,$fecha1,0,0,R); */
//Imprimo con salto de pagina
Esempio n. 17
0
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
//*******************DATOS FISCALES******************
$sSQL2df = "Select * From datosFiscalesEntidades \r\nWHERE entidad='" . $_GET['entidad'] . "'   ";
$result2df = mysql_db_query($basedatos, $sSQL2df);
$myrow2df = mysql_fetch_array($result2df);
//***************************************************
//$pdf->SetFont('Arial','B',13);
$pdf->SetFont('Arial', 'B', 11);
//establece el encabezado de la empresa
//$pdf->SetXY(75,11);
$pdf->SetXY(1, 2);
$pdf->Cell(0, 0, $myrow2df['razonSocial'], 0, 0, M);
//rfc
//$pdf->SetXY(75,11);
$pdf->SetFont('Arial', 'I', 7);
$pdf->SetXY(1, 6);
$pdf->Cell(0, 0, $myrow2df['RFC'], 0, 0, M);
//$pdf->SetFont('Arial','I',11);
$pdf->SetFont('Arial', 'I', 7);
//$pdf->SetXY(54,15);
$pdf->SetXY(1, 9);
$pdf->Cell(0, 0, $myrow2df['calle'] . ', ' . $myrow2df['colonia'] . ', ' . $myrow2df['ciudad'] . ', ' . $myrow2df['estado'], 0, 0, M);
//$pdf->SetXY(80,19);
$pdf->SetXY(1, 12);
$pdf->Cell(0, 0, $myrow2df['cp'] . ' - Tel. (826)263.3188', 0, 0, M);
//establece el nombre del paciente
$textoSize = 6;
$conexionManual->conecta();
//**************************************************
function cambia_a_normal($fecha)
{
    ereg("([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha = $mifecha[3] . "/" . $mifecha[2] . "/" . $mifecha[1];
    return $lafecha;
}
//******************************************************************
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'REPORTE DETALLE DE CAJA', 0, 0, M);
$pdf->SetX(1);
//******************************
$fecha1 = date("d/m/Y");
$pdf->SetY(10);
$pdf->Cell(0, 0, $fecha1, 0, 0, R);
//*****************************
$sSQL1a = "Select * From statusCaja where keyCatC='" . $_GET['codigoCaja'] . "' and numCorte='" . $_GET['numCorte'] . "' order by keySTC DESC";
$result1a = mysql_db_query($basedatos, $sSQL1a);
$myrow1a = mysql_fetch_array($result1a);
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, "Diario de Caja", 0, 0, M);
$pdf->SetX(1);
$pdf->SetXY(2, 13);
$pdf->Cell(0, 0, 'Cajero(a): ' . $myrow1a['usuario'], 0, 0, M);
$pdf->SetX(1);
    $can += $cant;
    return $can;
}
//aqui estoy
//$_GET['keyClientesInternos']='22822';
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "' ";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', 'B', 13);
//establece el encabezado de la empresa
$pdf->SetXY(75, 11);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', 'I', 11);
$pdf->SetXY(54, 15);
$pdf->Cell(0, 0, 'Camino al Vapor #209 Col. Zambrano, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(80, 19);
$pdf->Cell(0, 0, 'CP 67500 - Tel. (826)263.3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);
    $myrow1 = mysql_fetch_array($result1);
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'CONSULTA EXTERNA',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,cambia_a_normal($fecha1),0,0,R);


$basedatos = 'sima';
mysql_connect($servidor, $usuario, $passwd);
function cambia_a_normal($fecha)
{
    ereg("([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha = $mifecha[3] . "/" . $mifecha[2] . "/" . $mifecha[1];
    return $lafecha;
}
//******************************************************************
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'REPORTE DETALLE DE CAJA', 0, 0, M);
$pdf->SetX(1);
//******************************
$fecha1 = date("d/m/Y");
$pdf->SetY(10);
$pdf->Cell(0, 0, $fecha1, 0, 0, R);
//*****************************
$sSQL1a = "Select * From statusCaja where keyCatC='" . $_GET['codigoCaja'] . "' and numCorte='" . $_GET['numCorte'] . "' order by keySTC DESC";
$result1a = mysql_db_query($basedatos, $sSQL1a);
$myrow1a = mysql_fetch_array($result1a);
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, "Diario de Caja", 0, 0, M);
$pdf->SetX(1);
$pdf->SetXY(2, 13);
$pdf->Cell(0, 0, 'Cajero(a): ' . $myrow1a['usuario'], 0, 0, M);
$pdf->SetX(1);
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'HONORARIOS MEDICOS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0,0,cambia_a_normal($fecha1),0,0,R);


Esempio n. 23
0
$myrow455 = mysql_fetch_array($result455);
if ($_GET['rfc']) {
    $sSQL455 = "Select * from RFC where rfc='" . $_GET['rfc'] . "'";
    $result455 = mysql_db_query($basedatos, $sSQL455);
    $myrow455 = mysql_fetch_array($result455);
} else {
    $sSQL455 = "Select * from clientes where entidad='" . $_GET['entidad'] . "' and numCliente='" . $_GET['seguro'] . "'";
    $result455 = mysql_db_query($basedatos, $sSQL455);
    $myrow455 = mysql_fetch_array($result455);
}
$razonSocial1 = $myrow455['razonSocial1'];
$razonSocial = $myrow455['razonSocial'];
$nombreCliente = $myrow455['nomCliente'];
$pdf->SetXY(28, 27);
if ($_GET['razonSocial']) {
    $pdf->Cell(0, 0, $_GET['razonSocial'], 0, 0, L);
} else {
    if ($razonSocial) {
        if ($razonSocial1) {
            $pdf->Cell(0, 0, $razonSocial, 0, 0, L);
            $pdf->Ln(3);
            //salto de linea
            $pdf->SetXY(28, 30);
            $pdf->Cell(0, 0, $razonSocial1, 0, 0, L);
        } else {
            $pdf->Cell(0, 0, $razonSocial, 0, 0, L);
        }
    } else {
        $pdf->Cell(0, 0, $nombreCliente, 0, L);
    }
}
$numeroTransaccion = $myrow1['keyClientesInternos'];
//************devuelve seguro
$sSQL39 = "SELECT *\r\nFROM\r\nclientes\r\nwhere \r\nnumCliente='" . $seguro . "'";
$result39 = mysql_db_query($basedatos, $sSQL39);
$myrow39 = mysql_fetch_array($result39);
$seguro = $myrow39['nomCliente'];
$auxiliar = $myrow39['ID_AUXILIAR'];
$ctaMayor = $myrow39['ID_CTAMAYOR'];
//**********cierra devolver seguro
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA', 0, 0, M);
$pdf->SetX(1);
$pdf->SetY(5);
$pdf->Cell(0, 0, 'Num. Corte: ' . $_GET['numCorte'], 0, 0, R);
//numero de paciente
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, "Diario de Caja", 0, 0, M);
$pdf->SetX(1);
$pdf->SetXY(2, 13);
$pdf->Cell(0, 0, 'Cajero(a): ' . $usuario, 0, 0, M);
$pdf->SetX(1);
//***********************************EFECTIVO SOLAMENTE***********************************
$pdf->SetFont('Arial', '', 12);
$pdf->SetXY(1, 25);
$pdf->Cell(0, 0, 'Devoluciones', 0, 0, M);
$pdf->SetFont('Arial', '', 10);
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'HONORARIOS MEDICOS',0,0,M);
$pdf->SetX(1);


//*****************ech*************





$fecha1=date("d-M-Y");
$pdf->SetY(10);
$pdf->Cell(0,0,$fecha1,0,0,R);


Esempio n. 26
0
    ereg( "([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha); 
    $lafecha=$mifecha[3]."/".$mifecha[2]."/".$mifecha[1]; 
    return $lafecha; 
} 

//******************************************************************

if($seguro)$paciente=$seguro;



$pdf->SetFont('Arial','',10);
//establece el nombre del paciente

$pdf->SetXY(2,5);
$pdf->Cell(0,0,'REPORTE DE IVA PX. INTERNOS',0,0,M);



//*****************ech*************





$fecha1=$_GET['fecha'];



$pdf->SetXY(2,10);
$pdf->Cell(0,0,"HOSPITAL LA CARLOTA",0,0,M);
Esempio n. 27
0
$conexionManual = new MYSQL();
$conexionManual->conecta();
function cambia_a_normal($fecha)
{
    ereg("([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})", $fecha, $mifecha);
    $lafecha = $mifecha[3] . "/" . $mifecha[2] . "/" . $mifecha[1];
    return $lafecha;
}
//******************************************************************
if ($seguro) {
    $paciente = $seguro;
}
$pdf->SetFont('Arial', '', 10);
//establece el nombre del paciente
$pdf->SetXY(2, 5);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA', 0, 0, M);
$pdf->SetX(1);
//*****************ech*************
//$fecha1=$_GET['fecha'];
$pdf->SetY(10);
$pdf->Cell(0, 0, 'Solicitud: ' . $_GET['numSolicitud'], 0, 0, R);
$pdf->SetXY(2, 10);
$pdf->Cell(0, 0, 'SOLICITUD DIRECTA DEL PACIENTE: ' . $_GET['paciente'], 0, 0, M);
$pdf->SetX(1);
//Usuario
$pdf->SetXY(2, 13);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 0, 'Usuario Cargo: ' . $_GET['usuarioCargo'], 0, 0, L);
$pdf->SetXY(2, 16);
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 0, 'Fecha Cargo: ' . cambia_a_normal($_GET['fecha']), 0, 0, L);
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', '', 12);
//establece el encabezado de la empresa
$pdf->SetXY(80, 13);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', '', 8);
$pdf->SetXY(65, 17);
$pdf->Cell(0, 0, 'Camino al Vapor #201 Col. Zambrano, CP 67500, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(90, 20);
$pdf->Cell(0, 0, 'Tel. (826)263-3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(22, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetXY(22, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);
    $myrow1 = mysql_fetch_array($result1);
    $pdf->Cell(0, 0, 'No. Seguro: ' . $myrow1['nomCliente'], 0, 0, L);
    $can += $cant;
    return $can;
}
//aqui estoy
//$_GET['keyClientesInternos']='22822';
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "' ";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', 'B', 13);
//establece el encabezado de la empresa
$pdf->SetXY(75, 11);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', 'I', 11);
$pdf->SetXY(54, 15);
$pdf->Cell(0, 0, 'Camino al Vapor #209 Col. Zambrano, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(80, 19);
$pdf->Cell(0, 0, 'CP 67500 - Tel. (826)263.3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(2, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);
    $myrow1 = mysql_fetch_array($result1);
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
$sSQL311 = "Select  * From clientesInternos WHERE folioVenta='" . $_GET['folioVenta'] . "'";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
$paciente = $myrow311['paciente'];
$numeroE = $myrow311['numeroE'];
$nCuenta = $myrow311['nCuenta'];
$keyClientesInternos = $myrow311['keyClientesInternos'];
$pdf->SetFont('Arial', '', 12);
//establece el encabezado de la empresa
$pdf->SetXY(80, 10);
$pdf->Cell(0, 0, 'HOSPITAL LA CARLOTA S.C. ', 0, 0, M);
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(65, 13);
$pdf->Cell(0, 0, 'Camino al Vapor #201 Col. Zambrano, CP 67500, Montemorelos N.L.', 0, 0, M);
$pdf->SetXY(90, 17);
$pdf->Cell(0, 0, 'Tel. (826)263-3188', 0, 0, M);
//establece el nombre del paciente
$pdf->SetFont('Arial', '', 13);
$pdf->SetXY(2, 25);
$pdf->Cell(0, 0, 'Paciente: ' . $paciente, 0, 0, L);
$pdf->SetXY(2, 29);
if ($myrow311['seguro']) {
    $sSQL1 = "Select nomCliente From clientes WHERE entidad='" . $myrow311['entidad'] . "' AND numCliente = '" . $myrow311['seguro'] . "' ";
    $result1 = mysql_db_query($basedatos, $sSQL1);
    $myrow1 = mysql_fetch_array($result1);
    $pdf->Cell(0, 0, 'No. Seguro: ' . $myrow1['nomCliente'], 0, 0, L);