function Cabecera() { global $FechaInicio, $FechaFin; $this->CuadroCabecera(25, "Fecha: ", 70, fecha2Str($FechaInicio) . " hasta " . fecha2Str($FechaFin)); $this->Pagina(); $this->Ln(); $this->TituloCabecera(10, "N", 10); $this->TituloCabecera(100, "Producto", 10); $this->TituloCabecera(30, "Cantidad", 10); $this->TituloCabecera(30, "Precio Unitario", 10); $this->TituloCabecera(30, "Total", 10); $this->TituloCabecera(30, "Fecha", 10); }
function Cabecera() { global $cur, $fechaasistencia; $this->CuadroCabecera(15, "Curso:", 30, $cur['nombre']); $this->CuadroCabecera(38, "Fecha de Asistencia:", 15, fecha2Str($fechaasistencia)); $this->Ln(); $this->TituloCabecera(10, "N"); $this->TituloCabecera(30, "Paterno"); $this->TituloCabecera(30, "Materno"); $this->TituloCabecera(40, "Nombres"); $this->TituloCabecera(25, "Asistencia"); $this->TituloCabecera(25, "Falta"); $this->TituloCabecera(25, "Licencia"); }
function Cabecera() { global $idioma, $FechaFacturaInicio, $FechaFacturaFin; $this->CuadroCabecera(30, $idioma['RangoFecha'] . ":", 30, fecha2Str($FechaFacturaInicio) . " / " . fecha2Str($FechaFacturaFin)); $this->ln(); $this->TituloCabecera(10, "N"); $this->TituloCabecera(25, $idioma['Fecha']); $this->TituloCabecera(20, "Nº " . $idioma['Factura']); $this->TituloCabecera(25, $idioma['Nit']); $this->TituloCabecera(50, $idioma['FacturaA']); $this->TituloCabecera(20, $idioma['TotalBs']); $this->TituloCabecera(20, $idioma['Cancelado']); $this->TituloCabecera(20, $idioma['Cambio']); $this->TituloCabecera(20, $idioma['Estado']); $this->TituloCabecera(35, $idioma['CodigoControl']); }
function Cabecera() { global $FechaInicio, $FechaFin; $this->CuadroCabecera(25, "Fecha: ", 70, fecha2Str($FechaInicio) . " hasta " . fecha2Str($FechaFin)); $this->Pagina(); $this->Ln(); $this->TituloCabecera(5, "N", 10); $this->TituloCabecera(20, "Nombre", 10); $this->TituloCabecera(20, "C.I.", 10); $this->TituloCabecera(25, "Tamaño", 10); $this->TituloCabecera(25, "Sabor", 10); $this->TituloCabecera(30, "Extra", 10); $this->TituloCabecera(30, "Envase", 10); $this->TituloCabecera(20, "Bebidas", 10); $this->TituloCabecera(15, "Total", 10); $this->TituloCabecera(20, "Obs", 10); $this->TituloCabecera(20, "Estado", 10); $this->TituloCabecera(15, "Hora", 10); }
function Cabecera() { global $fechainicio, $fechafinal, $orden, $order; $this->CuadroCabecera(30, "Fecha Desde:", 20, fecha2Str($fechainicio)); $this->CuadroCabecera(20, "Hasta:", 20, fecha2Str($fechafinal)); $this->CuadroCabecera(30, "Ordenado por:", 20, capitalizar($orden) . " " . $order); $this->ln(); $this->TituloCabecera(10, "N"); $this->TituloCabecera(50, "Video"); $this->TituloCabecera(30, "Temática"); $this->TituloCabecera(20, "Fecha"); $this->TituloCabecera(15, "Formato"); $this->TituloCabecera(15, "Duración"); $this->TituloCabecera(20, "Soporte"); $this->TituloCabecera(30, "Lugar"); $this->TituloCabecera(30, "Tipo"); $this->TituloCabecera(20, "Descargas"); $this->TituloCabecera(40, "Subido por"); }
function Cabecera() { global $ApellidoP, $ApellidoM, $Nombres, $Telefono, $ReporteCompleto, $Celular, $FechaIncio, $FechaFinal; $this->CuadroCabecera(30, "Reporte de: ", 60, "Dr. " . $ApellidoP . " " . $ApellidoM . " " . $Nombres); $this->CuadroCabecera(20, "Teléfono: ", 40, "" . $Telefono . " - " . $Celular); $this->Pagina(); $this->Ln(); $this->CuadroCabecera(35, "Rango de Fechas: ", 60, fecha2Str($FechaIncio) . " - " . fecha2Str($FechaFinal)); $this->Ln(); $this->TituloCabecera(10, "N", 8); $this->TituloCabecera(20, "FechaIngreso", 8); $this->TituloCabecera(40, "Cliente", 8); if ($ReporteCompleto == 1) { $this->TituloCabecera(20, "Total Optica", 8); $this->TituloCabecera(20, "Desc. Optica", 8); } $this->TituloCabecera(20, "Total", 8); $this->TituloCabecera(20, "Porcentaje", 8); //$this->TituloCabecera(20,"Total",8); }
echo $opt['NumeroBoleta']; ?> </td><td><?php echo $opt['Recepcion']; ?> </td><td><?php echo $pac['Paterno']; ?> <?php echo $pac['Materno']; ?> <?php echo $pac['Nombres']; ?> </td><td><?php echo fecha2Str($opt['FechaEntrega']); ?> </td></tr> </table> <table class="table table-bordered table-striped"> <thead><tr><th>Monto</th><th>A Cuenta Bs</th><th>A Cuenta $us </th><th>Saldo</th></tr></thead> <tr class="success"><td><?php echo $opt['TotalBs']; ?> </td><td><?php echo $opt['ACuentaBs']; ?> </td><td><?php echo $opt['ACuentaSus']; ?>
$cuo = $cuota->mostrarCuota($fd['CodAlumno'], $numcuo); $cuo = array_shift($cuo); $CodCuota = $cuo['CodCuota']; $Valor = 1; $Factura = trim($NFactura); $Observaciones = "Facturado"; $Fecha = fecha2Str($FechaFactura, 0); $Hora = date("H:i:s"); $Fecha = $Fecha . " " . $Hora; $cuota->actualizar($CodCuota, $Valor, $Factura, $Observaciones, $Fecha); } break; default: /*Modificacion Cuota*/ $CodCuota = $fd['CodCuota']; $Valor = 1; $Factura = trim($NFactura); $Observaciones = "Facturado"; $Fecha = fecha2Str($FechaFactura, 0); $Hora = date("H:i:s"); $Fecha = $Fecha . " " . $Hora; $cuota->actualizar($CodCuota, $Valor, $Factura, $Observaciones, $Fecha); break; } /*Fin de Modificacion Pago Cuota*/ } } $factura->insertarRegistro($ValoresFactura); //echo $TxtCodigoDeControl; header("Location:ver.php?f=" . $CodFactura); }
?> <tr> <td><?php echo $i; ?> </td> <td><?php echo capitalizar($al['Paterno'] . " " . $al['Materno'] . " " . $al['Nombres']); ?> </td> <td><?php echo $cur['Nombre']; ?> </td> <td><?php echo fecha2Str($a['Fecha']); ?> </td> <td><?php echo hora2Str($a['Hora']); ?> </td> <td><?php echo sacarTooltip($t); ?> </td> </tr> <?php } ?> </table>
</thead> <tr> <td><input type="text" name="nombrecliente" class="input-medium" placeholder="" value="<?php echo $p['nombrecliente']; ?> "></td> <td><input type="text" name="cicliente" class="input-small" maxlength="12" value="<?php echo $p['cicliente']; ?> "></td> <td><input type="text" name="celularcliente" class="input-small" maxlength="12" value="<?php echo $p['celularcliente']; ?> "></td> <td><?php echo fecha2Str($p['fecha']); ?> <?php echo hora2Str($p['hora']); ?> </td> <td><input type="date" name="fechaentregaestimada" class="input-medium" required value="<?php echo $p['fechaentregaestimada']; ?> "></td> <td><input type="date" name="fechaentregareal" class="input-medium" value=""></td> </tr> <tr> <td>Estado<br> <select class="input-medium" name="estado"><option value="0" <?php echo $p['estado'] == "0" ? 'selected="selected"' : '';
<?php include_once "../login/check.php"; if (isset($_POST)) { extract($_POST); //print_r($_POST); include_once "../class/agendaactividades.php"; $agendaactividades = new agendaactividades(); $ag = $agendaactividades->mostrarActividades("CodAgendaActividades=" . $CodAgendaActividades); $ag = array_shift($ag); $ag['FechaActividad'] = fecha2Str($ag['FechaActividad'], 1); $ag = array_merge(array("Boton" => $idioma['ActualizarActividad']), $ag); echo json_encode($ag); }
<?php include_once "../../login/check.php"; include_once "../../class/paciente.php"; $paciente = new paciente(); extract($_POST); $Valores = array("Paterno" => "'{$Paterno}'", "Materno" => "'{$Materno}'", "Nombres" => "'{$Nombres}'", "Ci" => "'{$Ci}'", "Telefono" => "'{$Telefono}'", "Celular" => "'{$Celular}'", "FechaNac" => "'" . fecha2Str($FechaNac, 0) . "'", "Direccion" => "'{$Direccion}'", "Observaciones" => "'{$Observaciones}'"); $paciente->actualizarRegistro($Valores, "CodPaciente=" . $Cod); $Mensajes[] = $idioma["GuardadoCorrectamente"]; $folder = "../../"; include_once "../../resultado.php";
$pdf = new PDF("L", "mm", "letter"); $pdf->AddPage(); $i = 0; foreach ($docente->mostrarTodosDocentes() as $doc) { $i++; if ($i % 2 == 0) { $relleno = 1; } else { $relleno = 0; } $pdf->CuadroCuerpo(10, $i, $relleno, "R"); $pdf->CuadroNombreSeparado(23, $doc['Paterno'], 23, $doc['Materno'], 35, $doc['Nombres'], 1, $relleno); if ($listado == "DatosPersonales") { $pdf->CuadroCuerpo(10, $doc['Sexo'] == '0' ? 'F' : 'M', $relleno, "C"); $pdf->CuadroCuerpo(25, $doc['Ci'], $relleno); $pdf->CuadroCuerpo(20, fecha2Str($doc['FechaNac']), $relleno); $pdf->CuadroCuerpo(35, $doc['Telefono'], $relleno, "L"); $pdf->CuadroCuerpo(35, $doc['Celular'], $relleno, "L"); } elseif ($listado == "DatosFormacionProfesional") { $pdf->CuadroCuerpo(15, $doc['Rda'], $relleno, "L"); $pdf->CuadroCuerpo(55, $doc['DPUniversidad'], $relleno, "L"); $pdf->CuadroCuerpo(15, $doc['DPAnoIngreso'], $relleno, "C"); $pdf->CuadroCuerpo(15, $doc['DPAnoEgreso'], $relleno, "C"); $pdf->CuadroCuerpo(15, $doc['DPAnoTitulacion'], $relleno, "C"); $pdf->CuadroCuerpo(40, $doc['DPTitulo'], $relleno, "L"); } elseif ($listado == "DatosTrabajo") { $pdf->CuadroCuerpo(50, $doc['DTCargo'], $relleno, "L"); $pdf->CuadroCuerpo(30, $doc['DTCargaHoraria'], $relleno, "C"); $pdf->CuadroCuerpo(30, $doc['DTAntiguedad'], $relleno, "C"); $pdf->CuadroCuerpo(40, $doc['DTCategoria'], $relleno, "L"); }
<span class="label label-warning"></span> <span class="label label-info"> <strong><?php echo $tipousuario; ?> :</strong></span> <br /><a"><?php echo capitalizar($Paterno); ?> <?php echo capitalizar($Materno); ?> <?php echo capitalizar($Nombres); ?> </a><br> </td> <td><?php echo fecha2Str($lu['FechaRegistro']); ?> </td> <td><?php echo $lu['HoraRegistro']; ?> </td> <td><?php echo $lu['Numero']; ?> </td> <td><?php echo $lu['Mensaje']; ?> </td>
</td><td>::</td><td><input type="text" name="rude" value="<?php echo mayuscula($al['Rude']); ?> " /></td></tr> <tr><td><?php echo $idioma['CedulaIdentidad']; ?> </td><td>::</td><td><input name="numeroDoc" type="text" id="numeroDoc" value="<?php echo mayuscula($al['Ci']); ?> " /></td></tr> <tr><td><?php echo $idioma['FechaNacimiento']; ?> </td><td>::</td><td><input name="fechaNac" type="text" id="fechaNac" value="<?php echo fecha2Str($al['FechaNac']); ?> " /></td></tr> <tr><td><?php echo $idioma['Sexo']; ?> </td><td>::</td><td><select name="sexo"><option value="0" <?php echo !$al['Sexo'] ? 'selected="selected"' : ''; ?> ><?php echo $idioma['Femenino']; ?> </option><option value="1"<?php echo $al['Sexo'] ? 'selected="selected"' : ''; ?> ><?php
if ($mespagos != 0) { $pdf->CuadroCuerpo(92, "", 0, "C", "R"); $pdf->CuadroCuerpo(60, "Total Pagos de Mes" . "", 1, "R", 1); $pdf->CuadroCuerpo(30, $mespagos . " Bs", 1, "R", 1); $pdf->Ln(); } $pdf->CuadroCuerpoPersonalizado(35, "Gastos - " . ucfirst(strftime("%B %Y ", strtotime($rfechas))), 0, "L", 1, "", 8); $pdf->CuadroCuerpoPersonalizado(27, "Fecha de Gasto", 1, "C", 1, "", 8); $pdf->CuadroCuerpoPersonalizado(90, "Detalle", 1, "C", 1, "", 8); $pdf->CuadroCuerpoPersonalizado(30, "Monto", 1, "C", 1, "", 8); $pdf->Ln(); foreach ($gas as $g) { $totalgastos += $g['Monto']; $mesgastos += $g['Monto']; $pdf->CuadroCuerpo(35, "", 0, "C", ""); $pdf->CuadroCuerpo(27, fecha2Str($g['FechaGasto']), 0, "C", "RL"); $pdf->CuadroCuerpo(90, $g['Detalle'], 0, "C", "RL"); $pdf->CuadroCuerpo(30, $g['Monto'] . " Bs", 0, "R", "RL"); $pdf->Ln(); } if ($mesgastos != 0) { $pdf->CuadroCuerpo(92, "", 0, "C", "R"); $pdf->CuadroCuerpo(60, "Total Gastos de Mes" . "", 1, "R", 1); $pdf->CuadroCuerpo(30, $mesgastos . " Bs", 1, "R", 1); $pdf->Ln(); } } $pdf->Ln(); $pdf->CuadroCuerpo(60, "Total Pagos" . "", 1, "R", 1, 9, "B"); $pdf->CuadroCuerpo(60, "Total Gastos" . "", 1, "R", 1, 9, "B"); $pdf->CuadroCuerpo(60, "Saldo en Caja" . "", 1, "R", 1, 9, "B");
echo $idioma['Regentes']; ?> </option> <option value="6"><?php echo $idioma['PadresFamilia']; ?> </option> <option value="7"><?php echo $idioma['Alumnos']; ?> </option> </select> </td> <td> <input type="text" class="span12" name="Fecha" value="<?php echo fecha2Str(date("Y-m-d")); ?> "> </td> <td><input type="submit" class="btn" value="<?php echo $idioma['Ver']; ?> "></td> </table> </form> </div> </div> </div> <div class="row-fluid"> <div class="span12 box"> <div class="box-header"><h2><?php
<option value="6"><?php echo $idioma['PadresFamilia']; ?> </option> <option value="7"><?php echo $idioma['Alumnos']; ?> </option> </select> </td> <td><?php echo $idioma['Fecha']; ?> : <input type="text" name="Fecha" value="<?php echo fecha2Str(); ?> "> </td> <td><input type="submit" class="btn" value="<?php echo $idioma['Ver']; ?> " id="ver"></td> </tr> </table> </div> </div> </div> <div class="row-fluid"> <div class="span12 box"> <div class="box-header"><h2><?php
campo("TC", "hidden", $TC, "", 1); ?> <table class="table table-bordered table-striped"> <tr> <td><?php echo $idioma['FechaPedido']; ?> <br><?php campo("Fecha", "text", fecha2Str(), "fecha", 1, "", 0, array("readonly" => "readonly", "disabled" => "disabled")); ?> </td> <td><?php echo $idioma['FechaEntrega']; ?> <br><?php campo("FechaEntrega", "text", fecha2Str(), "fechali", 1, "", 0); ?> </td> <td><?php echo $idioma['HoraEntrega']; ?> <br><?php campo("HoraEntrega", "time", date("H:i"), "hora", 1); ?> </td> <td colspan="2"><?php echo $idioma['Recepcion']; ?> <br><?php campo("Recepcion", "text", $NombresSis . " " . $ApellidoPSis . " " . $ApellidoMSis, "col-sm-12", 1, "", 0, array("readonly" => "readonly")); ?>
?> <tr> <td class="der"><?php echo $i; ?> </td> <td><?php echo $tar['Nombre']; ?> </td> <td><?php echo $tar['Descripcion']; ?> </td> <td><?php echo fecha2Str($tar['FechaPresentacion']); ?> </td> <td><a href="#" class="btn btn-mini eliminar" rel="<?php echo $tar['CodTarea']; ?> " title="<?php echo $idioma['Eliminar']; ?> "><i class="icon-remove"></i></a></td> </tr> <?php } } else { ?> <tr><td colspan="5"><strong><?php
$prod4 = array_shift($prod4); $prodtipo = $productotipo->MostrarRegistro($o['CodProductoTipo']); $prodtipo = array_shift($prodtipo); $TotalBs = number_format($o['TotalBs'], 2, ".", ""); $ACuentaBs = number_format($o['ACuentaBs'], 2, ".", ""); $ACuentaSus = number_format($o['ACuentaSus'], 2, ".", ""); $SaldoBs = number_format($o['SaldoBs'], 2, ".", ""); $DescuentoBs = number_format($o['DescuentoBs'], 2, ".", ""); $CobrarBs = number_format($o['CobrarBs'], 2, ".", ""); $TTotalBs += $TotalBs; $TACuentaBs += $ACuentaBs; $TACuentaSus += $ACuentaSus; $TSaldoBs += $SaldoBs; $TDescuentoBs += $DescuentoBs; $TCobrarBs += $CobrarBs; $datos = array($o['NumeroBoleta'], fecha2Str($o['FechaEmitido']) . " " . $o['HoraEmitido'], utf8_decode(mb_strtoupper($pac['Paterno'] . " " . $pac['Materno'] . " " . $pac['Nombres'], "utf8")), utf8_decode(mb_strtoupper($prod1['Nombre'] . " - " . $o['Detalle1'], "utf8")), utf8_decode(mb_strtoupper($prod2['Nombre'] . " - " . $o['Detalle2'], "utf8")), utf8_decode(mb_strtoupper($prod3['Nombre'] . " - " . $o['Detalle3'], "utf8")), utf8_decode(mb_strtoupper($prod4['Nombre'] . " - " . $o['Detalle4'], "utf8")), $TotalBs, $ACuentaBs, $ACuentaSus, $SaldoBs, utf8_decode(mb_strtoupper($o['Observaciones'], "utf8"))); $pdf->Row($datos); } $TTotalBs = number_format($TTotalBs, 2, ".", ""); $TACuentaBs = number_format($TACuentaBs, 2, ".", ""); $TACuentaSus = number_format($TACuentaSus, 2, ".", ""); $TSaldoBs = number_format($TSaldoBs, 2, ".", ""); $TDescuentoBs = number_format($TDescuentoBs, 2, ".", ""); $TCobrarBs = number_format($TCobrarBs, 2, ".", ""); $pdf->Fuente("B", 9); $pdf->CuadroCuerpo(165, "Total", 0, "R", 0, 9, "B"); $pdf->CuadroCuerpo(15, $TTotalBs, 1, "R", 1, 9, "B"); $pdf->CuadroCuerpo(15, $TACuentaBs, 1, "R", 1, 9, "B"); $pdf->CuadroCuerpo(15, $TACuentaSus, 1, "R", 1, 9, "B"); $pdf->CuadroCuerpo(15, $TSaldoBs, 1, "R", 1, 9, "B"); $pdf->Output("Reporte.pdf", "I");
<?php include_once "../../login/check.php"; $folder = "../../"; $CodMedico = $_POST['CodMedico']; $Desde = fecha2Str($_POST['Desde'], 0); $Hasta = fecha2Str($_POST['Hasta'], 0); $ReporteCompleto = $_POST['ReporteCompleto']; //print_r($_POST); $Archivo = "reporte"; $url = "../../impresion/reporte/{$Archivo}.php?Desde=" . $Desde . "&Hasta=" . $Hasta . "&CodMedico=" . $CodMedico . "&ReporteCompleto=" . $ReporteCompleto; ?> <a href="<?php echo $url; ?> " class="btn btn-xs btn-warning" target="_blank"><?php echo $idioma['AbrirOtraVentana']; ?> </a><br /> <iframe src="<?php echo $url; ?> " width="100%" height="700" frameborder="1"></iframe>
} } else { $pdf->CuadroCuerpo(35, "", $Somb, "", $Borde); } if ($Campo3 != "") { if ($Campo3 == "FechaNac" || $Campo3 == "FechaIns") { $pdf->CuadroCuerpo(35, fecha2Str($al[$Campo3]), $Somb, "", $Borde); } else { $pdf->CuadroCuerpo(35, capitalizar($al[$Campo3]), $Somb, "", $Borde, 9); } } else { $pdf->CuadroCuerpo(35, "", $Somb, "", $Borde); } if ($Campo4 != "") { if ($Campo4 == "FechaNac" || $Campo4 == "FechaIns") { $pdf->CuadroCuerpo(35, fecha2Str($al[$Campo4]), $Somb, "", $Borde); } else { $pdf->CuadroCuerpo(35, capitalizar($al[$Campo4]), $Somb, "", $Borde, 9); } } else { $pdf->CuadroCuerpo(35, "", $Somb, "", $Borde); } } else { switch ($Cantidad) { case "1": $pdf->CuadroCuerpo(140, "", $Somb, "", 1); break; case "2": $pdf->CuadroCuerpo(70, "", $Somb, "", 1); $pdf->CuadroCuerpo(70, "", $Somb, "", 1); break;
?> : <?php echo fecha2Str($FechaActual); ?> </th> </tr> </tfoot> </table> <?php if ($sw) { ?> <div class="alert alert-error"><strong><?php echo $idioma['CerrarAsistencias']; ?> <?php echo fecha2Str($FechaActual); ?> <br> <?php echo $idioma['TodosAlumnosFaltas']; ?> </strong> <hr> <a href="registrarfaltas.php?Fecha=<?php echo $FechaActual; ?> " id="registrarfalta" class="btn btn-danger"><?php echo $idioma['TerminarControlAsistencia']; ?> </a> </div> <?php
"><i class="icon-plus"></i></a></td> <td class="resaltar der" colspan="6"><?php echo $idioma['TotalDescuento']; ?> : </td><td><input type="text" name="TotalDescuento" readonly class="input-small der TotalDescuento" value="0.00"></td><td></td> </tr> <tr> <td colspan="4" class="" rowspan="4"><span class="resaltar"><?php echo $idioma['Observacion']; ?> </span>:<br><textarea name="Observacion" class="span12" rows="5"></textarea><br> <?php echo $idioma['FechaLimiteEmision']; ?> : <span class="resaltar"><?php echo fecha2Str($FechaLimiteEmision); ?> </span> <?php if ($FechaLimiteEmision <= date("Y-m-d")) { ?> <div class="alert alert-error"><?php echo $idioma['FechaLimiteEmisionVencida']; ?> </div><?php } ?> <br> <?php echo $idioma['NumeroAutorizacion']; ?>
<?php include_once '../../login/check.php'; if (!empty($_POST)) { $folder = "../../"; include_once '../../class/informe.php'; include_once '../../class/usuarios.php'; $usuarios = new usuarios(); extract($_POST); $codusuarios = $codusuarios == "" ? '%' : $codusuarios; $fecha = $fecha == "" ? '%' : $fecha; $informe = new informe(); $inf = $informe->mostrarTodo("codusuarios LIKE '{$codusuarios}' and fecha LIKE '{$fecha}'", ""); $titulo = array("solicitante" => "Solicitante", "fecha" => "Fecha Informe", "observaciones" => "Observaciones"); foreach ($inf as $in) { $us1 = array_shift($usuarios->mostrar($in['codusuarios'])); $datos[$i]['codinforme'] = $in['codinforme']; $datos[$i]['solicitante'] = $us1['nombre'] . " " . $us1['paterno'] . " " . $us1['materno']; $datos[$i]['fecha'] = fecha2Str($in['fecha'], 0); $datos[$i]['observaciones'] = $in['observaciones']; } listadoTabla($titulo, $datos, 1, "", "eliminar.php", "ver.php"); }
<td><?php echo $idioma['Ci']; ?> </td> <td><?php campo("Ci", "text", $doc['Ci'], "span12", 1, $idioma['IngreseSu'] . $idioma['Ci'], 0, ""); ?> </td> </tr> <tr> <td><?php echo $idioma['FechaNacimiento']; ?> </td> <td><?php campo("FechaNac", "text", fecha2Str($doc['FechaNac']), "span12 fecha", 1); ?> </td> </tr> <tr> <td><?php echo $idioma['Departamento']; ?> </td> <td><?php campo("Departamento", "text", $doc['Departamento'], "span12", 0, $idioma['IngreseSu'] . $idioma['Departamento']); ?> </td> </tr> <tr> <td><?php
<?php include_once "../../login/check.php"; include_once "../pdf.php"; $titulo = $idioma['DatosMedico']; class PDF extends PPDF { } $Cod = $_GET['Cod']; include_once "../../class/medico.php"; $medico = new medico(); include_once "../../class/especialidad.php"; $especialidad = new especialidad(); $med = $medico->mostrarRegistro($Cod); $med = array_shift($med); $esp = $especialidad->mostrarRegistro($med['CodEspecialidad']); $esp = array_shift($esp); $pdf = new PDF(); $pdf->AddPage(); $pdf->Mostrar(array($idioma["Paterno"] => $med['Paterno'], $idioma["Materno"] => $med['Materno'], $idioma["Nombres"] => $med['Nombres'], $idioma["Ci"] => $med['Ci'], $idioma["Telefono"] => $med['Telefono'], $idioma["Celular"] => $med['Celular'], $idioma["FechaNacimiento"] => fecha2Str($med['FechaNac']), $idioma["Especialidad"] => $esp['Nombre'], $idioma["Observaciones"] => $med['Observaciones'])); $pdf->Output();
<?php include_once "../login/check.php"; if (isset($_POST)) { extract($_POST); //print_r($_POST); include_once "../class/agendaactividades.php"; $agendaactividades = new agendaactividades(); $Nivel = $_SESSION['Nivel']; if (in_array("0", $ParaQuien)) { $UsuariosAgenda = "0"; } else { $UsuariosAgenda = implode(",", $ParaQuien); } $valores = array("FechaActividad" => "'" . fecha2Str($FechaActividad, 0) . "'", "HoraInicio" => "'{$HoraInicio}'", "HoraFin" => "'{$HoraFin}'", "Prioridad" => "'{$Prioridad}'", "Estado" => "'{$Estado}'", "Usuarios" => "'{$UsuariosAgenda}'", "Detalle" => "'{$Detalle}'"); if ($agendaactividades->insertarActividad($valores)) { ?> <div class="alert alert-success"> <button type="button" class="close" data-dismiss="alert">×</button> <?php echo $idioma['DatosGuardadosCorrectamente']; ?> </div> <script language="javascript">mostrarActividades();vaciar();</script> <?php } else { ?> <div class="alert alert-error"> <button type="button" class="close" data-dismiss="alert">×</button> <?php echo $idioma['DatosGuardadosError'];
<?php include_once "../../impresion/pdf.php"; $titulo = "Datos de Alumno"; $id = $_GET['id']; class PDF extends PPDF { } include_once "../../class/alumno.php"; $alumno = new alumno(); $al = array_shift($alumno->mostrar($id)); include_once "../../class/curso.php"; $curso = new curso(); $cur = array_shift($curso->mostrar($al['codcurso'])); $pdf = new PDF("P", "mm", "letter"); $pdf->AddPage(); mostrarI(array("Apellido Paterno" => capitalizar($al['paterno']), "Apellido Materno" => capitalizar($al['materno']), "Nombres" => capitalizar($al['nombres']), "Lugar de Nacimiento" => $al['lugarnac'], "Fecha de Nacimiento" => fecha2Str($al['fechanac']), "Cédula de Identidad" => $al['ci'], "Sexo" => $al['sexo'] ? 'Masculino' : 'Femenino', "Zona" => $al['zona'], "Calle" => $al['calle'], "Número de casa" => $al['numero'], "Teléfono de Casa" => $al['telefonocasa'], "Celular" => $al['celular'], "Curso" => $cur['nombre'], "Rude" => $al['rude'], "Observaciones" => $prod['observaciones'])); $pdf->Linea(); mostrarI(array("Apellidos de Padre" => capitalizar($al['apellidospadre']), "Nombres de Padre" => capitalizar($al['nombrespadre']), "C.I. Padre" => $al['cipadre'], "Ocupación de Padre" => $al['ocupacionpadre'], "Apellidos de Madre" => capitalizar($al['apellidosmadre']), "Nombres de Madre" => capitalizar($al['nombresmadre']), "C.I. Madre" => $al['cimadre'], "Ocupación de Madre" => $al['ocupacionmadre'])); $foto = "../foto/" . $al['foto']; if (!empty($al['foto']) && file_exists($foto)) { $pdf->Image($foto, 140, 50, 40, 40); } $pdf->Output();