#288 dict/synonym/index
This commit is contained in:
parent
3cfbc20755
commit
1c717d94be
1 changed files with 139 additions and 119 deletions
|
@ -1,127 +1,147 @@
|
|||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><tiles:insert template="/WEB-INF/view/common/admin/layout.jsp"
|
||||
flush="true">
|
||||
<tiles:put name="title">
|
||||
<bean:message key="labels.dict_synonym_configuration" />
|
||||
</tiles:put>
|
||||
<tiles:put name="header" value="/WEB-INF/view/common/admin/header.jsp" />
|
||||
<tiles:put name="footer" value="/WEB-INF/view/common/admin/footer.jsp" />
|
||||
<tiles:put name="menu" value="/WEB-INF/view/common/admin/menu.jsp" />
|
||||
<tiles:put name="menuType" value="dict" />
|
||||
<tiles:put name="headerScript" type="string"></tiles:put>
|
||||
<tiles:put name="body" type="string">
|
||||
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Fess | <bean:message key="labels.dict_synonym_configuration" /></title>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/head.jsp"></jsp:include>
|
||||
</head>
|
||||
<body class="skin-blue sidebar-mini">
|
||||
<div class="wrapper">
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/header.jsp"></jsp:include>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/sidebar.jsp">
|
||||
<jsp:param name="menuCategoryType" value="crawl" />
|
||||
<jsp:param name="menuType" value="dict" />
|
||||
</jsp:include>
|
||||
|
||||
<h3>
|
||||
<bean:message key="labels.dict_synonym_title" />
|
||||
</h3>
|
||||
<div class="content-wrapper">
|
||||
|
||||
<%-- Message: BEGIN --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info"><bean:write name="msg" ignore="true" /></div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
<%-- Message: END --%>
|
||||
|
||||
<%-- List: BEGIN --%>
|
||||
<div class="list-table">
|
||||
<div>
|
||||
<ul class="pills">
|
||||
<li><s:link href="../index">
|
||||
<bean:message key="labels.dict_list_link" />
|
||||
<%-- Content Header --%>
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<bean:message key="labels.dict_synonym_title" />
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li class="active"><s:link href="index">
|
||||
<bean:message key="labels.dict_synonym_list_link" />
|
||||
</s:link></li>
|
||||
<li class="active"><a href="#"><bean:message
|
||||
key="labels.dict_synonym_list_link" /></a></li>
|
||||
<li><s:link href="createpage?dictId=${f:u(dictId)}">
|
||||
<bean:message key="labels.dict_synonym_link_create" />
|
||||
</s:link></li>
|
||||
<li><s:link href="downloadpage?dictId=${f:u(dictId)}">
|
||||
<bean:message key="labels.dict_synonym_link_download" />
|
||||
</s:link></li>
|
||||
<li><s:link href="uploadpage?dictId=${f:u(dictId)}">
|
||||
<bean:message key="labels.dict_synonym_link_upload" />
|
||||
</s:link></li>
|
||||
</ul>
|
||||
</div>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<c:if test="${synonymPager.allRecordCount == 0}">
|
||||
<p class="alert-message warning">
|
||||
<bean:message key="labels.list_could_not_find_crud_table" />
|
||||
</p>
|
||||
</c:if>
|
||||
<c:if test="${synonymPager.allRecordCount > 0}">
|
||||
<table class="bordered-table zebra-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center;"><bean:message
|
||||
key="labels.dict_synonym_source" /></th>
|
||||
<th style="text-align: center;"><bean:message
|
||||
key="labels.dict_synonym_target" /></th>
|
||||
<th style="text-align: center; width: 200px;"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="data" varStatus="s" items="${synonymItemItems}">
|
||||
<tr class="${s.index % 2 == 0 ? 'row1' : 'row2'}">
|
||||
<td>${f:h(data.inputs)}</td>
|
||||
<td>${f:h(data.outputs)}</td>
|
||||
<td style="text-align: center;"><s:link
|
||||
href="confirmpage/${f:u(dictId)}/4/${f:u(data.id)}">
|
||||
<bean:message key="labels.dict_link_details" />
|
||||
</s:link> <s:link href="editpage/${f:u(dictId)}/2/${f:u(data.id)}">
|
||||
<bean:message key="labels.dict_link_edit" />
|
||||
</s:link> <s:link href="deletepage/${f:u(dictId)}/3/${f:u(data.id)}">
|
||||
<bean:message key="labels.dict_link_delete" />
|
||||
</s:link></td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
<%-- Page Navigation: BEGIN --%>
|
||||
<div class="row center">
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
<c:if test="${synonymPager.existPrePage}">
|
||||
<li class="prev"><s:link
|
||||
href="list/${f:u(dictId)}/${synonymPager.currentPageNumber - 1}">
|
||||
<bean:message key="labels.dict_link_prev_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!synonymPager.existPrePage}">
|
||||
<li class="prev disabled"><a href="#"><bean:message
|
||||
key="labels.dict_link_prev_page" /></a></li>
|
||||
</c:if>
|
||||
<c:forEach var="p" varStatus="s"
|
||||
items="${synonymPager.pageNumberList}">
|
||||
<li
|
||||
<c:if test="${p == synonymPager.currentPageNumber}">class="active"</c:if>>
|
||||
<s:link href="list/${f:u(dictId)}/${p}">${p}</s:link>
|
||||
</li>
|
||||
</c:forEach>
|
||||
<c:if test="${synonymPager.existNextPage}">
|
||||
<li class="next"><s:link
|
||||
href="list/${f:u(dictId)}/${synonymPager.currentPageNumber + 1}">
|
||||
<bean:message key="labels.dict_link_next_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!synonymPager.existNextPage}">
|
||||
<li class="next disabled"><a href="#"><bean:message
|
||||
key="labels.dict_link_next_page" /></a></li>
|
||||
</c:if>
|
||||
</ul>
|
||||
</div>
|
||||
<section class="content">
|
||||
|
||||
<div>
|
||||
<span><bean:message key="labels.pagination_page_guide_msg"
|
||||
arg0="${f:h(synonymPager.currentPageNumber)}"
|
||||
arg1="${f:h(synonymPager.allPageCount)}"
|
||||
arg2="${f:h(synonymPager.allRecordCount)}" /></span>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<%-- Box Header --%>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
<bean:message key="labels.dict_synonym_list_link" />
|
||||
</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<span class="label label-default">
|
||||
<s:link href="../index">
|
||||
<bean:message key="labels.dict_list_link" />
|
||||
</s:link>
|
||||
</span>
|
||||
<span class="label label-default">
|
||||
<s:link href="#">
|
||||
<bean:message key="labels.dict_synonym_list_link" />
|
||||
</s:link>
|
||||
</span>
|
||||
<span class="label label-default">
|
||||
<s:link href="createpage?dictId=${f:u(dictId)}">
|
||||
<bean:message key="labels.dict_synonym_link_create" />
|
||||
</s:link>
|
||||
</span>
|
||||
<span class="label label-default">
|
||||
<s:link href="downloadpage?dictId=${f:u(dictId)}">
|
||||
<bean:message key="labels.dict_synonym_link_download" />
|
||||
</s:link>
|
||||
</span>
|
||||
<span class="label label-default">
|
||||
<s:link href="uploadpage?dictId=${f:u(dictId)}">
|
||||
<bean:message key="labels.dict_synonym_link_upload" />
|
||||
</s:link>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<%-- Box Body --%>
|
||||
<div class="box-body">
|
||||
<%-- Message --%>
|
||||
<div>
|
||||
<html:messages id="msg" message="true">
|
||||
<div class="alert-message info">
|
||||
<bean:write name="msg" ignore="true" />
|
||||
</div>
|
||||
</html:messages>
|
||||
<html:errors />
|
||||
</div>
|
||||
<%-- List --%>
|
||||
<c:if test="${synonymPager.allRecordCount == 0}">
|
||||
<p class="alert-message warning">
|
||||
<bean:message key="labels.list_could_not_find_crud_table" />
|
||||
</p>
|
||||
</c:if>
|
||||
<c:if test="${synonymPager.allRecordCount > 0}">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th> <bean:message key="labels.dict_synonym_source" /> </th>
|
||||
<th> <bean:message key="labels.dict_synonym_target" /> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="data" varStatus="s" items="${synonymItemItems}">
|
||||
<tr class="${s.index % 2 == 0 ? 'row1' : 'row2'}" data-href="confirmpage/${f:u(dictId)}/4/${f:u(data.id)}">
|
||||
<td>${f:h(data.inputs)}</td>
|
||||
<td>${f:h(data.outputs)}</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
</c:if>
|
||||
</div>
|
||||
<%-- Box Footer --%>
|
||||
<div class="box-footer">
|
||||
<%-- Paging Info --%>
|
||||
<span><bean:message key="labels.pagination_page_guide_msg" arg0="${f:h(synonymPager.currentPageNumber)}"
|
||||
arg1="${f:h(synonymPager.allPageCount)}" arg2="${f:h(synonymPager.allRecordCount)}"
|
||||
/></span>
|
||||
|
||||
<%-- Paging Navigation --%>
|
||||
<ul class="pagination pagination-sm no-margin pull-right">
|
||||
<c:if test="${synonymPager.existPrePage}">
|
||||
<li class="prev"><s:link href="list/${synonymPager.currentPageNumber - 1}">
|
||||
<bean:message key="labels.dict_link_prev_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!synonymPager.existPrePage}">
|
||||
<li class="prev disabled"><a href="#"><bean:message key="labels.dict_link_prev_page" /></a></li>
|
||||
</c:if>
|
||||
<c:forEach var="p" varStatus="s" items="${synonymPager.pageNumberList}">
|
||||
<li <c:if test="${p == synonymPager.currentPageNumber}">class="active"</c:if>><s:link href="list/${p}">${p}</s:link>
|
||||
</li>
|
||||
</c:forEach>
|
||||
<c:if test="${synonymPager.existNextPage}">
|
||||
<li class="next"><s:link href="list/${synonymPager.currentPageNumber + 1}">
|
||||
<bean:message key="labels.dict_link_next_page" />
|
||||
</s:link></li>
|
||||
</c:if>
|
||||
<c:if test="${!synonymPager.existNextPage}">
|
||||
<li class="next disabled"><a href="#"><bean:message key="labels.dict_link_next_page" /></a></li>
|
||||
</c:if>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%-- Page Navigation: END --%>
|
||||
</c:if>
|
||||
</div>
|
||||
<%-- List: END --%>
|
||||
|
||||
</tiles:put>
|
||||
</tiles:insert>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/footer.jsp"></jsp:include>
|
||||
</div>
|
||||
<jsp:include page="/WEB-INF/view/common/admin2/foot.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue