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

📄 articleview.jsp

📁 数学网
💻 JSP
字号:
<%@ page language="java" pageEncoding="GB2312" %>
<%@ 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" %>
<jsp:useBean id="Article" scope="session" class="math.article.model.Article"/>
<html>
<head>
<link href="../images/myweb.css" rel="stylesheet" type="text/css">
<title>管理界面</title>
<style type="text/css">
<!--
body {
	background-image: url(../images/main_bg.gif);
}
-->
</style>
</head>

<body>
<br>
${requestScope.message}
<html:form action="/admin/article/articlelist.do" method="POST">
<table width="99%" cellpadding="0"  cellspacing="0" border="0" align="center">
	<tr>
    		<td>
			<table width="82" height="28" border="0" cellpadding="0"  cellspacing="0" background="../images/main_menu_bg.gif">
      				<tr>
        				<td valign="bottom"><div align="center">文章查询</div></td>
      				</tr>
    			</table>
		</td>
  	</tr>
</table>

<table width="99%"  cellpadding="3"  cellspacing="1" border="0" align="center" class="main_table">
	<tr>
    		<td colspan="6" align="center" class="main_topbg" >网站后台管理</td>
  	</tr>
  	<tr >
  		<td class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'" colspan="6">
  			查询条件:<html:text property="condition" />
  				 <html:select property="conditionid" size="1" >
                   <html:option value="0">全部</html:option>
                   <html:option value="1">文章标题</html:option>
                   <html:option value="2">文章内容</html:option>
                </html:select>
  				<html:submit value="查询" />
  		</td>
  	</tr>
</table>
</html:form>
	
<table width="99%"  cellpadding="3"  cellspacing="1" border="0" align="center" class="main_table">
	<tr>
    		<td colspan="10" align="center" class="main_topbg" >网站后台管理</td>
  	</tr>
  	<tr >
  		<td align="center" background="../images/left_bg.gif">
    			文章标题
  		</td>
  		<td align="center" background="../images/left_bg.gif">
    			发布人ID
  		</td>
    		<td align="center" background="../images/left_bg.gif">
    			文章类别
  		</td>
  		<td align="center" background="../images/left_bg.gif">
    			文章类型
  		</td>
  		<td align="center" background="../images/left_bg.gif">
    			发布时间
  		</td>
  		<td align="center" background="../images/left_bg.gif">
    			点击数量
  		</td>
  		<td align="center" background="../images/left_bg.gif">
    			查看
  		</td>
  		<td align="center" background="../images/left_bg.gif">
    			修改
  		</td>
  		<td align="center" background="../images/left_bg.gif">
    			删除
  		</td>
  	</tr>
  	<logic:notEmpty name="LIST">
  	    <logic:iterate id="list" name="LIST" type="math.article.model.ArticleList">
  	    <%//request.setAttribute("LIST",request.getAttribute("LIST"));
          java.util.HashMap map = new java.util.HashMap();
          map.put("articleid", String.valueOf(list.getArticleid()));
          map.put("pager.offset", String.valueOf(list.getPageroffset()));
          pageContext.setAttribute("map", map, PageContext.PAGE_SCOPE);
          %>
  	<tr>
        <td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<bean:write name="list" property="articletitle"/>
  		</td>
  		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<bean:write name="list" property="userid"/>
  		</td>
    		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<bean:write name="list" property="articletype1"/>
  		</td>
  		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<bean:write name="list" property="articletype2"/>
  		</td>
  		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<bean:write name="list" property="issuetime"/>
  		</td>
  		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    			<bean:write name="list" property="articlecount"/>
  		</td>
  		
  		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
  			<html:link action="/admin/article/articleshow.do" name="map" scope="page"  target="_blank">
    			查看
    		</html:link>
  		</td>
  		
  		
  		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
  			<html:link action="/admin/article/articleupdate.do" name="map"  target="main">
    			修改
    		</html:link>
  		</td>
  		
  		<td align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ffffff'">
    		
		<html:link action="/admin/article/articledelete.do" name="map" target="main"  onclick="{if(confirm('您确定执行操作吗?')){return true;}return false;}">
    			删除
    		</html:link>
  		</td>
  		
  		
  		
  		
  	</tr>
  	    </logic:iterate>
 
  	
  	<TR>
  	     <TD  align="center" class="myweb_td" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor=''" colspan="10">
  	    
             <bean:write name="pagerHeader" scope="request" filter="false"/><%! String key;%>
      
        
  	     </TD>
  	</TR>
</table>
       </logic:notEmpty>
</body>
</html>

⌨️ 快捷键说明

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