📄 config_delete_ok.php
字号:
<?php
session_start();
include("checks.php");
include("../inc/conn.php");
if(isset($_GET["act"]))
{
$sqlm=mysql_query("select * from member where m='1'",$conn);
while($rsm=mysql_fetch_array($sqlm))
{ $member=$rsm["user_account"];
mysql_query("delete from member_cut where user_account='$member'",$conn);
mysql_query("delete from drop_bill where user_name='$member'",$conn);
}
mysql_query("delete from member where m='1'",$conn);
$sqla=mysql_query("select * from agent where m='1'",$conn);
while($rsa=mysql_fetch_array($sqla))
{ $agent=$rsa["user_account"];
mysql_query("delete from agent_cut where user_account='$agent'",$conn);
mysql_query("delete from drop_bill where agent='$agent'",$conn);
mysql_query("delete from son_account where agent='$agent'",$conn);
}
mysql_query("delete from agent where m='1'",$conn);
$sqlm=mysql_query("select * from all_agent where m='1'",$conn);
while($rsm=mysql_fetch_array($sqlm))
{ $all_agent=$rsm["user_account"];
mysql_query("delete from agent_cut where user_account='$all_agent'",$conn);
mysql_query("delete from drop_bill where all_agent='$all_agent'",$conn);
mysql_query("delete from son_account where agent='$all_agent'",$conn);
}
mysql_query("delete from all_agent where m='1'",$conn);
$sqlm=mysql_query("select * from super_agent where m='1'",$conn);
while($rsm=mysql_fetch_array($sqlm))
{ $super_agent=$rsm["user_account"];
mysql_query("delete from agent_cut where user_account='$super_agent'",$conn);
mysql_query("delete from drop_bill where super_agent='$super_agent'",$conn);
mysql_query("delete from son_account where agent='$super_agent'",$conn);
}
mysql_query("delete from super_agent where m='1'",$conn);
echo "彻底删除成功!";
echo "<script language='javascript'>window.location.href='config_delete_ok.php?menu=5'</script>";
}
?>
<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="config_delete_ok.php?act=yes" onSubmit="return check(this)">
<input type="submit" name="Submit" value=" 点击彻底删除所有删除的数据 ">
</form>
<br>
<br>
</div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -