PHP开发简单图书借阅系统之创建主页面
本节我们来创建用户登录后跳转的主页面。

主页头部是各种书的目录分类。
主页面用来显示id号,书名,价格,入库时间,类别,现有书的库存数,以及书的借阅操作。
主页面底部用来显示分页相关的项和信息总数
前面创建了可以调用的公共头部文件head.php
<?php include("head.php");?>使用<table>标签,使用<tr><td>来简单的布局
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图书管理系统主页面</title>
<style>
body,td,th {font-family: 微软雅黑;font-size: 9px;color: #222;}
body {background-color: #FFFFFF;line-height:20px;}
a:link {color: #222;text-decoration: none;}
a:visited {text-decoration: none;color: #222;}
a:hover {text-decoration: underline;color: #FF0000;}
a:active {text-decoration: none;color: #999999;}
</style>
</head>
<body>
<?php include("head.php");?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="" height="30" align="center" bgcolor="#FFFFFF" class="line2">ID</td>
<td width="" align="center" bgcolor="#FFFFFF" class="line2">书名</td>
<td width="" align="center" bgcolor="#FFFFFF" class="line2">价格</td>
<td width="" align="center" bgcolor="#FFFFFF" class="line2">入库时间</td>
<td width="" align="center" bgcolor="#FFFFFF" class="line2">类别</td>
<td width="" align="center" bgcolor="#FFFFFF" class="line2">现有数量(本)</td>
<td width="" align="center" bgcolor="#FFFFFF" class="line2">操作</td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#FFFFFF"></td>
<td align="center" bgcolor="#FFFFFF"></td>
<td align="center" bgcolor="#FFFFFF"></td>
<td align="center" bgcolor="#FFFFFF"></td>
<td align="center" bgcolor="#FFFFFF"></td>
<td align="center" bgcolor="#FFFFFF"></td>
<td align="center" bgcolor="#FFFFFF" class="line2"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="35" align="center" bgcolor="#FFFFFF">
首页 | 上一页 |<a href="">下一页</a> |<a href="">末页</a>
页次:/页 共有/条信息</td>
</tr>
</table>
<table width="100%" height="30" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="19" align="center"> Copyright @ 2013-2016</td>
</tr>
</table>
</body>
</html>
