📄 member_rights.php
字号:
<?php
include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/member.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 56 );
$memberid = $_REQUEST['memberid'];
$nowtype = $_REQUEST['nowtype'];
$user = $_REQUEST['user'];
$step = $_REQUEST['step'];
$page = $_REQUEST['page'];
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n\r\n</head>\r\n\r\n<body class=\"NormalPage\" >\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n <tr> \r\n <td width=\"350\" > <img src=\"images/bar.gif\"> ";
echo $strMemberRightSet;
echo "</td>\r\n <td > </td> <td width=\"100\" > </td>\r\n </tr>\r\n </table>\r\n";
if ( $step == "mod" )
{
$a = $_POST['a'];
$s = $_POST['s'];
$msql->query( "delete from {$tbl_member_rights} where memberid='{$memberid}'" );
$msql->query( "select * from {$tbl_secure}" );
while ( $msql->next_record( ) )
{
$secureid = $msql->f( "id" );
$securetype = $msql->f( "securetype" );
if ( $a[$secureid] == "1" )
{
$fsql->query( "insert into {$tbl_member_rights} set\r\n\t\t\t\tmemberid='{$memberid}',\r\n\t\t\t\tsecureid='{$secureid}',\r\n\t\t\t\tsecuretype='{$securetype}',\r\n\t\t\t\tsecureset='{$s[$secureid]}'\r\n\t\t\t\t\r\n\t\t\t" );
}
}
sayok( $strMemberRightNotice, "member_rights.php?memberid={$memberid}&nowtype={$nowtype}&user={$user}&page={$page}", "" );
}
$msql->query( "select * from {$tbl_member_rights} where memberid='{$memberid}'" );
$i = 0;
while ( $msql->next_record( ) )
{
$SecureArr[$i] = $msql->f( "secureid" );
$SecureSetArr[$i] = $msql->f( "secureset" );
$i++;
}
$nums = $i - 1;
echo "<br>\r\n<table width=\"625\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"22\">\r\n <tr> \r\n <td class=title align=\"left\" height=\"22\" valign=\"top\" width=\"3\"><img src=\"images/menubg16.gif\" width=\"3\" height=\"30\"></td>\r\n \r\n <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strMemberRightSet;
echo " \r\n - [";
echo $strMemberUser;
echo ":";
echo $user;
echo "]</td>\r\n <td class=title align=\"right\" height=\"22\" width=\"3\" valign=\"top\"><img src=\"images/menubg17.gif\" width=\"3\" height=\"30\"></td>\r\n </tr>\r\n </table>\r\n<table width=\"623\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"8\" background=\"images/mu1.jpg\">\r\n <tr> \r\n <td align=\"center\" height=\"2\" colspan=\"2\"></td>\r\n </tr>\r\n</table>\r\n<table width=\"625\" border=\"0\" cellspacing=\"1\" cellp";
echo "adding=\"3\" align=\"center\">\r\n <form method=\"post\" action=\"member_rights.php\">\r\n <tr> \r\n <td class=title width=\"230\"> ";
echo $strMemberTypeRD;
echo " \r\n </td>\r\n\r\n <td class=title height=\"28\" width=\"70\" align=\"center\">";
echo $strMemberTypeR;
echo "</td>\r\n <td class=title height=\"28\"> ";
echo $strMemberTypeRSet;
echo " </td>\r\n </tr>\r\n ";
$msql->query( "select * from {$tbl_secure} order by xuhao" );
while ( $msql->next_record( ) )
{
$secureid = $msql->f( "id" );
$securetype = $msql->f( "securetype" );
$securename = $msql->f( "securename" );
$securecode = $msql->f( "securecode" );
$ifcheck = "";
$nowset = "0";
$n = 0;
for ( ; $n <= $nums; $n++ )
{
if ( $SecureArr[$n] == $secureid )
{
$ifcheck = " checked ";
$nowset = $SecureSetArr[$n];
break;
}
else
{
$ifcheck = "";
$nowset = "0";
}
}
echo " \r\n <tr> \r\n \r\n <td class=con width=\"230\"> ";
echo $securename;
echo " </td>\r\n\r\n <td class=con height=\"26\" width=\"70\" align=\"center\"> \r\n <input type=\"checkbox\" name=\"a[";
echo $secureid;
echo "]\" value=\"1\" ";
echo $ifcheck;
echo ">\r\n \r\n </td>\r\n <td class=con height=\"26\">\r\n";
if ( $securetype == "con" || $securetype == "menu" )
{
echo "<input type=\"text\" name=\"s[";
echo $secureid;
echo "]\" style=\"width:20px\" value=\"";
echo $nowset;
echo "\" class=input maxlength=\"1\"> \r\n";
echo $strMemberTypeRRank;
}
else
{
echo "<input type=\"hidden\" name=\"s[";
echo $secureid;
echo "]\" value=\"";
echo $nowset;
echo "\" > -\r\n\r\n";
}
echo " </td>\r\n \r\n </tr>\r\n ";
}
echo " \r\n <tr> \r\n <td class=title colspan=\"3\" align=\"center\"> \r\n <input type=\"hidden\" name=\"step\" value=\"mod\">\r\n <input type=\"hidden\" name=\"nowtype\" value=\"";
echo $nowtype;
echo "\">\r\n <input type=\"hidden\" name=\"memberid\" value=\"";
echo $memberid;
echo "\">\r\n <input type=\"hidden\" name=\"user\" value=\"";
echo $user;
echo "\">\r\n <input type=\"hidden\" name=\"page\" value=\"";
echo $page;
echo "\">\r\n <input type=\"submit\" name=\"cc\" value=\"";
echo $strModify;
echo "\" class=button>\r\n <input type=\"button\" name=\"cc2\" value=\"";
echo $strBack;
echo "\" class=button onClick=\"self.location='member_common.php?membertypeid=";
echo $nowtype;
echo "&page=";
echo $page;
echo "'\">\r\n </td>\r\n </tr>\r\n </form>\r\n</table>\r\n\r\n<table width=\"623\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"8\" background=\"images/mu1.jpg\">\r\n <tr> \r\n <td align=\"center\" height=\"2\" colspan=\"2\"></td>\r\n </tr>\r\n</table>\r\n<br>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -