-
Notifications
You must be signed in to change notification settings - Fork 0
/
timebox.php
executable file
·111 lines (110 loc) · 1.78 KB
/
timebox.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<html>
<div style="border:1px solid black;">
<p>I have to be in the college at</p>
<input type="radio" name="uptime" value="1" checked="yes"/>normal start time(8:15) or
<input type="radio" name="uptime" value="2"/>no later than
<select name="uphour" >
<?php
for($i=1;$i<=12;$i++)
{
if($i==8)
{
?>
<option selected="yes"><?printf("%02d",$i)?></option>
<?
}
else
{
?>
<option> <?printf("%02d",$i)?></option>
<?}}?>
</select>
:
<select name="upminute">
<?php
for($i=0;$i<=55;$i+=5)
{
if($i==30)
{
?>
<option selected="yes"><?printf("%02d",$i)?></option>
<?
}
else
{
?>
<option> <?printf("%02d",$i)?></option>
<?}}?>
</select>
<p>I will be leaving the college at</p>
<input type="radio" name="downtime" value="1" checked="yes">normal end time(3:30) or
<input type="radio" name="downtime" value=2"> I will not leave before
<select name="downhour1" >
<?php
for($i=1;$i<=12;$i++)
{
if($i==4)
{
?>
<option selected="yes"><?printf("%02d",$i)?></option>
<?
}
else
{
?>
<option> <?printf("%02d",$i)?></option>
<?}}?>
</select>
:
<select name="downminute1">
<?php
for($i=0;$i<=55;$i+=5)
{
if($i==0)
{
?>
<option selected="yes"><?printf("%02d",$i)?></option>
<?
}
else
{
?>
<option> <?printf("%02d",$i)?></option>
<?}}?>
</select>
and I will not stay after
<select name="downhour2" >
<?php
for($i=1;$i<=12;$i++)
{
if($i==6)
{
?>
<option selected="yes"><?printf("%02d",$i)?></option>
<?
}
else
{
?>
<option> <?printf("%02d",$i)?></option>
<?}}?>
</select>
:
<select name="downminute2">
<?php
for($i=0;$i<=55;$i+=5)
{
if($i==0)
{
?>
<option selected="yes"><?printf("%02d",$i)?></option>
<?
}
else
{
?>
<option> <?printf("%02d",$i);?></option>
<?}}?>
</select>
</div>
</html>