<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo SYS_CHARSET ?>">
<title>users</title>
<link href="<?php echo SYS_ADMIN_STYLE_PATH ?>style/common.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<?php echo SYS_ADMIN_STYLE_PATH ?>js/validate.js"></script>
<script language="javascript" src="<?php echo SYS_ADMIN_STYLE_PATH ?>js/common.js"></script>
</head>

<body>
<table class="nav_table" cellpadding="0" cellspacing="0">	
	<tr>
		<td class="nav_td"><?php echo $layout['menu_nav'] ?></td>
	</tr>	
</table>
<table class="toolbar_table" cellpadding="0" cellspacing="0">
	<form name="editForm" method="post" action="">
	<tr>
		<td width="200">
		</td>
		<td class="toolbar_td"><?php echo $layout['toolbar'] ?></td>
	</tr>
	<input type="hidden" name="selectValue" id="selectValue" value="">
</form>
</table>

<div class="line_space"><img src="<?php echo SYS_ADMIN_STYLE_PATH ?>images/blank.gif"></div>
<table class="search_table" cellpadding="0" cellspacing="0">	
	<form name="searchForm" method="post" action="">
	<tr>
		<td class="search_td">
			<select name="search_field" class="input_select" >
			<option value='username' >用户名</option>
			<option value='nickname' >昵称</option>
			<option value='email' >电子邮件</option>
			<option value='tel' >电话</option>
			<option value='mobile' >手机</option>
			</select>
			<?php echo $layout['list_flag'] . $layout['list_user_class']; ?>
            <input type="text" name="layout_id_show" id="layout_id_show" class="input_text" size="15" value="<?php echo $layout['layout_title'] ?>" onClick="openSelectWin('../mod_template/template_layout_select.php?act=select')" >
			<input type="hidden" name="layout_id" id="layout_id" value="<?php echo $layout['layout_id'] ?>">
            <input type="text" name="search_keyword" id="search_keyword" class="input_text_search" value="">
            <input type="submit" name="btn_search" class="btn_search" value="go">
		</td>
	</tr>	
</form>
</table>
<table class="list_tb" cellpadding="0" cellspacing="0">
<tr class="list_title_tr_bg">
<td width="5%" class="list_title_td" title="选择"><input type="checkbox" name="select_all" id="select_all" value="1" class="input_checkbox_all" onClick="selectAll('select_all','selectid')"></td>
<td width="10%" class="list_title_td">用户名</td>
<td width="10%" class="list_title_td">昵称/公司简称</td>
<td width="15%" class="list_title_td">电子邮件</td>
<td width="10%" class="list_title_td" title="所属用户组">用户组</td>
<td width="10%" class="list_title_td" title="最后登陆日期">注册日期</td>
<td width="5%" class="list_title_td">状态</td>
<td width="15%" class="list_title_td">编辑</td>
</tr>
<?php
require_once(EIFR_ROOT . 'admin/mod_user_class/class_user_class.php');
$num=0; 
foreach($layout['eifr_pages']['list'] as $row):
$num++;
$user_class = ComUserClass::getUserClassById($row['user_class_id']);
?>
<tr class="list_sub_tr_bg" onMouseOver="this.className='list_mouseover_tr_bg'" onMouseOut="this.className='list_sub_tr_bg'" >
<td><input type="checkbox" name="selectid" value="<?php echo $row['uid'] ?>" class="input_checkbox" title="<?php echo $row['uid'] ?>"></td>
<td><?php echo $row['username'] ?></td>
<td><?php echo $row['nickname'] ?></td>
<td><?php echo $row['email'] ?></td>
<td><?php echo $user_class['title'] ?></td>
<td title="<?php echo getDateTimeMk($row['lasttime']) ?>"><?php echo getDateTimeMk_YMD($row['regtime']) ?></td>
<td><?php echo Common::createFlagShow($row['flag']) ?></td>
<td>
<a href="user_edit.php?act=edit&selectid=<?php echo $row['uid'] ?>">[常规]</a>
<a href="user_edit.php?act=edit&edittype=all&selectid=<?php echo $row['uid'] ?>">[详细]</a>
</td>
</tr>
<?php endforeach; ?>
</table>               
<div class="pagenext_div"><?php echo $layout['eifr_pages']['page'] ?></div>
</body>
</html>