-
Notifications
You must be signed in to change notification settings - Fork 2
/
admin_mge_student_show.php
64 lines (47 loc) · 1.71 KB
/
admin_mge_student_show.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
<?php include("session_start.php"); ?>
<?php include("admin_authenticate.php"); ?>
<?php
// form submited code
if(isset($_GET['student_id']))
{
include('db_connection.php');
$sql = 'SELECT project_id, pj.name pj_name, sp.name sp_name, st.name st_name, ' .
'FROM (project pj ' .
'LEFT JOIN supervisor sp ON pj.supervisor_id = sp.supervisor_id) ' .
'LEFT JOIN student st ON pj.student_id = st.student_id ' .
'WHERE pj.tutor_id = ' . $_SESSION['tutor_id'] . ';';
$result = mysql_query($sql);
//echo '<br />sql = ' . $sql . '<br />';
//exit;
$row = mysql_fetch_array($result);
//mysql_close($con);
//echo "<br>end";
}
?>
<?php include("top.php"); ?>
<?php include("admin_submenu.php"); ?>
<div id="contenttext">
<div style="padding:10px">
<span class="titletext">Student Record</span> </div>
<div class="bodytext" style="padding:12px;" align="justify">
<strong>Student Record</strong>
<p>Here we can see a Student record.</p>
<table align="center" border="1">
<!-- <form action="admin_mge_student_new.php" method="post"> -->
<tr><td><strong>student ID:</strong> </td><td><?php echo $row['student_id'];?> </td></tr>
<tr><td><strong>Login:</strong> </td><td><?php echo $row['login'];?> </td></tr>
<tr><td><strong>Password:</strong> </td><td><?php echo $row['password'];?> </td></tr>
<tr><td><strong>Name:</strong> </td><td><?php echo $row['name'];?> </td></tr>
<tr><td align="center"> <input type="button" value="Back" onclick="location.href = 'admin_mge_student_main.php';" />
</td><td align="center" />
<!--
<input type="submit" value="Create" />
<input type="reset" />
-->
</td></tr>
<!-- </form> -->
</table>
</div>
</div>
<?php include("bottom.php"); ?>