restoreAttrItem.vm 2.59 KB


	<DIV id="navBar" class="page-header">
	<li><a href="$!{contextPath}/">首页</a><span class="divider">></span>
		<a href="$!{contextPath}/titan/attribute">属性管理</a>>
		<a href="">回收站</a>
	</li>
</DIV>
    <div class="navbar-fixed-top">
<form class="well" name="restoreAttrListForm" action="/titan/attribute/restoreAttrItem" method="POST">
	<!-- 智能分页与排序 -->
	<input type="hidden" name="currentPage" value="$!{page.currentPage}"/>
	<input type="hidden" name="pageSize" value="$!{page.pageSize}"/>
	<input type="hidden" name="orderField" value="$!{attribute.orderField}"/>
	<input type="hidden" name="orderFieldType" value="$!{attribute.orderFieldType}"/>
	<!-- 查询条件 -->
	<input class="span2" type="hidden" name="id" value="$!{attribute.id}" />
	<input class="span2 align-middle" type="text" name="name" value="$!{attribute.name}" placeholder="属性名称"/>
	<input id="minTime" class="span2 align-middle" type="text" name="startTime" value="$!{attribute.startTime}" placeholder="起始时间" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){maxTime.focus();},maxDate:'%y-%M-%d'})" readonly/> —
	<input id="maxTime" class="span2 align-middle" type="text" name="endTime" value="$!{attribute.endTime}" placeholder="截止时间" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'minTime\')}',maxDate:'%y-%M-%d'})" readonly/>
	
	<span class="align-middle">
		<button type="submit" class="btn btn-sm btn-primary" style="height:34px"><i class="icon-search icon-white"></i>搜索</button>
        &nbsp;<button type="button" class="btn btn-sm btn-primary btn-clear">清空</button>
	</span>
</form>
</div>
<!-- 表格数据 -->
<table class="table table-striped table-bordered table-condensed grid">
	<thead>
		<tr>
			<th>属性名称</th>
			<th>属性值</th>
			<th>删除时间</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
#foreach(${item} in ${page.result})
		<tr attrId="$!{item.id}">
			<td align="center" width=20%>$!{item.name}</td>
			<td width=50% style="word-break:break-all;">$!{item.valueText}</td>
			<td align="center" width=20%>$!{item.utimeText}</td>
    			<td class="textC" width=10%>
					#if($!{restoreAttrItem})
    				<a class="red" onclick="XUI.Attribute.AttrItem.restoreAttr('${item.id}')"><i class="icon-trash"></i>还原</a>
					#end
    			</td>
		</tr>
#end
	</tbody>
</table>
<!-- 分页栏 -->
#showPage($!{page})
<script>
    $(document).ready(function(){
        XUI.Attribute.RestoreList.init();
    });
</script>
#*
<script language="javascript" type="text/javascript" src="/assets/js/My97DatePicker/WdatePicker.js">
</script>*#