<!--<?php
include_once PrintEot('left');
if (empty($action)){
print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>

<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>
<ul>
{#setuser_edit_info}
</ul>
<br></td></tr></table><br>
<form action="$basename&" method=post>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=2>{#setuser_edit_title}</td></tr>
<tr><td class=b>{#setuser_group}</td>
<td class=b><select name=groupid><option value=''>{#setuser_all}</option>
$groupselect</select></td></tr>
<tr><td class=b width=40%>{#setuser_name_contain}</td>
<td class=b><input type=text size=20 maxlength=14 name="schname"> <input name=schname_s type=checkbox value=1 checked='checked'>  {#setuser_name_s}</td></tr>
<tr><td class=b>{#setuser_email}</td>
<td class=b><input type=text size=20 name="schemail"></td></tr>
<tr><td class=b>{#setuser_lastip}</td>
<td class=b><input type=text size=20 name="userip"></td></tr>
<tr><td class=b>{#setuser_reg_early}</td>
<td class=b><select name=regdate>
<OPTION value="all">{#setuser_all}</OPTION>
<OPTION value="86400">{#day_1}</OPTION>
<OPTION value="172800">{#day_2}</OPTION>
<OPTION value="604800">{#day_7}</OPTION>
<OPTION value="2592000">{#day_30}</OPTION>
<OPTION value="7776000">{#day_90}</OPTION>
<OPTION value="15552000">{#day_180}</OPTION>
<OPTION value="31536000">{#day_360}</OPTION></select></td></tr>
<tr><td class=b>{#setuser_howlong}</td>
<td class=b><select name=schlastvisit>
<OPTION value="all">{#setuser_all}</OPTION>
<OPTION value="86400">{#day_1}</OPTION>
<OPTION value="172800">{#day_2}</OPTION>
<OPTION value="604800">{#day_7}</OPTION>
<OPTION value="2592000">{#day_30}</OPTION>
<OPTION value="7776000">{#day_90}</OPTION>
<OPTION value="15552000">{#day_180}</OPTION>
<OPTION value="31536000">{#day_360}</OPTION></select></td></tr>
<tr><td class=b>{#setuser_order}</td>
<td class=b><select name=orderway>
<option value="username">{#username}</option>
<option value="uid">{#regdate}</option>
<option value="lastpost">{#lastpost}</option>
<option value="lastvisit">{#lasttime}</option>
<option value="postnum">{#posts}</option></select>
<input type=radio size=5 name="asc" value='' checked>{#_asc}
<input type=radio size=5 name="asc" value='DESC'>{#_desc}</td></tr>
<tr><td class=b>{#setuser_pernum}</td>
<td class=b><input type=text size=5 name="lines" value=100></td></tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center>
<input type=hidden name=action value=search></form>

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>
<ul>{#setuser_groups_info}
</ul><br></td></tr></table><br>

<form action="$basename&" method=post>
<input type="hidden" name="action" value="groups">
<table width="98%" align="center" cellspacing=1 cellpadding=3 class="i_table">
<tr><td class=head colspan=2>{#setuser_groups_title}</td></tr>
<tr><td class=b>{#setuser_bygroups}</td>
<td class=b><select name=groupid><option value=''>{#setuser_all}</option>
$groupselect</select></td></tr>
<tr><td class=b width=40%>{#setuser_name_contain}</td>
<td class=b><input type=text size=20 maxlength=14 name="schname"> <input name=schname_s type=checkbox value=1 checked='checked'>  {#setuser_name_s}</td></tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center></form>

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>
<ul>
{#setuser_add_info}
</ul><br></td></tr></table><br>
<form action="$basename&" method=post>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=2>{#setuser_add_title}</td></tr>
<tr><td class=b width=40%>{#username}</td>
<td class=b><input type=text size=20 maxlength=14 name="username"></td></tr>
<tr><td class=b>{#password}</td>
<td class=b><input type=password size=20 name="password"></td></tr>
<tr><td class=b>Email</td>
<td class=b><input type=text size=20 name="email"></td></tr>
<tr><td class=b>{#setuser_group}</td>
<td class=b>
<select name=groupid>$groupselect</select></td></tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center>
<input type=hidden name=action value=addnew></form>
<br><br>
<form action="$admin_file?adminjob=updatecache&" method=post>
<input type=hidden name=action value='member'>
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr align=center><td class=head colspan=2>{#update_post}</td></tr>
<tr><td class=b  colspan=2>{#update_post_info}</td></tr>
<tr class=b><td width=40%>{#update_num}</td>
<td><input type=text size=20 name="percount" value=1000></td></tr></table>
<br><center><input type=submit value="{#submit}"></center></form>
<!--
EOT;
}elseif($action==search){print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#setuser_edit_title}</td></tr>
<tr><td class=b><br>
<ul>
{#setuser_editgroup}
</ul>
<br></td></tr></table><br>

&nbsp;&nbsp;&nbsp;$pages
<form action="$basename&" method=post>
<input type=hidden name='action' value='edutgroup'>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=8>{#setuser_list}</td></tr>
<tr align=center>
<td class=head_2>ID</td><td class=head_2>{#username}</td><td class=head_2>Email</td>
<td class=head_2>{#setuser_system}</td>
<td class=head_2>{#regdate}</td><td class=head_2>{#posts}</td><td class=head_2>IP</td>
<td class=head_2>{#setuser_edit}</td>
</tr>
<!--
EOT;
foreach($schdb as $key=>$sch){
if(!$sch[username])continue;
$key+=($page-1)*$lines+1;
$uid=$sch[uid];
print <<<EOT
-->
<tr align=center>
<td class=b>$key</td>
<td class=b>$sch[username]</td><td class=b>$sch[email]</td>
<td class=b><select name='gid[$uid]'>$sch[groupselect]</select></td>
<td class=b>$sch[regdate]</td><td class=b>$sch[postnum]</td>
<td class=b>$sch[onlineip]</td><td class=b>
<a href="$basename&action=edit&uid=$sch[uid]">{#setuser_edit}</a></td>
</tr>
<!--
EOT;
}
print <<<EOT
-->
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center></form>
<!--
EOT;
}elseif($action=='groups'){print <<<EOT
-->
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=8>{#setuser_list}</td></tr>
<tr class=head_2 align=center>
<td>ID</td>
<td>{#username}</td>
<td>{#setuser_system}</td>
<td>{#setuser_groups}</td>
<td>{#setuser_edit}</td>
</tr>
<!--
EOT;
$id=0;
foreach($schdb as $key => $value){
$id++;
print <<<EOT
-->
<tr class="b" align="center">
<td>$id</td>
<td>$value[username]</td>
<td>$value[system]</td>
<td>$value[gtitle]</td>
<td><a href="$basename&action=edit&uid=$value[uid]">{#setuser_edit}</a></td>
</tr>
<!--
EOT;
}
print <<<EOT
-->
</table></td></tr></table>
<!--
EOT;
}elseif($action==edit){
print <<<EOT
-->
<form action="$basename&" method=post>
<table align=center width=98% cellspacing=0 cellpadding=0 class=i_table>
<tr><td>
<table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=8>{#setuser_edit_title}</td></tr>
<tr><td class=b width=40%>{#setuser_system}</td>
<td class=b><select name=groupid>$groupselect</select</td></tr>
<tr><td class=b width=40%>{#setuser_groups}</td>
<td class=b>$usergroup</td></tr>
<tr><td class=b width=40%>{#setuser_edit_name}</td>
<td class=b width=40%>
<input type=text size=20 name="username" value="$username"></td></tr>
<tr><td class=b width=40%>{#setuser_edit_pwd}</td>
<td class=b width=40%>
<input type=text size=20 name="password" value=''></td></tr>
<tr><td class=b width=40%>{#setuser_confirm}</td>
<td class=b width=40%>
<input type=text size=20 name="check_pwd"></td></tr>

<tr><td class=b width=40%>Email</td>
<td class=b width=40%>
<input type=text size=20 name="email"value='$email'>
<input type=checkbox name=publicmail value=1 $ifchecked>{#setuser_public}</td></tr>
<tr><td class=b> {#setuser_recelve}</td>
<td class=b><input type=radio name='receivemail' value='1' $email_open>{#_yes}
<input type=radio name='receivemail' value='0' $email_close>{#_no}</td></tr>
<tr><td class=b>{#setuser_format}</td>
<td class=b><input type=text size=20 name=regdate value='$regdate'></td></tr>
<tr><td class=b width=40%>{#setuser_jihuo}</td>
<td class=b width=40%><input type=text size=20 name=yz value='$yz'></td></tr>
<tr><td class=b width=40%>IP</td>
<td class=b width=40%><input type=text size=20 name=userip value='$onlineip'>
</td></tr>
<tr><td class=b width=40%>{#setuser_img}</td>
<td class=b width=40%><input type=text size=20 name=i_http value='$i_http'>{#setuser_width}<input type=text size=5 name=i_w value='$i_w'>{#setuser_height}<input type=text size=5 name=i_h value='$i_h'></td></tr>
<tr><td class=b width=40%>{#posts}</td>
<td class=b width=40%>
<input type=text size=20 name=postnum value='$postnum'></td></tr>
<tr><td class=b width=40%>{#rvrc}</td>
<td class=b width=40%><input type=text size=20 name=rvrc value='$rvrc'></td></tr>
<tr><td class=b width=40%>{#money}</td>
<td class=b width=40%><input type=text size=20 name=money value='$money'></td></tr>
<tr><td class=b width=40%>{#bank_term_sort}</td>
<td class=b width=40%><input type=text size=20 name=deposit value='$deposit'></td></tr>
<tr><td class=b width=40%>{#bank_fixed_sort}</td>
<td class=b width=40%><input type=text size=20 name=ddeposit value='$ddeposit'></td></tr>
<tr><td class=b width=40%>{#setuser_credit}</td>
<td class=b width=40%><input type=text size=20 name=credit value='$credit'></td></tr>
<tr><td class=b width=40%>{#oltime}</td>
<td class=b width=40%><input type=text size=20 name=onlinetime value='$onlinetime'></td></tr>
<tr><td class=b width=40%>{#site}</td>
<td class=b width=40%><input type=text size=20 name=site value='$site'></td></tr>
<tr><td class=b width=40%>{#from}</td>
<td class=b width=40%><input type=text size=20 name=location value='$location'></td></tr>
<tr><td class=b width=40%>OICQ</td>
<td class=b width=40%>
<input type=text size=20 name=oicq value='$oicq'></td></tr>
<tr><td class=b width=40%>ICQ</td>
<td class=b width=40%><input type=text size=20 name=icq value='$icq'></td></tr>
<tr><td class=b width=40%>MSN</td>
<td class=b width=40%><input type=text size=20 name=msn value='$msn'></td></tr>
<tr><td class=b width=40%>Yahoo</td>
<td class=b width=40%><input type=text size=20 name=yahoo value='$yahoo'></td></tr>
<tr><td class=b width=40%>{#honor}</td>
<td class=b width=40%>
<input type=text size=20 maxlength=75 name=honor value='$honor'></td></tr>
<tr><td class=b width=40%> {#gender}</td>
<td class=b><select name=gender>
<option value=0 $sexselect[0]>{#unknown}</option>
<option value=1 $sexselect[1]>{#male}</option>
<option value=2 $sexselect[2]>{#female}</option></select></td></tr>
<tr><td class=b> {#birth}</td>
<td class=b><select name=year>
<option value='0000'></option>
<!--
EOT;
for($i=1960;$i<2005;$i++){
print <<<EOT
-->
<option value=$i $yearslect[$i]>$i</option>
<!--
EOT;
}print <<<EOT
-->
</select>{#year} 
<select name=month>
<option value='00'></option>
<!--
EOT;
for($i=1;$i<13;$i++){
print <<<EOT
-->
<option value=$i $monthslect[$i]>$i</option>
<!--
EOT;
}print <<<EOT
-->
</select>{#month} 
<select name=day>
<option value='00'></option>
<!--
EOT;
for($i=1;$i<32;$i++){
print <<<EOT
-->
<option value=$i $dayslect[$i]>$i</option>
<!--
EOT;
}print <<<EOT
-->
</select>{#day}
</td></tr>
<tr><td class=b width=40%>{#setuser_sign}</td>
<td class=b width=40%>
<textarea cols=50 name=signature rows="4">$signature</textarea></td></tr>
<tr><td class=b width=40%>{#introduce}</td>
<td class=b width=40%>
<textarea name=introduce  rows=4 cols=50>$introduce</textarea></td></tr>
<tr><td class=b width=40%>{#setuser_ban}</td>
<td class=b width=40%>
<textarea name=banpm  rows=4 cols=50>$banpm</textarea></td></tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center>
<input type=hidden name='action' value=edit>
<input type=hidden name=uid value=$uid>
<input type=hidden name=step value=2>
</form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->