PHP develops simple news release system news list page
In this section we will start to explain the news list page, a more important page in the system
<html> <body> <table cellspacing="0" cellpadding="0" align="center" bgcolor="#ccc" > <tr> <th>編號</th> <th>文章標題</th> <th>文章作者</th> <th>文章內容</th> <th>發(fā)布時間</th> <th>編輯文章</th> </tr> <tr> <td align="center" style="border:1px solid #000; width: 5%;"></td> <td align="center" style="border:1px solid #000; width: 10%;"></td> <td align="center" style="border:1px solid #000; width: 10%;"></td> <td align="center" style="border:1px solid #000; width: 15%;"></td> <td align="center" style="border:1px solid #000; width: 10%;"></td> <td align="center" style="border:1px solid #000; width: 10%;"> <a href="#"><font color="red">修改</font></a> <a href="#"><font color="red">刪除</font></a> </td> </tr> </table> </body> </html>Use <div> and <a> tags at the bottom of the page to implement paging function
<body> <div> 共?頁 |查到?條記錄| 當前第?頁| <a href="#">上一頁|</a> <a href="#">|下一頁</a> </div> </body>We added a <form> form at the head to add a search box function.
<body> <form method="get" action="" > <input type="text" name="keyword" value=""/> <input type="submit" value="搜索"/> </form> </body>