-
Notifications
You must be signed in to change notification settings - Fork 0
/
edithorario.php
74 lines (73 loc) · 2.47 KB
/
edithorario.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
74
<?php include('./inc/header.php'); ?>
<div class="container">
<main>
<div class="row">
<div class="twelve columns">
<h1>Editar horarios</h1>
<form action="./inc/processhorario.php" method="POST">
<div class="ov">
<table class="u-full-width">
<thead>
<tr>
<th> </th>
<th>D</th>
<th>L</th>
<th>M</th>
<th>X</th>
<th>J</th>
<th>V</th>
<th>S</th>
</tr>
</thead>
<tbody>
<tr>
<td>Desde</td>
<?php for ($x = 0; $x < 7; $x++) { ?>
<td>
<input type="time" value="<?php
if ((isset($_SESSION['horarios'][$x][0]['desde'])) && ($_SESSION['horarios'][$x][0]['desde'] !== ":")) {
echo $_SESSION['horarios'][$x][0]['desde'];
} ?>" name="desde[]"></td>
<?php } ?>
</tr>
<tr>
<td>Hasta</td>
<?php for ($x = 0; $x < 7; $x++) { ?>
<td>
<input type="time" value="<?php
if ((isset($_SESSION['horarios'][$x][0]['hasta'])) && ($_SESSION['horarios'][$x][0]['hasta'] !== ":")) {
echo $_SESSION['horarios'][$x][0]['hasta'];
} ?>" name="hasta[]"></td>
<?php } ?>
</tr>
<tr>
<td>Desde</td>
<?php for ($x = 7; $x < 14; $x++) { ?>
<td>
<input type="time" value="<?php
if ((isset($_SESSION['horarios'][$x][1]['desde'])) && ($_SESSION['horarios'][$x][1]['desde'] !== ":")) {
echo $_SESSION['horarios'][$x][1]['desde'];
} ?>" name="desde[]"></td>
<?php } ?>
</tr>
<tr>
<td>Hasta</td>
<?php for ($x = 7; $x < 14; $x++) { ?>
<td>
<input type="time" value="<?php
if ((isset($_SESSION['horarios'][$x][1]['hasta'])) && ($_SESSION['horarios'][$x][1]['hasta'] !== ":")) {
echo $_SESSION['horarios'][$x][1]['hasta'];
} ?>" name="hasta[]"></td>
<?php } ?>
</tr>
</tbody>
</table>
</div>
<button class="button button-primary" name="submit"><i class="fa fa-save v"></i> Guardar</button>
<button class="button button-primary" type="reset">Deshacer <i class="fa fa-undo"></i></button>
</form>
</div>
</div>
</main>
</div>
<?php include('./inc/footer.php'); ?>