-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassList.php
More file actions
76 lines (74 loc) · 2.28 KB
/
ClassList.php
File metadata and controls
76 lines (74 loc) · 2.28 KB
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
<?php
include_once 'Header.php';
$sql = "SELECT * FROM qpg_class_master ORDER BY id asc";
$classes = GetAll($sql);
?>
<script type="text/javascript">
classListInit();
</script>
<div class="qpgContent">
<div class="qpgClassList">
<table style="border:1px solid #cccccc;width:300px;" cellspacing="0" align="center">
<tr style="background: #0099FF;">
<td>
S.No
</td>
<td>
Class Name
</td>
<td>
Action
</td>
</tr>
<?php
foreach($classes as $class)
{
?>
<tr class="qpgClassRow" id="<?php echo $class['id'] ?>">
<td>
<?php echo $class['id']; ?>
</td>
<td>
<?php echo $class['class_name']; ?>
</td>
<td>
View
</td>
</tr>
<?php
}
?>
</table>
</div>
<div class="qpgClassContents">
<div id="qpgClassContainer">
<br />
<table style="width:200px;border-collapse: collapse;" align="center" border="1" cellspacing="0" cellpadding="10">
<tr>
<td>
ID
</td>
<td>
<span id="classIdContainer">
</span>
</td>
</tr>
<tr>
<td>
Class Name
</td>
<td>
<input type="text" id="classNameContainer" value="" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="Update" onclick="updateClassDetails()" />
<input type="button" value="Cancel" onclick="cancelClicked()" />
<input type="button" value="View All Subjects & Chapters" onclick="loadPage('ChapterList.php?classId=','1')" />
</td>
</tr>
</table>
</div>
</div>
</div>