-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
81 lines (81 loc) · 2.8 KB
/
index.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
77
78
79
80
81
<!-- 网上书店首页 ,248页,曹福凯,PHP+Mysql企业项目开发案例教程-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>网上书店</title>
</head>
<body bgcolor="#f4f4f4">
<table width="100%" border="0" align="center">
<tr>
<td width="27%" height="68" rowspan="2">
<img width="200" height="106" src="images/book_logo.jpg"/>
</td>
<td height="68" colspan="4">
<font face="隶书" size="+4" color="#cccc00">网上书店</font>
</td>
<td width="7%" rowspan="2">
<?php
session_start();
if(isset($_SESSION['username'])){
echo $_SESSION['username'];
?>
<a href="logout.php">退出</a>
<?php
}else{
?>
<label><a href="register.php">注册</a></label><br/>
<label><a href="login.php">登录</a> </td></label>
<?php
}
?>
</tr>
<tr>
<td colspan="4" align="center">欢迎光临我们的网站</td>
</tr>
<tr>
<td width="15%" height="20" align="left" valign="middle">
<a href="index.php">首页</a>
</td>
<td width="15%" height="20" align="left" valign="middle">
<a href="allbooklist.php">所有图书</a>
</td>
<td width="20%" height="20"><a href="allbooklist_pg.php">所有图书(分页)</a></td>
<td width="15%" height="20" align="left" valign="middle">
<a href="insertbook.php">插入书籍</a>
</td>
<td width="20%" height="20" align="left" valign="middle">
<a href="deletebook.php">编辑删除图书</a>
</td>
<td width="15%" height="20"> </td>
</tr>
<tr>
<td height="169" colspan="6" align="center">
<form id="form1" name="form1" method="post" action="bookinfolist.php">
请选择要查找的书籍类型:
<select name="BookType" id="BookType">
<option value="1">计算机类图书</option>
<option value="2">医药类书籍</option>
<option value="3">外语类书籍</option>
</select>
<p><input type="submit" name="submit" value="提交"/>
</p>
</form>
</td>
</tr>
<tr>
<td colspan="6"><table width="100%" border="0">
<hr>
<tr>
<td align="center" valign="middle">Copyright@2006 lanmo </td>
</tr>
<tr>
<td align="center" valign="middle">XXX Email:lanmo@myweb.com</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>