<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />

<title>管理员</title>
<!--{include file="<!--{$cptplpath}-->headerjs.tpl"}-->

</head>
<body>
<!--{include file="<!--{$cptplpath}-->lang_all.tpl"}-->
<!--{if $a eq "user"}-->
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;&gt;</span>管理员设置<span>&gt;&gt;</span><a href="admincp.php?c=admin&a=user">帐号列表</a></p></div>
	<div class="search-area ">
		<form method="post" id="search_form" action="admincp.php?c=admin&amp;a=user">
			<div class="item">
				<label>帐号：</label><input type="text" id="susername" name="susername" size="15" class="input-150" value="">&nbsp;&nbsp;&nbsp;
				<input type="submit" class="button_s" value="搜 索">
			</div>
		</form>
	</div>
  <div class="main-cont">
   
	<form action="<!--{$cpfile}-->?c=admin" method="post" name="myform" id="myform" style="margin:0">
	<input type="hidden" name="a" id="a" value="del" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table" align="center">
	  <thead class="tb-tit-bg">
	  <tr>
	    <th width="15%"><div class="th-gap">选择</div></th>
		<th width="20%"><div class="th-gap">帐号</div></th>
		<th width="20%"><div class="th-gap">手机</div></th>
		<th width="20%"><div class="th-gap">邮箱</div></th>
		<th width="18%"><div class="th-gap">状态</div></th>
		<th width="20%"><div class="th-gap">登录时间</div></th>
		<th width="20%"><div class="th-gap">操作</div></th>
	  </tr>
	  </thead>
	  <tfoot class="tb-foot-bg"></tfoot>
	  <!--{foreach $adminuser as $volist}-->
	  <tr onMouseOver="overColor(this)" onMouseOut="outColor(this)">
	    <td align="center"><input name="id[]" type="checkbox" value="<!--{$volist.id}-->" onClick="checkItem(this, 'chkAll')"></td>
		<td><!--{$volist.name}--></td>
		<td><!--{$volist.mobile_tel}--></td>
		<td><!--{$volist.email}--></td>
		<td align="center">
		<!--{if $volist.flag==0}-->
			<input type="hidden" id="attr_flag<!--{$volist.adminid}-->" value="flagopen" />
			<img id="flag<!--{$volist.adminid}-->" src="<!--{$urlpath}-->tpl/static/images/no.gif" onClick="javascript:fetch_ajax('flag','<!--{$volist.adminid}-->','2');" style="cursor:pointer;">
		<!--{else}-->
			<input type="hidden" id="attr_flag<!--{$volist.adminid}-->" value="flagclose" />
			<img id="flag<!--{$volist.adminid}-->" src="<!--{$urlpath}-->tpl/static/images/yes.gif" onClick="javascript:fetch_ajax('flag','<!--{$volist.adminid}-->','2');" style="cursor:pointer;">	
		<!--{/if}-->
		</td>
		<td><!--{$volist.last_login_time|date_format:"%Y/%m/%d %H:%M:%S"}--></td>
		<td align="center"><a href="<!--{$cpfile}-->?c=admin&a=useredit&id=<!--{$volist.id}-->&page=<!--{$page}-->" class="icon-edit">编辑</a>&nbsp;&nbsp;<a href="<!--{$cpfile}-->?c=admin&a=delete&id[]=<!--{$volist.id}-->" onClick="{if(confirm('确定要删除吗?')){return true;} return false;}" class="icon-del">删除</a></td>
	  </tr>
	  <!--{/foreach}-->
	  <tr>
		<td align="center"><input name="chkAll" type="checkbox" id="chkAll" onClick="checkAll(this, 'id[]')" value="checkbox"></td>
		<td class="hback" colspan="7"><input class="button" name="btn_del" type="button" value="全选删除" onClick="{if(confirm('确定删除选定吗!?')){$('#action').val('del');$('#myform').submit();return true;}return false;}" class="button">&nbsp;&nbsp;共[ <b><!--{$total}--></b>]个用户</td>
	  </tr>
	  <!--{/if}-->
	<!--{if $a eq "useredit"}-->
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;&gt;</span>管理员帐号<span>&gt;&gt;</span>编辑帐号</p></div>
  <div class="main-cont">
	<h3 class="title"><a href="admincp.php?c=admin&a=user" class="btn-general"><span>返回列表</span></a>编辑帐号</h3>
    <form name="myform" id="myform" method="post" action="<!--{$cpfile}-->?c=admin" />
    <input type="hidden" name="a" value="saveedit1" />
	<input type="hidden" name="id" value="<!--{$id}-->" />
	<table cellpadding='3' cellspacing='3' class='tab'>
	  <tr>
		<td class='hback_1' width='15%'>登录帐号 </td>
		<td class='hback' width='85%'><!--{$admin.name}--></td>
	  </tr>
	  <tr>
		<td class='hback_1'>登录密码 </td>
		<td class='hback'><input type="" name="password" id="" class="input-100" value="<!--{$admin.password}-->"/></td>
		<td></td>
	  </tr>
	   <tr>
		<td class='hback_1'>用户邮箱 </td>
                
		<td class='hback'><input type="" name="email" id="" class="input-100" value="<!--{$admin.email}-->"/></td>
	  </tr>

	  <tr>
		<td class='hback_none'></td>
		<td class='hback_none'><input type="submit" name="btn_save" class="button" value="更新保存" /></td>
	  </tr>
	</table>
	</form>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{/if}-->

<!--{if $a eq "usereditpassword"}-->
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;&gt;</span>管理员帐号<span>&gt;&gt;</span>修改密码</p></div>
  <div class="main-cont">
	<h3 class="title">修改密码</h3>
    <form name="myform" id="myform" method="post" action="admincp.php?c=admin&a=user" onsubmit='return checkpassword();' />
    <input type="hidden" name="a" value="savepassword" />
	<table cellpadding='5' cellspacing='5' class='tab'>
	  <tr>
		<td class='hback_none' width='15%'>登录帐号： </td>
		<td class='hback_none' width='85%'><!--{$uc_adminname}--></td>
	  </tr>
	  <tr>
		<td class='hback_none'>旧 密 码： </td>
		<td class='hback_none'><input type='password' name='oldpassword' id='oldpassword' maxlength="16" class="input-150" /> <span id='doldpassword' class='f_red'></span> </td>
	  </tr>
	  <tr>
		<td class='hback_none'>新 密 码： </td>
		<td class='hback_none'><input type='password' name='password' id='password' maxlength="16" class="input-150" /> <span id='dnewpassword' class='f_red'></span> <font color="#999999">4-16个字符</font></td>
	  </tr>
	  <tr>
		<td class='hback_none'>确认密码： </td>
		<td class='hback_none'><input type='password' name='confirmpassword' id='confirmpassword' maxlength="16" class="input-150" /> <span id='dconfirmpassword' class='f_red'></span> </td>
	  </tr>
	  <tr>
		<td class='hback_none'></td>
		<td class='hback_none'><input type="submit" name="btn_save" class="button" value="更新保存" /></td>
	  </tr>
	</table>
	</form>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{/if}-->
</body>
</html>
