📄 member_modify.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( 53 );
$step = $_REQUEST['step'];
$memberid = $_REQUEST['memberid'];
$membertypeid = $_REQUEST['membertypeid'];
$from = $_REQUEST['from'];
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 checkexp(exp){\r\n\tif(exp==0){\r\n\tttt.style.visibility=\"hidden\";\t\r\n\t}else{\r\n\tttt.style.visibility=\"visible\";\t\t\r\n\t}\r\n}\r\n\r\n</script>\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\" > <img src=\"images/bar.gif\"> ";
echo $strMemberModify;
echo "</td>\r\n <td > </td>\r\n <td width=\"100\" > </td>\r\n </tr>\r\n \r\n</table>\r\n";
if ( $step == "modify" )
{
needauth( 54 );
$company = $_POST['company'];
$name = $_POST['name'];
$sex = $_POST['sex'];
$birth0 = $_POST['birth0'];
$birth1 = $_POST['birth1'];
$birth2 = $_POST['birth2'];
$addr = $_POST['addr'];
$tel = $_POST['tel'];
$mov = $_POST['mov'];
$fax = $_POST['fax'];
$postcode = $_POST['postcode'];
$email = $_POST['email'];
$url = $_POST['url'];
$zoneid = $_POST['zoneid'];
$Province = $_POST['Province'];
$catid = $_POST['catid'];
$passtype = $_POST['passtype'];
$passcode = $_POST['passcode'];
$qq = $_POST['qq'];
$msn = $_POST['msn'];
$maillist = $_POST['maillist'];
$bz = $_POST['bz'];
$sayexp = $_POST['sayexp'];
$memberid = $_POST['memberid'];
$membertypeid = $_POST['membertypeid'];
$checked = $_POST['checked'];
$from = $_POST['from'];
$yy = $_POST['yy'];
$dd = $_POST['dd'];
$mm = $_POST['mm'];
$se = $_POST['se'];
$mi = $_POST['mi'];
$ho = $_POST['ho'];
$ResetPass = $_POST['ResetPass'];
$password = $_POST['password'];
$mdpass = md5( $password );
$birthday = $birth0.$birth1.$birth1;
if ( $sayexp == "0" )
{
$exptime = 0;
}
else
{
$exptime = mktime( $ho, $mi, $se, $mm, $dd, $yy );
}
$tbl_member_regform_now = $tbl_member_regform."_".$membertypeid;
$msql->query( "select * from {$tbl_member_regform_now} where used='1' and formcolname!='repass' and formcolname!='password' and formcolname!='user' order by xuhao" );
while ( $msql->next_record( ) )
{
$formcolname = $msql->f( "formcolname" );
$UpdateStr .= $formcolname."='".$$formcolname."',";
}
if ( $ResetPass == "yes" )
{
$UpdateStr .= " password='{$mdpass}', ";
}
$UpdateStr .= "checked='{$checked}',";
$UpdateStr .= "exptime='{$exptime}'";
$msql->query( "update {$tbl_member} set ".$UpdateStr." where memberid='{$memberid}'" );
sayok( $strMemberModifyOk, $from."?membertypeid=".$membertypeid, "" );
}
echo " ";
$msql->query( "select * from {$tbl_member} where memberid='{$memberid}'" );
if ( $msql->next_record( ) )
{
$user = $msql->f( "user" );
$password = $msql->f( "password" );
$company = $msql->f( "company" );
$name = $msql->f( "name" );
$sex = $msql->f( "sex" );
$birthday = $msql->f( "birthday" );
$zoneid = $msql->f( "zoneid" );
$catid = $msql->f( "catid" );
$addr = $msql->f( "addr" );
$tel = $msql->f( "tel" );
$mov = $msql->f( "mov" );
$fax = $msql->f( "fax" );
$postcode = $msql->f( "postcode" );
$email = $msql->f( "email" );
$url = $msql->f( "url" );
$passtype = $msql->f( "passtype" );
$passcode = $msql->f( "passcode" );
$qq = $msql->f( "qq" );
$msn = $msql->f( "msn" );
$maillist = $msql->f( "maillist" );
$bz = $msql->f( "bz" );
$checked = $msql->f( "checked" );
$regtime = $msql->f( "regtime" );
$exptime = $msql->f( "exptime" );
$account = $msql->f( "account" );
$paytotal = $msql->f( "paytotal" );
$buytotal = $msql->f( "buytotal" );
$cent = $msql->f( "cent" );
$ip = $msql->f( "ip" );
$checked = $msql->f( "checked" );
$logincount = $msql->f( "logincount" );
$logintime = $msql->f( "logintime" );
$loginip = $msql->f( "loginip" );
$regtime = date( "Y-n-j H:i:s", $regtime );
$logintime = date( "Y-n-j H:i:s", $logintime );
$date = getdate( $exptime );
$yy = $date['year'];
$dd = $date['mday'];
$mm = $date['mon'];
$ho = $date['hours'];
$mi = $date['minutes'];
$se = $date['seconds'];
if ( $exptime == "0" )
{
$sayexp = 0;
}
else
{
$sayexp = 1;
}
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\r\n <form method=\"post\" name='regform' action=\"member_modify.php\">\r\n ";
echo memberform( $membertypeid );
echo " \r\n <tr> \r\n <td class=title width=\"150\" align=\"right\" height=\"26\">";
echo $strMemberExpTime;
echo "</td>\r\n <td class=con> \r\n ";
echo "<s";
echo "elect name=\"sayexp\" onChange=\"checkexp(this.form.sayexp.options[this.form.sayexp.selectedIndex].value)\">\r\n <option value=\"0\" ";
echo seld( $sayexp, 0 );
echo ">";
echo $strNolimit;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $sayexp, 1 );
echo ">";
echo $strlimit;
echo "</option>\r\n </select>\r\n <div id=\"ttt\" style=\"position:absolute; width:200px; height:26px; z-index:1; visibility: visible\"> \r\n ";
echo explist( $ho, $mi, $se, $mm, $dd, $yy );
echo " </div>\r\n ";
echo "<s";
echo "cript>checkexp('";
echo $sayexp;
echo "')</script>\r\n <font color=\"#000000\"> </font></td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"right\" height=\"26\">";
echo $strMemberModifyStat;
echo "</td>\r\n <td class=con> \r\n ";
echo "<s";
echo "elect name=\"checked\">\r\n <option value=\"0\" ";
echo seld( $checked, 0 );
echo ">";
echo $strMemberModifyStat0;
echo "</option>\r\n <option value=\"1\" ";
echo seld( $checked, 1 );
echo ">";
echo $strMemberModifyStat1;
echo "</option>\r\n </select>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"right\" height=\"26\">";
echo $strMemberRegTime;
echo "</td>\r\n <td class=con> \r\n <table width=\"350\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td width=\"200\">";
echo $regtime;
echo "</td>\r\n <td>[IP: ";
echo $ip;
echo "]</td>\r\n </tr>\r\n </table>\r\n \r\n </td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"right\" height=\"26\">";
echo $strMemberLastLogin;
echo "</td>\r\n <td class=con> \r\n <table width=\"350\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr> \r\n <td width=\"200\">";
echo $logintime;
echo "</td>\r\n <td>[IP: ";
echo $loginip;
echo "]</td>\r\n </tr>\r\n </table>\r\n </td>\r\n </tr>\r\n <tr> \r\n <td class=title width=\"150\" align=\"right\" height=\"26\">";
echo $strMemberLoginCount;
echo "</td>\r\n <td class=con> ";
echo $logincount;
echo "</td>\r\n </tr>\r\n <tr align=\"center\"> \r\n <td class=title height=\"35\" colspan=\"2\"> \r\n <input type=\"submit\" name=\"Submit\" value=\"";
echo $strModify;
echo "\" class=button>\r\n <input type=\"button\" name=\"Submit2\" value=\"";
echo $strBack;
echo "\" class=button onClick=\"self.location='";
echo $from;
echo "?membertypeid=";
echo $membertypeid;
echo "'\">\r\n <input type=\"hidden\" name=\"membertypeid\" value=\"";
echo $membertypeid;
echo "\">\r\n <input type=\"hidden\" name=\"memberid\" value=\"";
echo $memberid;
echo "\">\r\n <input type=\"hidden\" name=\"from\" value=\"";
echo $from;
echo "\">\r\n <input type=\"hidden\" name=\"step\" value=\"modify\">\r\n </td>\r\n </tr>\r\n </form>\r\n</table>\r\n\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -