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

Web服务器

开发平台:

PHP

  1. <?php
  2. session_start();
  3. include("checks.php");
  4. include("../inc/conn.php");
  5. $_SESSION["menus"]="信用额度还原";
  6. if(isset($_GET["act"]))
  7. {
  8.  mysql_query("update member set used_credit='0'",$conn);
  9.  mysql_query("update num set h='0'",$conn);
  10.  echo "还原成功!";
  11. }
  12. ?>
  13. <script language='javascript'>
  14. function check(form)
  15. {
  16.   
  17.   return confirm('确实要还原会员信用额度吗?');
  18. }
  19. </script>
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  22. <link href="../css/css.CSS" rel="stylesheet" type="text/css">
  23. <title></title>
  24. <style type="text/css">
  25. <!--
  26. body {
  27. margin-left: 0px;
  28. }
  29. -->
  30. </style></head>
  31. <body><?php include("config_menu.inc.php");?>
  32. <table width="100%" height="91" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
  33.   <tr>
  34.     <td height="91" valign="top"><table width="100%" height="127" border="0" cellpadding="0" cellspacing="0" class="t17">
  35.       <tr class="t11">
  36.         <td height="22"><strong class="fw12"> 会员信用额度还原</strong></td>
  37.         </tr>
  38.       <tr>
  39.         <td><div align="right"></div>          
  40.           <div align="center">
  41.             <form name="form2" method="post" action="config_credit_back.php?act=yes" onSubmit="return check(this)">
  42.               <input type="submit" name="Submit" value=" 点击还原会员信用额度  ">
  43.             </form>
  44.             <br>
  45.               <br> 
  46.           </div></td>
  47.         </tr>
  48.     </table></td>
  49.   </tr>
  50. </table>
  51. </body>
  52. </html>