This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/webapp/WEB-INF/views/basics/dictList.jsp
2019-01-08 12:17:57 +06:00

130 lines
4.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<html>
<head>
<title>字典管理</title>
<style type="text/css">
.revisionBox {
margin: 5px;
}
span.label.label-success{
width: 250px;
}
.popover {
max-width: 800px;
}
.btn.purple-stripe {
border-left: 3px solid #852B99;
}
</style>
<script type="text/javascript">
function page(n,s){
if(n) $("#pageNo").val(n);
if(s) $("#pageSize").val(s);
$("#searchForm").attr("action","${ctx}/sys/dict/topicAndWebsiteList");
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<div class="page-content">
<div class="theme-panel hidden-xs hidden-sm">
<button type="button" class="btn btn-primary" onClick="javascript:window.location='${ctx}/sys/dict/dictItemForm?dictionaryId=${sysDataDictionaryItem.dictionaryId }'">
<i class="fa fa-plus"></i>
<spring:message code="add"/></button>
</div>
<h3 class="page-title">
<spring:message code="dictManage"></spring:message>
</h3>
<h5 class="page-header"></h5>
<div class="row">
<div class="col-md-12">
<div class="portlet">
<div class="portlet-body">
<div class="row" >
<form:form id="searchForm" action="${ctx}/sys/dict/topicAndWebsiteList" method="post" class="form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<input id="dictionaryId" name="dictionaryId" type="hidden" value="${sysDataDictionaryItem.dictionaryId}"/>
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
<!-- 搜索内容与操作按钮栏 -->
<div class="col-md-12 filter-action-select-panle" style="background-color:transparent">
<div class="row">
<div class="col-md-2">
<div class="form-group">
<label><spring:message code="item_code"/></label>
<input id="itemCode" name="itemCode" type="text" maxlength="50" class="form-control" value="${sysDataDictionaryItem.itemCode}"/>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label><spring:message code="item_value"/></label>
<input id="itemValue" name="itemValue" type="text" maxlength="50" class="form-control" value="${sysDataDictionaryItem.itemValue}"/>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label><spring:message code="desc"/></label>
<input id="itemDesc" name="itemDesc" type="text" maxlength="50" class="form-control" value="${sysDataDictionaryItem.itemDesc}"/>
</div>
</div>
<div class="col-md-1">
<div class="form-group">
<label>&nbsp;</label>
<button type="submit" class="btn blue form-control"><i class="fa fa-search"></i><spring:message code="search" /></button>
</div>
</div>
</div>
</div>
</form:form>
</div>
<sys:message content="${message}" type="${messageType }" />
<br>
<table id="contentTable1" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th class="sort-column item_code" width="15%"><spring:message code="itemCode"/></th>
<th class="sort-column item_value" width="20%"><spring:message code="itemValue"/></th>
<th class="sort-column item_desc" width="15%"><spring:message code="itemDesc"/></th>
<th width="15%"><spring:message code="operation"/></th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.list}" var="dict">
<tr>
<td>${dict.itemCode}</td>
<td>${dict.itemValue}</td>
<td title="${dict.itemDesc }">${fns:abbr(dict.itemDesc,200)}</td>
<td><a href="${ctx}/sys/dict/dictItemForm?dictionaryId=${sysDataDictionaryItem.dictionaryId}&id=${dict.id}">update</a>
<a href="${ctx}/sys/dict/deleteItem?dictionaryId=${sysDataDictionaryItem.dictionaryId}&id=${dict.id}">delete</a></td>
</tr>
</c:forEach>
</tbody>
</table>
<div class="page">${page}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>