?? member_manage.php
字號:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td ></td>
</tr>
</table>
<?=$menu?>
<table cellpadding='2' cellspacing='1' border='0' align='center' class='tableBorder'>
<tr>
<td class='pagemenu' align="center"><a href="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>" class='pagelink'>所有會員</a>
<?php
if(is_array($groups))
{
foreach($groups as $gid=>$groupname){ ?>
| <a href="?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&groupid=<?=$gid?>" class='pagelink'><?=$groupname?></a>
<?php }
}
?>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
<tr>
<td ></td>
</tr>
</table>
<form method="post" name="myform">
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=11>會員管理</th>
</tr>
<tr align=center>
<td width="4%" class="tablerowhighlight">選中</td>
<td width="5%" class="tablerowhighlight">ID</td>
<td width="14%" class="tablerowhighlight">帳號</td>
<td width="12%" class="tablerowhighlight">用戶組</td>
<td width="9%" class="tablerowhighlight">資金余額</td>
<td width="9%" class="tablerowhighlight">消費金額</td>
<td width="9%" class="tablerowhighlight">可用點數</td>
<td width="9%" class="tablerowhighlight">可用積分</td>
<td width="9%" class="tablerowhighlight">剩余天數</td>
<td width="5%" class="tablerowhighlight">狀態</td>
<td width="15%" class="tablerowhighlight">管理操作</td>
</tr>
<?php
if(is_array($members))
{
foreach($members as $member){ ?>
<tr align=center onmouseout="this.style.backgroundColor='#F1F3F5'" onmouseover="this.style.backgroundColor='#BFDFFF'" bgColor='#F1F3F5'>
<td class=forumrow><input type="checkbox" name="userid[]" id="userid[]" value="<?=$member[userid]?>"></td>
<td class=forumrow><?=$member[userid]?></td>
<td class=forumrow><a href="<?=PHPCMS_PATH?>member/member.php?username=<?=urlencode($member[username])?>" target="_blank"><?=$member[username]?></a></td>
<td class=forumrow><?=$member[groupname]?></td>
<td class=forumrow><?=$member[money]?>元</td>
<td class=forumrow><?=$member[payment]?>元</td>
<td class=forumrow><?=$member[point]?>點</td>
<td class=forumrow><?=$member[credit]?>分</td>
<td class=forumrow><?=$member[validdatenum]?></td>
<td class=forumrow><?=$member[locked]?></td>
<td class=forumrow align=center>
<a href='?mod=<?=$mod?>&file=member&action=view&userid=<?=$member[userid]?>' title="點擊查看會員資料
最后登錄時間:<?=$member[lastlogintime]?>
最后登錄IP:<?=$member[lastloginip]?>
登錄次數:<?=$member[logintimes]?>">查看</a> |
<a href='?mod=<?=$mod?>&file=member&action=note&userid=<?=$member[userid]?>' title="關于該會員的管理筆記都記在這里">備注</a> |
<a href='?mod=<?=$mod?>&file=member&action=edit&userid=<?=$member[userid]?>'>修改</a>
</td>
</tr>
<?php }
}
?>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10%"><input name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='checkbox'>全選/反選</td>
<td>
<input type="submit" name="submit" value="批量鎖定" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=lock&val=1'">
<input type="submit" name="submit" value="批量解鎖" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=lock&val=0'">
<input type="submit" name="submit" value="批量移動" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=move'">
<input type="submit" name="submit" value="批量刪除" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=delete'">
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
<tr>
<td align="center"><?=$pages?></td>
</tr>
</table>
</form>
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan=8>會員搜索</th>
</tr>
<form method="get" name="search" action="?">
<tr>
<td align=center width="10%" class="tablerowhighlight">用戶名</td>
<td width="15%" class="tablerow"><input name='username' type='text' size='15' value='<?=$username?>'></td>
<td align=center width="10%" class="tablerowhighlight">真實姓名</td>
<td width="15%" class="tablerow"><input name='truename' type='text' size='15' value='<?=$truename?>'></td>
<td align=center width="10%" class="tablerowhighlight">用戶組</td>
<td width="15%" class="tablerow"><?=$groupids?></td>
<td align=center width="10%" class="tablerowhighlight">會員狀態</td>
<td width="15%" class="tablerow">
<select name='locked'>
<option value='-1'>不限</option>
<option value='0'>正常</option>
<option value='1'>鎖定</option>
</select>
</td>
</tr>
<tr>
<td align=center width="10%" class="tablerowhighlight">所屬行業</td>
<td width="15%" class="tablerow">
<select name="industry">
<option value="">不限</option>
<option value="金融業" <?php if($industry=="金融業"){ ?> selected <?php } ?>>金融業</option>
<option value="服務業" <?php if($industry=="服務業"){ ?> selected <?php } ?>>服務業</option>
<option value="信息產業" <?php if($industry=="信息產業"){ ?> selected <?php } ?>>信息產業</option>
<option value="制造業" <?php if($industry=="制造業"){ ?> selected <?php } ?>>制造業</option>
<option value="傳播業" <?php if($industry=="傳播業"){ ?> selected <?php } ?>>傳播業</option>
<option value="教育" <?php if($industry=="教育"){ ?> selected <?php } ?>>教育</option>
<option value="政府機構" <?php if($industry=="政府機構"){ ?> selected <?php } ?>>政府機構</option>
<option value="醫療保健" <?php if($industry=="醫療保健"){ ?> selected <?php } ?>>醫療保健</option>
<option value="房地產" <?php if($industry=="房地產"){ ?> selected <?php } ?>>房地產</option>
<option value="其它" <?php if($industry=="其它"){ ?> selected <?php } ?>>其它</option>
</select>
</td>
<td align=center width="10%" class="tablerowhighlight">教育水平</td>
<td width="15%" class="tablerow">
<select name="edulevel" size=1>
<option value="">不限</option>
<option value="博士" <?php if($edulevel=="博士"){ ?> selected <?php } ?>>博士</option>
<option value="碩士" <?php if($edulevel=="碩士"){ ?> selected <?php } ?>>碩士</option>
<option value="大學" <?php if($edulevel=="大學"){ ?> selected <?php } ?>>大學</option>
<option value="高中" <?php if($edulevel=="高中"){ ?> selected <?php } ?>>高中</option>
<option value="初中" <?php if($edulevel=="初中"){ ?> selected <?php } ?>>初中</option>
<option value="小學" <?php if($edulevel=="小學"){ ?> selected <?php } ?>>小學</option>
</select>
</td>
<td align=center width="10%" class="tablerowhighlight">收入狀況</td>
<td width="15%" class="tablerow">
<select name="income">
<option value="">不限</option>
<option value="6000以上" <?php if($income=="6000以上"){ ?> selected <?php } ?>>6000以上</option>
<option value="4001-6000" <?php if($income=="4001-6000"){ ?> selected <?php } ?>>4001-6000</option>
<option value="2001-4000" <?php if($income=="2001-4000"){ ?> selected <?php } ?>>2001-4000</option>
<option value="1001-2000" <?php if($income=="1001-2000"){ ?> selected <?php } ?>>1001-2000</option>
<option value="501-1000" <?php if($income=="501-1000"){ ?> selected <?php } ?>>501-1000</option>
<option value="500以下" <?php if($income=="500以下"){ ?> selected <?php } ?>>500以下</option>
</select>
</td>
<td align=center width="10%" class="tablerowhighlight">從事職業</td>
<td width="15%" class="tablerow">
<select name="occupation">
<option value="">不限</option>
<option value="學生" <?php if($occupation=="學生"){ ?> selected <?php } ?>>學生</option>
<option value="職員" <?php if($occupation=="職員"){ ?> selected <?php } ?>>職員</option>
<option value="經理" <?php if($occupation=="經理"){ ?> selected <?php } ?>>經理</option>
<option value="專業人士" <?php if($occupation=="專業人士"){ ?> selected <?php } ?>>專業人士</option>
<option value="公務員" <?php if($occupation=="公務員"){ ?> selected <?php } ?>>公務員</option>
<option value="私營主" <?php if($occupation=="私營主"){ ?> selected <?php } ?>>私營主</option>
<option value="待業" <?php if($occupation=="待業"){ ?> selected <?php } ?>>待業</option>
<option value="退休" <?php if($occupation=="退休"){ ?> selected <?php } ?>>退休</option>
<option value="其它" <?php if($occupation=="其它"){ ?> selected <?php } ?>>其它</option>
</select>
</td>
</tr>
<tr>
<td align=center width="10%" class="tablerowhighlight">省份</td>
<td width="15%" class="tablerow">
<select name="province" id="province" style="width:110">
<option value="">不限</option>
<?php
foreach($provinces as $p)
{
$selected = $p == $province ? "selected" : "";
echo "<option value='".$p."' ".$selected.">".$p."</option>\n";
}
?>
</select>
</td>
<td align=center width="10%" class="tablerowhighlight">城市</td>
<td width="15%" class="tablerow"><input name='city' type='text' size='15' value='<?=$city?>'></td>
<td align=center width="10%" class="tablerowhighlight">地址</td>
<td width="15%" class="tablerow"><input name='address' type='text' size='15' value='<?=$address?>'></td>
<td align=center width="10%" class="tablerowhighlight">E-mail</td>
<td width="15%" class="tablerow"><input name='email' type='text' size='15' value='<?=$email?>'></td>
</tr>
<tr>
<td align=center width="10%" class="tablerowhighlight">MSN</td>
<td width="15%" class="tablerow"><input name='msn' type='text' size='15' value='<?=$msn?>'></td>
<td align=center width="10%" class="tablerowhighlight">SKYPE</td>
<td width="15%" class="tablerow"><input name='skype' type='text' size='15' value='<?=$skype?>'></td>
<td align=center width="10%" class="tablerowhighlight">個人主頁</td>
<td width="15%" class="tablerow"><input name='homepage' type='text' size='15' value='<?=$homepage?>'></td>
<td align=center width="10%" class="tablerowhighlight">QQ</td>
<td width="15%" class="tablerow"><input name='qq' type='text' size='15' value='<?=$qq?>'></td>
</tr>
<tr>
<td align=center width="10%" class="tablerowhighlight">資金余額</td>
<td width="15%" class="tablerow"><input name='frommoney' type='text' size='5' value='<?=$frommoney?>'> - <input name='tomoney' type='text' size='5' value='<?=$tomoney?>'></td>
<td align=center width="10%" class="tablerowhighlight">消費金額</td>
<td width="15%" class="tablerow"><input name='frompayment' type='text' size='5' value='<?=$frompayment?>'> - <input name='topayment' type='text' size='5' value='<?=$topayment?>'></td>
<td align=center width="10%" class="tablerowhighlight">可用點數</td>
<td width="15%" class="tablerow"><input name='frompoint' type='text' size='5' value='<?=$frompoint?>'> - <input name='topoint' type='text' size='5' value='<?=$topoint?>'></td>
<td align=center width="10%" class="tablerowhighlight">可用積分</td>
<td width="15%" class="tablerow"><input name='fromcredit' type='text' size='5' value='<?=$fromcredit?>'> - <input name='tocredit' type='text' size='5' value='<?=$tocredit?>'></td>
</tr>
<tr>
<td colspan=8 height="30" class="tablerow" align="center">
<input name='mod' type='hidden' value='<?=$mod?>'>
<input name='file' type='hidden' value='<?=$file?>'>
<input name='action' type='hidden' value='<?=$action?>'>
<input name='submit' type='submit' value=' 會員搜索 '>
</td>
</tr>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -