⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 member_type_func.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 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( 4 );
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</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\" >&nbsp;&nbsp;<img src=\"images/bar.gif\">&nbsp;&nbsp;";
echo $strMemberMenuSet;
echo "</td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n";
$step = $_REQUEST['step'];
$membertypeid = $_REQUEST['membertypeid'];
if ( $membertypeid == "" )
{
	err( $strMemberTypeNotice12, "", "" );
}
else
{
	$tbl_member_func_now = $tbl_member_func."_".$membertypeid;
}
echo "\r\n";
if ( $step == "mod" )
{
	$used = $_POST['used'];
	$menu = $_POST['menu'];
	$xuhao = $_POST['xuhao'];
	$link = $_POST['link'];
	$id = $_POST['id'];
	$pid = $_POST['pid'];
	$pused = $_POST['pused'];
	$nums = sizeof( $id );
	$e = 0;
	for ( ;	$e < $nums;	$e++	)
	{
		if ( $pid[$e] != "0" && $used[$e] == "1" && $used[$pused[$e]] != "1" )
		{
			$used[$e] = "0";
			$expstr = "<br><br><font color=red>".$strMemberTypeNotice17."</font>";
		}
	}
	$e = 0;
	for ( ;	$e < $nums;	$e++	)
	{
		$msql->query( "update {$tbl_member_func_now} set \r\n\t\t\t\t`menu`='{$menu[$e]}',\r\n\t\t\t\t`xuhao`='{$xuhao[$e]}',\r\n\t\t\t\t`link`='{$link[$e]}',\r\n\t\t\t\t`used`='{$used[$e]}'\r\n\t    \t\twhere id='{$id[$e]}'" );
	}
	sayok( $strMemberTypeNotice18.$expstr, "member_type_func.php?membertypeid={$membertypeid}", "" );
}
echo " <br>\r\n<table width=625 border=0 cellspacing=0 cellpadding=0 align=center height=22>\r\n  <tr> \r\n    <td  align=center height=22 width=10 con=top>&nbsp;</td>\r\n    <td  align=left height=22 width=3 class=con valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=con><a href='member_type_setup.php?membertypeid=";
echo $membertypeid;
echo "' style=\"color:#333333\">";
echo $strMemberTypeCsSet;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=con><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=left height=22 width=3 class=con valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=con><a href='member_type_regform.php?membertypeid=";
echo $membertypeid;
echo "'  style=\"color:#333333\">";
echo $strMemberTypeRegformSet;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=con><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=left height=22 width=3 class=con valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=con><a href='member_type_rights.php?membertypeid=";
echo $membertypeid;
echo "'  style=\"color:#333333\">";
echo $strMemberTypeRightSet;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=con><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=left height=22 width=3 class=title valign=top><img src=images/menubg10.gif width=3></td>\r\n    <td  align=center height=22 width=130 class=title><a href='member_type_func.php?membertypeid=";
echo $membertypeid;
echo "'  style=\"color:#ffffff\">";
echo $strMemberTypeFuncSet;
echo "</a></td>\r\n    <td  align=center height=22 width=1  class=title><img src=images/menubg11.gif width=3 height=22></td>\r\n    <td  align=center height=22>&nbsp;</td>\r\n  </tr>\r\n</table>\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  ";
echo "    \r\n    <td class=title align=\"center\" height=\"22\" colspan=\"2\">[";
echo membertypeid2membertype( $membertypeid );
echo "] - ";
echo $strMemberMenuSet;
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=\"625\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\r\n  <tr> \r\n    <td class=title width=\"38\" align=\"center\" height=\"28\">";
echo $strMemberMenuXuhao;
echo "</td>\r\n    <td class=title align=\"center\" width=\"150\" height=\"28\">";
echo $strMemberMenuFunc;
echo "</td>\r\n    <td class=title align=\"center\" height=\"28\">";
echo $strMemberMenuLink;
echo "</td>\r\n  </tr>\r\n  <form name=ccc method=\"post\" action=\"\">\r\n    ";
$msql->query( "select * from {$tbl_member_func_now} where pid=0 order by xuhao" );
$i = 0;
while ( $msql->next_record( ) )
{
	$id[$i] = $msql->f( "id" );
	$pid[$i] = $msql->f( "pid" );
	$menu[$i] = $msql->f( "menu" );
	$used[$i] = $msql->f( "used" );
	$link[$i] = $msql->f( "link" );
	$xuhao[$i] = $msql->f( "xuhao" );
	echo " \r\n    <tr> \r\n      <td class=con width=\"38\" align=\"center\"> \r\n        <input type=\"text\" name=\"xuhao[";
	echo $i;
	echo "]\" size=\"2\"  value=\"";
	echo "{$xuhao[$i]}";
	echo "\"  class=input>\r\n        <br>&nbsp;\r\n      </td>\r\n      <td class=con align=\"center\" width=\"150\"> \r\n        <input type=\"text\" name=\"menu[";
	echo $i;
	echo "]\" size=\"18\"  value=\"";
	echo "{$menu[$i]}";
	echo "\"  class=input>\r\n        <br>\r\n        ";
	echo "<input type=checkbox name=used[{$i}] value=1 ".checked( $used[$i], 1 ).">";
	echo " \r\n        ";
	echo $strMemberMenuFuncShow;
	echo " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n        <input type=\"hidden\" name=\"id[";
	echo $i;
	echo "]\" value=\"";
	echo "{$id[$i]}";
	echo "\">\r\n        <input type=\"hidden\" name=\"pid[";
	echo $i;
	echo "]\" value=\"";
	echo "{$pid[$i]}";
	echo "\">\r\n        <input type=\"hidden\" class=input name=\"link[";
	echo $i;
	echo "]\"   value=\"";
	echo "{$link[$i]}";
	echo "\">\r\n      </td>\r\n      <td class=con align=\"center\">\r\n        <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\" bgcolor=\"#CCCCCC\">\r\n          ";
	$fsql->query( "select * from {$tbl_member_func_now} where pid='{$id[$i]}' order by xuhao" );
	$t = $i;
	while ( $fsql->next_record( ) )
	{
		$i++;
		$id[$i] = $fsql->f( "id" );
		$pid[$i] = $fsql->f( "pid" );
		$menu[$i] = $fsql->f( "menu" );
		$used[$i] = $fsql->f( "used" );
		$xuhao[$i] = $fsql->f( "xuhao" );
		$link[$i] = $fsql->f( "link" );
		echo " \r\n          <tr> \r\n            <td class=con>";
		echo "<input type=checkbox name=used[{$i}] value=1 ".checked( $used[$i], 1 ).">";
		echo " \r\n              <input type=\"text\" name=\"menu[";
		echo $i;
		echo "]\" size=\"12\"  value=\"";
		echo "{$menu[$i]}";
		echo "\"  class=input>\r\n        <input type=\"text\" class=input name=\"link[";
		echo $i;
		echo "]\" size=\"33\"  value=\"";
		echo "{$link[$i]}";
		echo "\">\r\n              <input type=\"hidden\" name=\"xuhao[";
		echo $i;
		echo "]\" size=\"2\"  value=\"";
		echo "{$xuhao[$i]}";
		echo "\">\r\n        <input type=\"hidden\" name=\"id[";
		echo $i;
		echo "]\" value=\"";
		echo "{$id[$i]}";
		echo "\">\r\n        <input type=\"hidden\" name=\"pid[";
		echo $i;
		echo "]\" value=\"";
		echo "{$pid[$i]}";
		echo "\">\r\n        <input type=\"hidden\" name=\"pused[";
		echo $i;
		echo "]\" value=\"";
		echo "{$t}";
		echo "\"></td>\r\n          </tr>";
	}
	echo "        </table>\r\n         \r\n       \r\n</td>\r\n    </tr>\r\n    ";
	$i++;
}
echo " \r\n    <tr> \r\n      <td align=\"center\" class=title height=\"28\" colspan=3> \r\n        <input type=\"submit\" name=\"Submit\" value=\"";
echo $strModify;
echo "\" class=button>\r\n        <input type=\"hidden\" name=\"step\" value=\"mod\">\r\n        <input type=\"hidden\" name=\"membertypeid\" value=\"";
echo "{$membertypeid}";
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=\"5\" 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</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -