<?php include './conexion.php'; include './DAOAdministracion/DAOUsuarios.php'; $cn = new conexion(); $dao = new DAOUsuarios(); $cn->conectarse(); $rs = $dao->dameUsuarios(); if ($rs == false) { echo mysql_error(); } else { if (mysql_affected_rows() > 0) { ?> <table class="table"> <thead> <th>Nombre</th> <th>Apellidos</th> <th>Correo</th> <th>Telefono</th> </thead> <tr> <?php while ($rsDatosUsuario = mysql_fetch_array($rs)) { ?> <td><?php echo $rsDatosUsuario["nombre"]; ?> </td> <td><?php echo $rsDatosUsuario["apellidoPaterno"] . " " . $rsDatosUsuario["apellidoMaterno"]; ?>
<?php include "config.php"; include "uOperador.php"; setlocale(LC_TIME, 'es_VE'); # Localiza en español es_Venezuela date_default_timezone_set('America/Caracas'); //$operador = unserialize($_SESSION['operador']); $id = $_POST['id']; //$id="00152"; $sql = "SELECT \n\t\t\t\t\t\t ID_M_PACIENTES AS HISTORIA,\n\t\t\t\t\t\t NOMBRES AS PACIENTE,\n\t\t\t\t\t\t EDAD,\n\t\t\t\t\t\t SEXO,\n\t\t\t\t\t\t TO_CHAR(FECHA_CIRUGIA,'dd/mm/yyyy') AS FECHAC,\n\t\t\t\t\t\t TO_CHAR(FECHA_CIRUGIA,'HH24:MI:SS') AS HORAC,\n\t\t\t\t\t\t DESCRIPCION AS PROCEDIMIENTO,\n\t\t\t\t\t\t NOMBRE_DIAGNOSTICO,\n\t\t\t\t\t\t OBSERVACIONES\n \t\t\t\t\t FROM V_M_CIRUGIAS \n WHERE ESTATUS='PEN' AND ID_M_PROFESIONALES=(SELECT ID_M_PROFESIONALES \n FROM M_PROFESIONALES\n WHERE ID_M_USUARIOS2='" . $id . "')\n ORDER BY FECHA_CIRUGIA,HORA_CIRUGIA"; $cs = strtoupper($_POST['cli']); //$cs="CCFA"; $Cn = new conexion($cs); $conexion = $Cn->conectarse(); $consulta = oci_parse($conexion, $sql); $ejecutar = oci_execute($consulta); $numlinea = 0; $row = ''; $arregloJSON = ''; $i = 0; while ($row = oci_fetch_row($consulta)) { $casosquir[$i] = array("hist" => $row[0], "nomb" => $row[1], "edad" => $row[2], "sexo" => $row[3], "fcirug" => $row[4], "hcirug" => $row[5], "descri" => $row[6], "diagno" => $row[7], "obser" => $row[8]); $arregloJSON = json_encode($casosquir); $i++; // echo "Progreso por vuelta ".$jsonarreglo." <br /><br />"; } // $arregloJSON=json_encode($horarios); if ($i == 0) { $casosquir[0] = array("registros" => "norecords"); $arregloJSON = json_encode($casosquir);