-
Notifications
You must be signed in to change notification settings - Fork 0
/
teacherDetail.php
65 lines (52 loc) · 1.96 KB
/
teacherDetail.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
<?php
require_once("../config/connDB.php");
require_once("../config/config.php");
include("controls/forbidden.php");
$teacher = $_SESSION["NAME"];
$sql = "SELECT * FROM `members`WHERE name='$teacher'";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);
$total = mysql_num_rows($result);
?>
<!DOCTYPE html>
<html lang="en">
<?php include("template/head.php") ?>
<body>
<div id="wrapper">
<?php include("template/nav.php"); ?>
<div id="page-wrapper">
<div class="container-fluid">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
講師個人資料 <small>Lecturer Info</small>
</h1>
<ol class="breadcrumb">
<li class="active">
<i class="fa fa-dashboard"></i> Dashboard
</li>
</ol>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<ul>
<li>姓名:<?php echo $row["name"];?></li>
<li>Email:<?php echo $row["mail"];?></li>
<li>帳號:<?php echo $row["user"];?></li>
<li>密碼:<?php echo $row["pw"];?></li>
<li>遠東銀行帳號:<?php echo $row["bank"];?></li>
</ul>
<a href="teacherUpdate.php?mid=<?php echo $row["mid"];?>">修改資料</a>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
</div>
<!-- jQuery -->
<?php include("template/footer.php"); ?>
</body>
</html>