-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass-routine.php
More file actions
135 lines (106 loc) · 3.5 KB
/
class-routine.php
File metadata and controls
135 lines (106 loc) · 3.5 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
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
126
127
128
129
130
131
132
133
134
135
<?php ?>
<div class="outter-wp">
<!--/tabs-->
<div class="tab-main">
<!--/tabs-inner-->
<div class="tab-inner">
<div id="tabs" class="tabs">
<h2 class="inner-tittle">Welcome,
<?php echo $info_display['t_fullname']; ?> </h2>
<div class="graph">
<nav>
<ul>
<li><a href="#section-1" class="icon-shop"><i class="lnr lnr-briefcase"></i> <span>Class Information</span></a></li>
<li><a href="#section-2" class="icon-cup"><i class="lnr lnr-lighter"></i> <span>Manage Periods</span></a></li>
<li><a href="#section-3" class="icon-food"><i class="fa fa-cutlery"></i> <span>Teachers</span></a></li>
<li><a href="#section-4" class="icon-lab"><i class="fa fa-flask"></i> <span>Subject</span></a></li>
<li><a href="#section-5" class="icon-truck"><i class="fa fa-truck"></i> <span>Order</span></a></li>
</ul>
</nav>
<div class="content tab">
<section id="section-1">
<h2>Select Class</h2>
<form method="post">
<select name="class_data" id="selector1" class="form-control1">
<option>Select Class</option>
<?php
$opt = $ravi->grade($grade);
while($op=$opt->fetch_assoc())
{
?>
<option value="<?php echo $op['class']; ?>"><?php echo $op['class']; ?></option>
<?php }?>
</select>
<input type="submit" name="class_info" class="btn red" value="View Class Data">
</form>
<?php
if(isset($_POST['class_info']))
{
$grade_st_data = $_POST['class_data'];
$grade_st_infos = $ravi->grade_st_info($grade_st_data);
if($grade_st_infos->num_rows>0)
{
?>
<div class="graph">
<div class="tables">
<table class="table table-bordered ">
<thead>
<tr>
<th>#</th>
<th>Student Name</th>
<th>Username</th>
<th>Roll</th>
<th>DOB</th>
<th>Address</th>
<th>Parents Contact</th>
</tr>
</thead>
<tbody>
<?php
$c = 1;
while($grade_st_info_display=$grade_st_infos->fetch_assoc())
{
?>
<tr>
<th scope="row"><?php echo $c; ?></th>
<td><?php echo $grade_st_info_display['st_fullname']; ?></td>
<td><?php echo $grade_st_info_display['st_username']; ?></td>
<td><?php echo $grade_st_info_display['roll_no']; ?></td>
<td><?php echo $grade_st_info_display['st_dob']; ?></td>
<td><?php echo $grade_st_info_display['st_address']; ?></td>
<td><?php echo $grade_st_info_display['st_parents_contact']; ?></td>
</tr>
<?php
$c++; }
} else
{
echo "No data to show select any class";
}}
?>
</tbody>
</table>
</div>
</div>
</section>
<section id="section-2">
</section>
<section id="section-3">
</section>
<section id="section-4">
</section>
<section id="section-5">
</section>
</div>
<!-- /content -->
</div>
<!-- /tabs -->
</div>
<script src="js/cbpFWTabs.js"></script>
<script>
new CBPFWTabs(document.getElementById('tabs'));
</script>
<div class="clearfix"> </div>
</div>
</div>
<!--//tabs-inner-->
</div>