<p> </p><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr valign="middle"><td width="50%" class="frontpageheader"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="middle">
<td width="50%" class="frontpageheader"><font size="3">Listado de Actividades: <?php echo $filtro; ?></font></td>
<td width="36%" ><div align="center"><a href="excel2.php?criterio=<?php echo $criterio_fecha; ?>&filtro=<?php echo $filtro; ?>&nombre_archivo=<?php echo $nombre_archivo; ?>"><img src="images/excel3.gif" width="32" height="30" border="0"><br>
Guardar esta lista en Excel </a></div></td>
<td width="6%"><img src="images/banderaRoja.gif" width="20" height="22">ocupado</td>
<td width="8%"><img src="images/banderaVerde.gif" width="20" height="22"> Libre</td>
</tr>
</table> <font size="3"> </font></td>
</tr>
</table>
<p> </p><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#006699">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="sectiontableheader">
<td></td>
<td><div align="center"><font color="#FFFFFF">Fechas</font></div></td>
<td width="15%" ><div align="center"><font color="#FFFFFF">Actividad</font></div></td>
<td width="10%" ><div align="center"><font color="#FFFFFF">Lugar</font></div></td>
<td width="11%" ><div align="center"><font color="#FFFFFF">Docente</font></div></td>
<td width="8%" ><div align="center"><font color="#FFFFFF">Hora</font></div></td>
<td width="11%" ><div align="center"><font color="#FFFFFF">Publicado por:</font></div></td>
<td width="14%" colspan="4"><div align="center"><font color="#FFFFFF">Herramientas</font></div></td>
</tr>
<?php
if($criterio_fecha==""){
$consulta_2="SELECT distinct fechas.fecha FROM auxiliar_calendario, fechas, actividades Where auxiliar_calendario.id_act=actividades.id_act And auxiliar_calendario.id_fechas=fechas.id_fechas ORDER BY RIGHT(fechas.fecha, 8) DESC, RIGHT(fechas.fecha, 10) ASC, RIGHT(fechas.fecha, 4) ASC";
}else{
$consulta_2="SELECT distinct fechas.fecha FROM auxiliar_calendario, fechas, actividades Where auxiliar_calendario.id_act=actividades.id_act And auxiliar_calendario.id_fechas=fechas.id_fechas".$criterio_fecha."ORDER BY RIGHT(fechas.fecha, 8) DESC, RIGHT(fechas.fecha, 10) ASC, RIGHT(fechas.fecha, 4) ASC";
}
$nro1=1;
if($nro1==1){
$nro1=2;
}else{
$nro1=1;
}
//verificar si esta reservada
$consultar_reserva=mysql_query("SELECT * FROM fechas WHERE reservado=1 AND fecha='".$row['fecha']."'"); $banderita="<span id=\"toolTipBox\" width=\"200\"></span><img src=\"images/banderaRoja.gif\" width=\"23\" height=\"25\" onMouseOver=\"toolTip('Este día esta reservado',this)\">";
}else{
$banderita='<img src="images/banderaVerde.gif" width="23" height="25">';
}
$fecha_de_hoy=date(d
."/".m
."/".Y
);
if(strpos($row['fecha'],$fecha_de_hoy)){ $dia_de_hoy="<span id=\"toolTipBox\" width=\"200\"></span><img src=\"images/clock.gif\" width=\"25\" height=\"25\" onMouseOver=\"toolTip('Actividades del día de hoy',this)\">";
}else{
$dia_de_hoy="";
}
?>
<tr class="sectiontableentry<?php echo $nro1; ?>">
<td width="6%" height="30" valign="middle"><div align="center"><?php echo $banderita; ?></div></td>
<td width="25%" height="30"> <span id="toolTipBox" width="200"></span>
<div align="center"><?php echo $row['fecha']; ?><?php echo $dia_de_hoy; ?></div></td>
<td height="30" colspan="8">
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
<?php
$consulta_3="SELECT actividades.id_act, actividades.actividad, actividades.responsable, actividades.hora_inicio, actividades.hora_fin, actividades.alta_responsable, lugar.nombre, fechas.fecha, fechas.reservado, fechas.id_fechas FROM actividades, fechas, lugar, auxiliar_calendario WHERE actividades.id_act=auxiliar_calendario.id_act AND fechas.id_fechas=auxiliar_calendario.id_fechas AND lugar.id_lugar=actividades.id_lugar AND fechas.fecha='".$row['fecha']."'";
?>
<tr>
<td width="116" height="30"><div align="left"><?php echo $recordset['actividad']; ?></div></td>
<td width="80" height="30"><div align="center"><?php echo $recordset['nombre']; ?></div></td>
<td width="85" height="30"><div align="center"><?php echo $recordset['responsable']; ?></div></td>
<td width="66" height="30"><div align="center"><?php echo $recordset['hora_inicio']. " - " .$recordset['hora_fin']; ?></div></td>
<td width="85" height="30"><div align="center"><?php echo $recordset['alta_responsable']; ?></div></td>
<td width="32" height="30"><span id="toolTipBox" width="200"></span><div align="center"><a href="javascript:abrirpopup('trasladar_fecha.php?id_act=<?php echo $recordset['id_act'].'&id_fecha='.$recordset['id_fechas']; ?>',500,300)"> <img src="images/flecha123.gif" width="16" height="16" border="0" onMouseOver="toolTip('Trasladar de día esta actividad',this)"></a></div></td>
<td width="24" height="30"><span id="toolTipBox" width="200"></span> <div align="center"><a href="javascript:abrirpopup('detalle_actividad.php?id_act=<?php echo $recordset['id_act']; ?>',500,500)"><img src="images/consultar.gif" width="16" height="16" border="0" onMouseOver="toolTip('Ver mas detalles relacionados con esta actividad',this)"></a></div></td>
<td width="24" height="30"><span id="toolTipBox" width="200"></span>
<div align="center"><img src="images/editar_small.gif" width="16" height="16" onMouseOver="toolTip('Editar',this)"></div></td>
<td width="32" height="30"><span id="toolTipBox" width="200"></span> <div align="center"><a href="javascript:abrirpopup('borrar_actividad.php?id_act=<?php echo $recordset['id_act'].'&id_fecha='.$recordset['id_fechas']; ?>',500,300)"><img src="images/borrarv.gif" width="16" height="16" border="0" onMouseOver="toolTip('Borrar',this)"></a></div></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
<p> </p></td>
</tr>
</table>
</td>
</tr>
</table>
<p> </p>
<form name="form2" method="get" action="ver_actividades.php">
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="left"><a href="ver_actividades.php?mes=
<?php printf("%02d",$mes-1); ?>&anio=
<?php echo $anio; ?>"><<
Mes Anterior</a></div></td>
<td><div align="center"><a href="ver_actividades.php?mes=
<?php echo date(m
); ?>&anio=
<?php echo date(Y
); ?>">Vista
segun hoy</a></div></td>
<td><div align="right"><a href="ver_actividades.php?mes=
<?php printf("%02d",$mes+1); ?>&anio=
<?php echo $anio; ?>">Mes
Siguiente >></a></div></td>
</tr>
</table>
</form>
<p> </p>
<p> </p>
</body>
</html>