forked from prameshbajra/BVC-Student-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuncst.php
201 lines (151 loc) · 5.01 KB
/
funcst.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<html>
<head>
<style>
#cust {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 70%;
margin:20px 0 0 0;
}
#cust td, #cust th {
padding: 8px;
}
#cust tr:nth-child(even){background-color: #f2f2f2;}
#cust tr:hover {background-color: #ddd;}
#cust th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: burlywood;
color: white;
}
h1
{
font-size: 16px;
line-height: 10px;
}
th,td
{
font-size: 14px;
text-align: left;
max-width: 300px;
}
</style></head></html>
<?php
function st_table()
{
echo "<br><h1>TECHNECIAL STAFF</h1>";
$con =mysqli_connect("localhost","root","");
mysqli_select_db($con,"info");
$flag=0;
$result = mysqli_query($con,"SELECT * FROM st");
echo "<table id = 'cust' align = 'center' border = '1' cellspacing = '0' cellpadding = '0' width = '70'>
<tr>
<th>Sl. no</th>
<th>Name of The Staff</th>
</tr>
<br>";
while($row = mysqli_fetch_array($result))
{
echo "<tr><td style = 'color : black'>" . $row['no'] . "</td><td><a href='details_os.php?no=".$row['no']."'' style = 'color : dimgray'>". $row['nos'] . "</a></td></tr>";
}
echo "</table>";
mysqli_close($con);
echo "<br><br><br><br> NON-TECHNECIAL STAFF";
$con =mysqli_connect("localhost","root","");
mysqli_select_db($con,"info");
$flag=0;
$result = mysqli_query($con,"SELECT * FROM nonst");
echo "<table id = 'cust' align = 'center' border = '1' cellspacing = '0' cellpadding = '0' width = '700'>
<th>Sl. no</th>
<th>Name of The Staff</th>
</tr>
<br>";
while($row = mysqli_fetch_array($result))
{
echo "<tr><td style = 'color : black'>" . $row['no'] . "</td><td><a href='details_nos.php?no=".$row['no']."'' style = 'color : dimgray'>". $row['nnos'] . "</a></td></tr>";
}
echo "</table>";
mysqli_close($con);
}
function details_admin()
{
$con =mysqli_connect("localhost","root","");
mysqli_select_db($con,"info");
$flag=0;
$no=$_REQUEST['no'];
$result = mysqli_query($con,"SELECT * FROM st");
while($row = mysqli_fetch_array($result))
{
if($row['no']==$no)
{
echo "Welcome <label style='color:blue;'>".$row['nos']."</label>";
echo "<br>";
echo "<table id = 'cust' align = 'center' cellspacing = '1px' cellpadding = '0' width = '700'>
<tr><th>Employee ID.</th><td>".$row['no'] ."</td><td rowspan=4><img width='100px' height ='120px' src='cse/".$row['no'].".jpg'></td></tr>";
echo "
<tr><th>Name of Staff</th><td>".$row['nos'] ."</td></tr>";
echo "
<tr><th>Qualification</th><td>".$row['qua'] ."</td></tr>";
echo "
<tr><th>Designation</th><td>".$row['des'] ."</td></tr>";
echo "
<tr><th>Department</th><td>".$row['department'] ."</td></tr>";
echo "
<tr><th>Date of Birth</th><td>".$row['dateofbirth'] ."</td></tr>";
echo "
<tr><th>Date of Joining</th><td>".$row['dateofjoining'] ."</td></tr>";
echo "
<tr><th>Specialisation</th><td>".$row['spe'] ."</td></tr>";
echo "
<tr><th>Experience</th><td>".$row['experience'] ."</td></tr>";
echo "
<tr><th>Subject Taught</th><td>".$row['subjecttaught'] ."</td></tr>";
echo "
<tr><th>No. of Publication</th><td>".$row['nopublications'] ."</td></tr>";
echo "
<tr><th>Books Authored</th><td>".$row['books_monogram'] ."</td></tr>";
echo "
<tr><th>Guest Lectures Delivered</th><td>".$row['guestlecture_resouceperson'] ."</td></tr>";
echo "
<tr><th>Email Id</th><td>".$row['emailid'] ."</td></tr>";
echo "
<tr><th>Mobile No.</th><td>".$row['mobileno'] ."</td></tr>";
$temp = $row['no'];
echo "</table>";
}
}
}
function nondetails_admin()
{
$con =mysqli_connect("localhost","root","");
mysqli_select_db($con,"info");
$flag=0;
$no=$_REQUEST['no'];
$result = mysqli_query($con,"SELECT * FROM nonst");
echo "<table id = 'cust' align = 'center' border = '1' cellspacing = '0' cellpadding = '0' width = '700'>
<th>Sl. no</th>
<th>Name of Staff</th>
<th>Photo</th>
<th>Qualification</th>
<th>Designation</th>
<th>Specialisation</th>
</tr>
<br>";
while($row = mysqli_fetch_array($result))
{
if($row['no']==$no)
{
echo "<br><tr><td>".$row['no'] ."</td>";
echo "<td>".$row['nnos'] ."</td>";
echo"<td></td>";
echo "<td>".$row['nqua'] ."</td>";
echo "<td>".$row['ndes'] ."</td>";
echo "<td>".$row['nspe'] ."</td></tr>";
$temp = $row['no'];
//Beginning new table here...
echo "</table>";
}
}
}
?>