-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathreader_info.php
76 lines (68 loc) · 2.9 KB
/
reader_info.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
66
67
68
69
70
71
72
73
74
75
76
<?php
session_start();
$userid=$_SESSION['userid'];
include ('mysqli_connect.php');
$sql="select name from reader_card where reader_id={$userid}";
$res=mysqli_query($dbc,$sql);
$result=mysqli_fetch_array($res);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>我的图书馆 || 我的信息</title>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
body{
width: 100%;
overflow: hidden;
background: url("300046-106.jpg") no-repeat;
background-size:cover;
color: antiquewhite;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">我的图书馆</a>
</div>
<div>
<ul class="nav navbar-nav">
<li ><a href="reader_index.php">主页</a></li>
<li><a href="reader_querybook.php">图书查询</a></li>
<li><a href="reader_borrow.php">我的借阅</a></li>
<li class="active"><a href="reader_info.php">个人信息</a></li>
<li><a href="reader_repass.php">密码修改</a></li>
<li><a href="reader_guashi.php">证件挂失</a></li>
<li><a href="index.php">退出</a></li>
</ul>
</div>
</div>
</nav>
<?php
$sqla="select * from reader_info where reader_id={$userid} ;";
$resa=mysqli_query($dbc,$sqla);
$resulta=mysqli_fetch_array($resa);
?>
<div class="col-xs-5 col-md-offset-3" style="position: relative;top: 25%">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">我的信息</h3>
</div>
<div class="panel-body">
<a href="#" class="list-group-item"><?php echo "<p>读者证号:{$resulta['reader_id']}</p><br/>"; ?></a>
<a href="#" class="list-group-item"><?php echo "<p>姓名:{$resulta['name']}</p><br/>"; ?></a>
<a href="#" class="list-group-item"><?php echo "<p>性别:{$resulta['sex']}</p><br/>"; ?></a>
<a href="#" class="list-group-item"><?php echo "<p>生日:{$resulta['birth']}</p><br/>"; ?></a>
<a href="#" class="list-group-item"><?php echo "<p>居住地:{$resulta['address']}</p><br/>"; ?></a>
<a href="#" class="list-group-item"><?php echo "<p>电话:{$resulta['telcode']}</p><br/>"; ?></a>
<?php echo "<a style='color: #AA0000;font-size: larger' href='reader_info_edit.php'><strong>修改</strong></a>"; ?>
</div>
</div>
</div>
</body>
</html>