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

📄 member_type_con.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 ";
echo "<S";
echo "CRIPT>\r\nfunction cm(nn){\r\nqus=confirm(\"";
echo $strMemberTypeNotice1;
echo "\")\r\nif(qus!=0){\r\nwindow.location='member_type_con.php?step=del&membertypeid='+nn;\r\n}\r\n}\r\n</SCRIPT>\r\n</head>\r\n\r\n<body  class=\"NormalPage\">\r\n<div align=\"center\">\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 $strMemberTypeManage;
echo "</td>\r\n      <td >&nbsp;</td>\r\n      <td width=\"100\" >&nbsp;</td>\r\n    </tr>\r\n  </table>\r\n  <br>\r\n";
$step = $_REQUEST['step'];
$membertypeid = $_REQUEST['membertypeid'];
if ( $step == "del" )
{
	$msql->query( "select * from {$tbl_member} where membertypeid='{$membertypeid}'" );
	if ( $msql->next_record( ) )
	{
		err( $strMemberTypeNotice2, "", "" );
	}
	$msql->query( "delete from {$tbl_member_notice} where  membertypeid='{$membertypeid}'" );
	$msql->query( "delete from {$tbl_default_rights} where  membertypeid='{$membertypeid}'" );
	$FuncTable = $tbl_member_func."_".$membertypeid;
	$RegformTable = $tbl_member_regform."_".$membertypeid;
	$msql->query( "drop table if exists {$FuncTable}" );
	$msql->query( "drop table if exists {$RegformTable}" );
	$msql->query( "delete from {$tbl_member_type} where  membertypeid='{$membertypeid}'" );
	echo "<script>parent.menu.location.reload();</script>";
	sayok( $strMemberTypeNotice3, "member_type_con.php", "" );
}
echo "  <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      <td class=title align=\"center\" height=\"22\" colspan=\"2\">";
echo $strMemberTypeManage;
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=\"2\" align=\"center\">\r\n    <tr> \r\n      <td  class=title align=\"center\">";
echo $strMemberType;
echo "</td>\r\n      <td  class=title height=\"28\" width=\"75\" align=\"center\">";
echo $strMemberTypeCs;
echo "</td>\r\n      <td  class=title height=\"28\" width=\"75\" align=\"center\">";
echo $strMemberTypeRegform;
echo "</td>\r\n      <td  class=title height=\"28\" width=\"75\" align=\"center\">";
echo $strMemberTypeRight;
echo "</td>\r\n      <td  class=title height=\"28\" width=\"75\" align=\"center\">";
echo $strMemberTypeFunc;
echo "</td>\r\n      <td  class=title height=\"28\" width=\"75\" align=\"center\">";
echo $strDelete;
echo "</td>\r\n    </tr>\r\n    ";
$msql->query( "select * from {$tbl_member_type} order by membertypeid" );
while ( $msql->next_record( ) )
{
	$membertypeid = $msql->f( "membertypeid" );
	$membertype = $msql->f( "membertype" );
	echo "<tr> \r\n        <td  class=con align=\"center\"> &nbsp;&nbsp;";
	echo $membertype;
	echo " \r\n        </td>\r\n        <td  class=con height=\"26\" width=\"75\" align=\"center\"><a href=\"member_type_setup.php?membertypeid=";
	echo $membertypeid;
	echo "\"><img src=\"images/toolbar_config_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n        <td  class=con height=\"26\" width=\"75\" align=\"center\"><a href=\"member_type_regform.php?membertypeid=";
	echo $membertypeid;
	echo "\"><img src=\"images/toolbar_new_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n        <td  class=con height=\"26\" width=\"75\" align=\"center\"><a href=\"member_type_rights.php?membertypeid=";
	echo $membertypeid;
	echo "\"><img src=\"images/toolbar_quanxian_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n        <td  class=con height=\"26\" width=\"75\" align=\"center\"><a href=\"member_type_func.php?membertypeid=";
	echo $membertypeid;
	echo "\"><img src=\"images/toolbar_check_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n        <td  class=con height=\"26\" width=\"75\" align=\"center\"><img src=\"images/toolbar_delete_up.gif\"  style=\"cursor:hand\" width=\"22\" height=\"20\" onClick=\"cm('";
	echo "{$membertypeid}";
	echo "')\"></td>\r\n      </tr>\r\n    ";
}
echo " \r\n  </table>\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</div>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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