form.php
来自「仿榕树下文章系统春节版 1. 将makpass.php文件的root_pass修」· PHP 代码 · 共 147 行
PHP
147 行
<?
include ("admin_log.php");
include ("xqfunc.php");
?>
<HTML>
<HEAD>
<META http-equiv='Content-Type' content='text/html; charset=gb2312'>
<TITLE>HOMEPAGE BUILDER ADMIN CENTER</TITLE>
</HEAD>
<LINK href="style.css" type=text/css rel=stylesheet>
<BODY BGCOLOR='EFEFEF'>
<table width=100% cellpadding=4 cellspacing=0 border=0>
<tr>
<td bgcolor=#8FB373 colspan=3><font color=#FFFFFF> <b>分类管理</b></font> </td>
</tr>
</table>
<center>
<table border=0 cellPadding=0 cellSpacing=0 width="98%"><tr><td>
<br><b> 1.新建一个一级分类:</b><br>
<TABLE bgColor=#c0c0c0 border=0 cellPadding=1 cellSpacing=1 width="100%">
<form action="form1.php" method=POST>
<tr>
<TD bgColor=#c0c0c0 colspan=4>
<font face=verdana> 说明:在建立二级分类前,请先建立一级分类。
</td>
</tr>
<TR >
<td bgcolor=efefef align=center width=8%>名称</td>
<td bgcolor=white width=34%> <input type=text name="form_name" size=12> </td>
<td bgcolor=efefef align=center width=8%>描述</td>
<td bgcolor=white width=50%> <input type=text name="form_dis" size=24>
<input type=hidden name="act" value="addform">
<input type=submit value="提 交" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#a6a7d9'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
</td>
</tr>
</form>
</table>
<br><b> 2.新建一个二级分类:</b><br>
<TABLE bgColor=#c0c0c0 border=0 cellPadding=1 cellSpacing=1 width="100%"> <form action="form1.php" method=POST>
<tr>
<TD bgColor=#c0c0c0 colspan=4>
<font face=verdana> 说明:id必须是小写英文字母,用来建立存储数据的文件夹。
</td>
</tr>
<TR >
<td bgcolor=efefef align=center width=8%> id </td>
<td bgcolor=white width=34%> <input type=text name="type_id" size=12> </td>
<td bgcolor=efefef align=center width=8%>名称</td>
<td bgcolor=white width=50%> <input type=text name="type_name" size=24> </td>
</tr><tr>
<td bgcolor=efefef align=center width=8%>描述</td>
<td bgcolor=white colspan=3> <input type=text name="type_dis" size=24>
<input type=hidden name="act" value="addtype">
<input type=submit value="提 交" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#a6a7d9'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
</td>
</tr>
</form>
</table>
<br><b> 3.改变一级分类或二级分类的顺序</b><br>
<TABLE bgColor=#c0c0c0 border=0 cellPadding=1 cellSpacing=1 width="100%">
<form action="form1.php" method=POST>
<tr>
<TD bgColor=#c0c0c0 colspan=4>
<font face=verdana> 说明:分类一将转移到分类二的后面。
</td>
</tr>
<TR >
<td bgcolor=efefef align=center width=8%>分类一 </td>
<td bgcolor=white width=34%> <select name="item1">
<?
echo "<option value=\"all\">-=请选择分类=-</option>";
make_type()
?>
</select> 移动到</td>
<td bgcolor=efefef align=center width=8%>分类二</td>
<td bgcolor=white width=50%> <select name="item2">
<?
echo "<option value=\"all\">-=请选择分类=-</option>";
make_type()
?>
</select> 的后面
<input type=hidden name="act" value="head">
<input type=submit value="提 交" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#a6a7d9'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
</td>
</tr>
</form>
</table>
<br><b>4.删除/修改分类</b></b>
<TABLE bgColor=#c0c0c0 border=0 cellPadding=1 cellSpacing=1 width="100%">
<form action="form1.php" method=POST>
<tr >
<TD bgColor=#c0c0c0 colspan=4>
<font face=verdana> 说明:在这里你可以删除/修改/排序分类<input type=hidden name="act" value="delmod">
</td></tr>
<TR><td bgcolor=efefef align=center width=8%>
分类:
</td>
<td bgcolor=white>
<select name="target">
<?
echo "<option value=\"all\">-=请选择分类=-</option>";
make_type()
?>
</select>
</td>
<td bgcolor=efefef align=center width=8%>
动作:
</td>
<td bgcolor=white width=50%>
<input type=radio checked name="job" value="modify">
修改
<input type=radio name="job" value="delete">
删除
</td></tr>
<TR> <td bgcolor=efefef align=center width=8%>
新名称
</td>
<td bgcolor=white>
<input type=text name="new_name" size=24>
<td bgcolor=efefef align=center width=8%>
新描述
</td>
<td bgcolor=white width=50%>
<input type=text name="new_dis" size=24>
<input type=submit value="提 交" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#a6a7d9'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
</font><br>
</td></tr> </form> </table>
</td></tr></table>
</center>
<br>
<table width=100% cellpadding=6 cellspacing=0 border=0>
<tr>
<td bgcolor=#8FB373 colspan=3> <p><font color=#FFFFFF> <b>程式美化:魔力闪客~~Ten 发布网站:奇迹数码 </b></font></p>
</td>
</tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?