-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanager.php
More file actions
35 lines (27 loc) · 1.11 KB
/
manager.php
File metadata and controls
35 lines (27 loc) · 1.11 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
<?php include ("header.php");
if ($_SESSION['usertype']=='manager') {
include ("database.php");
$qry = "SELECT * FROM projectbid INNER JOIN projects ON projectbid.pid=projects.pid";
$res = mysqli_query ($db,$qry);
?>
<html>
<head>
<link rel="stylesheet" href="student.css">
</head>
<body>
<h1 style="text-align:center;color:white;font-size:43px;">Projects</h1><br>
<?php
while ($row = $res->fetch_assoc()) {
?>
<div class="div1" onclick="window.location='bidding.php?pid=<?php echo $row['pid']; ?>'">
<h1 style="font-size:25px; text-align: center;"><?php echo $row['phead']; ?><br></h1>
<h1 style="font-size:25px;">Project info:<br></h1>
<p style="font-size:17px;font-family:italic;color:black"><?php echo $row['pdesc']; ?></p>
<p style="font-size:17px;font-family:italic;color:black">BID VALUE : <?php echo $row['bid']; ?>/-</p>
</div>
<?php } ?>
</body>
</html>
<?php } else {?><script type="text/javascript">window.location.href="login.php?error=autherror"</script><?php }
#header("Location:login.php?error=autherror");
?>