+ <?php } ?>
+ </p>
+ </form>
+<?php
+}
+
+/// Formulario para cambiar la fecha desde la cual mostrar el log.
+function admin_form_log_desde($anio = null, $mes = null, $dia = null, $action = 'admin.log.php')
+{
+?>
+ <form name="admin_log_desde" action="<?php echo $action ?>"
+ method="get">
+ <p>
+ <input type="submit" name="admin_todo" value="Ver todo" /> o
+ <input type="submit" value="Ver" /> desde el
+ <select name="admin_anio">
+ <?php foreach (range(2000, 2005) as $a)
+ {
+ $s = ($a == $anio) ? ' selected="selected"' : '';
+ echo "<option$s>$a</option>\n";
+ } ?>
+ </select>
+ <select name="admin_mes">
+ <?php foreach (range(1, 12) as $m)
+ {
+ $s = ($m == $mes) ? ' selected="selected"' : '';
+ echo "<option$s>$m</option>\n";
+ } ?>
+ </select>
+ <select name="admin_dia">
+ <?php foreach (range(1, 31) as $d)
+ {
+ $s = ($d == $dia) ? ' selected="selected"' : '';
+ echo "<option$s>$d</option>\n";
+ } ?>