📄 article_res_list.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J</title>
<link href="../skin/blue/css/oper_area.css" rel="stylesheet" type="text/css">
</head>
<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>
<script>
//页面初始化
function pageInit(){
selectInit("article_class_id_list","${param.article_class_id}");
selectInit("filter_list","${param.filter}");
selectInit("order_list","${param.order}");
selectInit("search_list","${param.searchType}");
selectInit("page_list","${param.pn}");
if("${param.article_id}" != ""){
document.cms4jForm.key.value="${param.article_id}";
}
if("${param.file_name}" != ""){
document.cms4jForm.key.value="${param.file_name}";
}
if("${param.add_date}" != ""){
document.cms4jForm.key.value="${param.add_date}";
}
}
//搜索URL参数处理
function searchRes(){
var paramName = document.cms4jForm.search_list.value;
var paramValue = document.cms4jForm.key.value;
if(paramName=="article_id"){
if(isNaN(paramValue)){
alert("请输入正确的文章ID(数字)!");
return false;
}
}
var tmp = removeSearch("URL","article_id");
tmp = removeSearch(tmp,"file_name");
tmp = removeSearch(tmp,"add_date");
tmp = removeSearch(tmp,"pn");
tmp = addSearch(tmp,"searchType",paramName);
this.location.search = addSearch(tmp,paramName,paramValue);
}
function goSearchRes(){
if(event.keyCode == 13){
searchRes();
return false;
}
}
</script>
<body onLoad="pageInit()">
<form action="" method="post" name="cms4jForm" id="cms4jForm">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title-bar"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26" class="title-bar-title-icon"> </td>
<td width="745" class="title-bar-text"><span class="title_bar">站内资源列表</span></td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="oper-bar">
<tr>
<td width="36%" align="left" style="font-size:13px;"><span class="title_bar">
<select name="article_class_id_list" id="article_class_id_list" class="form_select" onChange="dataFilter('article_class_id')">
<option selected value="">所有栏目</option>
<cms4j:class>
<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"><%=class_info.getCLASS_NAME()%></option>
<cms4j:class>
<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"> <%=class_info.getCLASS_NAME()%></option>
<cms4j:class>
<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"> <%=class_info.getCLASS_NAME()%></option>
<cms4j:class>
<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"> <%=class_info.getCLASS_NAME()%></option>
<cms4j:class>
<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"> <%=class_info.getCLASS_NAME()%></option>
</cms4j:class>
</cms4j:class>
</cms4j:class>
</cms4j:class>
</cms4j:class>
</select>
<select name="filter_list" id="filter_list" onChange="dataFilter('filter')">
<option value="all">所有类型资源</option>
<option value="img">图像文件</option>
<option value="multimedia">多媒体</option>
<option value="doc">文档</option>
<option value="zip">压缩包</option>
<option value="exe">可执行文件</option>
</select>
</span></td>
<td width="13%" align="center"><span class="title_bar">
<select name="order_list" id="order_list" class="form_select" onChange="dataFilter('order')">
<option value="">排列顺序</option>
<option value="add_date_desc">时间-降序</option>
<option value="add_date">时间-升序</option>
<option value="file_size_desc">大小-降序</option>
<option value="file_size">大小-升序</option>
</select>
</span></td>
<td width="41%" align="center"><span class="title_bar"><span class="oper-bar-text">
搜索:
<select name="search_list" id="search_list">
<option value="article_id" selected>文章ID</option>
<option value="file_name">文件名称</option>
<option value="add_date">添加日期</option>
</select>
<input name="key" type="text" id="key" size="15" onKeyDown="return goSearchRes()">
<input name="Submit5" type="button" class="form-buttun" onClick="searchRes()" value="搜索">
</span></span></td>
<td width="10%" align="right"><span class="title_bar">
<input name="Submit2" type="button" class="form-buttun" value="删除所选" onClick="confirmAction(cms4jForm,'删除所选资源,有可能引用此资源的信息将不能正常显示/下载资源,您确认吗?','../../do?action=delArticleRes&operType=multi')">
</span></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-frame">
<tr class="table_title">
<td width="4%" align="center" class="table-titlebar"><input type="checkbox" name="selectAll" value="checkbox" onClick="checkAll(this.form)"></td>
<td width="4%" class="table-titlebar">类型</td>
<td width="19%" class="table-titlebar">资源名称</td>
<td width="7%" class="table-titlebar">大小</td>
<td width="15%" class="table-titlebar">所属栏目</td>
<td width="38%" class="table-titlebar">所属文章</td>
<td width="9%" class="table-titlebar">添加时间</td>
<td width="4%" class="table-titlebar">操作</td>
</tr>
<cms4j:article_res file_name="${param.file_name}" add_date="${param.add_date}" article_id="${param.article_id}" article_class_id="${param.article_class_id}" filter="${param.filter}" order="${param.order}" node_id="${param.cluster_node_id}">
<% if(article_res_info.getRES_EXTFILENAME().equals("gif")||
article_res_info.getRES_EXTFILENAME().equals("jpg")||
article_res_info.getRES_EXTFILENAME().equals("jpeg")||
article_res_info.getRES_EXTFILENAME().equals("bmp")||
article_res_info.getRES_EXTFILENAME().equals("png")){ %>
<tr class="table_border_cell_bg">
<td align="center" class="table-cell"><input type="checkbox" name="selected" value="<%=article_res_info.getRES_ID()%>" onClick="unselectall('selectAll')"></td>
<td align="center" class="table-cell" title=""><img src="../editor/sysimage/file/<%=article_res_info.getEditorSysImgName()%>" width="18" height="18"></td>
<td align="left" class="table-cell" title="<%=article_res_info.getRES_PATH()%>"><img src="<%=article_res_info.getRES_PATH()%>" width="80" height="80"></td>
<td align="center" class="table-cell" title=""><%=article_res_info.getFILE_SIZE()%> K</td>
<td align="center" class="table-cell"><%=article_res_info.getArticleClassName()%></td>
<td align="left" class="table-cell">[<%=article_res_info.getARTICLE_ID()%>] <%=article_res_info.getArticleTitle(50,"...")%> </td>
<td align="center" class="table-cell"><%=article_res_info.getAddDateFormart("yyyy-MM-dd HH:mm")%></td>
<td align="center" class="table-cell"><a href="javascript:confirmAction(cms4jForm,'删除此资源,有可能引用此资源的信息将不能正常显示/下载资源,您确认吗?','../../do?action=delArticleRes&operType=single&operItem=<%=article_res_info.getRES_ID()%>')" >删除</a></td>
</tr>
<% }else{ %>
<tr class="table_border_cell_bg">
<td align="center" class="table-cell"><input type="checkbox" name="selected" value="<%=article_res_info.getRES_ID()%>" onClick="unselectall('selectAll')"></td>
<td align="center" class="table-cell" title=""><img src="../editor/sysimage/file/<%=article_res_info.getEditorSysImgName()%>" width="18" height="18"></td>
<td align="left" class="table-cell" title="<%=article_res_info.getRES_PATH()%>"><%=article_res_info.getFileName()%></td>
<td align="center" class="table-cell" title=""><%=article_res_info.getFILE_SIZE()%> K </td>
<td align="center" class="table-cell"><%=article_res_info.getArticleClassName()%></td>
<td align="left" class="table-cell">[<%=article_res_info.getARTICLE_ID()%>] <%=article_res_info.getArticleTitle(50,"...")%></td>
<td align="center" class="table-cell"><%=article_res_info.getAddDateFormart("yyyy-MM-dd HH:mm")%></td>
<td align="center" class="table-cell"><a href="javascript:confirmAction(cms4jForm,'删除此资源,有可能引用此资源的信息将不能正常显示/下载资源,您确认吗?','../../do?action=delArticleRes&operType=single&operItem=<%=article_res_info.getRES_ID()%>')" >删除</a></td>
</tr>
<% } %>
</cms4j:article_res>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_bottom_line">
<tr>
<td></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="paeg_bar">
<tr class="table_border_cell_bg">
<td width="28%" align="center"> </td>
<td width="72%" align="right" class="table_oper_tr"><div align="right">
<cms4j:page_admin/>
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -