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

📄 member_new.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( 51 );

$step = $_REQUEST['step'];
$page = $_REQUEST['page'];
$sc = $_REQUEST['sc'];
$ord = $_REQUEST['ord'];
$membertypeid = $_REQUEST['membertypeid'];
$memberid = $_REQUEST['memberid'];
$key = $_REQUEST['key'];
$shownum = $_REQUEST['shownum'];
if ( !isset( $shownum ) || $shownum < 10 )
{
	$shownum = 10;
}
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\n\tqus=confirm(\"";
echo $strMemberNotice1;
echo "\")\r\n\tif(qus!=0){\r\n\t\twindow.location='member_new.php?step=del&page=";
echo "{$page}";
echo "&shownum=";
echo $shownum;
echo "&sc=";
echo "{$sc}";
echo "&ord=";
echo "{$ord}";
echo "&membertypeid=";
echo "{$membertypeid}";
echo "&memberid='+nn;\r\n\t}\r\n}\r\nfunction ord(nn,sc){\r\n\tif(nn!='";
echo $ord;
echo "'){\r\n\t\twindow.location='member_new.php?page=";
echo "{$page}";
echo "&shownum=";
echo $shownum;
echo "&sc=";
echo "{$sc}";
echo "&membertypeid=";
echo "{$membertypeid}";
echo "&ord='+nn;\r\n\t}else{\r\n\t\tif(sc=='asc' || sc==''){\r\n\t\t\twindow.location='member_new.php?page=";
echo "{$page}";
echo "&shownum=";
echo $shownum;
echo "&sc=desc&membertypeid=";
echo "{$membertypeid}";
echo "&ord='+nn;\r\n\t\t}else{\r\n\t\t\twindow.location='member_new.php?page=";
echo "{$page}";
echo "&shownum=";
echo $shownum;
echo "&sc=asc&membertypeid=";
echo "{$membertypeid}";
echo "&ord='+nn;\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction SelAll(theForm){\r\n\tfor ( i = 0 ; i < theForm.elements.length ; i ++ ){\r\n\t\tif ( theForm.elements[i].type == \"checkbox\" && theForm.elements[i].name != \"SELALL\" ){\r\n\t\t\ttheForm.elements[i].checked = ! theForm.elements[i].checked ;\r\n\t\t}\r\n\t}\r\n}\r\n</SCRIPT></head>\r\n\r\n<body  class=\"NormalPage\">\r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" back";
echo "ground=\"images/mu8.gif\" height=\"30\" >\r\n  <tr> \r\n    <td width=\"350\" >&nbsp;&nbsp;<img src=\"images/bar.gif\">&nbsp;&nbsp;";
echo $strMemberNew;
echo "</td>\r\n    <td >&nbsp;</td>\r\n    <td width=\"100\" >&nbsp; </td>\r\n  </tr>\r\n</table>\r\n";
if ( $step == "delall" )
{
	$dall = $_POST['dall'];
	$nums = sizeof( $dall );
	$i = 0;
	for ( ;	$i < $nums;	$i++	)
	{
		$delmemberid = $dall[$i];
		memberdel( $delmemberid );
	}
}
if ( $step == "checkall" )
{
	$dall = $_POST['dall'];
	$nums = sizeof( $dall );
	$i = 0;
	for ( ;	$i < $nums;	$i++	)
	{
		$ids = $dall[$i];
		$msql->query( "update {$tbl_member} set checked='1' where memberid='{$ids}'" );
	}
}
if ( $step == "del" )
{
	memberdel( $memberid );
}
if ( $step == "check" )
{
	$msql->query( "update {$tbl_member} set checked='1' where memberid='{$memberid}'" );
}
$tbl_member_regform_now = $tbl_member_regform."_".$membertypeid;
$msql->query( "select used,formcolname,formname from {$tbl_member_regform_now}" );
while ( $msql->next_record( ) )
{
	$formcolname = $msql->f( "formcolname" );
	$formname = $msql->f( "formname" );
	$used = $msql->f( "used" );
	$list[$formcolname] = $used;
	$listname[$formcolname] = $formname;
}
echo " ";
if ( !isset( $ord ) || $ord == "" )
{
	$ord = "memberid";
}
if ( !isset( $sc ) || $sc == "" )
{
	$sc = "desc";
}
$scl = " membertypeid='{$membertypeid}' and checked!='1' ";
if ( $key != "" )
{
	$scl .= " and (company regexp '{$key}' or name regexp '{$key}' or user regexp '{$key}' or tel regexp '{$key}' )";
}
$totalnums = tblcount( $tbl_member, "memberid", $scl );
$pages = new pages( );
$pages->setvar( array(
	"key" => $key,
	"shownum" => $shownum,
	"ord" => $ord,
	"sc" => $sc,
	"membertypeid" => $membertypeid
) );
$pages->set( $shownum, $totalnums );
$pagelimit = $pages->limit( );
if ( $list[company] == "1" )
{
	$cstyle = "display:block;";
}
else
{
	$cstyle = "display:none;";
}
if ( $list[name] == "1" )
{
	$nstyle = "display:block;";
}
else
{
	$nstyle = "display:none;";
}
echo " \r\n<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\">\r\n  <form name=\"search\" action=\"member_new.php\" method=\"get\" >\r\n    <tr> \r\n      <td colspan=\"2\" class=title> \r\n        <table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\">\r\n          <tr> \r\n            <td width=\"120\"> \r\n              <input type=\"text\" name=\"key\" size=\"38\"  class=input>\r\n            </td>\r\n            <td colspan";
echo "=\"2\"> \r\n              ";
echo "<s";
echo "elect name=\"shownum\">\r\n                <option value=\"10\"  ";
echo seld( $shownum, "10" );
echo ">";
echo $strNewsSelNum10;
echo "</option>\r\n                <option value=\"20\" ";
echo seld( $shownum, "20" );
echo ">";
echo $strNewsSelNum20;
echo "</option>\r\n                <option value=\"30\" ";
echo seld( $shownum, "30" );
echo ">";
echo $strNewsSelNum30;
echo "</option>\r\n                <option value=\"50\" ";
echo seld( $shownum, "50" );
echo ">";
echo $strNewsSelNum50;
echo "</option>\r\n              </select>\r\n              <input type=\"submit\" name=\"Submit\" value=\"";
echo $strSearchTitle;
echo "\" class=button>\r\n              <input type=\"hidden\" name=\"membertypeid\" value=\"";
echo $membertypeid;
echo "\">\r\n            </td>\r\n          </tr>\r\n        </table>\r\n      </td>\r\n    </tr>\r\n  </form>\r\n</table>\r\n\r\n        <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" align=\"center\">\r\n          <tr> \r\n      \r\n    <td height=\"28\" width=\"30\"  class=\"title\" align=\"center\">";
echo $strSel;
echo "</td>\r\n            <td height=\"28\" width=\"50\" align=\"center\"  class=\"title\" style=\"cursor:hand\" onClick=\"ord('memberid','";
echo $sc;
echo "')\">";
echo $strMemberNo;
ordsc( $ord, "memberid", $sc );
echo "</td>\r\n      <td height=\"28\" width=\"65\"  class=\"title\" align=\"center\">";
echo $strMemberType;
echo "</td>\r\n            <td height=\"28\" width=\"70\" align=\"center\"  class=\"title\"  style=\"cursor:hand\" onClick=\"ord('user','";
echo $sc;
echo "')\">";
echo $strMemberUser;
ordsc( $ord, "user", $sc );
echo "</td>\r\n            <td class=title align=center  style=\"cursor:hand;";
echo $cstyle;
echo "\" onClick=\"ord('company','";
echo $sc;
echo "')\" width=\"150\">";
echo $listname[company];
ordsc( $ord, "company", $sc );
echo "</td>\r\n            <td class=title align=center  style=\"cursor:hand;";
echo $nstyle;
echo "\" onClick=\"ord('name','";
echo $sc;
echo "')\" width=\"80\">";
echo $listname[name];
ordsc( $ord, "name", $sc );
echo "</td>\r\n            <td height=\"28\"  width=\"90\"  class=\"title\" align=\"center\"  style=\"cursor:hand\" onClick=\"ord('regtime','";
echo $sc;
echo "')\">";
echo $strMemberRegTime;
ordsc( $ord, "regtime", $sc );
echo "</td>\r\n            <td height=\"28\"  width=\"90\" class=\"title\" align=\"center\"  style=\"cursor:hand\" onClick=\"ord('exptime','";
echo $sc;
echo "')\">";
echo $strMemberExpTime;
ordsc( $ord, "exptime", $sc );
echo "</td>\r\n      <td  width=\"48\"  class=\"title\" align=\"center\">";
echo $strMemberMail;
echo "</td>\r\n      <td  width=\"48\"   class=\"title\" align=\"center\">";
echo $strMemberDetail;
echo "</td>\r\n      <td  width=\"48\"   class=\"title\"> \r\n        <div align=\"center\"><font color=\"#FFFFFF\">";
echo $strMemberCheck;
echo "</font></div>\r\n      </td>\r\n      <td  width=\"48\"   class=\"title\"> \r\n        <div align=\"center\"><font color=\"#FFFFFF\">";
echo $strDelete;
echo "</font></div>\r\n      </td>\r\n    </tr> \r\n\t<form name=\"delfm\" method=\"post\" action=\"member_new.php\">\r\n\r\n    ";
$msql->query( "select * from {$tbl_member} where {$scl} order by  {$ord} {$sc} limit {$pagelimit}" );
while ( $msql->next_record( ) )
{
	$memberid = $msql->f( "memberid" );
	$user = $msql->f( "user" );
	$company = $msql->f( "company" );
	$name = $msql->f( "name" );
	$tel = $msql->f( "tel" );
	$email = $msql->f( "email" );
	$checked = $msql->f( "checked" );
	$ip = $msql->f( "ip" );
	$regtime = $msql->f( "regtime" );
	$exptime = $msql->f( "exptime" );
	$regtime = date( "Y-n-j", $regtime );
	echo " \r\n    <tr class=list> \r\n      <td width=\"30\" align=\"center\" > \r\n        <input type=\"checkbox\" name=\"dall[]\" value=\"";
	echo $memberid;
	echo "\">\r\n      </td>\r\n      <td align=\"center\"   width=\"50\"> ";
	echo "{$memberid}";
	echo " </td>\r\n      <td width=\"65\" > \r\n        <div align=\"center\"> ";
	echo membertypeid2membertype( $membertypeid );
	echo " \r\n        </div>\r\n      </td>\r\n      <td align=\"center\" width=\"70\"  > ";
	echo "{$user}";
	echo " </td>\r\n            <td  align=center width=\"150\" style=\"";
	echo $cstyle;
	echo "\" >";
	echo $company;
	echo "</td>\r\n            <td  align=center width=\"80\" style=\"";
	echo $nstyle;
	echo "\" >";
	echo $name;
	echo "</td>\r\n            <td align=\"center\" width=\"90\" >";
	echo "{$regtime}";
	echo " </td>\r\n            <td align=\"center\" width=\"90\" >";
	showexptime( $exptime );
	echo "</td>\r\n      <td align=\"center\" width=\"48\" ><a href=\"member_email.php?memberid=";
	echo $memberid;
	echo "&membertypeid=";
	echo $membertypeid;
	echo "&from=member_new.php\"><img src=\"images/toolbar_mail_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></td>\r\n      <td align=\"center\" width=\"48\" > <font color=\"#000000\"> </font> <a href=\"member_modify.php?memberid=";
	echo $memberid;
	echo "&membertypeid=";
	echo $membertypeid;
	echo "&from=member_new.php\"><img src=\"images/toolbar_edit_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a> \r\n      </td>\r\n      <td width=\"48\" > \r\n        <div align=\"center\"> <a href=\"member_new.php?step=check&page=";
	echo "{$page}";
	echo "&memberid=";
	echo $memberid;
	echo "&membertypeid=";
	echo $membertypeid;
	echo "\"><img src=\"images/toolbar_ok_up.gif\" width=\"22\" height=\"20\" border=\"0\"></a></div>\r\n      </td>\r\n      <td  align=\"center\" width=\"48\"> <img src=\"images/toolbar_delete_up.gif\"  style=\"cursor:hand\" width=\"22\" height=\"20\" onClick=\"cm('";
	echo "{$memberid}";
	echo "')\"> \r\n      </td>\r\n    </tr>\r\n    ";
}
echo " \r\n \r\n  <tr>\r\n   \r\n      <td class=title  colspan=12 style=\"padding-left:6px\" height=\"30\"> \r\n        <input type=\"checkbox\" name=\"SELALL\" value=\"1\" onClick=\"SelAll(this.form)\">\r\n        ";
echo $strSelAll;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"delall\">\r\n        ";
echo $strDelete;
echo " \r\n        <input type=\"radio\" name=\"step\" value=\"checkall\">\r\n        <font color=\"#FFFFFF\">";
echo $strMemberCheck;
echo "</font> &nbsp;&nbsp;<a style=\"cursor:hand;color:#ffffff;font-weight:bold\" onClick=\"delfm.submit()\">[ \r\n        ";
echo $strSubmit;
echo " ]</a> \r\n        <input type=\"hidden\" name=\"page\" size=\"3\" value=\"";
echo $page;
echo "\">\r\n        <input type=\"hidden\" name=\"ord\" size=\"3\" value=\"";
echo $ord;
echo "\">\r\n        <input type=\"hidden\" name=\"sc\" size=\"3\" value=\"";
echo $sc;
echo "\">\r\n\t\t<input type=\"hidden\" name=\"membertypeid\" size=\"3\" value=\"";
echo $membertypeid;
echo "\">\r\n\t\t<input type=\"hidden\" name=\"memberid\" size=\"3\" value=\"";
echo $memberid;
echo "\">\r\n\t\t<input type=\"hidden\" name=\"key\" size=\"3\" value=\"";
echo $key;
echo "\">\r\n\t\t<input type=\"hidden\" name=\"shownum\" value=\"";
echo $shownum;
echo "\">\r\n      </td>\r\n  </tr></form>\r\n</table>\r\n\r\n\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" bgcolor=\"#FFFFFF\" align=\"center\" background=\"images/mu1.jpg\" height=\"29\">\r\n  <tr> \r\n    <td class=pages width=\"300\">";
$pages->shownow( );
echo " </td>\r\n    <td class=pages align=\"right\">";
$pages->output( $ShowPageList );
echo "</td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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