-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht3.php
executable file
·87 lines (76 loc) · 2.33 KB
/
t3.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
<?php session_start();
$data = $_SESSION['data'];
$allo = $_SESSION['allo'];
if(isset($_GET['step'] )){
$step = $_GET['step'];
}else{
$step = '1';
}
include 'settings.php';
include 'auth1.php';
?>
<?php if($step == '1'){ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Supervision Allotter For examination <?php echo $data[0][3] ?></title>
</head>
<body>
<h1>Show your duties</h1>
<form action="t3.php" method="get">
Choose Your Name:<select name="name">
<?php
$j = '1';
while($j <= $data[0][2]):
$j_one = $j - 1;
echo ' <option>'.$data[2][$j_one][0].'</option>';
$j++;
endwhile;
?>
</select>
<input type="hidden" name="step" value="2">
<input type="submit" value="Continue...">
</body>
</html>
<?php } ?>
<?php if($step == '2'){ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Supervision Allotter For examination <?php echo $data[0][3] ?></title>
</head>
<body>
<table border="1" cellpadding="5" cellspacing="0" >
<tr>
<td colspan="100%">
<h1><center><h3>Supervision duties for <?php echo $_GET['name']; ?></h3></center></h1>
</td>
</tr>
<tr>
<td><b><center>Dates</center></b></td><td width="50"><b><center>Session</center></b></td><td width='50'><b><center>Duty</center></b></td></tr>
<?php
$j = '1';
while($j <= $data[0][2]):
$j_one = $j - 1;
if($data[2][$j_one][0] == $_GET['name']){
$m = '1';
while($m <= $data[0][0]):
$m_one = $m - 1;
$ttoghsdgshdfsghdfsgh = $data[1][$m_one][0]+$data[1][$m_one][1]+$data[1][$m_one][2]+$data[1][$m_one][3];
if($ttoghsdgshdfsghdfsgh != '0'){
echo '<tr>';
echo '<td rowspan="2"><center><b>'.$data[3][$m_one].'</b></center><td><center><b>M</b></center></td><td><center>'.$allo[$m_one]['m'][$j_one].'</center></td></tr><tr><td><center><b>E</b></center></td><td><center>'.$allo[$m_one]['e'][$j_one].'</center></td>';}
echo '</tr>';
$m++;
endwhile;
}
$j++;
endwhile;
?>
</table>
<a href="../index.php">Home</a>
</body>
</html>
<?php } ?>