-
Notifications
You must be signed in to change notification settings - Fork 2
/
class_test.php
120 lines (115 loc) · 2.83 KB
/
class_test.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
112
113
114
115
116
117
118
119
120
<?php
/**
* Add Marks of Students
* php version 8.1
*
* @category Adfsad
*
* @package Adf
*
* @author Khan <abc@examp.com>
*
* @license http://www.abc.com MIT
*
* @link Adfas
**/
session_start();
require_once 'sand_box.php';
$link=$LINK;
Page_header('Class Test');
?>
</style>
</head>
<body>
<div class="container-fluid">
<?php require_once 'nav.html'; ?>
<form class="no-print" action="#" method="GET" >
<div class="row">
<?php
// Default values are coming from Config.php
$selected_class=$CLASS_NAME;
$selected_school=$SCHOOL_NAME;
select_class($selected_class);
select_school($selected_school);
?>
</div>
<button type="submit" name="submit" class="btn btn-primary mt-1">
Show Test List
</button>
</form>
</div>
<?php
if (isset($_GET['submit'])) {
$class_name=$_GET['class_exam'];
$class_name=Validate_input($class_name);
$school_name=$_GET['school'];
$school_name=Validate_input($school_name);
} else {
$class_name=$CLASS_NAME;
$school_name=$SCHOOL_NAME;
}
?>
<div class="container">
<div class="row m-t-1">
<div class="log col-sm-2">
<img src="./images/khyber.png" alt="khyber">
</div>
<div class="header text-center col-sm-8">
<h2><?php echo $SCHOOL_FULL_NAME; ?> </h2>
<h2><?php echo $SCHOOL_LOCATION; ?> </h2>
<h5>Class Test </h5>
<h5> Class: <?php echo $class_name; ?>
<!-- Date: <?php echo date('d-m-Y') ?> -->
Subject: English
</h5>
</div>
<div class="logo2 col-sm-2">
<img src="./images/kpesed.png" alt="kpesed.png">
</div>
</div>
</div>
<div class="container">
<table class="table table-bordered" id="award-list">
<thead>
<tr>
<th>Serial No</th>
<th>Name </th>
<th>Father Name</th>
<th>Test 1</th>
<th>Test 2</th>
<th>Test 3</th>
<th>Test 4</th>
<th>Test 5</th>
<th>Test 6</th>
<th>Test 7</th>
<th>Test 8</th>
<th>Test 9</th>
<th>Test 10</th>
</tr>
</thead>
<?php
$q="Select * from students_info WHERE
Class='$class_name'
AND
School='GHSS CHITOR'
AND
Status='1'
Order by
Roll_No ASC";
$qr = mysqli_query($link, $q) or die('Error in Q 1'.mysqli_error($link));
$i=1;
while ($qfa=mysqli_fetch_assoc($qr)) {
echo '<tr>
<td>'.$i. '</td>
<td>'.$qfa['Name']. '</td>
<td>'.$qfa['FName']. '</td>';
for ($num=1;$num<=10;$num++) {
echo '<td> </td>';
}
echo '</tr>';
$i++;
}
?>
</table>
</div>
<?php page_close(); ?>