drate_right_num16_check.php
资源名称:Nsix.rar [点击查看]
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:1k
源码类别:
Web服务器
开发平台:
PHP
- <?
- session_start();
- include("checks.php");
- include("../inc/conn.php");
- $_SESSION["menus"]="修改默认赔率";
- ?>
- <link href="../css/css.CSS" rel="stylesheet" type="text/css">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <?php
- $msg=0;
- function outscript($arr)
- {
- echo "<script language='javascript'>".$arr."</script>";
- }
- for($i=1;$i<=54;$i++)
- {
- $p="z".$i;
- $txt=@$_POST[$p];
- if($txt<>"")
- {
- if(substr($txt,0,1)=="0") $txt=substr($txt,1,strlen($txt));
- $check.=$i.",";
- $tmoney.=$txt.",";
- $msg=1;
- }
- }
- $drop_number_t=$check;
- $drop_money_t=$tmoney;
- $a_t=split(",",$drop_number_t);
- $d_t=split(",",$drop_money_t);
- for($i=0;$i<count($a_t)-1;$i++)
- {
- mysql_query("update dnum set rate='$d_t[$i]',m='1' where num='$a_t[$i]' and sign='4'",$conn);
- }
- if($msg==0)
- { outscript("alert('请输入赔率数!');window.location.href='drate_right_num16.php?menu=4';");
- }else
- {
- mysql_query("update member set update2='1'",$conn);
- echo "<script language='javascript'>window.location.href='drate_right_num16.php?menu=4'</script>";
- }
- ?>