forked from ofarias/ftc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-emitidos.inc.php
73 lines (73 loc) · 2.12 KB
/
form-emitidos.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
$meses = array(
'1'=>'Enero',
'2'=>'Febrero',
'3'=>'Marzo',
'4'=>'Abril',
'5'=>'Mayo',
'6'=>'Junio',
'7'=>'Julio',
'8'=>'Agosto',
'9'=>'Septiembre',
'10'=>'Octubre',
'11'=>'Noviembre',
'12'=>'Diciembre'
);
$dias = range(1, 31);
$anios = range(date('Y')-1, date('Y'));
?>
<form class="form-inline" method="POST" id="emitidos-form">
<input type="hidden" name="accion" value="buscar-emitidos" />
<input type="hidden" name="sesion" class="sesion-ipt" />
<div class="form-group">
<label for="dia-e1">Fecha Inicial</label>
<select class="form-control" id="dia-e1" name="dia_i">
<?php
foreach ($dias as $value) {
echo '<option value="'.$value.'">'.$value.'</option>';
} ?>
</select>
</div>
<div class="form-group">
<label class="sr-only" for="mes-e1">Mes</label>
<select class="form-control" id="mes-e1" name="mes_i">
<?php foreach ($meses as $key => $value) {
echo '<option value="'.$key.'">'.$value.'</option>';
} ?>
</select>
</div>
<div class="form-group">
<label class="sr-only" for="anio-e">anio</label>
<select class="form-control" id="anio-e1" name="anio_i">
<?php foreach ($anios as $value) {
echo '<option value="'.$value.'">'.$value.'</option>';
} ?>
</select>
</div>
<div class="form-group">
<label for="dia-e2">Fecha Final</label>
<select class="form-control" id="dia-e2" name="dia_f">
<?php
foreach ($dias as $value) {
echo '<option value="'.$value.'">'.$value.'</option>';
} ?>
</select>
</div>
<div class="form-group">
<label class="sr-only" for="mes-e2">Mes</label>
<select class="form-control" id="mes-e2" name="mes_f">
<?php foreach ($meses as $key => $value) {
echo '<option value="'.$key.'">'.$value.'</option>';
} ?>
</select>
</div>
<div class="form-group">
<label class="sr-only" for="anio-e2">anio</label>
<select class="form-control" id="anio-e2" name="anio_f">
<?php foreach ($anios as $value) {
echo '<option value="'.$value.'">'.$value.'</option>';
} ?>
</select>
</div>
<button type="submit" class="btn btn-primary">Buscar</button>
</form>