forked from vishaloshnif/school-erp-system
/
class.php
executable file
·125 lines (95 loc) · 3.07 KB
/
class.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
121
122
123
124
125
<?php include_once("includes/header.php");?>
<div class="page_title">
<!-- <span class="title_icon"><span class="computer_imac"></span></span>
<h3>Dashboard</h3>-->
<div class="top_search">
<form action="#" method="post">
<ul id="search_box">
<li>
<input name="" type="text" class="search_input" id="suggest1" placeholder="Search...">
</li>
<li>
<input name="" type="submit" value="" class="search_btn">
</li>
</ul>
</form>
</div>
</div>
<?php include_once("includes/school_setting_sidebar.php");?>
<div id="container">
<div id="content">
<div class="grid_container">
<h3 style="padding-left:20px; color:#1c75bc">Class Detail</h3>
<div class="grid_12">
<div class="btn_30_blue" style="float:right">
<a href="add_class.php"><span style="width:140px">Add class </span></a>
</div>
</div>
<div class="grid_12">
<div class="widget_wrap">
<div class="widget_top">
<span class="h_icon list_images"></span>
<h6>Class detail</h6>
</div>
<div class="widget_content">
<table class="display data_tbl" >
<thead>
<tr>
<th>
S.No.
</th>
<th>
Class
</th>
<th>
Stream Status
</th>
<th>
Action
</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
$sql="SELECT * FROM class";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{?>
<tr>
<td class="center">
<a href="#"><?php echo $i;?></a>
</td>
<td class="center">
<?php echo $row['class_name']; ?>
</td>
<td class="center"><?php if($row['stream_status']==1){echo "Yes";}else{echo "No";}?></td>
<td class="center">
<span><a class="action-icons c-edit" href="edit_class.php?sid=<?php echo $row[0]; ?>" title="Edit">Edit</a></span><span><a class="action-icons c-delete" href="delete_class.php?sid=<?php echo $row[0]; ?>" title="delete" onClick="return checkform1()">Delete</a></span>
</td>
</tr>
<?php $i++;} ?>
</tbody>
</table>
<script type="text/javascript" language="javascript">
frm2=document.del;
function checkform1()
{
if(confirm("Are you sure you want to delete"))
{
return true;
}else
{
return false;
}
}
</script>
</div>
</div>
</div>
<span class="clear"></span>
</div>
<span class="clear"></span>
</div>
</div>
<?php include_once("includes/footer.php");?>