亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

PHP développe une page de liste d'actualités simple pour un système de communiqués de presse

Dans cette section, nous allons commencer à expliquer la page de liste des actualités, une page plus importante dans le système

1606.png

Ici, nous utilisons principalement la balise <table> un tableau pour afficher le titre, l'auteur, le contenu, l'heure de publication, l'heure de modification de l'actualité et le module d'édition de l'actualité

<html>
<body>
    <table cellspacing="0" cellpadding="0" align="center" bgcolor="#ccc" >
     <tr>
        <th>編號</th>
        <th>文章標題</th>
        <th>文章作者</th>
        <th>文章內(nèi)容</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>

utilisent les balises <div> et <a> pour implémenter la fonction de pagination

<body>
    <div>
      共?頁 |查到?條記錄| 當前第?頁|
     <a href="#">上一頁|</a>
     <a href="#">|下一頁</a>
    </div>
</body>

Nous avons ajouté un formulaire <form> en tête pour ajouter une fonction de champ de recherche.

<body>
    <form method="get" action="" >
      <input type="text" name="keyword" value=""/>
      <input type="submit" value="搜索"/>
    </form>
</body>


Formation continue
||
<!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>文章內(nèi)容</th> <th>發(fā)布時間</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>
soumettreRéinitialiser le code