admin/cat_edit.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php include("check_login.php");
include("../conn.php");
if($Action=="save")
{
	$leibie=$_POST[leibie];
	$sql=mysql_query("select * from type where typename='".$leibie."'",$conn);

$sql="update type set typename='".$leibie."' where id=$id";
//echo $sql;
mysql_query($sql);
echo"<script>alert('类别修改成功!');window.location.href='cat.php';</script>";
}
$sql=mysql_query("select * from type where id=$id",$conn);
$info=mysql_fetch_array($sql);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改汽车类别</title>
<link rel="stylesheet" type="text/css" href="images/admincp.css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<script language="javascript">
 function chkinput(form)
 {
   if(form.leibie.value=="")
    {
	  alert('请输入汽车类别名!');
	  form.leibie.select();
	  return(false);
	}
   return(true);
 }

</script>
<body leftmargin="0" bottommargin="0" topmargin="0">
<br>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
 <form name="form1" method="post" action="?Action=save&id=<?php echo $info[id]?>" onSubmit="return chkinput(this);">
  <tr>
    <td height="30" bgcolor="#E7F3FB"><div align="center" >修改汽车类别</div></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#E7F3FB"><table width="400" height="33" border="0" cellpadding="0" cellspacing="1">
        <tr>
          <td width="90" bgcolor="#FFFFFF"><div align="center">类别名称:</div></td>
          <td width="307" bgcolor="#FFFFFF"><div align="left">
              &nbsp;
              <input type="text" name="leibie" class="inputcss" size="40" value="<?=$info[typename]?>">
          </div></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="25"><div align="center">
        <input name="submit" type="submit" class="buttoncss" id="submit" value="修改">
后面还有 6 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。