admin/kemu_edit.php

(完整代码) 1KB

<?php
include("admin.php");
$id=$_GET['id'];
$rs=mysql_query("SELECT * FROM `".$ad."kemu` WHERE `id` ='{$id}'");
$rw=mysql_fetch_assoc($rs);
if($_POST['cid']&&$_POST['name']){
mysql_query("UPDATE `".$ad."kemu` SET `cid` = '{$_POST['cid']}',`name` = '{$_POST['name']}',`time` = NOW( ) WHERE `".$ad."kemu`.`id` ={$id} LIMIT 1 ;");
  echo"<script language=javascript>  
alert( \"科目修改成功!\"  );
location.href = \"admin_kemu.php\"
</script>";
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>科目管理</title>
<link href="main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>

<body>
<p>&nbsp;</p>
<form name="PosForm" method="post" action="" style="margin:0">
	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" class="td_title">修改科目</td>
		</tr>
		<tr>
			<td height="23" class="td_content">科目名称:
				<input name="name" type="text" class="input_1" id="name" size="50" value="<?=$rw['name']?>">
排序
<input name="cid" type="text" class="input_1" id="cid" value="<?=$rw['cid']?>" size="20">			
	<input name="Submit" type="submit" class="input_1" value="确定修改">
	
	        </td>
		</tr>
	</table>
	<br>
</form>
</body>
</html>

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

AI 解读 AI

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

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