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

Web服务器

开发平台:

PHP

  1. <?php
  2. session_start();
  3. include("checks.php");
  4. include("../inc/conn.php");
  5. $sql=mysql_query("select * from auto_cut where auto_name<>'0'",$conn);
  6. $_SESSION["menus"]="修改赔率项";
  7. if(isset($_POST["id"]))
  8. {
  9.   $id=$_POST["id"];
  10.   $num=$_POST["num"];
  11.   $unit=$_POST["unit"];
  12.   $low_rate=$_POST["low_rate"];
  13.   $oks=mysql_query("update auto_cut set auto_num='$num',auto_low='$unit',low_cut='$low_rate' where type_sign='$id'",$conn);
  14.   if($oks) echo "修改成功! <meta http-equiv='refresh' content='20;URL=config_auto.php?menu=11'>";
  15. }
  16. ?>
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  19. <link href="../css/css.CSS" rel="stylesheet" type="text/css">
  20. <title></title>
  21. <style type="text/css">
  22. <!--
  23. body {
  24. margin-left: 0px;
  25. }
  26. -->
  27. </style>
  28. </head>
  29. <script language="javascript">
  30. function Isnum(){
  31.   return ((event.keyCode >= 48) && (event.keyCode <= 57));
  32. }
  33. </script>
  34. <body bgcolor="#e8e8e8">
  35. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  36.   <tr>
  37.     <td><?php include("rate_menu.inc.php");?></td>
  38.   </tr>
  39.   <tr>
  40.     <td>
  41. <table width="645" height="91" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
  42.   <tr>
  43.     <td height="91" valign="top"><table width="100%" height=45 border=0 align=center cellpadding=0 cellspacing=1 class="t12">
  44.       <tbody>
  45.         <tr class=t11>
  46.           <td height="19" ><div align="center" class="fw12">类型</div></td>
  47.           <td ><div align="center" class="fw12">数值</div></td>
  48.           <td ><div align="center" class="fw12">每次下调赔率的单位</div></td>
  49.           <td ><div align="center" class="fw12">最低赔率</div></td>
  50.           <td ><div align="center" class="fw12">功能</div></td>
  51.         </tr><?php while($rs=mysql_fetch_array($sql))
  52. {?><form action="config_auto.php" name="form1" method="post">
  53.         <tr align=middle class="t17">
  54.           <td width="22%" height="21" class=m_mem_ed>
  55.             <div align="right"><?=$rs["auto_name"]?></div></td>
  56.           <td width="23%" class=m_bc_ed>
  57.             <div align="center">
  58.               <input
  59.       name=num class="input" id=num value="<?=$rs["auto_num"]?>" size=10 ONKEYPRESS="event.returnValue=Isnum();" >
  60.           </div></td>
  61.           <td width="28%" class=m_bc_ed><div align="center">
  62.               <input
  63.       name=unit class="input" id=rate value="<?=$rs["auto_low"]?>" size=10 ONKEYPRESS="event.returnValue=Isnum();" >
  64.           </div></td>
  65.           <td width="27%"class=m_bc_ed><div align="center">
  66.               <input
  67.       name=low_rate class="input" id=low_drop2 value="<?=$rs["low_cut"]?>" size=10 ONKEYPRESS="event.returnValue=Isnum();" >
  68.           </div></td>
  69.           <td width="27%"class=m_bc_ed><div align="center">
  70.               <input type=submit value=修改 name=Submit>
  71.               <input name="id" type="hidden" id="id" value="<?=$rs["type_sign"]?>">
  72.           </div></td>
  73.         </tr></form><? }?>
  74.         </table></td>
  75.   </tr>
  76. </table></td>
  77.   </tr>
  78. </table>
  79. </body>
  80. </html>