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

📄 member_type_add.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=\"150\" >&nbsp;&nbsp;<img src=\"images/bar.gif\" >&nbsp;&nbsp;";
echo $strMemberTypeAdd;
echo "</td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n";
$step = $_REQUEST['step'];
$membertype = $_REQUEST['membertype'];
$memberprop = $_REQUEST['memberprop'];
$ifcanreg = $_REQUEST['ifcanreg'];
$ifchecked = $_REQUEST['ifchecked'];
$regxy = $_REQUEST['regxy'];
$regmail = $_REQUEST['regmail'];
$expday = $_REQUEST['expday'];
$startcent = $_REQUEST['startcent'];
$endcent = $_REQUEST['endcent'];
if ( $step == "add" )
{
	$vsion = $msql->version( );
	$mysqlversion = substr( $vsion, 0, 4 );
	if ( !$dbcharset && in_array( strtolower( $charset ), array( "gbk", "big5", "utf-8" ) ) )
	{
		$dbcharset = str_replace( "-", "", $charset );
	}
	if ( 4.1 <= $mysqlversion )
	{
		$addsql = "ENGINE=MyISAM DEFAULT CHARSET=".$dbcharset;
	}
	$msql->query( "insert into {$tbl_member_type} values(\r\n\t0,\r\n\t'{$membertype}',\r\n\t'{$memberprop}',\r\n\t'{$ifcanreg}',\r\n\t'{$ifchecked}',\r\n\t'{$regxy}',\r\n\t'{$regmail}',\r\n\t'{$expday}',\r\n\t'{$startcent}',\r\n\t'{$endcent}'\r\n\t)" );
	$membertypeid = $msql->instid( );
	$FuncTable = $tbl_member_func."_".$membertypeid;
	$RegformTable = $tbl_member_regform."_".$membertypeid;
	$msql->query( "CREATE TABLE {$FuncTable} (\r\n\t   id int(10) NOT NULL auto_increment,\r\n\t   pid int(10),\r\n\t   menu char(50),\r\n\t   link char(100),\r\n\t   xuhao int(10),\r\n\t   used int(1),\r\n\t   intro char(255),\r\n\t   PRIMARY KEY (id)\r\n\t) ".$addsql."\r\n\t" );
	$msql->query( "INSERT INTO {$FuncTable} SELECT * FROM {$tbl_member_func}" );
	$msql->query( "CREATE TABLE {$RegformTable} (\r\n\t   id int(12) NOT NULL auto_increment,\r\n\t   formname varchar(200),\r\n\t   formcolname varchar(200),\r\n\t   mustfill int(1),\r\n\t   canrepeat int(1),\r\n\t   moveable int(1),\r\n\t   intro text,\r\n\t   used int(1),\r\n\t   xuhao int(20),\r\n\t   PRIMARY KEY (id)\r\n\t) ".$addsql."\r\n\t" );
	$msql->query( "INSERT INTO {$RegformTable} SELECT * FROM {$tbl_member_regform}" );
	echo "<script>parent.menu.location.reload();</script>";
	sayok( $strMemberTypeNotice4, "member_type_con.php", "" );
}
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 $strMemberTypeAdd;
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=\"4\" align=\"center\">\r\n  <form method=\"post\" action=\"member_type_add.php\">\r\n    <tr> \r\n      <td width=\"127\" class=title> \r\n        <div align=\"right\">";
echo $strMemberType;
echo "</div>\r\n      </td>\r\n      <td width=\"477\" class=con> \r\n        <input type=\"text\" name=\"membertype\" size=\"22\"  class=input>\r\n        <input type=\"hidden\" name=\"memberprop\" value=\"0\">\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td width=\"127\" class=title> \r\n        <div align=\"right\">";
echo $strMemberTypeRegAllow;
echo "</div>\r\n      </td>\r\n      <td width=\"477\" class=con> \r\n        ";
echo "<s";
echo "elect name=\"ifcanreg\">\r\n          <option value=\"1\" selected >";
echo $strMemberTypeNotice5;
echo "</option>\r\n          <option value=\"0\"  >";
echo $strMemberTypeNotice6;
echo "</option>\r\n        </select>\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td width=\"127\" class=title> \r\n        <div align=\"right\">";
echo $strMemberTypeRegCheck;
echo "</div>\r\n      </td>\r\n      <td width=\"477\" class=con> \r\n        ";
echo "<s";
echo "elect name=\"ifchecked\">\r\n          <option value=\"1\" selected >";
echo $strMemberTypeNotice7;
echo "</option>\r\n          <option value=\"0\"  >";
echo $strMemberTypeNotice8;
echo "</option>\r\n        </select>\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td width=\"127\" class=title> \r\n        <div align=\"right\">";
echo $strMemberTypeRegDays;
echo "</div>\r\n      </td>\r\n      <td width=\"477\" class=con> \r\n        <input type=\"text\" name=\"expday\" size=\"3\" value=\"0\"  class=input>\r\n        ";
echo $strMemberTypeRegDay;
echo " [";
echo $strMemberTypeNotice9;
echo "] </td>\r\n    </tr>\r\n    <tr> \r\n      <td width=\"127\" class=title> \r\n        <div align=\"right\">";
echo $strMemberTypeRegxy;
echo "</div>\r\n      </td>\r\n      <td width=\"477\" class=con> \r\n        <textarea name=\"regxy\" cols=\"60\" rows=\"5\"  class=input1></textarea>\r\n      </td>\r\n    </tr>\r\n    <tr> \r\n      <td width=\"127\" class=title> \r\n        <div align=\"right\">";
echo $strMemberTypeRegMail;
echo "</div>\r\n      </td>\r\n      <td width=\"477\" class=con> \r\n        <textarea name=\"regmail\" cols=\"60\" rows=\"5\"  class=input1>";
echo $strMemberTypeRegTemp;
echo "</textarea>\r\n      </td>\r\n    </tr>\r\n    <tr align=\"center\"> \r\n      <td colspan=\"2\" class=title height=\"28\"> \r\n        <input type=\"submit\" name=\"Submit\" value=\"";
echo $strConfirm;
echo "\"  class=button>\r\n        <input type=\"hidden\" name=\"step\" value=\"add\">\r\n      </td>\r\n    </tr>\r\n  </form>\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<br>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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