-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPVCpage.php
More file actions
124 lines (119 loc) · 4.97 KB
/
Copy pathPVCpage.php
File metadata and controls
124 lines (119 loc) · 4.97 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
<?php
ob_start();
session_start();
include_once 'dbconnEE.php';
if(isset($_SESSION['User_Name'])){
$user = $_SESSION['User_Name'];
}
//if no existing session, user logged out
if(!isset($_SESSION['User_Name'])){
header("Location: indexEE.php");
return;
echo $_SESSION['User_Name'];
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<!-- Meta for resizing the site to device width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<img src="greenwich.png" alt="logo" height="80" width="160">
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- navbar-brand is hidden on larger screens, but visible when the menu is collapsed -->
<a class="navbar-brand" href="PVCpage.php">PVC home</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="personalDetailsPVC.php">View/Update profile</a></li>
<li><a href="updatePassPVC.php">Update password</a></li>
<li><a href="logout.php">Log out</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<h5><b>Welcome, <?php echo $_SESSION ['User_Name'];?></b></h5><br>
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
Faculty:
<form name="regForm" method="POST">
<select class="form-control" name="faculty" id="facList">
<option value="Architecture, Computing and Humanities">Architecture, Computing and Humanities</option>
<option value="Business School">Business School</option>
<option value="Faculty of Engineering & Science">Faculty of Engineering & Science</option>
<option value="Faculty of Education and Health">Faculty of Education and Health</option>
</select>
<br>
<input type="submit" class="btn btn-default" name="submit1" value="Select"><br><br>
</div>
</form>
</div><br>
<?php
if(isset($_POST["submit1"]))
{
$faculty = $_POST['faculty'];
$sql = mysqli_query($conn, "select * from User inner join final_report on User.User_Name = final_report.User_Name where Faculty = '$faculty'");
$no=1;
?>
<table class="table table-hover">
<th>No</th>
<th>Name</th>
<th>Award</th>
<th>Academic year</th>
<th>Date started</th>
<th>Date submitted</th>
<th>View Report</th>
<th>View Response</th>
<?php
while ($data = mysqli_fetch_array($sql))
{
?>
<tr>
<td><?php echo $no++ ?></td>
<td><?php echo $data['First_Name'] ?><b> </b><?php echo $data['Sur_Name'] ?></td>
<td><?php echo $data['Awards'] ?></td>
<td><?php echo $data['year'] ?></td>
<td><?php echo $data['Start'] ?></td>
<td><?php echo $data['Submitted'] ?></td>
<td><a href="viewPVC.php?report_id=<?php echo $data['report_id'] ?>"><?php echo $data['complete'] ?></td>
<td><a href="view4.php?report_id=<?php echo $data['report_id'] ?>">Response</td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
</div>
</div>
</div>
</body>
</html>