admin/class.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?
require("../inc/mysql_connect.php");
if($action=="add")//添加
{
if($anclass2=="")
{
echo"<script>alert('分类名称不能为空');history.back();</script>";
exit;
}
$sql="insert into class (anclass,anclassidorder) values('$anclass2',$anclassidorder2)";
mysql_query($sql);
}
//修改
if($action=="edit")
{
if($anclass=="")
{
echo"<script>alert('分类名称不能为空');history.back();</script>";
exit;
}
$sql="update class set anclass='$anclass',anclassidorder=$anclassidorder where anclassid=$id";
mysql_query($sql);
}
//删除
if($action=="del")
{
$sql="delete from class where anclassid=$id";
mysql_query($sql);
}
?>
<html><head><title>大类管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>
<body><div align="center">
<table class="tableBorder" width="90%" border="1" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#C0C0C0">
<tr>
<th colspan="3" bgcolor="#E8F1FF" >家<b>政类添加</b></th>
</tr>
<tr bgcolor="#3C8CC7" align="center">
<td class="forumRowHighlight" width="40%" align="center" bgcolor="#F7F7F7"> 分类名称</td>
<td class="forumRowHighlight" width="20%" align="center" bgcolor="#F7F7F7"> 分类排序</td>
<td class="forumRowHighlight" width="20%" align="center" bgcolor="#F7F7F7"> 确定操作</td>
</tr>
<form name="form1" method="post" action="?action=add">
<tr bgcolor="#E8F1FF" align="center">
<td class="forumRowHighlight" bgcolor="#F7F7F7">
<input name="anclass2" type="text" id="anclass2" size="12">
</td>
<td class="forumRowHighlight" bgcolor="#F7F7F7">
<input name="anclassidorder2" type="text" id="anclassidorder2" size="4" value="0">
</td>
<td class="forumRowHighlight" bgcolor="#F7F7F7">
<input type="submit" name="Submit3" value="添 加">
</td>
</tr>
后面还有 43 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。