if($keyR[$i]){ $q = "UPDATE OC set status='pendiente' WHERE keyR='".$keyR[$i]."'"; //mysql_db_query($basedatos,$q); echo mysql_error(); } } $link=new ventanasPrototype(); $mensaje=new ventanasPrototype(); $link->links(); $mensaje->despliegaMensaje('Se hizo una solicitud de compra'); ?> <script> window.close(); </script> <?php } ?> <script language=javascript> function ventanaSecundaria (URL){
<input onmouseover="Tip('<div class="estilo25"><?php echo 'Presiona aquí para hacer traslados a Otros..'; ?> </div>')" onmouseout="UnTip()" name="others" type="button" class="style7" id="others" value="Otros" onclick="nueva('ventanasTCxCOtros.php?cargos=cargos&almacen=<?php echo $ALMACEN; ?> ','ventanaSecundaria1','800','300','yes')" /> <input onMouseOver="Tip('<div class="estilo25"><?php echo 'Presiona aquí para ver las notas de cargo y su estado actual..'; ?> </div>')" onMouseOut="UnTip()" name="nuevo22" type="button" class="style7" id="nuevo22" value="Listado de Pagos" onclick="nueva('<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /cargos/listadoVentasPacientes.php?paquetes=paquetes&almacen=<?php echo $ALMACEN; ?> ','ventanaSecundaria10','500','500','yes')" /> </p> </form> <h1 align="center"> </h1> </body> </html> <?php } else { $link = new ventanasPrototype(); $mensaje = new ventanasPrototype(); $link->links(); $mensaje->despliegaMensaje('LA CAJA ESTA CERRADA'); }
public function listaExternos($usuario, $ALMACEN, $entidad, $TITULO, $fecha1, $ventana, $basedatos) { $sSQLC = "Select * From statusCaja where entidad='" . $entidad . "' and usuario='" . $usuario . "' order by keySTC DESC "; $resultC = mysql_db_query($basedatos, $sSQLC); $myrowC = mysql_fetch_array($resultC); if ($myrowC['status'] == 'abierta') { //*******************Comienzo la validaci�n***************** ?> <script language=javascript> function ventanaSecundaria (URL){ window.open(URL,"ventana","width=800,height=600,scrollbars=YES,resizable=YES, maximizable=YES") } </script> <script language="javascript" type="text/javascript"> var win = null; function nueva(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) if(win.window.focus){win.window.focus();} } </script> <!-Hoja de estilos del calendario --> <link rel="stylesheet" type="text/css" media="all" href="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /calendario/calendar-brown.css" title="win2k-cold-1" /> <!-- librer�a principal del calendario --> <script type="text/javascript" src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /calendario/calendar.js"></script> <!-- librer�a para cargar el lenguaje deseado --> <script type="text/javascript" src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /calendario/lang/calendar-es.js"></script> <!-- librer�a que declara la funci�n Calendar.setup, que ayuda a generar un calendario en unas pocas l�neas de c�digo --> <script type="text/javascript" src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /calendario/calendar-setup.js"></script> <script type="text/javascript" src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /js/wz_tooltip.js"></script> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .Estilo24 {font-size: 13px} --> </style> <head> <?php $estilos = new muestraEstilos(); $estilos->styles(); ?> <meta http-equiv="refresh" content="30" > </head> <body> <?php if ($_GET['fechaInicial']) { $date = $_GET['fechaInicial']; } else { $date = $fecha1; } ?> <form id="form10" name="form10" method="get" action="#"> <h1 align="center" class="titulo"> <?php echo $TITULO; ?> </h1> <p align="center" class="titulo"> <label> <input onChange="this.form.submit();" name="fechaInicial" type="text" class="Estilo24" id="campo_fecha" size="10" maxlength="9" readonly="" value="<?php echo $date; ?> "/> </label> <input name="button" type="button" class="Estilo24" id="lanzador" value="..." /> </p> <img src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /imagenes/bordestablas/borde1.png" width="864" height="24" /> <table width="864" border="0.2" align="center" cellpadding="4" cellspacing="0"> <tr bgcolor="#FFFF00"> <th width="85" class="blanco" scope="col"><div align="left">Referencia</div></th> <th width= "195" class="blanco" scope="col"><div align="left">Nombre del paciente:</div></th> <th width= "260" class="blanco" scope="col"><div align="left">Aseguradora</div></th> <th class="blanco" scope="col"><div align="left">Departamento</div></th> <th class="blanco" scope="col"><div align="left">Usuario</div></th> <th class="blanco" scope="col">Aplicar</th> </tr> <tr> <?php $sSQL = "SELECT *\r\nFROM\r\nclientesInternos,cargosCuentaPaciente\r\nWHERE \r\nclientesInternos.entidad='" . $entidad . "' AND\r\nclientesInternos.keyClientesInternos=cargosCuentaPaciente.keyClientesInternos\r\nAND\r\ncargosCuentaPaciente.statusCargo='cargado'\r\nAND\r\nclientesInternos.status='activa' \r\nand \r\nclientesInternos.tipoPaciente='interno'\r\nAND\r\n((clientesInternos.almacenSolicitud!='' and clientesInternos.fechaSolicitud='" . $date . "' ) \r\nor\r\n(clientesInternos.fecha1='" . $date . "' )) \r\ngroup by clientesInternos.keyClientesInternos\r\nORDER BY clientesInternos.nomCliente DESC\r\n "; if ($result = mysql_db_query($basedatos, $sSQL)) { while ($myrow = mysql_fetch_array($result)) { $numeroE = $myrow['numeroE']; $nCuenta = $myrow['nCuenta']; if ($col) { $color = '#FFCCFF'; $col = ""; } else { $color = '#FFFFFF'; $col = 1; } $nT = $myrow['keyClientesInternos']; ?> <td height="24" bgcolor="<?php echo $color; ?> " class="codigos"><?php echo $myrow['folioVenta']; ?> </td> <td width="195" bgcolor="<?php echo $color; ?> " class="normal"> <?php $verificaCargos = new acumulados(); $verificaCargos->verificaCargos($basedatos, $usuario, $numeroE, $nCuenta); if ($myrow['paciente']) { ?> <?php echo $myrow['paciente']; ?> <?php } else { ?> <?php echo $myrow['paciente'] . " [NO TIENE NINGUN CARGO]"; ?> <?php } ?> <input name="nombrePaciente" type="hidden" id="nombrePaciente" value="<?php echo $nombrePaciente; ?> "/> <input name="tipoSeguro" type="hidden" id="tipoSeguro" value="<?php echo $myrow['seguro']; ?> "/> </span></td> <td width="260" bgcolor="<?php echo $color; ?> " class="normal"><?php if ($myrow['seguro']) { $numCliente = $myrow['seguro']; $sSQL17 = "\r\n\tSELECT \r\n*\r\nFROM\r\nclientes\r\nWHERE \r\nnumCliente = '" . $numCliente . "'\r\n"; $result17 = mysql_db_query($basedatos, $sSQL17); $myrow17 = mysql_fetch_array($result17); echo $myrow17['nomCliente']; } else { echo "Sin Seguro"; } ?> </span></td> <td width="179" bgcolor="<?php echo $color; ?> " class="normal"><?php $al = $myrow['almacen']; $sSQL17 = "\r\n\tSELECT \r\ndescripcion\r\nFROM\r\nalmacenes\r\nWHERE \r\nalmacen = '" . $al . "'\r\n"; $result17 = mysql_db_query($basedatos, $sSQL17); $myrow17 = mysql_fetch_array($result17); echo $myrow17['descripcion']; ?> </td> <td width="70" bgcolor="<?php echo $color; ?> " class="codigos"><?php echo $myrow['usuario']; ?> </td> <td width="49" bgcolor="<?php echo $color; ?> " class="normal" align="center"><label> <a href="javascript:nueva('estadoCuentaE.php?numeroE=<?php echo $myrow['keyClientesInternos']; ?> &nCuenta=<?php echo $myrow['keyClientesInternos']; ?> &almacenSolicitante=<?php echo $ALMACEN; ?> &nT=<?php echo $nT; ?> &folioVenta=<?php echo $myrow['folioVenta']; ?> &tipoVenta=<?php echo 'externo'; ?> ','ventana1','800','600','yes')"><img src="<?php echo CONSTANT_PATH_SIMA_RAIZ; ?> /imagenes/btns/aplybtn.png" alt="Almacén ó Médico Activo" width="30" height="24" border="0"/> </a> </label></td> </tr> <?php } } ?> <input name="menu" type="hidden" value="<?php echo $menu; ?> " /> </table> <img src="../imagenes/bordestablas/borde2.png" width="864" height="24" /> <p> </p> </form> <script type="text/javascript"> Calendar.setup({ inputField : "campo_fecha", // id del campo de texto ifFormat : "%Y-%m-%d", // formato de la fecha que se escriba en el campo de texto button : "lanzador" // el id del bot�n que lanzar� el calendario }); </script> </body> </html> <?php } else { $link = new ventanasPrototype(); $mensaje = new ventanasPrototype(); $link->links(); $mensaje->despliegaMensaje('LA CAJA ESTA CERRADA'); } ?> <?php }
?> <script> javascript:ventanaSecundaria6('../ventanas/imprimirReciboNC.php?folioVenta=<?php echo $FV; ?>&keyClientesInternos=<?php echo $myrow3['keyClientesInternos']; ?>&entidad=<?php echo $entidad;?>&codigoCaja=<?php echo $myrowC['keyCatC'];?>&numRecibo=<?php echo $myrowC['numRecibo'];?>&numCorte=<?php echo $numCorte;?>'); window.close(); </script> <?php }else{ $link=new ventanasPrototype(); $mensaje=new ventanasPrototype(); $link->links(); $mensaje->despliegaMensaje("TE FALTAN CAMPOS POR LLENAR!"); } } ?> <!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