-
Notifications
You must be signed in to change notification settings - Fork 2
/
atttendance_extra.php
87 lines (86 loc) · 4.14 KB
/
atttendance_extra.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
<button class="btr4n btn-primary" id="select_date" >SELECT</button>
<hr />
<table cellpadding="0" cellspacing="0" border="0" class="table table-bordered">
<thead>
<tr>
<th>Date</th>
<th>Month</th>
<th>Year</th>
<th>Class</th>
<th>DIV</th>
<th>send_msg</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<form method="post" action="" class="form" id="dateform">
<tr class="gradeA">
<td>
<select id="date" name="date" class="form-control">
<?php for($i=1;$i<=31;$i++):?>
<option value="<?php echo $i;?>"
<?php if(isset($date) && $date==$i)echo 'selected="selected"';?>>
<?php echo $i;?>
</option>
<?php endfor;?>
</select>
</td>
<td>
<select id="month" name="month" class="form-control">
<?php
for($i=1;$i<=12;$i++):
if($i==1)$m='january';
else if($i==2)$m='february';
else if($i==3)$m='march';
else if($i==4)$m='april';
else if($i==5)$m='may';
else if($i==6)$m='june';
else if($i==7)$m='july';
else if($i==8)$m='august';
else if($i==9)$m='september';
else if($i==10)$m='october';
else if($i==11)$m='november';
else if($i==12)$m='december';
?>
<option value="<?php echo $i;?>"
<?php if($month==$i)echo 'selected="selected"';?>>
<?php echo $m;?>
</option>
<?php
endfor;
?>
</select>
</td>
<td>
<select id="year" name="year" class="form-control">
<?php for($i=2020;$i>=2010;$i--):?>
<option value="<?php echo $i;?>"
<?php if(isset($year) && $year==$i)echo 'selected="selected"';?>>
<?php echo $i;?>
</option>
<?php endfor;?>
</select>
</td>
<td>
<select class="form-control" name="std">
<option><?php echo $p0; ?></option>
</select>
</td>
<td>
<select class="form-control" name="div">
<option><?php echo $p1; ?></option>
</select>
</td>
<td>
<select name="send_msg" class="form-control">
<option <?php if( isset($send_msg) &&$send_msg =='')echo 'selected="selected"';?>>Select</option>
<option <?php if(isset($send_msg) &&$send_msg =='Now')echo 'selected="selected"';?>>Now</option>
<option <?php if(isset($send_msg) &&$send_msg =='Later')echo 'selected="selected"';?>>Later</option>
</select>
</td>
<td align="center"><input type="submit" value="manage_attendance" id="manage_attendance" class="btn btn-info"/></td>
</tr>
<input type="hidden" name="q" value="<?php echo $_GET['p']; ?>">
</form>
</tbody>
</table>