-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhallticket.php
82 lines (74 loc) · 2.39 KB
/
hallticket.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
<?php
include("header.php");
$selst = "SELECT students.*, course.*, students.regno AS Expr1 FROM students LEFT OUTER JOIN course ON students.courseid = course.courseid WHERE (students.regno = $_SESSION[regno])";
$qst = mysqli_query($con,$selst);
$rsqst = mysqli_fetch_array($qst);
$selexam = "SELECT exam.*, subjects.*, course.* FROM course INNER JOIN subjects ON course.courseid = subjects.courseid RIGHT OUTER JOIN exam ON subjects.subjectcode = exam.subjectcode where exam.regno=$_SESSION[regno]";
$selresult = mysqli_query($con,$selexam);
?>
<div class="slider_top2">
<h2>Hall Ticket</h2>
</div>
<div class="clr"></div>
<div class="body_resize">
<div class="body">
<div class="full">
<table class="tftable" width="200" border="1">
<tr align="left">
<th scope="col"> Registration No. : <?php echo $rsqst[regno]; ?></th>
<th scope="col"> Course : <?php echo $rsqst[coursename]; ?></th>
</tr>
<tr align="left">
<th width="319" scope="col"> Name : <?php echo $rsqst[name]; ?>
</th>
<th width="287" scope="col"> DOB : <?php echo $rsqst[dob]; ?></th>
</tr>
<tr>
<td colspan="2">
<strong>Exam Time table: </strong><br />
<table width=100% border=1>
<tr>
<th width="121" scope=col> Registration Number</th>
<th width="105" scope=col> Course</th>
<th width="105" scope=col> Subject</th>
<th width="170" scope=col> Datetime</th>
<th width="99" scope=col> Signature</th>
</tr>
<?php
while($rs = mysqli_fetch_array($selresult))
{
echo "
<tr>
<td> $rs[regno]</td>
<td> $rs[coursename]</td>
<td> $rs[subjectname]</td>
<td> $rs[datetime] </td>
<td> </td>
</tr>
";
}
?>
</table>
</td>
</tr>
</table>
<table border="2" width=100% class="tftable" align="center">
<tr>
<td align="center">
<button onclick="myFunction()">Print this page</button>
<script>
function myFunction()
{
window.print();
}
</script>
</td>
</tr>
</table>
</div>
<div class="clr"></div>
</div>
</div>
<?php
include("footer.php");
?>