list.vm 2.14 KB
<DIV id="navBar" title="authScope">
	<li><a href="$!{contextPath}/">首页</a><span class="divider">/</span></li>
	<li class="active">authScope</li>
</DIV>
<form class="well form-search" name="authScopeListForm" action="/authScope" method="POST">
	<!-- 智能分页与排序 -->
	<input type="hidden" name="currentPage" value="$!{page.currentPage}"/>
	<input type="hidden" name="pageSize" value="$!{page.pageSize}"/>
	<input type="hidden" name="orderField" value="$!{authScope.orderField}"/>
	<input type="hidden" name="orderFieldType" value="$!{authScope.orderFieldType}"/>
	<!-- 查询条件 -->
	<input class="span2" type="text" name="id" value="$!{authScope.id}" placeholder="id"/>
	<input class="span2" type="text" name="authId" value="$!{authScope.authId}" placeholder="authId"/>
	<input class="span2" type="text" name="scopeId" value="$!{authScope.scopeId}" placeholder="scopeId"/>
	<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
	<!-- 新增按钮 -->
	<div class="btn-group pull-right">
		<a class="btn" onclick="XUI.window.open('/authScope/0',null,'PUT',{title:$(this).text()})"><i class="icon-pencil"></i>新增</a>
	</div>
</form>

<!-- 表格数据 -->
<table class="table table-striped table-bordered table-condensed grid">
	<thead>
		<tr>
			<th #sorting($!{authScope} "id")>id</th>
			<th #sorting($!{authScope} "authId")>authId</th>
			<th #sorting($!{authScope} "scopeId")>scopeId</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
#foreach(${item} in ${page.result})
		<tr>
			<td>$!{item.id}</td>
			<td>$!{item.authId}</td>
			<td>$!{item.scopeId}</td>
			<td class="textC">
				<div class="btn-group">
					<a class="btn btn-mini" onclick="XUI.ajax.delete('/authScope/${item.id}',null,{refresh:true})"><i class="icon-trash"></i> 删除</a>
					<a class="btn btn-mini" onclick="XUI.window.open('/authScope/${item.id}',null,'PUT',{title:$(this).text()})"><i class="icon-pencil"></i> 修改</a>
					<a class="btn btn-mini" onclick="XUI.window.open('/authScope/${item.id}',null,'GET',{title:$(this).text()})"><i class="icon-eye-open"></i> 查看</a>
				</div>
			</td>
		</tr>
#end
	</tbody>
</table>
<!-- 分页栏 -->
#showPage($!{page})