-
Notifications
You must be signed in to change notification settings - Fork 0
/
classwise1.php
145 lines (115 loc) · 4.51 KB
/
classwise1.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
session_start();
?>
<head>
<script type="text/javascript">
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}
</script>
</head>
<?php
include("student.php");
extract($_POST);
if (isset($_SESSION[admin]))
{
require("main1.php");
echo "<div class='str'>hello : "."$_SESSION[admin]"."</div>";
require("sear.php");
$sem=$_POST['sem'];
$di=$_POST['di'];
$branch=$_POST['branch'];
include("student.php");
if(isset($_POST['searc']))
{ echo "<div class='fixed'><div class='title' align='center'>Class:$sem branch: $branch division: $di"."</div>";
$Query="SELECT * from student where semester = '$sem' And branch = '$branch' And division = '$di' order by roll_number ";
if($sem == '')
{
$Query="SELECT * from student where branch = '$branch' And division = '$di' order by roll_number ";
}
if($branch == '')
{
$Query="SELECT * from student where semester = '$sem' And division = '$di' order by roll_number ";
}
if($di == '')
{
$Query="SELECT * from student where semester = '$sem' And branch = '$branch' order by roll_number ";
}
if($di == '' and $branch == '')
{
$Query="SELECT * from student where semester = '$sem' order by roll_number ";
}
if($di == '' and $sem == '')
{
$Query="SELECT * from student where branch = '$branch' order by roll_number ";
}
if($sem == '' and $branch == '')
{
$Query="SELECT * from student where division = '$di' order by roll_number ";
}
$dbresult=mysql_query($Query);
if(mysql_num_rows($dbresult) >0)
{ while($row=mysql_fetch_row($dbresult))
{
echo "<div class='dana'>Roll Number : "."$row[12]"."</div>";
echo "<div class='menu'>Name : "."$row[0]"."</div>";
echo "<div class='menu'>Register Number : "."$row[1]"."</div>";
echo "<div class='menu'>Admission Number : "."$row[2]"."</div>";
echo "<div class='menu'>Date of Birth : "."$row[4]"."</div>";
echo "<div class='menu'>Gender : "."$row[5]"."</div>";
echo "<div class='menu'>Blood Group : "."$row[6]"."</div>";
echo "<div class='menu'>Branch : "."$row[9]"."</div>";
echo "<div class='menu'>Semester : "."$row[10]"."</div>";
echo "<div class='menu'>Email : "."$row[13]"."</div>";
echo "<div class='menu'>Mobile Number : "."$row[14]"."</div>";
echo "<div class='menu'>Father's Name : "."$row[15]"."</div>";
echo "<div class='menu'>Mother's Name : "."$row[18]"."</div>";
echo "<div class='menu'>District : "."$row[25]"."</div>";
echo "</div></div></div>";
}
}
else
{
}
}
require("footer.php");
exit();
}
?>
<?php
require("main1.php");
?>
<div class="fixed"><div class="title" align="center">ADMIN LOGIN</div>
<form id="form1" name="form1" method="post" action="editadmin.php">
<div class='content'> <div class='menu'> ID Number:- <input name="username" type="text" class="menu" id="username" size="25" maxlength="255" /></div>
<p>
<div class='menu'>PASSWORD :-
<input name="password" type="password" class="menu" id="password" size="25" maxlength="255" />
</div>
</p>
<?php
if(isset($found))
{
echo "Invalid Username or Password";
}
?>
<div class='menu'> <input name="submit12" type="submit" class="menu" value="Login" " />    <input name="Submit2" type="reset" class="menu" value="Reset" />
</div><div class='menu'> IF YOU ARE STUDENT PLEASE <a href="studentlogin.php">LOGIN HERE</a> </div>
</div>
</form></div>
<?php
require("footer.php");
?>
if($branch == '')
{
$Query="SELECT * from student where division = '$di' order by roll_number ";
}
if($di == '')
{
$Query="SELECT * from student where branch = '$branch' order by roll_number ";
}