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>发布时间</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>
new file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>新闻列表页</title>
</head>
<body>
<form method="get" action="" style="margin:10px;">
<input type="text" name="keyword" value=""/>
<input type="submit" value="搜索"/>
</form>
<table cellspacing="0" cellpadding="0" align="center" bgcolor="#ccc">
<tr>
<th>编号</th>
<th>文章标题</th>
<th>文章作者</th>
<th>文章内容</th>
<th>发布时间</th>
<th>编辑文章</th>
</tr>
<tr>
<td align="center" style="border:1px solid #000; width: 8%;"></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: 13%;">
<a href="#"><font color="red">修改</font></a>
<a href="#"><font color="red">删除</font></a>
</td>
</tr>
</table>
<div style="margin-left: 40px;">
共?页 |查到?条记录| 当前第?页|
<a href="#">上一页|</a>
<a href="#">|下一页</a>
</div>
</body>
</html>
Preview
Clear
- Course Recommendations
- Courseware download
The courseware is not available for download at the moment. The staff is currently organizing it. Please pay more attention to this course in the future~
Students who have watched this course are also learning
Let's briefly talk about starting a business in PHP
Quick introduction to web front-end development
Large-scale practical Tianlongbabu development of Mini version MVC framework imitating the encyclopedia website of embarrassing things
Getting Started with PHP Practical Development: PHP Quick Creation [Small Business Forum]
Login verification and classic message board
Computer network knowledge collection
Quick Start Node.JS Full Version
The front-end course that understands you best: HTML5/CSS3/ES6/NPM/Vue/...[Original]
Write your own PHP MVC framework (40 chapters in depth/big details/must read for newbies to advance)
















