Paparan halaman utama halaman pengurusan bahagian belakang
1. Buat kod admin.php
seperti berikut:
<frameset cols="10%,*" frameborder="1" framespacing="0" border="1"> <frame src="left.php" > <frame src="main.php" name="main"> </frameset>
2 Buat kod kiri baru seperti berikut:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>添加类别</title> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <ul class="type"> <li><a href="typelist.php" target="main">类别管理</a></li> <li><a href="typeadd.php" target="main">添加分类</a></li> </ul> <ul class="type"> <li><a href="newlist.php" target="main">新闻列表</a></li> <li><a href="newadd.php" target="main">添加新闻</a></li> </ul> </body> </html>
3
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>添加类别</title> </head> <body> <h1>欢迎进入后台管理</h1> </body> </html>4 Paparan halaman adalah seperti berikut: