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

📄 member_type_regform.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></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 $strMemberTypeRegformSet;
echo "</td>\r\n    <td >&nbsp;</td>    <td width=\"100\" >&nbsp;</td>\r\n  </tr>\r\n  </table>\r\n";
$membertypeid = $_REQUEST['membertypeid'];
$step = $_REQUEST['step'];
if ( $membertypeid == "" )
{
	err( $strMemberTypeNotice12, "", "" );
}
else
{
	$tbl_member_regform_now = $tbl_member_regform."_".$membertypeid;
}
if ( $step == "mod" )
{
	$id = $_POST['id'];
	$formname = $_POST['formname'];
	$mustfill = $_POST['mustfill'];
	$canrepeat = $_POST['canrepeat'];
	$intro = $_POST['intro'];
	$xuhao = $_POST['xuhao'];
	$used = $_POST['used'];
	$nums = sizeof( $id );
	$e = 0;
	for ( ;	$e < $nums;	$e++	)
	{
		$msql->query( "update {$tbl_member_regform_now} set \r\n\t\t\t\tformname='{$formname[$e]}',\r\n\t\t\t\tmustfill='{$mustfill[$e]}',\r\n\t\t\t\tcanrepeat='{$canrepeat[$e]}',\r\n\t\t\t\tintro='{$intro[$e]}',\r\n\t\t\t\txuhao='{$xuhao[$e]}',\r\n\t\t\t\tused='{$used[$e]}'\r\n\r\n\t    \t\twhere id='{$id[$e]}'" );
	}
	sayok( $strMemberTypeNotice13, "member_type_regform.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 valign=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=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_regform.php?membertypeid=";
echo $membertypeid;
echo "'  style=\"color:#ffffff\">";
echo $strMemberTypeRegformSet;
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=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=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_func.php?membertypeid=";
echo $membertypeid;
echo "'  style=\"color:#333333\">";
echo $strMemberTypeFuncSet;
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=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 $strMemberTypeRegformSet;
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  <tr> \r\n    <td width=\"35\"  class=title height=\"24\" align=\"center\">";
echo $strUse;
echo "</td>\r\n    <td width=\"110\"  class=title height=\"24\" align=\"center\">";
echo $strMemberTypeFormItem;
echo "</td>\r\n    <td width=\"80\"  class=title height=\"24\" align=\"center\">";
echo $strMemberTypeFormCol;
echo "</td>\r\n    <td width=\"60\"  class=title height=\"24\" align=\"center\">";
echo $strMemberTypeFormMust;
echo "</td>\r\n    <td width=\"60\"  class=title height=\"24\" align=\"center\">";
echo $strMemberTypeFormRe;
echo "</td>\r\n    <td  class=title height=\"24\" align=\"center\">";
echo $strMemberTypeFormMemo;
echo "</td>\r\n  </tr>\r\n  <form name=ccc method=\"post\" action=\"\">\r\n    ";
$msql->query( "select * from {$tbl_member_regform_now}" );
$i = 0;
while ( $msql->next_record( ) )
{
	$id[$i] = $msql->f( "id" );
	$formname[$i] = $msql->f( "formname" );
	$formcolname[$i] = $msql->f( "formcolname" );
	$mustfill[$i] = $msql->f( "mustfill" );
	$canrepeat[$i] = $msql->f( "canrepeat" );
	$intro[$i] = $msql->f( "intro" );
	$moveable[$i] = $msql->f( "moveable" );
	$used[$i] = $msql->f( "used" );
	$xuhao[$i] = $msql->f( "xuhao" );
	echo " \r\n    <tr> \r\n      <td width=\"35\" class=con align=\"center\"> ";
	if ( $moveable[$i] == "1" )
	{
		echo "<input type=checkbox name=used[{$i}] value=1 ".checked( $used[$i], 1 ).">";
	}
	else
	{
		echo "<input type=checkbox name=d value=1 ".checked( $used[$i], 1 )."  disabled>";
		echo "<input type=hidden name=used[{$i}] value={$used[$i]}>";
	}
	echo " </td>\r\n      <td width=\"110\" class=con align=\"center\"> \r\n        <input type=\"text\" name=\"formname[";
	echo $i;
	echo "]\" size=\"16\" value=\"";
	echo "{$formname[$i]}";
	echo "\"  class=input>\r\n      </td>\r\n      <td width=\"80\" class=con align=\"center\"> \r\n        <input type=\"text\" name=\"ddd\" size=\"9\" value=\"";
	echo "{$formcolname[$i]}";
	echo "\" readonly disabled  class=input>\r\n      </td>\r\n      <td width=\"60\" class=con align=\"center\"> ";
	if ( $moveable[$i] == "1" )
	{
		echo "<input type=checkbox name=mustfill[{$i}] value=1 ".checked( $mustfill[$i], 1 ).">";
	}
	else
	{
		echo "<input type=checkbox name=d value=1 ".checked( $mustfill[$i], 1 )."   disabled>";
		echo "<input type=hidden name=mustfill[{$i}] value={$mustfill[$i]}>";
	}
	echo " </td>\r\n      <td width=\"60\" class=con align=\"center\"> ";
	if ( $formcolname[$i] != "user" )
	{
		echo "<input type=checkbox name=canrepeat[{$i}] value=1 ".checked( $canrepeat[$i], 1 ).">";
	}
	else
	{
		echo "<input type=checkbox name=d value=1 ".checked( $canrepeat[$i], 1 )."   disabled>";
		echo "<input type=hidden name=canrepeat[{$i}] value={$canrepeat[$i]}>";
	}
	echo " </td>\r\n      <td align=\"center\" class=con> \r\n        <input type=\"text\" name=\"intro[";
	echo $i;
	echo "]\" size=\"35\" value=\"";
	echo "{$intro[$i]}";
	echo "\"  class=input>\r\n        <input type=\"hidden\" name=\"id[";
	echo $i;
	echo "]\" value=\"";
	echo "{$id[$i]}";
	echo "\">\r\n        <input type=\"hidden\" name=\"moveable[";
	echo $i;
	echo "]\" value=\"";
	echo "{$moveable[$i]}";
	echo "\">\r\n      </td>\r\n      </tr>\r\n    ";
	$i++;
}
echo " \r\n    <tr align=\"center\"> \r\n      <td colspan=\"7\" class=title height=\"28\"> \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 + -