<?php
$USUA_LOGIN;
echo"<html>\n";
echo"<head>\n";
?>
<link rel="stylesheet" href="estilo-general.css" type="text/css" media="all">
<link rel="stylesheet" href="estilo-menu-desplegable.css" type="text/css" media="all">
<script language="javascript" src="no-tocar.txt" type="text/javascript"></script>
<script language="javascript" src="numero-de-menus.txt" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="all" href="calendar-system.css" title="win2k-cold-1" />
<?php
echo"<title>Búsqueda de Cursos</title>\n";
echo"</head>\n";
echo "<body onload='init();'>";
$consulta="SELECT USUARIOS__USUA.USUA_LOGIN, USUARIOS__USUA.USUA_NOMBRE,USUARIOS__USUA.USUA_APELLIDO FROM USUARIOS__USUA where USUARIOS__USUA.USUA_LOGIN='$USUA_LOGIN'";
for($i=0;$i<$num;$i++)
{
}
?>
<body bgcolor="#FFFFFF">
<div id="Layer1" style='color:#640000; background-color:#FFD600; border-bottom: 3px double #FF6600; border-top: 3px double #FF6600; margin: 0 0 5px 0; padding: 4px 0; font-size: 14px;'>
<div align="center"><font face="verdana" size="3"><strong>Escuela República Federal Alemana</strong></font></div>
</div>
<div id="Layer2" style="position:absolute; left:892px; top:15px; width:351px; height:28px; z-index:2;">
<div align="right"><font face="verdana" size="2"><strong>Logueado como: <?php echo"$nombre $apellido"; ?></strong></font></div>
</div>
<body bgcolor="#FEF372"><TABLE width="1120" BORDER = 0 align="center" CELLPADDING = 0 CELLSPACING = 0>
<TR><TD width="163"><IMG SRC = "../../imagenes/terminado.jpg" WIDTH = 157 HEIGHT = 126></TD>
<TD width="817"><IMG SRC = "../../imagenes/final..jpg" WIDTH = 800 HEIGHT = 126></TD>
<TD width="246"><img src = "../../imagenes/LogoMineducActual.jpg" width = 157 height = 126></TD></TR>
<td width="163">
</TABLE>
<TABLE width="762" align="center" BORDER = 0 CELLPADDING = 0 CELLSPACING = 0 >
<TR bgcolor="#EFEFEF">
<TD width="172"> <li><a id="desplegable1"><font face='Verdana' size='2'>Inscripción</font></a></li> </TD>
<TD width="174" bgcolor="#EFEFEF"><li><a id="desplegable2"><font face='Verdana' size='2'>Atraso</font></a></li></TD>
<TD width="162" bgcolor="#EFEFEF"><li><a id="desplegable3"><font face='Verdana' size='2'>Horario</font></a></li></TD>
<TD width="162"><li><a id="desplegable4"><font face='Verdana' size='2'>Administración</font></a></li></TD>
<TD width="162"><li><a id="desplegable5"><font face='Verdana' size='2'>Usuario</font></a></li></TD>
<TD width="162"><li><a id="desplegable6"><font face='Verdana' size='2'>Informes</font></a></li></TD>
</TR>
</TABLE>
<?php
echo"<center>";
echo"<br>";
echo"<br>";
echo "<align='center'><font face='Verdana' size='4'><strong>Búsqueda de Inscripciónes</font></strong>\n";
echo"<form action='informe_alum_incri_entre_fechas.php' method='POST' name='form1' >\n";
echo"<br>";
echo "<table align='center' width='590' border='1'>\n";
echo "<tr>\n";
echo "<td width='30%'><font face='Verdana' size='2'>Fecha Inicio</font></td>\n";
//echo"<td width='35' align='center'> <div align='left'></td>\n";
//echo"<td><input name='fecha1' type='text' maxlength='10' size='10'>\n</td>";
echo "<td><input type='text' name='fecha1' id='f_date_c' size='10' onblur='calcular(this.value)' readonly='1' /></td><td><img src='img.gif' id='f_trigger_c' style='cursor: pointer; border: 1px solid red;' title='Seleccionar Fecha' onmouseover='this.style.background='red';' onmouseout='this.style.background='''/></td>";
echo "<td width='30%'><font face='Verdana' size='2'>Fecha Termino</font></td>\n";
?>
<td><input type="text" name="fecha2" id="f_date_c1" size="10" readonly="1" /></td>
<td><img src="img.gif" id="f_trigger_c1" style="cursor: pointer; border: 1px solid red;" title="Date selector"
onmouseover="this.style.background='red';" onMouseOut="this.style.background=''" /></td>
<?php
echo "<td><input type='button' name='btnbuscar' value='Generar Informe' title='Generar Informe' onclick='Validarfechas()'></td>\n";
echo"</div>\n";
echo "</tr>\n";
echo "</table>\n";
//echo "<p></p>\n";
echo "</form> <p></p>\n";
echo "</tr>\n";
echo "</table> ";
echo "</center>";
?>
<script language="javascript" src="definir-menus.txt" type="text/javascript"></script>
<?php
echo"</body>\n";
echo "</html>\n";
//Fin Condicion Else
?>
<script type="text/javascript" src="calendar.js"></script>
<script type="text/javascript" src="lang/calendar-es.js"></script>
<script type="text/javascript" src="calendar-setup.js"></script>
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_c", // id of the input field
ifFormat : "%e/%m/%Y", // format of the input field
button : "f_trigger_c", // trigger for the calendar (button ID)
align : "Tl", // alignment (defaults to "Bl")
singleClick : true
});
</script>
<script type="text/javascript">
Calendar.setup({
inputField : "f_date_c1", // id of the input field
ifFormat : "%e/%m/%Y", // format of the input field
button : "f_trigger_c1", // trigger for the calendar (button ID)
align : "Tl", // alignment (defaults to "Bl")
singleClick : true
});
</script>
<script type="text/javascript">
function Validarfechas()
{
var fecha1 = document.form1.fecha1.value;
var fecha2 = document.form1.fecha2.value;
//var fecha3=document.form1.fechaactual.value;
f1=new Date(fecha1);
f2=new Date(fecha2);
var today =new Date();
day = today.getDate();
month = (today.getMonth())+1;
year = today.getFullYear();
fechaserver = day +"/" + month +"/"+ year;
if (f1>f2)
{
alert("Fecha inicio es mayor que la Fecha actual " );
document.form1.fecha1.focus();
}
else
{
if( (f1 >= fechaserver)||(f2 >= fechaserver) )
{
alert(" Fechas erroneas " + fechaserver);
}
else
{
document.form1.submit();
}
}
}
</script>