-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_noti_reg_int.php
89 lines (72 loc) · 1.88 KB
/
admin_noti_reg_int.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
<?php
session_start();
if(!isset($_SESSION['user']))
{
header("Location: vit.php");
}
if($_SESSION['user']=='student_int' )
{
header("Location: index_student_intern.php");
}
if($_SESSION['user']=='student_place' )
{
header("Location: index_student_placement.php");
}
if($_SESSION['user']=='company')
{
header("Location: index_company.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Notification Panel</title>
<link rel="stylesheet" type="text/css" href="1.css">
<link rel="shortcut icon" type="image/png" href="vit.png">
<link rel="stylesheet" type="text/css" href="stl.css">
<link rel="stylesheet" type="text/css" href="style4.css">
</head>
<body >
<div class="list-unstyled3" >
<ul>
<li><a href="vit.php"><img src="vit.png" alt="VIT Pune" class="logo2" height="40" align="left"/></a></li>
<li style="float:right"><a href="logout.php" title="<?php echo $_SESSION['admin_name']; ?> ">Log Out</a></li>
<div class="para">
<p> Training & Placement,VIT Pune</p>
</div>
</ul>
</div>
<div class="header">
<h2>Registered-Intern</h2>
</div>
<center>
<br>
<div class="container-fluid" style="width:95%;">
<div id="table">
<table>
<tr>
<th>Student Id</th>
<th>Student Name</th>
<th>Company Name</th>
</tr>
<?php
$db = mysqli_connect('localhost', 'root', '', 'placement');
$user_check_query = "SELECT * FROM registered_interns order by COMPANY_NAME";
$result = mysqli_query($db, $user_check_query);
while(($count=mysqli_fetch_array($result)) )
{
?>
<tr>
<td><?php echo $count['STUDENT_ID']; ?></td>
<td><?php echo $count['STUDENT_NAME']; ?></td>
<td><?php echo $count['COMPANY_NAME']; ?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</center>
</body>
</html>