config_auto.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:3k
源码类别:
Web服务器
开发平台:
PHP
- <?php
- session_start();
- include("checks.php");
- include("../inc/conn.php");
- $sql=mysql_query("select * from auto_cut where auto_name<>'0'",$conn);
- $_SESSION["menus"]="修改赔率项";
- if(isset($_POST["id"]))
- {
- $id=$_POST["id"];
- $num=$_POST["num"];
- $unit=$_POST["unit"];
- $low_rate=$_POST["low_rate"];
- $oks=mysql_query("update auto_cut set auto_num='$num',auto_low='$unit',low_cut='$low_rate' where type_sign='$id'",$conn);
- if($oks) echo "修改成功! <meta http-equiv='refresh' content='20;URL=config_auto.php?menu=11'>";
- }
- ?>
- <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>
- <script language="javascript">
- function Isnum(){
- return ((event.keyCode >= 48) && (event.keyCode <= 57));
- }
- </script>
- <body bgcolor="#e8e8e8">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><?php include("rate_menu.inc.php");?></td>
- </tr>
- <tr>
- <td>
- <table width="645" height="91" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
- <tr>
- <td height="91" valign="top"><table width="100%" height=45 border=0 align=center cellpadding=0 cellspacing=1 class="t12">
- <tbody>
- <tr class=t11>
- <td height="19" ><div align="center" class="fw12">类型</div></td>
- <td ><div align="center" class="fw12">数值</div></td>
- <td ><div align="center" class="fw12">每次下调赔率的单位</div></td>
- <td ><div align="center" class="fw12">最低赔率</div></td>
- <td ><div align="center" class="fw12">功能</div></td>
- </tr><?php while($rs=mysql_fetch_array($sql))
- {?><form action="config_auto.php" name="form1" method="post">
- <tr align=middle class="t17">
- <td width="22%" height="21" class=m_mem_ed>
- <div align="right"><?=$rs["auto_name"]?></div></td>
- <td width="23%" class=m_bc_ed>
- <div align="center">
- <input
- name=num class="input" id=num value="<?=$rs["auto_num"]?>" size=10 ONKEYPRESS="event.returnValue=Isnum();" >
- </div></td>
- <td width="28%" class=m_bc_ed><div align="center">
- <input
- name=unit class="input" id=rate value="<?=$rs["auto_low"]?>" size=10 ONKEYPRESS="event.returnValue=Isnum();" >
- </div></td>
- <td width="27%"class=m_bc_ed><div align="center">
- <input
- name=low_rate class="input" id=low_drop2 value="<?=$rs["low_cut"]?>" size=10 ONKEYPRESS="event.returnValue=Isnum();" >
- </div></td>
- <td width="27%"class=m_bc_ed><div align="center">
- <input type=submit value=修改 name=Submit>
- <input name="id" type="hidden" id="id" value="<?=$rs["type_sign"]?>">
- </div></td>
- </tr></form><? }?>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>