" class="blanco"><span class="normal"> <?php echo $myrow['keyClientesInternos']; ?> </span></td> <td width="193" bgcolor="<?php echo $color; ?> " class="normal"> <?php echo $myrow['paciente']; echo $cierreCuentaReporte->cierreCuentaReportes($entidad, $nT, $numeroE, $nCuenta, $basedatos); ?> <input name="nombrePaciente" type="hidden" id="nombrePaciente" value="<?php echo $nombrePaciente; ?> "/> <input name="tipoSeguro" type="hidden" id="tipoSeguro" value="<?php echo $seguro; ?> "/> </td> <td width="310" bgcolor="<?php echo $color; ?> " class="normal"><span class="normal"><span class="normal"> <?php
public function listaInternos($estado, $fecha1, $hora1, $usuario, $ALMACEN, $entidad, $TITULO, $ventana, $basedatos) { ?> <script language=javascript> function ventanaSecundaria11 (URL){ window.open(URL,"ventana11","width=800,height=600,scrollbars=YES,resizable=YES, maximizable=YES") } </script> <?php if ($_GET['alta'] == 'activar') { $sSQL31 = "Select * From clientesInternos WHERE keyClientesInternos='" . $_GET['nT'] . "'"; $result31 = mysql_db_query($basedatos, $sSQL31); $myrow31 = mysql_fetch_array($result31); $numeroE = $myrow31['numeroE']; $nCuenta = $myrow31['nCuenta']; $keyClientesInternos = $myrow31['keyClientesInternos']; $cuarto = $myrow31['cuarto']; $q = "UPDATE procesoAlta set \r\nstatus='request' ,\r\nusuario='" . $usuario . "',\r\nfecha='" . $fecha1 . "',\r\nhora='" . $hora1 . "',\r\nnPaso='" . $paso . "'\r\nWHERE \r\nalmacen='" . $ALMACEN . "'\r\nand\r\nentidad='" . $entidad . "'\r\nand\r\nkeyClientesInternos='" . $_GET['nT'] . "'"; mysql_db_query($basedatos, $q); echo mysql_error(); $_GET['alta'] = ''; } else { $_GET['alta'] = 'activar'; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <?php $estilos = new muestraEstilos(); $estilos->styles(); ?> </head> <META HTTP-EQUIV="Refresh" CONTENT="60"> <body> <form id="form1" name="form1" method="get" action="#"> <h1 align="center" class="titulos"><?php echo $TITULO; ?> </h1> <table width="739" border="0.2" align="center"> <tr> <th width="50" bgcolor="#660066" class="style12" scope="col"><div align="left" class="blanco"># Folio</div></th> <th bgcolor="#660066" class="style12" scope="col"><div align="left" class="blanco">Nombre del paciente:</div></th> <th bgcolor="#660066" class="style12" scope="col"><div align="left" class="blanco">Seguro</div></th> <th bgcolor="#660066" class="style12" scope="col"><div align="left" class="blanco"> <div align="center">Usuario</div> </div></th> <th bgcolor="#660066" class="style12" scope="col"><div align="left" class="blanco"> <div align="center">Fecha </div> </div></th> <th bgcolor="#660066" class="style12" scope="col"><div align="left" class="blanco"> <div align="center">Cuarto</div> </div></th> <th bgcolor="#660066" class="style12" scope="col"><div align="left" class="blanco"> <div align="center">Status</div> </div></th> </tr> <tr> <?php $almacenesCierreCuenta = new articulosDetalles(); $sSQL = "SELECT *\r\nFROM\r\nclientesInternos \r\nWHERE \r\nentidad='" . $entidad . "'\r\nAND\r\n(tipoPaciente='interno' or tipoPaciente='urgencias')\r\nand\r\nstatusCuenta = 'abierta'\r\nand\r\nstatus='activa'\r\nand \r\n(statusDeposito='pagado' or statusDeposito='cxc' or statusDeposito='urgencias')\r\nORDER BY keyClientesInternos DESC\r\n "; if ($result = mysql_db_query($basedatos, $sSQL)) { while ($myrow = mysql_fetch_array($result)) { if ($col) { $color = '#FFCCFF'; $col = ""; } else { $color = '#FFFFFF'; $col = 1; } $seguro = $myrow['seguro']; $nT = $myrow['keyClientesInternos']; $sSQL1711 = "\r\n\tSELECT \r\nnomCliente\r\nFROM\r\nclientes\r\nWHERE \r\nnumCliente = '" . $seguro . "'\r\n\r\n"; $result1711 = mysql_db_query($basedatos, $sSQL1711); $myrow1711 = mysql_fetch_array($result1711); $seguro = $myrow1711['nomCliente']; if ($seguro) { $tipoCliente = 'aseguradora'; } else { $tipoCliente = 'particular'; } if (!$seguro) { $seguro = 'particular'; } $sSQL11 = "\r\n\tSELECT \r\n*\r\nFROM\r\nprocesoAlta\r\nWHERE \r\n\r\nentidad='" . $entidad . "'\r\nand\r\nkeyClientesInternos = '" . $nT . "'\r\nand\r\nalmacen='" . $ALMACEN . "'\r\n\r\n"; $result11 = mysql_db_query($basedatos, $sSQL11); $myrow11 = mysql_fetch_array($result11); $sSQL12 = "\r\nSELECT \r\n*\r\nFROM\r\nalmacenes\r\nWHERE \r\nentidad='" . $entidad . "'\r\nand\r\nalmacen = '" . $ALMACEN . "'\r\nand\r\naltaEspecial='si'\r\n"; $result12 = mysql_db_query($basedatos, $sSQL12); $myrow12 = mysql_fetch_array($result12); ?> <td height="24" bgcolor="<?php echo $color; ?> " class="codigos"> <?php echo $myrow['keyClientesInternos']; ?> </td> <td width="253" bgcolor="<?php echo $color; ?> " class="normal"> <?php echo $myrow['paciente']; $cierreCuentaReporte = new articulosDetalles(); echo $cierreCuentaReporte->cierreCuentaReportes($entidad, $nT, $numeroE, $nCuenta, $basedatos); ?> <input name="nombrePaciente" type="hidden" id="nombrePaciente" value="<?php echo $nombrePaciente; ?> "/> <input name="tipoSeguro" type="hidden" id="tipoSeguro" value="<?php echo $seguro; ?> "/> </span></td> <td width="178" bgcolor="<?php echo $color; ?> " class="normal"> <?php echo $seguro; ?> </span></span></td> <td width="60" bgcolor="<?php echo $color; ?> " class="normal"> <?php echo $myrow11['usuario']; ?> </td> <td width="60" bgcolor="<?php echo $color; ?> " class="normal" align="center"> <?php echo $myrow11['fecha'] . " " . $myrow11['hora']; ?> </td> <td width="60" bgcolor="<?php echo $color; ?> " class="normal" align="center"><?php echo $myrow['cuarto']; ?> </td> <td width="48" bgcolor="<?php echo $color; ?> " class="normal" align="center"> <?php if ($myrow11['status'] == 'standby') { ?> <a href='procesoAltaPx.php?codigo=<?php echo $code; ?> &seguro=<?php echo $_POST['seguro']; ?> &medico=<?php echo $_POST['medico']; ?> &alta=<?php echo $_GET['alta']; ?> &nT=<?php echo $nT; ?> '"><img src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /imagenes/btns/reservbtn.png" alt=" ALTA" width="24" height="22" border="0" onclick="if(confirm('Esta seguro que deseas correr el proceso del paciente <?php echo $myrow['paciente']; ?> ?') == false){return false;}" /> </a> <?php } else { if ($myrow11['status'] == 'request') { ?> <img src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /imagenes/iconosSima/lock_icon.jpg" alt="LA CUENTA ESTA PREPARADA" width="12" height="12" border="0" /> <?php } else { if ($myrow11['status'] == 'cargado') { ?> <img src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /imagenes/iconosSima/unlock_icon.jpg" alt="LA CUENTA ESTA LISTA" width="12" height="12" border="0" /> <?php } else { ?> <img src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /imagenes/pregunta.png" alt=" ALTA" width="12" height="12" border="0" /> <?php } } } ?> </td> </tr> <?php } } ?> <input name="menu" type="hidden" value="<?php echo $menu; ?> " /> </table> <?php $titulo = 'prueba'; $url = $ventana; $abajo = 70; $izquierda = 0; $ancho = 300; $alto = 200; //$ventanas=new ventanasPrototype(); //$ventanas->despliegaVentana($titulo,$url,$abajo,$izquierda,$anchura,$altura); ?> <p> </p> </form> </body> </html> <?php }