PHP develops a simple book lending system to create the main page
In this section we will create the main page that users will jump to after logging in.
#The header of the homepage is the catalog classification of various books.
The main page is used to display the ID number, book title, price, storage time, category, existing book inventory, and book borrowing operations.
The bottom of the main page is used to display the total number of items and information related to paging
The public header file head.php that can be called was created earlier
<?php include("head.php");?>
Use <table> Tags, use<tr><td> for simple layout
<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>