📄 config_manage_son_details.php
字号:
<?php
session_start();
include("checks.php");
include("../inc/conn.php");
include("../inc/base_status.inc.php");
$_SESSION["menus"]="子账号功能设定";
$user=$_GET["user"];
$id=$_GET["id"];
$menup=array("开封盘","即时注单","股东","总代理","代理商","会员","操盘员","开奖结算","系统配置","赔率设置","公告","注单查询","报表");
if(isset($_GET["act"]))
{
for($i=0;$i<=12;$i++)
{ $m="op".$i;
$op=$_POST[$m];
if($op<>1) $op=0;
$menus.=$op.",";
}
$ok=mysql_query("update son_manage set menus='$menus' where account='$user'",$conn);
if($ok)
{
echo "<font color='red'>设置成功,20秒后返回上一页!</font> <meta http-equiv='refresh' content='20;URL=config_manage_son.php?menu=8'>";
}else echo "<font color='red'>设置失败!</font>";
}
$sqlr=mysql_query("select * from son_manage where ID='$id'",$conn);
$menug=mysql_result($sqlr,0,"menus");
$f=split(",",$menug);
?>
<html>
<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: 10px;
}
-->
</style></head>
<body oncontextmenu="return false" onselectstart="return false"
onkeydown="return (event.ctrlKey && event.keyCode == 78) ? false : true"
ondragstart="return false" onmouseover="window.status=''; return true"><br>
<table width="303" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#6A9BD8">
<td width="9"> </td>
<form name="form1">
<td width="205" class="fw12"><?=$user?> 权限设置 </td>
<td width="78" class="fw12"><div align="right"><a href="config_manage_son.php?menu=8" class="ah">返回上一页</a> </div></td>
</form>
<td width="11"> </td>
</tr>
</table><form name="form2" method="post" action="config_manage_son_details.php?act=yes&user=<?=$user?>&id=<?=$id?>">
<table width="303" height="53" border="0" align="left" cellpadding="0" cellspacing="0" class="tmove">
<tr>
<td width="303" height="53" valign="top"><table width="303" height="82" border="0" cellpadding="0" cellspacing="1" class="t12">
<tr class="t11">
<td width="148" height="22"><div align="center" class="fw12">功能菜单</div></td>
<td width="152"><div align="center" class="fw12">开放状态</div></td>
</tr>
<?php for($i=0;$i<=12;$i++)
{ ?>
<tr class="t17">
<td height="28" align="right"><?=$menup[$i]?>
</td>
<td><div align="center">
<input type="checkbox" name="op<?=$i?>" value="1" <?php if($f[$i]==1) echo "checked";?>>
</div></td>
</tr> <? }?>
<tr class="t17">
<td height="28" colspan="2" align="right" class="t12"><div align="center">
<input type="reset" name="Submit2" value="重置">
<input type="submit" name="Submit" value="设置">
</div></td>
</tr>
</table></td>
</tr>
</table></form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -