?? article_select_dialog_list_m_1.jsp
字號:
<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ page import="cn.com.dekn.cms.util.*,java.util.*"%>
<%
String formType = "radio";
HashMap formRetrunValueTypeMap = new HashMap();
if(null != request.getParameter("selectType") && !request.getParameter("selectType").equals("")){
formType = request.getParameter("selectType");
}
String formRetrunValueType = null;
String[] formRetrunValueTypes = null;
if(null != request.getParameter("returnType") && !request.getParameter("returnType").equals("")){
formRetrunValueType = request.getParameter("returnType");
formRetrunValueTypes = formRetrunValueType.split("\\|");
for(int i=0;i<formRetrunValueTypes.length;i++)
formRetrunValueTypeMap.put(formRetrunValueTypes[i],formRetrunValueTypes[i]);
}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>無標題文檔</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("page_list","${param.pn}");
}
//全選復選框
function selectAll(form){
var checkObj,sl
for(i=1;i<=16;i++){
checkObj=document.getElementById("check_"+i);
sl=document.getElementById("selAll");
if(checkObj==null || imgObj==null)
break;
if(sl.checked){
checkObj.checked=true;
}else{
checkObj.checked=false;
}
}
}
</script>
<script language="javascript">
//把選擇的值返回到調用頁面
function selectFormType(){
var checkObj;
var str="";
<%if(formType.equals("checkbox")){%>
//checkbox
for(i=1;i<=15;i++){
checkObj=document.getElementById("check_"+i);
if(checkObj==null)
break;
var val=checkObj.value;
if(val=="" || checkObj.checked == false)
continue;
if(str.length > 0){
str= str + "|" + val;
}else{
str= val;
}
}
return str;
<%}else{%>
var radioObj = document.cms4jForm.atc;
var radioLength = radioObj.length;
for (var i = 0; i<radioLength ; i ++){
if (radioObj[i].checked){
str = radioObj[i].value;
}
}
//alert(str);
return str;
<%}%>
}
//條件過濾
function transferDataFilter(param,ths){
FilterForFrame(param,ths);
//alert(param);
}
//給文章列表頁的url加參數
function FilterForFrame(search_param_name,ths){
var e = ths;
var tmp = removeSearch("URL",search_param_name);
this.location.search = addSearch(tmp,search_param_name,e.value);
}
//用標題選擇單選項
function checkRadio(paramValue){
var radioObj = document.cms4jForm.atc;
var radioLength = radioObj.length;
if(isNaN(radioLength)){
if(document.cms4jForm.atc.checked){
document.cms4jForm.atc.checked = false;
}else{
document.cms4jForm.atc.checked = true;
}
}
for (var i = 0; i<radioLength ; i ++){
if(radioObj[i].value==paramValue){
if(radioObj[i].checked){
radioObj[i].checked = false;
}else{
radioObj[i].checked = true;
}
}
}
}
//用標題選擇復選項
function checkCheckbox(paramValue){
var checkObj;
for(i=1;i<=15;i++){
checkObj=document.getElementById("check_"+i);
if(checkObj==null)
break;
var val=checkObj.value;
if(paramValue == val){
if(checkObj.checked){
checkObj.checked = false;
}else{
checkObj.checked = true;
}
}
}
}
</script>
<body onLoad="pageInit()">
<form action="" method="post" name="cms4jForm">
<cms4j:article class_id="${param.class_id}" filter="${param.filter}" order="${param.order}" page_size="15" scope="" purview_type="operat" audit_state="all" audit_level="all" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>" date="${param.date}" exclude="" exclude2="" search="${param.ARTICLE_title}" article_id="${param.article_id}" title="${param.title}" key="${param.keyword}" add_user="${param.add_user}" sava_date="${param.sava_date}" add_date="${param.add_date}">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table-frame">
<tr>
<td width="3%" align="left" class="table-titlebar"><%if(formType.equals("checkbox")){%><input type="checkbox" name="selectAll" value="checkbox" onClick="checkAll(this.form)">
<%}%></td>
<td width="5%" class="table-titlebar">ID</td>
<td width="50%" class="table-titlebar">標題</td>
<td width="12%" class="table-titlebar">所屬欄目</td>
<td width="6%" class="table-titlebar">添加</td>
<td width="4%" class="table-titlebar">點擊</td>
<td width="6%" class="table-titlebar">狀態</td>
</tr>
<%int index=1;%>
<cms4j:article_list>
<tr>
<td align="left" class="table-cell">
<%if(formType.equals("checkbox")){%>
<input name="check_<%=index%>" id="check_<%=index%>" type="<%=formType%>" onClick="unselectall('selectAll')" value="<%if(formRetrunValueTypeMap.containsValue("id")){%>[<%=article_info.getID()%>]<%} if(formRetrunValueTypeMap.containsValue("title")){%> <%=article_info.getTITLE()%><%}%>">
<%}else{%>
<input name="atc" type="<%=formType%>" id="atc" value="<%=article_info.getID()%>">
<%}%> </td>
<td align="center" class="table-cell"><%=article_info.getID()%></td>
<td align="left" class="table-cell"><%=article_info.getInfoPropImage()%> <a href="<cms4j:site_config node_id="<%=article_info.getNODE_ID()%>"><%=siteconfig_info.getSITE_URL()%></cms4j:site_config><%=article_info.getPreviewURL()%>" target="_blank">[預覽]</a> <%=article_info.getLINK_TO_EXTERIOR2("<font color='#0066CC'>[鏈接]</font>")%> <%=article_info.getDateState("","<font color='red'>[過期]</font>","<font color='#0066CC'>[未開始]</font>")%>
<%if(formType.equals("radio")){%>
<span style="cursor:hand" onClick="checkRadio('<%=article_info.getID()%>')"><%=article_info.getTITLE()%></span>
<%}else{%>
<span style="cursor:hand" onClick="checkCheckbox('<%=article_info.getID()%>')"><%=article_info.getTITLE()%></span>
<%}%> </td>
<td align="center" class="table-cell"><%=article_info.getCLASS_NAME()%></td>
<td align="center" class="table-cell"><%=article_info.getADD_USER()%></td>
<td align="center" class="table-cell"><%=article_info.getCLICKS()%></td>
<td align="center" class="table-cell"><%=article_info.getRELEASE_STATE_NAME()%></td>
</tr>
<%index++;%>
</cms4j:article_list>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="paeg_bar"><cms4j:page_admin/></td>
</tr>
</table>
</cms4j:article>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -