File: /home/asjudine/public_html/consulta_agendamiento_citas_juridicas_cartera.php
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Verificacion Cita</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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: #990000;}
.boton2 {font-family: Verdana; font-size: 8 pt; color: #000080; background-color: #C0C0C0; border-style: solid; width:70px; height:22px;}
body {
background-image: url();
}
.boton1 {background-color: #FFCCCC; color:#FFFFFF; width:90px; height:25; border: 3px solid #0000CC; font-family:Arial; color:#990000;}
.Estilo50 { color: #CC3333;
font-family: "Arial Narrow";
font-weight: bold;
}
.Estilo53 {color: #003300; font-size: 16px; }
.Estilo55 {
color: #000066;
font-size: 16px;
font-weight: bold;
}
.Estilo57 {color: #000066; font-size: 12px; font-weight: bold; }
-->
</style>
<script languaje="JavaScript">
function Mostrar_Fecha()
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado")
var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
document.write("<b><font face='Arial, Helvetica, sans-serif'>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</font></b>")
}
</script>
<script language="javascript">
function AbreGral()
{
var menu;
menu=window.open("mostrar_ingreso.php","","toolbar=no,scrollbars=no,width=800,height=500,status=yes");
menu.focus();
var ventana = window.self;
ventana.opener = window.self;
ventana.close();
}
</script>
</head>
<?php
$ceda2=$cedula;
$noma2=$nombre;
?>
<body onLoad="document.formulario.cedula.focus()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="formulario" action="" method="post">
<table width="671" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><fieldset><table width="669" border="0" align="center" cellpadding="2" cellspacing="2">
<tr bgcolor="#FFFFCC">
<td class="titulos"><div align="center" class="titulos"> CONSULTA VERIFICACION CITA </div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td height="22" class="fecha"><div align="center">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<!--<tr bgcolor="#FFCC99">
<td height="42" bgcolor="#CCFFFF"><fieldset>
<legend><span class="texto">Ingrese número de identificación:</span></legend>
<table width="509" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="255"><span class="Estilo50">Cédula (Titular-Beneficiario):</span> </td>
<td width="287"><input name="cedula2" type="text" class="Estilo53" id="cedula2" value="" size="15" maxlength="15"></td>
</tr>
</table>
</fieldset></td></tr>
<tr bgcolor="#FFCC99">
<td bgcolor="#CCFFFF"><div align="center">
<input name="consultar" id="consultar" type="submit" class="Estilo57" value="Consultar">
<input name="button" type="button" class="Estilo57" onclick="window.location.href='menu_solicitud_cita.php'" value="Menu Solicitud">
<input name="button" type="button" class="Estilo57" onclick="window.location.href='index.php'" value="Menu Principal">
</div></td>
</tr>-->
<tr>
<td align="center"> <span class="Estilo50">
<?php
$sucu =$_GET["sucu"] ;
$nom =$_GET["nom"] ;
$ced =$_GET["ced"] ;
echo "<a href='menu_admin.php?ced=$ced&nom=$nom'>Menu</a>" ?></span>
</td>
</tr>
</table>
</fieldset></td>
</tr>
</table>
</form>
</body>
</html>
<?php
//if(isset($_POST["consultar"]))
//{
echo "<form name='form' action='' method='post'>";
require_once("mainfile.php");
include ("config.php");
global $dbi;
require_once("Conectarse.php");
$fecha = date("Y").'-'.date("m").'-'.date("d");
$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);
/* $mssql = mysql_query('SELECT * FROM solicitud_citas WHERE cedula = "' . $_POST[cedula2] . '" and estado = "2" ');
if (!$mssql) {
die('Invalid query: ' . mysql_error());
}
if($mssql)
{
$filas = mysql_num_rows($mssql);
if ($filas > 0)
{
if ($cedula2)
{ */
$control = mysql_query('SELECT id, cedula, nombre, fecha, hora, tipo_atencion, funcionario, sucursal FROM solicitud_citas WHERE cedula="'.$_GET["ced"].'" and estado = "5" ');
if (!$control) {
die('Invalid query: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
echo "<TABLE width='600' border='2' align='center' cellpadding='2' cellspacing='1'>
<TR>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ID</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>CEDULA</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ABOGADO</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>FECHA</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>HORA</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>ATENCION</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='texto'>SUCURSAL</span></div></TD>
";
while(list($id, $ced, $nom, $fecha, $hora, $tipo, $funci, $sucursal) = mysql_fetch_row($control))
{
$conttre = mysql_query('SELECT Nombre_Completo FROM Usuarios WHERE Cedula = "' . "$funci". '" ');
if (!$conttre) {
die('Invalid query 42: ' . mysql_error());
}
list($funcionario) = mysql_fetch_row($conttre);
$busca_sucursal = mysql_query("SELECT nombre FROM sucursal WHERE codigo = '".$sucursal."' ");
list($nombre_sucursal) = mysql_fetch_row($busca_sucursal);
printf("<tr>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$id."</a></span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'><input type='button' value=$ced name='cedu' class=Estilo57 onClick =window.open('cunsulta_verificacion_cita.php?id=$id&cedulita=$ced','','top=40,left=70,toolbar=no,scrollbars=no,width=950,height=500,status=yes')></a></span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$funci."</a></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'>".$tipo."</span></div></td>
<td bgcolor='#FFFFCC'><div align='center' class='lista'>".$nombre_sucursal."</span></div></td>
");
}
echo "</table>";
}
else
{
echo "<script>alert('NO HA SIDO ASIGNADA LA CITA');</script>";
}
//}
echo "</form>";
?>