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

📄 managenews.jsp

📁 系统特色: 1,栏目无限级分类,形成树型结构
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>manageNews.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
    </style>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>

<body>
	<br>
	<table width="98%" cellspacing="0" cellpadding="0" border="1"
		bordercolordark="#8080FF" bordercolorlight="#FFFFFF">

		<tbody>
			<tr>
				<td height="30" bgcolor="#8080FF">
					&nbsp;<strong><bean:message key="manageNews.title1"/></strong>					<select name="sort_id"
						onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}">
						<option value="?sort_id=">
							<bean:message key="manageNews.title2"/>						</option>
						<jsp:useBean id="display_withUrl" scope="request"
							class="com.hao2007.struts.bean.DisplayClassWithUrl" />
						<%=display_withUrl.parent_list()%>
			  </select>			  </td>
			</tr>
		</tbody>

	</table>
	<table width="98%" border="1" bordercolordark="#8080FF"
		bordercolorlight="#FFFFFF" cellpadding="0" cellspacing="0">
		<tr>
			<td width="5%" height="30" align="center">
				<strong>&nbsp;<bean:message key="manageNews.title3"/></strong> </td>
			<td width="40%" align="center">
				&nbsp;<strong><bean:message key="manageNews.title4"/></strong> </td>
			<td width="20%" align="center">
				&nbsp;<strong><bean:message key="manageNews.title5"/></strong> </td>
			<td width="15%" align="center">
				<strong>&nbsp;<bean:message key="manageNews.title6"/></strong> </td>
			<td width="20%" align="center">
				&nbsp;<strong><bean:message key="manageNews.title7"/></strong> </td>
		</tr>
		<logic:present name="result">
<logic:iterate id="news" name="result" type="com.hao2007.struts.form.NewsList" >
<logic:present name="news">
			
			<tr>
				<td height="30" align="center">	 
					<bean:write name="news" property="id" />			  </td>
				<td>
					&nbsp;
					<bean:write name="news" property="title" />
				</td>
				<td align="center">
					<bean:write name="news" property="add_time" />			  </td>
				<td align="center">
					<html:link page="/editNews.do" paramName="news" paramId="id" paramProperty="id"><bean:message key="manageNews.title13"/></html:link> </td>
				<td align="center">
					<html:link page="/delNews.do" paramName="news" paramId="id" paramProperty="id" onclick="javascript:return  confirm('Do you want to del really?')"><bean:message key="manageNews.title14"/></html:link></td>
			</tr>
</logic:present>
</logic:iterate>
</logic:present>

	</table>
	<table width="98%" border="1" bordercolordark="#8080FF"
		bordercolorlight="#FFFFFF" cellpadding="0" cellspacing="0">
		<tr>
			<td height="30" colspan="5" align="center">
			<logic:present name="page">
			<bean:message key="manageNews.title8"/><bean:write name="page" property="totalRows"/><bean:message key="manageNews.title9"/>;
<bean:message key="manageNews.title10"/><bean:write name="page" property="totalPages"/><bean:message key="manageNews.title11"/>,<bean:message key="manageNews.title12"/>
<bean:write name="page" property="currentPage"/><bean:message key="manageNews.title11"/>
<logic:equal name="page" property="hasNextPage" value="true">
<html:link page="/manageNews.do?action=nextPage" paramName="page" paramId="sort_id" paramProperty="sort_id"><bean:message key="manageNews.title15"/></html:link>
</logic:equal>
<logic:equal name="page" property="hasPreviousPage" value="true">
<html:link page="/manageNews.do?action=previousPage" paramName="page" paramId="sort_id" paramProperty="sort_id"><bean:message key="manageNews.title16"/></html:link>
</logic:equal>	
            </logic:present>
			</td>

		</tr>
		</table>
</body>
</html:html>

⌨️ 快捷键说明

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