config_delete_table.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:2k
源码类别:

Web服务器

开发平台:

PHP

  1. <?php
  2. session_start();
  3. include("checks.php");
  4. include("../inc/conn.php");
  5. if(isset($_GET["act"]))
  6. { $dates=$_POST["dates"];
  7.  $ok=mysql_query("delete from drop_bill  where drop_date='$dates'",$conn);
  8.  $oks=mysql_query("delete from drop_bills  where drop_date='$dates'",$conn);
  9. if($ok)
  10. { echo "$dates 期数据删除成功!";
  11. }else echo "$dates 期不存在";
  12. echo "<script language='javascript'>window.location.href='config_delete_table.php?menu=6'</script>";
  13. }
  14. $_SESSION["menus"]="删除报表数据";
  15. ?>
  16. <script language='javascript'>
  17. function check(form)
  18. {
  19.   
  20.   return confirm('确实要删除数据吗?');
  21. }
  22. </script>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  25. <link href="../css/css.CSS" rel="stylesheet" type="text/css">
  26. <title></title>
  27. <style type="text/css">
  28. <!--
  29. body {
  30. margin-left: 0px;
  31. }
  32. -->
  33. </style></head>
  34. <body><?php include("config_menu.inc.php");?>
  35. <table width="100%" height="91" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
  36.   <tr>
  37.     <td height="91" valign="top"><table width="100%" height="127" border="0" cellpadding="0" cellspacing="0" class="t17">
  38.       <tr class="t11">
  39.         <td height="22"><strong class="fw12"> 删除报表数据</strong></td>
  40.         </tr>
  41.       <tr>
  42.         <td><div align="right"></div>          
  43.           <div align="center">
  44.             <form name="form2" method="post" action="?act=yes" onSubmit="return check(this)">
  45.               请输入要删除的报表期数:
  46.               <input name="dates" type="text" class="input" id="dates">
  47.               <input type="submit" name="Submit" value=" 删除  ">
  48.             </form>
  49.             <br>
  50.               <br> 
  51.           </div></td>
  52.         </tr>
  53.     </table></td>
  54.   </tr>
  55. </table>
  56. <p>&nbsp;</p>
  57. <p>&nbsp;</p>
  58. </body>
  59. </html>