{#include file="header.html"#}
<body>

<!-- top menu -->
{#include file="top.html"#}
<!-- top menu -->

<!-- wrap -->
<div class="wrap">
	<!-- nav -->
	<div class="navlink"><a href="admincp.php">{#$cp_lang.cp#}</a>{#$navlink#}</div>
	<!-- msg -->
	<!-- main -->
	<div class="container">
		<table cellpadding="0" cellspacing="0">
		<tr>
		<td style="width:180px">
		<!-- sidebar -->
		<div class="sidebar">
		<div class="leftmenuheader">{#$cp_lang.member#}</div>
		{#foreach from=$menu item=item key=key name=outmenu#}
		<div class="leftmenubody">
			<div class="leftmenutitle" onClick="show_menu('leftmenuitem_','{#$smarty.foreach.outmenu.iteration#}');"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="leftmenuitem_icon_{#$smarty.foreach.outmenu.iteration#}" />&nbsp;&nbsp;{#$item.mName#}</div>
			<div class="leftmenuitem" id="leftmenuitem_{#$smarty.foreach.outmenu.iteration#}">
				{#foreach from=$item.mItems item=s_item key=s_key#}
				<li><a href="admincp.php?action={#$s_item#}">{#$s_key#}</a></li>
				{#/foreach#}
			</div>
		</div>
		{#/foreach#}
		</div>
		<!-- sidebar end -->
		</td>
		<td>
		<!-- content -->
		<div class="content">
			<!-- include -->
			{#if $type eq "add"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.member_add_tip_1#}</li>
					<li>{#$cp_lang.member_add_tip_2#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- item -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.add_member#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.username#}</span><br />{#$cp_lang.add_member_username_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="username" id="username" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.password#}</span><br />{#$cp_lang.add_member_password_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="password" id="password" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.email#}</span><br />{#$cp_lang.add_member_email_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="email" id="email" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.usergroup#}</span><br />{#$cp_lang.add_member_group_intro#}</td>
						<td width="50%" class="tcell_two">
							{#$group_option#}
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
							<input type="reset" value="{#$cp_lang.reset#}" class="submit" name="reset">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- item -->
			{#elseif $type eq "manage"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.member_search_tip_10#}</li>
				</div>
				<div class="msgtitle">{#$cp_lang.shortcut#}</div>
				<div class="msgcontent">
					<li><a href="admincp.php?action=member&type=manage&find=all">{#$cp_lang.member_search_tip_1#}</a></li>
					<li><a href="admincp.php?action=member&type=manage&find=newest">{#$cp_lang.member_search_tip_2#}</a></li>
					<li><a href="admincp.php?action=member&type=manage&find=currency">{#$cp_lang.member_search_tip_3#}</a></li>
					<li><a href="admincp.php?action=member&type=manage&find=article">{#$cp_lang.member_search_tip_4#}</a></li>
				</div>
			</div>
			<!-- tip end -->
			<!-- item -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.search_member#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.username#}</span><br />{#$cp_lang.search_member_name_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="username" id="username" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.email#}</span><br />{#$cp_lang.search_member_email_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="email" id="email" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.usergroup#}</span><br />{#$cp_lang.add_member_group_intro#}</td>
						<td width="50%" class="tcell_one">
							{#$group_option#}
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.search_member_regdate#}</span><br />{#$cp_lang.search_member_regdate_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="later" id="later" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" type="text" value="" name="earlier" id="earlier" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.search_member_logdate#}</span><br />{#$cp_lang.search_member_logdate_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="logdate" id="logdate" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.search_member_article#}</span><br />{#$cp_lang.search_member_article_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="articlemore" id="articlemore" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" type="text" value="" name="articleless" id="articleless" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.search_member_currency#}</span><br />{#$cp_lang.search_member_currency_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="currencymore" id="currencymore" size="15" />&nbsp;&#8254;&nbsp;<input class="forminput" type="text" value="" name="currencyless" id="currencyless" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.search_member_orderby#}</span><br />{#$cp_lang.search_member_orderby_intro#}</td>
						<td width="50%" class="tcell_two">
						<select name="orderby" id="orderby">
							<option value="m.username">{#$cp_lang.username#}</option>
							<option value="m.email">{#$cp_lang.email#}</option>
							<option value="m.regdate">{#$cp_lang.search_member_regdate#}</option>
							<option value="md.lastvisit">{#$cp_lang.search_member_logdate#}</option>
							<option value="md.postnum">{#$cp_lang.search_member_article#}</option>
							<option value="md.currency">{#$cp_lang.search_member_currency#}</option>
						</select>
						&nbsp;&nbsp;
						<select name="ordertype" id="ordertype">
							<option value="ASC">{#$cp_lang.asc#}</option>
							<option value="DESC">{#$cp_lang.desc#}</option>
						</select>
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.search_member_pagesize#}</span><br />{#$cp_lang.search_member_pagesize_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="pagesize" id="pagesize" size="10" /></td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
							<input type="reset" value="{#$cp_lang.reset#}" class="submit" name="reset">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- item -->
			{#elseif $type eq "list"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.member_list_tip_1#}</li>
					<li>{#$cp_lang.member_list_tip_2#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- list member start -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.list_member#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="10%" class="tcell_header">{#$cp_lang.uid#}</td>
						<td width="15%" class="tcell_header">{#$cp_lang.username#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.email#}</td>
						<td width="10%" class="tcell_header">{#$cp_lang.usergroup#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.search_member_regdate#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.search_member_logdate#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.chose#}</td>
					</tr>
					{#foreach from=$member item=item name=list#}
					<tr class="{#if $smarty.foreach.list.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.uid#}</td>
						<td align="left"><a href="admincp.php?action=member&type=mod&uid={#$item.uid#}" class="uit" title="{#$cp_lang.edit#}{#$item.username#}">{#$item.username#}</a></td>
						<td align="left">{#$item.email#}</td>
						<td align="center">{#$item.group#}</td>
						<td align="center">{#$item.regdate#}</td>
						<td align="center">{#$item.lastvisit#}</td>
						<td align="center"><input type="checkbox" name="uid[]" value="{#$item.uid#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="6" style="text-align:right;">
							&nbsp;{#$mult#}
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="7">
							<input type="hidden" class="hidden" name="submitted" value="submitted">
							<input type="hidden" class="hidden" name="type" value="del">
							<input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)">
							<input type="submit" value="{#$cp_lang.delchose#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- list member end -->
			{#elseif $type eq "check"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>{#$cp_lang.member_check_tip_1#}</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- check member start -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.check_member#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="10%" class="tcell_header">{#$cp_lang.uid#}</td>
						<td width="25%" class="tcell_header">{#$cp_lang.username#}</td>
						<td width="35%" class="tcell_header">{#$cp_lang.email#}</td>
						<td width="20%" class="tcell_header">{#$cp_lang.regdate#}</td>
						<td width="*" class="tcell_header">{#$cp_lang.chose#}</td>
					</tr>
					{#foreach from=$member item=item name=list#}
					<tr class="{#if $smarty.foreach.list.iteration % 2 == 0#}tcell_one{#else#}tcell_two{#/if#}">
						<td align="center">{#$item.uid#}</td>
						<td align="center"><a href="admincp.php?action=member&type=mod&uid={#$item.uid#}" class="uit" title="{#$cp_lang.edit#}{#$item.username#}">{#$item.username#}</a></td>
						<td align="center">{#$item.email#}</td>
						<td align="center">{#$item.regdate#}</td>
						<td align="center"><input type="checkbox" name="uid[]" value="{#$item.uid#}" /></td>
					</tr>
					{#/foreach#}
					<tr>
						<td class="tcell_mult">{#$cp_lang.records#}：{#$total_records#}</td>
						<td class="tcell_mult" colspan="4" style="text-align:right;">
							&nbsp;{#$mult#}
						</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="5">
							<input name="checktype" type="radio" value="del" />{#$cp_lang.del#}&nbsp;
							<input name="checktype" type="radio" value="pass" checked="checked" />{#$cp_lang.pass#}&nbsp;
							<input type="button" value="{#$cp_lang.chose_all#}" class="submit" name="choseall" onclick="PBchoseAll(this.form)">&nbsp;
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- check member end -->
			{#elseif $type eq "mod"#}
			<!-- tip -->
			<div class="msgbox">
				<div class="msgtitle">{#$cp_lang.operateTip#}</div>
				<div class="msgcontent">
					<li>如果系统开启UC整合，用户名将无法修改。</li>
				</div>
			</div>
			<!-- tip end -->
			<!-- item -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.member_mod_item_one#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.username#}</span><br />{#$cp_lang.add_member_username_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="{#$member.username#}" name="username" id="username" size="35" {#$modusername#} /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.email#}</span><br />{#$cp_lang.add_member_email_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="{#$member.email#}" name="email" id="email" size="35" />&nbsp;<input type="checkbox" id="ifpublicemail" name="ifpublicemail" value="{#$member.ifpublicemail#}" {#$ifpublicemail#} />&nbsp;{#$cp_lang.ifpbulic#}</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.password#}</span><br />{#$cp_lang.mod_member_password_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="" name="password" id="password" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.rpassword#}</span><br />{#$cp_lang.mod_member_rpassword_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="" name="rpassword" id="rpassword" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.usergroup#}</span><br />{#$cp_lang.add_member_group_intro#}</td>
						<td width="50%" class="tcell_one">
							{#$group_option#}
						</td>
					</tr>
					</table>
				</div>
			</div>
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','2');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_2" /></span>{#$cp_lang.member_mod_item_two#}</div>
				<div class="tablecontent" id="tablecontent_2">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.qq#}</span><br />{#$cp_lang.mod_member_qq_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="{#$member.qq#}" name="qq" id="qq" size="15" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.msn#}</span><br />{#$cp_lang.mod_member_msn_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="{#$member.msn#}" name="msn" id="msn" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.site#}</span><br />{#$cp_lang.mod_member_site_intro#}</td>
						<td width="50%" class="tcell_one"><input class="forminput" type="text" value="{#$member.site#}" name="site" id="site" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.location#}</span><br />{#$cp_lang.mod_member_location_intro#}</td>
						<td width="50%" class="tcell_two"><input class="forminput" type="text" value="{#$member.location#}" name="location" id="location" size="35" /></td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.gender#}</span><br />{#$cp_lang.mod_member_gender_intro#}</td>
						<td width="50%" class="tcell_one"><input class="radio" type="radio" value="1" name="gender" id="gender_1" {#$gender_1#} />&nbsp;{#$cp_lang.male#}<input class="radio" type="radio" value="0" name="gender" id="gender_0" {#$gender_0#} />&nbsp;{#$cp_lang.female#}&nbsp;<input class="radio" type="radio" value="3" name="gender" id="gender_3" {#$gender_3#} />&nbsp;{#$cp_lang.secrecy#}</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_two"><span class="defaultbold">{#$cp_lang.birthday#}</span><br />{#$cp_lang.mod_member_birthday_intro#}</td>
						<td width="50%" class="tcell_two">
							{#$year_option#}{#$cp_lang.year#}&nbsp;
							{#$month_option#}{#$cp_lang.month#}&nbsp;
							{#$day_option#}{#$cp_lang.day#}&nbsp;
						</td>
					</tr>
					<tr>
						<td width="50%" class="tcell_one"><span class="defaultbold">{#$cp_lang.signature#}</span><br />{#$cp_lang.mod_member_signature_intro#}</td>
						<td width="50%" class="tcell_one"><textarea type="text" name="signature" id="signature" cols="45" rows="7" >{#$member.signature#}</textarea>&nbsp;<input type="checkbox" id="showsign" name="showsign" value="{#$member.showsign#}" {#$ifshowsign#} />&nbsp;{#$cp_lang.ifpbulic#}</td>
					</tr>
					<tr>
						<td class="tcell_sub" colspan="2">
							<input class="hidden" name="submitted" type="hidden" value="submitted">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
							<input type="reset" value="{#$cp_lang.reset#}" class="submit" name="reset">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- item -->
			{#elseif $type eq "tidy"#}
			<!-- tidy member start -->
			<div class="tablebody">
				<div class="tabletitle" onClick="show_menu('tablecontent_','1');"><span style="float:right;"><img src="{#$PB_ENV.PB_URL#}templates/admin/images/collapse.gif" class="leftmenuicon" alt="Collapse" id="tablecontent_icon_1" /></span>{#$cp_lang.tidy_member#}</div>
				<div class="tablecontent" id="tablecontent_1">
				<form action="{#$actionurl#}" method="post" name="form" id="{#$type#}">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td class="tcell_two">
						<p class="desc">{#$cp_lang.tidy_member_intro#}</p>
						{#$cp_lang.batch_count#}：<input class="forminput" type="text" value="300" name="count" id="count" size="5" maxlength="5" /></td>
					</tr>
					<tr>
						<td class="tcell_sub">
							<input class="hidden" name="step" type="hidden" value="1">
							<input type="submit" value="{#$cp_lang.submit#}" class="submit" name="submit">
						</td>
					</tr>
					</table>
					</form>
				</div>
			</div>
			<!-- tidy cate end -->
			{#/if#}
			<!-- include -->
		</div>
		<!-- content -->
		</td>
		</tr>
		</table>
	</div>
</div>
<!-- wrap -->

{#include file="footer.html"#}