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

📄 article_list.jsp

📁 主要功能:   ·新闻采用在线编辑器,可以象使用word一样编辑新闻   ·可web上传图片,新闻内其它网站图片自动下载   ·无限级目录分类   ·可设头条新闻和图片新闻   ·新闻点评功能
💻 JSP
字号:
<%@ include file = "../tiles/include.jsp"%><center><bean:define id="title">
<bean:message key="article.title"/>
</bean:define><gui:window title="<%=title%>" prototype="boWindow" color="100%"><gui:tabbedPanel prototype   = "boTabbedPanel"                  followUp    = "usermanag.jsp"                 color       = "#f0f0f0"                 selectedTab = "tab2" width="67"><!--********************* add  article ******************************************--><bean:define id="tab1_title">
<bean:message key="article.add"/>
</bean:define>  <gui:tab prototype="boTab" name="tab1" title="<%=tab1_title%>" followUp="./articleManager.do?method=load4Add"> add article  </gui:tab><!--********************* edit  article ******************************************--><bean:define id="tab2_title"><bean:message key="article.edit"/></bean:define>  <gui:tab prototype="boTab" name="tab2" title="<%=tab2_title%>" followUp="./articleManager.do?method=loadAll&action2=edit">	<table class="win" CELLPADDING="0" CELLSPACING="0" width="100%">	<html:form action="articleManager.do?method=loadAll&action2=edit">	<tr>		<td><input type="text" name="para" value="">		<bean:message key="article.catalog"/>		<html:select property="artCatalog">			<html:option value="" >all</html:option>			<logic:present name="catalogtree" scope="request">                <html:options collection="catalogtree" labelProperty="catalogTitle" property="catalogId"/>            </logic:present>				</html:select>		<bean:message key="article.sort"/>		<select name="orderby">		<option value="date"><bean:message key="article.updateDate"/></option>		<option value="catalog"><bean:message key="article.catalog"/></option>		<option value="count"><bean:message key="article.count"/></option>		<option value="author"><bean:message key="article.author"/></option>		<option value="title"><bean:message key="article.name"/></option>		</select>		<select name="sort">		<option value="asc"><bean:message key="article.asc"/></option>		<option value="desc"><bean:message key="article.desc"/></option>		</select>			<html:submit styleClass="button"><bean:message key="button.search"/></html:submit>			</td>	</tr>	</table>	</html:form>	 <html:errors/>    <table class="sort-table" cellSpacing="1" cellPadding="1" width="100%" border="0">	<thead>        <tr>			<td>&nbsp;</td>			<td><bean:message key="article.catalog"/></td>            <td><bean:message key="article.name"/></td>			<td><bean:message key="article.author"/></td>			<td><bean:message key="article.count"/></td>			<td><bean:message key="article.updateDate"/></td>			<td><bean:message key="article.status"/></td>        </tr>	</thead><html:form action="removeArticleAction" onsubmit="return validateArticleForm2(this);"><input type="hidden" name="method" value="approve"><logic:present name="articles" scope="request"><!--page offset start -->		<pg:pager	url="./articleManager.do"    items="<%=((Integer)request.getAttribute("artCount")).intValue()%>"    index="center"    maxPageItems="10"    maxIndexPages="10"    isOffset="<%= true %>"    export="offset,currentPageNumber=pageNumber"    scope="request"><%-- keep track of preference --%>	<pg:param name="para"/>	<pg:param name="artCatalog"/>	<pg:param name="page"/>	<pg:param name="orderby"/>	<pg:param name="sort"/>	<pg:param name="method"/>	<pg:param name="action2"/>  <%-- save pager offset during form changes --%>    <input type="hidden" name="pager.offset" value="<%= offset %>">        <logic:iterate name="articles" id="article" ><pg:item>        <tr>			<td><input type="checkbox" name="artId" value="<bean:write  name="article" property="artId" />"></td>			<td><bean:write  name="article" property="catalog.catalogTitle" /></td>            <td><a href="./editArticleAction.do?method=load4Edit&artId=<bean:write  name="article" property="artId" />"><bean:write  name="article" property="artTitle" /></a></td>			<td><bean:write  name="article" property="author.person.name" /></td>			<td><bean:write  name="article" property="artCount" /></td>			<td><bean:write  name="article" property="artLastdate" formatKey="dateFormat"/></td>			<td><bean:write  name="article" property="artStatus" /></td>        </tr></pg:item>		        </logic:iterate>     </table>   <jsp:include page="./page.jsp" flush="true"/></pg:pager><!-- page offset end --><br><table cellSpacing="0" cellPadding="0" width="100%" border="0"><tr>	<td ALIGN="RIGHT"><html:submit styleClass="button" onclick="chgAction(document.all.method,'approve');"><bean:message key="button.public"/></html:submit>	<html:submit styleClass="button" onclick="chgAction(document.all.method,'cancel');"><bean:message key="button.draft"/></html:submit>	<html:submit styleClass="button" onclick="chgAction(document.all.method,'remove');"><bean:message key="button.delete"/></html:submit>        <html:cancel styleClass="button"><bean:message key="button.cancel"/></html:cancel>	</td></tr></logic:present></html:form></table>  </gui:tab></gui:tabbedPanel></gui:window></center><html:javascript formName="articleForm2"        dynamicJavascript="true"         staticJavascript="false"/><SCRIPT LANGUAGE="JavaScript">var i = 0; function AddFiletoSelect(aoFile){   if ((aoFile==null)||(aoFile.value=="")) return;   var loOpts = articleActionForm.SelectFile.options;   loOpts[loOpts.length] = new Option(aoFile.value,aoFile.uniqueID);   aoFile.parentElement.style.display = "none";   var loObj = document.createElement("span");   loObj.innerHTML = '<input style="width:10" name="affixs'+(i++)+'" type="file" onpropertychange="AddFiletoSelect(this)">';   AffixFile.insertBefore(loObj); } function DelFiletoSelect(){  loEL = document.all(articleActionForm.SelectFile.value);  if (loEL!=null){   loEL = loEL.parentElement;   AffixFile.removeChild(loEL);  }  var loOpts = articleActionForm.SelectFile.options;  if(loOpts!=null&&loOpts.length>0){   loSel = loOpts[articleActionForm.SelectFile.selectedIndex]   loOpts.removeChild(loSel);  } } function chgAction(obj,str){	obj.value=str; }</SCRIPT>    

⌨️ 快捷键说明

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