📄 config_delete_table.php
字号:
<?php
session_start();
include("checks.php");
include("../inc/conn.php");
if(isset($_GET["act"]))
{ $dates=$_POST["dates"];
$ok=mysql_query("delete from drop_bill where drop_date='$dates'",$conn);
$oks=mysql_query("delete from drop_bills where drop_date='$dates'",$conn);
if($ok)
{ echo "$dates 期数据删除成功!";
}else echo "$dates 期不存在";
echo "<script language='javascript'>window.location.href='config_delete_table.php?menu=6'</script>";
}
$_SESSION["menus"]="删除报表数据";
?>
<script language='javascript'>
function check(form)
{
return confirm('确实要删除数据吗?');
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/css.CSS" rel="stylesheet" type="text/css">
<title></title>
<style type="text/css">
<!--
body {
margin-left: 0px;
}
-->
</style></head>
<body><?php include("config_menu.inc.php");?>
<table width="100%" height="91" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
<tr>
<td height="91" valign="top"><table width="100%" height="127" border="0" cellpadding="0" cellspacing="0" class="t17">
<tr class="t11">
<td height="22"><strong class="fw12"> 删除报表数据</strong></td>
</tr>
<tr>
<td><div align="right"></div>
<div align="center">
<form name="form2" method="post" action="?act=yes" onSubmit="return check(this)">
请输入要删除的报表期数:
<input name="dates" type="text" class="input" id="dates">
<input type="submit" name="Submit" value=" 删除 ">
</form>
<br>
<br>
</div></td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -