File: /home/asjudine/www/callcenter/listado_central_citas.php
<?php
global $dbi;
$espacio = ' ';
$linea = '-';
require_once("../Conectarse.php");
$sql2 = mysql_query('SELECT * FROM descuentos order by unidad ');
if (!$sql2) {
die('Invalid query: ' . mysql_error());
}
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Listado Pendientes para Asignar Cita</title>
<style type="text/css">
<!--
.titulos {font: 16px; color: red; font-family:Arial; font-weight:bold}
.boton {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.texto {background-color: #CCFFCC; font-size: 11px; font-family: Arial; color:#0000CC; display: block;}
.fecha {font-size: 12px; font-family: Arial; color:#990000; display: block; }
.campo {background-color:#FFFFAA; width: 100px; border:2px solid #990000;}
.lista {font-family: Arial; font-size: 11px; color: #000066;}
.lista2 {font-family: Arial; font-size: 16px; color: #FF6600;}
.boton2 {
font-family: Verdana;
font-size: 8 pt;
color: #000080;
background-color: #C0C0C0;
border-style: solid;
width:90px;
height:22px;
}
body {
background-image: url();
}
.Estilo50 {color: #CC3333;
font-family: "Arial Narrow";
font-weight: bold;
}
.boton1 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.boton11 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.Estilo54 {color: #333399; font-family: "Arial Narrow"; font-weight: bold; }
.Estilo57 {color: #006600}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<form action="" method="post" name="form1" class="provd" id="form1">
<div align="center">
<table width="655" border="3" cellpadding="3" cellspacing="3" bgcolor="#CCFFFF">
<tr>
<td colspan="3"><div align="center" class="Estilo50">LISTADO PENDIENTES PARA ASIGNAR CITA NUEVO</div></td>
</tr>
<tr>
<td align="center"> <span class="Estilo50">
<?php
$sucu =$_GET["sucu"] ;
$nom =$_GET["nom"] ;
$ced =$_GET["ced"] ;
echo "<a href='menu_central_citas.php?ced=$ced&nom=$nom'>Menu</a>" ?></span>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
<?php
/*
$mssql = mysql_query('SELECT * FROM solicitud_citas');
if (!$mssql) {
die('Invalid query 1: ' . mysql_error());
}
if($mssql)
{
$filas = mysql_num_rows($mssql);
if ($filas > 0)
{
$ggag = mysql_query('SELECT codigo FROM sucursal WHERE nombre = "'.$_GET["sucu"].'" ');
if (!$ggag) {
die('Invalid query sucursalll: ' . mysql_error());
}
list($suuuu) = mysql_fetch_row($ggag);
*/
$control = mysql_query('SELECT id,cedula,nombre,tipo_atencion,fecha,hora,funcionario,sucursal FROM solicitud_citas WHERE estado = "0" order by nombre ');
if (!$control) {
die('Invalid query 2: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
echo "<TABLE width='900' border='2' align='center' cellpadding='2' cellspacing='1'>
<TR>
<TD bgcolor='#CCFFFF'><div align='center'><span class='texto'>CEDULA</span></div></TD>
<TD bgcolor='#CCFFFF'><div align='center'><span class='texto'>NOMBRE</span></div></TD>
<TD bgcolor='#CCFFFF'><div align='center'><span class='texto'>TIPO DE ATENCION</span></div></TD>
<TD bgcolor='#CCFFFF'><div align='center'><span class='texto'>FUNCIONARIO</span></div></TD>
<TD bgcolor='#CCFFFF'><div align='center'><span class='texto'>FECHA</span></div></TD>
<TD bgcolor='#CCFFFF'><div align='center'><span class='texto'>HORA</span></div></TD>
<TD bgcolor='#CCFFFF'><div align='center'><span class='texto'>SUCURSAL</span></div></TD>";
while(list($id,$cedula,$nombres,$aten,$fecha,$hora,$funci,$sucu) = mysql_fetch_row($control))
{
$conttre = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE Cedula = "'.$funci.'" ');
if (!$conttre) {
die('Invalid query 42: ' . mysql_error());
}
list($funom) = mysql_fetch_row($conttre);
$contt = mysql_query('SELECT nombre FROM sucursal WHERE codigo = "'.$sucu.'"');
if (!$contt) {
die('Invalid query 42: ' . mysql_error());
}
list($sucu) = mysql_fetch_row($contt);
$sum = $sum + 1;
printf("<tr>
<TD bgcolor='#ECE9D8'><div align='center' class='lista'><input type='button' value=$cedula name='cedu' class=est_cont1 onClick =window.open('asignar_cita_test.php?cedulita=$cedula&id=$id&sucu=$sucu')></a></span></div></TD>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$nombres."</span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$aten."</span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$funom."</span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$fecha."</span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$hora."</span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$sucu."</span></div></td>");
}
echo "</table>";
echo "<TABLE width='200' border='0' align='center' cellpadding='0' cellspacing='1'>
<TR>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>TOTAL REGISTROS</span></div></TD></TD>";
printf("<tr>
<td bgcolor='#C5D6FC'><div align='center' class='lista'>".$sum."</span></div></td></td>");
echo "</table>";
}
// }
//}
echo "</form>";
?>