⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 articlelist.jsp

📁 一个实用的CMS管理
💻 JSP
字号:
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="true">
  <head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="robots" content="noindex, nofollow">
		<link rel="stylesheet" type="text/css" href="css/extremecomponents.css"> 
		<s:head />  
		<script language="javascript">
function getSize() {
     var xScroll, yScroll;
     if (window.innerHeight && window.scrollMaxY) {
             xScroll = document.body.scrollWidth;
             yScroll = window.innerHeight + window.scrollMaxY;
     } else if (document.body.scrollHeight > document.body.offsetHeight){      // all but Explorer Mac
             xScroll = document.body.scrollWidth;
             yScroll = document.body.scrollHeight;
     } else {      // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
             xScroll = document.body.offsetWidth;
             yScroll = document.body.offsetHeight;
     }

     var windowWidth, windowHeight;
     if (self.innerHeight) {      // all except Explorer
             windowWidth = self.innerWidth;
             windowHeight = self.innerHeight;
     } else if (document.documentElement && document.documentElement.clientHeight) {      // Explorer 6 Strict Mode
             windowWidth = document.documentElement.clientWidth;
             windowHeight = document.documentElement.clientHeight;
     } else if (document.body) {      // other Explorers
             windowWidth = document.body.clientWidth;
             windowHeight = document.body.clientHeight;
     }

     // for small pages with total height less then height of the viewport
     if(yScroll < windowHeight){
             pageHeight = windowHeight;
             y = pageHeight;
     } else {
             pageHeight = yScroll;
             y = pageHeight;
     }

     if(xScroll < windowWidth){
             pageWidth = windowWidth;
     } else {
             pageWidth = xScroll;
     }

     arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
     return arrayPageSize;
}

function autoHeight(pid) {
     var x = new getSize();
     parent.document.getElementById(pid).height=x[1];
}

</script>
  </head>
<body>
       
    <s:url id="url" action="Article_addprev.action">
              <s:param name="artclass_id"><s:property value="artclass_id"/></s:param>
         </s:url>
         <s:a href="%{url}"><s:text name="suncms.article.view.article.article_add" /></s:a>
    
  <s:set name="artlist" value='getText("suncms.article.view.article.article_sublist")' scope="page"/>  
  <ec:table 
		items="ArtList"
		imagePath="images/table/*.gif"
		title="${artlist}" 
		width="95%"
		var="art"
		
		showStatusBar= "true"
		locale="${i18n_locale}"
		filterable="true"
		sortable="true"
		rowsDisplayed="15"
		action="Article_artlist.action"
		showPagination="true"
		 retrieveRowsCallback="limit"
   filterRowsCallback="limit"
   sortRowsCallback="limit"
   view="limit"
	>
		<ec:row highlightRow="true">
			<ec:column property="article_title" title="suncms.article.view.article.article_title">
			<a href="Article_getArticleById.action?row_id=${pageScope.art.row_id}">${pageScope.art.article_title}</a>
			</ec:column>
	</ec:row>
	</ec:table>

<script language="javascript">
   		var x = new getSize();
      top.document.all.item("main").height = x[1]+20;
 </script>
   </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -