036e9e32391def03fa32d60dea9d051403d4fc2c.svn-base
3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>选择文章</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
$(document).ready(function() {
$("input[name=id]").each(function(){
var articleSelect = null;
if (top.mainFrame.cmsMainFrame){
articleSelect = top.mainFrame.cmsMainFrame.articleSelect;
}else{
articleSelect = top.mainFrame.articleSelect;
}
for (var i=0; i<articleSelect.length; i++){
if (articleSelect[i][0]==$(this).val()){
this.checked = true;
}
}
$(this).click(function(){
var id = $(this).val(), title = $(this).attr("title");
if (top.mainFrame.cmsMainFrame){
top.mainFrame.cmsMainFrame.articleSelectAddOrDel(id, title);
}else{
top.mainFrame.articleSelectAddOrDel(id, title);
}
});
});
});
function view(href){
top.$.jBox.open('iframe:'+href,'查看文章',$(top.document).width()-220,$(top.document).height()-120,{
buttons:{"关闭":true},
loaded:function(h){
$(".jbox-content", top.document).css("overflow-y","hidden");
$(".nav,.form-actions,[class=btn]", h.find("iframe").contents()).hide();
}
});
return false;
}
function page(n,s){
$("#pageNo").val(n);
$("#pageSize").val(s);
$("#searchForm").submit();
return false;
}
</script>
</head>
<body>
<div style="margin:10px;">
<form:form id="searchForm" modelAttribute="article" action="${ctx}/cms/article/selectList" method="post" class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<label>栏目:</label><sys:treeselect id="category" name="category.id" value="${article.category.id}" labelName="category.name" labelValue="${article.category.name}"
title="栏目" url="/cms/category/treeData" module="article" cssClass="input-small"/>
<label>标题:</label><form:input path="title" htmlEscape="false" maxlength="50" class="input-small"/>
<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
</form:form>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead><tr><th style="text-align:center;">选择</th><th>栏目</th><th>标题</th><th>权重</th><th>点击数</th><th>发布者</th><th>更新时间</th></tr></thead>
<tbody>
<c:forEach items="${page.list}" var="article">
<tr>
<td style="text-align:center;"><input type="checkbox" name="id" value="${article.id}" title="${fns:abbr(article.title,40)}" /></td>
<td><a href="javascript:" onclick="$('#categoryId').val('${article.category.id}');$('#categoryName').val('${article.category.name}');$('#searchForm').submit();return false;">${article.category.name}</a></td>
<td><a href="${ctx}/cms/article/form?id=${article.id}" title="${article.title}" onclick="return view(this.href);">${fns:abbr(article.title,40)}</a></td>
<td>${article.weight}</td>
<td>${article.hits}</td>
<td>${article.createBy.name}</td>
<td><fmt:formatDate value="${article.updateDate}" type="both"/></td>
</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</div>
</body>
</html>