Repository navigation
Expand file tree
/
Copy pathdisplay.php
More file actions
95 lines (94 loc) · 3.97 KB
/
Copy pathdisplay.php
File metadata and controls
95 lines (94 loc) · 3.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
<?php
session_start();
include 'dbconn.php';
if (isset($_SESSION['prid']))
{
}
else
{
$_SESSION['prid']=1;
}
?>
<html>
<head>
<title>SRKR Resources</title>
<link rel="stylesheet" href="styles/displayy.css">
</head>
<body>
<nav>
<div class="logo">
<img src="images/logo.png" alt="logo">
</div>
<div class="menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="project.php">Projects</a></li>
<li><a href="contactus.php">Contact us</a></li>
<li><a href="profile.php">Profile</a></li>
<li><a href="">|</a></li>
<li><a href="login.php">
<?php if(isset($_SESSION['id'])){ echo "Logout";}
else{ echo "Login";};
?>
</a></li>
</ul>
</div>
</nav>
<?php
$sql="select * from projects where pid=".$_SESSION['prid'].";";
$presults=mysqli_query($conn,$sql);
$pres=mysqli_fetch_assoc($presults);
?>
<div class="content">
<div class="mainbox">
<h1>Project Details</h1>
<div class="formbox">
<div class="ptit">
<label>Project Title:</label><br>
<h3><?php echo $pres['ptitle']; ?></h3>
</div>
<div class="details">
<label>Project Mentor Details</label>
<table>
<tr>
<th>Mentor Name</th>
<th>Mentor ID</th>
<th>Mentor Mobile No.</th>
<th>Mentor Branch</th>
</tr>
<tr>
<td><center><?php echo $pres['pmname']; ?></center></td>
<td><center><?php echo $pres['pmid']; ?></center></td>
<td><center><?php echo $pres['pmmobile']; ?></center></td>
<td><center><?php echo $pres['pmbranch']; ?></center></td>
</tr>
</table>
</div>
<div class="details">
<label>Project Team Leader Details</label>
<table>
<tr>
<th>Student Name</th>
<th>Student ID</th>
<th>Student Mobile No.</th>
<th>Student Branch</th>
</tr>
<tr>
<td><center><?php echo $pres['stdname']; ?></center></td>
<td><center><?php echo $pres['stdid']; ?></center></td>
<td><center><?php echo $pres['stdmobile']; ?></center></td>
<td><center><?php echo $pres['stdbranch']; ?></center></td>
</tr>
</table>
</div>
<div class="prdetails">
<label>Project Description</label>
<p><?php echo $pres['pdesc']; ?></p>
</div>
<div class="prfile"><a href="<?php echo 'uploadedfiles/'.$pres['stdid'].'.zip'; ?>">Download Project Files</a></div>
<center><button><a href="search.php">Back</a></button></center>
</div>
</div>
</div>
</body>
</html>