File: /home/asjudine/www/consulta_fecha_reunion_supervisora.php
.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Listado Fecha Gestion</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;}
.Estilo2 {font-family: Arial; font-size: 16px; 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(ELEMENTOS/gri06.jpg );
.Estilo50 {color: #CC3333;
font-family: "Arial Narrow";
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>
<body onLoad="document.formulario.cedula.focus()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center> <img src="ELEMENTOS\CABEZOTE SERVIASJUDINET.jpg" WIDTH=60% > </center>
<form name="formulario" action="" method="post">
<tr>
<td>
<form name="formulario" action="" method="post">
<table width="542" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="542"><fieldset><table width="390" border="6" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
<tr bgcolor="#FFFFCC">
<td colspan="2" bgcolor="#306090" class="titulos" style="color:#FFFFFF"><div align="center">CONSULTA POR FECHA DE GESTION</div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td height="22" colspan="2" bgcolor="#FFFFFF" class="fecha"><div align="center">
<script languaje="JavaScript">Mostrar_Fecha()</script>
</div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td height="22" bgcolor="#ECE9D8" class="fecha"><div align="center">FECHA
<input name="fecha1" type="text" class="campo1" id="fecha1" value="0000-00-00" size="15" maxlength="15">
</div></td>
</tr>
<tr bgcolor="#ECE9D8">
<td colspan="2" height="22" class="fecha"><div align="center">
<input name="consultar" id="consultar" type="submit" class="Estilo51" value="Consultar">
<input name="menu2" type="button" class="Estilo50" id="menu2" onClick="window.location.href='menu_supervisora_subsidios.php'" value="IR AL MENU">
</div></td>
</tr>
</table>
</fieldset></td>
</tr>
</table>
</form>
</body>
</html>
<?php
require_once("Conectarse.php");
if(isset($_POST["consultar"]))
{
echo "<form name='form' action='' method='post'>";
require_once("mainfile.php");
include ("config.php");
global $dbi;
$control3 = mysql_query("SELECT Nombre_Completo FROM Usuarios WHERE codigo = '".$_POST[funcionario]."' ");
if (!$control3) {
die('Invalid query 0: ' . mysql_error());
}
list($nomfunciona) = mysql_fetch_row($control3);
$control = mysql_query('SELECT id,apellidos,nombres,celular,correo,unidad,direccion_reunion,ciudad_reunion FROM programacion_charlas WHERE fecha_reunion = "'.$_POST [fecha1].'"');
if (!$control) {
die('Invalid query 0: ' . mysql_error());
}
if ((mysql_num_rows($control)!=0))
{
echo "<TABLE width='700' border='3' align='center' cellpadding ='0' cellspacing='1' bgcolor='black'>
<TR>
<TD bgcolor='#FFFFCC'><div align='center'><span class='fecha'>CELULAR</span></div></TD> <TD bgcolor='#FFFFCC'><div align='center'><span class='fecha'>APELLIDOS</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='fecha'>NOMBRES</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='fecha'>CELULAR</span></div></TD>
<TD bgcolor='#FFFFCC'><div align='center'><span class='fecha'>CORREO</span></div></TD>";
while(list($id,$apellidos,$nombre,$celular,$email,$unidad,$direccion_residencia,$ciudad_residencia) = mysql_fetch_row($control))
{
$tota = $tota + 1;
printf("<tr>
<td bgcolor='#ECE9D8'><div align='center' class='Estilo21'><input type='button' value=$celular name='proceso' class=Estilo21 onClick = window.open('confirmacion_charlas_fecha.php?id=$id&celular=$celular','','top=30,left=50,toolbar=yes,scrollbars=yes,width=800,height=800,status=yes')></a></span></div></td>
<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$apellidos."</a></span></div></td>
<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$nombre."</a></span></div></td>
<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$celular."</a></span></div></td>
<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$email."</a></span></div></td>");
}
}
else
{
echo "<script>alert('No Hay Registros En Esas Fechas');</script>";
}
echo "<TABLE width='200' border='0' align='center' cellpadding ='0' cellspacing='1'>
<TR>
<TD bgcolor='#FFFFCC'><div align='center'><span class='fecha'>TOTAL</span></div></TD>";
printf("<tr>
<td bgcolor='#ECE9D8'><div align='center' class='lista'>".$tota."</a></span></div></td>");
echo "</form>"; }
?>