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

Web服务器

开发平台:

PHP

  1. <?php 
  2. session_start();
  3. include("checks.php");
  4. include("../inc/conn.php");
  5. include("../inc/base_status.inc.php");
  6. $_SESSION["menus"]="子账号功能设定";
  7. $user=$_GET["user"];
  8. $id=$_GET["id"];
  9. $menup=array("开封盘","即时注单","股东","总代理","代理商","会员","操盘员","开奖结算","系统配置","赔率设置","公告","注单查询","报表");
  10. if(isset($_GET["act"]))
  11.   for($i=0;$i<=12;$i++)
  12.   {  $m="op".$i;
  13.      $op=$_POST[$m];
  14.  if($op<>1) $op=0;
  15.  $menus.=$op.",";
  16.   }
  17.   $ok=mysql_query("update son_manage set menus='$menus' where account='$user'",$conn);
  18.   if($ok)
  19.   { 
  20.    echo "<font color='red'>设置成功,20秒后返回上一页!</font> <meta http-equiv='refresh' content='20;URL=config_manage_son.php?menu=8'>";
  21.   }else   echo "<font color='red'>设置失败!</font>";
  22. }
  23. $sqlr=mysql_query("select * from son_manage  where ID='$id'",$conn);
  24. $menug=mysql_result($sqlr,0,"menus");
  25. $f=split(",",$menug);
  26. ?>
  27. <html>
  28. <head>
  29. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  30. <link href="../css/css.CSS" rel="stylesheet" type="text/css">
  31. <title></title>
  32. <style type="text/css">
  33. <!--
  34. body {
  35. margin-left: 10px;
  36. }
  37. -->
  38. </style></head>
  39. <body oncontextmenu="return false" onselectstart="return false" 
  40. onkeydown="return (event.ctrlKey &amp;&amp; event.keyCode == 78) ? false : true" 
  41. ondragstart="return false" onmouseover="window.status=''; return true"><br>
  42. <table width="303" border="0" cellpadding="0" cellspacing="0">
  43.   <tr bgcolor="#6A9BD8">
  44.     <td width="9">&nbsp;</td>
  45.     <form name="form1">
  46.       <td width="205" class="fw12"><?=$user?> 权限设置      </td>
  47.       <td width="78" class="fw12"><div align="right"><a href="config_manage_son.php?menu=8" class="ah">返回上一页</a> </div></td>
  48.     </form>
  49.     <td width="11">&nbsp;</td>
  50.   </tr>
  51. </table><form name="form2" method="post" action="config_manage_son_details.php?act=yes&user=<?=$user?>&id=<?=$id?>">
  52. <table width="303" height="53" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
  53.   <tr>
  54.     <td width="303" height="53" valign="top"><table width="303" height="82" border="0" cellpadding="0" cellspacing="1" class="t12">
  55.       <tr class="t11">
  56.         <td width="148" height="22"><div align="center" class="fw12">功能菜单</div></td>
  57.         <td width="152"><div align="center" class="fw12">开放状态</div></td>
  58.         </tr>
  59.       <?php for($i=0;$i<=12;$i++)
  60.   { ?>
  61.   <tr class="t17">
  62.         <td height="28" align="right"><?=$menup[$i]?>
  63.     </td>
  64.         <td><div align="center">
  65.           <input type="checkbox" name="op<?=$i?>" value="1" <?php if($f[$i]==1) echo "checked";?>>
  66.         </div></td>
  67.         </tr>  <? }?> 
  68.   <tr class="t17">
  69.     <td height="28" colspan="2" align="right" class="t12"><div align="center">
  70.       <input type="reset" name="Submit2" value="重置">&nbsp;
  71.       <input type="submit" name="Submit" value="设置">
  72.     </div></td>
  73.     </tr> 
  74.     </table></td>
  75.   </tr>
  76. </table></form>
  77. </body>
  78. </html>