<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$smarty.const.MICE_TITLE}--></title>
<base href="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
</script>
<script type="text/javascript" src="js/Main.js"></script>
<script language="JavaScript">
function add(){
	window.location.href="<!--{$create}-->";
	window.event.returnValue = false;
}

function edit(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				window.location.href="<!--{$edit}-->"+c.$A("value");
				window.event.returnValue = false;
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要编辑的分类！" ) ;
	}

	return ;
}

function del(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				document.form1.submit();
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要删除的分类！" ) ;
	}

	return ;
}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
			<tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd">
			  <div style="float: left;"><img src="imgs/Icons/icon021a1.gif" />会员列表</div>
			  <div style="float: right; white-space: nowrap;vertical-align:middle;"><a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="add();"><img src="imgs/Icons/icon003a2.gif" width="20" height="20" /><b>新建&nbsp;</b></a> 
				<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="edit();return false;"><img src="imgs/Icons/icon003a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon003a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a></div>
			 </td>
            </tr>
			<form action="<!--{$index}-->" method="post" id="form2" name="form2">
			<tr>
				<td style="padding:2px 10px;">&nbsp;&nbsp;级别&nbsp;<select name='levelid' id='levelid'>
								<option value='0'>全部</option>
								<!--{foreach from=$usergroups item=urs}-->
									<option value='<!--{$urs->getUsergroupId()}-->' <!--{if $urs->getUsergroupId()==$levelid}-->selected<!--{/if}-->><!--{$urs->getName()}--></option>
								<!--{/foreach}-->
							  </select>&nbsp;状态&nbsp;<select name='statusid' id='statusid'>
								<option value='-1'>全部</option>
								<option value='0'>正常</option>
								<option value='1'>禁止</option>
							  </select>&nbsp;登录名&nbsp;<input name='keywords' id='keywords' type="text" size="10" value="<!--{$keywords}-->">&nbsp;每页显示条数&nbsp;<select name='pages' id='pages'>
								<option value='10' <!--{if 10==$pages}-->selected<!--{/if}-->>10</option>
								<option value='20' <!--{if 20==$pages or 0>=$pages}-->selected<!--{/if}-->>20</option>
								<option value='30' <!--{if 30==$pages}-->selected<!--{/if}-->>30</option>
								<option value='50' <!--{if 50==$pages}-->selected<!--{/if}-->>50</option>
								<option value='100' <!--{if 100==$pages}-->selected<!--{/if}-->>100</option>						
							  </select>&nbsp;<select name='orders' id='orders'>
									<option value='rd' <!--{if "rd"==$orders}-->selected<!--{/if}-->>注册时间降序</option>		
									<option value='ra' <!--{if "ra"==$orders}-->selected<!--{/if}-->>注册时间升序</option>		
									<option value='ld' <!--{if "ld"==$orders}-->selected<!--{/if}-->>最后登录时间降序</option>
									<option value='la' <!--{if "la"==$orders}-->selected<!--{/if}-->>最后登录时间升序</option>
									<option value='pd' <!--{if "pd"==$orders}-->selected<!--{/if}-->>文章数降序</option>
									<option value='pa' <!--{if "pa"==$orders}-->selected<!--{/if}-->>文章数升序</option>
							  </select>&nbsp;&nbsp;<input type="submit" value="查 找">
				</td>				
			</tr>
			</form>
            <tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">

<!--内容开始-->
<table width="100%" border='0' align="center" cellpadding='0' cellspacing='0'>

<tr>
<td style="padding:0px 5px;">

<table width="99%" cellpadding="2" cellspacing="0" class="dataTable" bgcolor="#BEBEBE" id="contentlist">
<tr class="dataTableHead">
<td width="4%" height="30"></td>
<td width="4%" height="30"><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'></td>
<td width="10%"><span style='float:left'><b>登录名</b></span></td>
<td width="10%"><strong>真实姓名</strong></td>
<td width="5%"><strong>性别</strong></td>
<td width="8%"><strong>文章数</strong></td>
<td width="12%"><strong>会员组</strong></td>
<td width="5%"><strong>状态</strong></td>
<td width="13%"><strong>注册时间</strong></td>
<td width="13%"><strong>最后登录时间</strong></td>
<td width="8%"><strong>操作</strong></td>
</tr>

<!--{foreach from=$results item=rs name=counter}-->
<tr onmouseover="changeto()" onmouseout="changeback()">
<td><!--{$smarty.foreach.counter.iteration}--></td>
<td><input name="checkbox[<!--{$rs->getUserId()}-->]" id="checkbox[<!--{$rs->getUserId()}-->]" type="checkbox" value="<!--{$rs->getUserId()}-->" /></td>
<td><span title="<!--{$rs->getLoginname()}-->"><a href="<!--{$edit}--><!--{$rs->getUserId()}-->"><!--{$rs->getLoginname()}--></a></span></td>
<td><!--{$rs->getRealname()}--></td>
<td><!--{if 0==$rs->getSex()}-->保密<!--{elseif 1==$rs->getSex()}-->男<!--{else}-->女<!--{/if}--></td>
<td><!--{$rs->getPostnums()}--></td>
<td><!--{'micefun'|UsergroupName:$rs->getUsergroupId()}--></td>
<td><!--{if 0==$rs->getStatus()}-->正常<!--{else}-->禁止<!--{/if}--></td>
<td><!--{'micefun'|Num2TimeShort:$rs->getRegdate()}--></td>
<td><!--{'micefun'|Num2TimeShort:$rs->getLastlogindate()}--></td>
<td><a href="<!--{$edit}--><!--{$rs->getUserId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$rs->getUserId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
</tr>
<!--{/foreach}-->
 <tr>
	<td colspan="11" align="left" id="_PageBar_list"><div style='float:right;font-family:Tahoma'><!--{$pager}--></div></td>
 </tr>
</table></td>
 </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="30" valign='middle'>
			<div id='_PageBar_buttom' class="pageBarWrap" style="padding-top:6px;clear:both;bottom:0px; height:30px; line-height:30px;"><div class="pageBar" style='float:right;font-family:Tahoma'></div><div style='float:left;font-family:Tahoma'><a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="add();"><img src="imgs/Icons/icon003a2.gif" width="20" height="20" /><b>新建&nbsp;</b></a> 
				<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="edit();return false;"><img src="imgs/Icons/icon003a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon003a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a></div></div>
		</td>
	</tr>
</table>

<!--内容结束-->
		</td>
		</tr>
	</table></td>
  </tr>
  </form>
</table>
</body>
</html>