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

📄 articlemanager.jsp

📁 基于MVC模式的文章采集检索系统
💻 JSP
字号:

<%@ page contentType="text/html;charset=gbk" pageEncoding="gbk"%>
<%@ page import="java.util.*"   %>
<%@ page import="com.liubin.model.*"   %>
<%@ page import="com.liubin.service.purview.*"  %>
<%@  page import="com.liubin.service.article.*" %>
<%@  page import="com.liubin.service.user.*" %>
<% String path=request.getContextPath(); %>
<!DOCTYPE jsp PUBLIC "-//W3C//DTD Xjsp 1.0 Transitional//EN" "http://www.w3.org/TR/xjsp1/DTD/xjsp1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xjsp">

<% 
 int pagenum =Integer.parseInt((String)request.getAttribute("pagenum"));
 List<Article>list=(List<Article>)request.getAttribute("list");
 int  pagecount=(Integer)request.getAttribute("pagecount");
 String subitem_id=(String)request.getAttribute("subitem_id");
%>




<head>
<meta http-equiv="Content-Type" content="text/jsp; charset=gb2312" />
<title>企业竞争情报检索系统</title>
<link href="<%=path%>/styles/public.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="home_frame_head">
  <tr>
    <td><table height="50" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="<%=path%>/images/spaces.gif" width="30" height="1" /></td>
        <td valign="bottom"><span class="title_cn">企业竞争情报检索系统</span><br><span class="title_en">Enterprise Competitive Intelligence System</span></td>
      </tr>
    </table></td>
  </tr>
<table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="220" height="80" valign="top" class="home_frame_left">
<img src="<%=path%>/images/spaces.gif" width="1" height="12" />
	<table border="0" align="center" cellpadding="0" cellspacing="0" class="list_frame_title">
      <tr>
        <td class="word_color2 word_size14 word_bottom"><strong>后台管理</strong></td>
      </tr>
</table>
   	  <table width="170" border="0" align="center" cellpadding="1" cellspacing="1" class="list_frame">
      <tr>
        <th><img src="<%=path%>/images/images_04.gif" width="4" height="7" hspace="5" vspace="1" border="0" />用户管理</th>
      </tr>
      <tr>
        <td><table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
          <tr>
            <td><img src="<%=path%>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/user/addUser.jsp">添加用户</a></td>
          </tr>
          <tr>
            <td><img src="<%=path%>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/listUserServlet">管理用户</a></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <th><img src="<%=path%>/images/images_04.gif" width="4" height="7" hspace="5" vspace="1" border="0" />权限管理</th>
      </tr>
      <tr>
        <td><table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
          <tr>
            <td><img src="<%=path%>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/purview/roleList.jsp">权限管理</td><td></td>
          </tr>
         
        </table></td>
      </tr>
      <tr>
        <th><img src="<%=path%>/images/images_04.gif" width="4" height="7" hspace="5" vspace="1" border="0" />文章管理</th>
      </tr>
      <tr>
        <td><table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
          <tr>
            <td><img src="<%=path%>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/article/addArticle.jsp">添加文章</td>
          </tr>
          <tr>
            <td><img src="<%=path%>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/articleSplitServlet">管理文章</td>
          </tr>
        </table></td>
      </tr>
      
    </table></td>
    <td height="80" valign="top" class="home_frame_right"><table width="100%" border="0" cellspacing="1" cellpadding="0">
      <tr>
        <td height="41" align="right"><table border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td><img src="<%=path%>/images/images_12.gif" width="13" height="13" hspace="0" vspace="0" border="0" /></td>
              <td valign="bottom" class="word_color3">帮助</td>
              <td><img src="<%=path%>/images/spaces.gif" width="13" height="13" hspace="0" vspace="0" border="0" /></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td height="20" class="word_color2">目录:/ 后台管理 / 文章管理 / 管理文章</td>
      </tr>
    </table>
	<br>
      <table width="100%" border="1" cellspacing="0" cellpadding="5"  bordercolor="gray">
        <TBODY>
        <form action="<%=path%>/splitArticleServlet" method="post">
        
  <TR>
  <jsp:useBean id="purview_service" class="com.liubin.service.purview.PurviewService" />
  <jsp:useBean id="user_service" class="com.liubin.service.user.UserService" />
  
  <%
   Item item=null;
   List<Item>list1=purview_service.getAllItems();
   Level level=null;
  
  
  List<Level> list2=user_service.getAllLevel();
   
   for(int i=0;i<list1.size();i++)
   {
   item=list1.get(i);
   
  
  %>
  
    <TD align=middle whidth="20%"><FONT color=red>
    
    <%
    if(!item.getItem_id().equals(subitem_id.substring(0,2)))
    {
     %>
    <A 
      href="<%=path%>/articleSplitServlet?subitem_id=<%=item.getItem_id() %>"><%=item.getItem_name() %></A></FONT></TD>
      
      <%}
       else
       { 
       %><td><font><a>
      <%=item.getItem_name() %></A></FONT></TD>
      
      <%}
      } %>
      
      
   <br>

<TABLE width="100%"  border="1" cellspacing="0"  cellpadding="3" bordercolor="gray">
  <TBODY>
  <TR>
    <TH width="28%"><FONT size=2>标题</FONT></TH>
    <TH width="8%"><FONT size=2>作者</FONT></TH>
    <TH width="10%"><FONT size=2>上传日期</FONT></TH>
    <TH width="10%"><FONT size=2>发布日期</FONT></TH>
    <TH width="15%"><FONT size=2>来源</FONT></TH>
    <TH width="5%"><FONT size=2>级别</FONT></TH>
    <TH width="8%"><FONT size=2>是否发布</FONT></TH>
    <TH width="11%"><FONT size=2>操作</FONT></TH>
    <TH width="5%"><FONT size=2>选择</FONT></TH></TR>
    
  <%
 	Article article=null;
 	for(int i=0;i<list.size();i++)
 	{
 	   article=list.get(i);
  %>
    
    
  <TR>
    <TD><FONT size=1><%=article.getTitle() %></FONT></TD>
    <TD><FONT size=1><%=article.getAuthor() %></FONT></TD>
    <TD><FONT size=1><%=article.getSubmit_date() %></FONT></TD>
    <TD><FONT size=1><% if (article.getPub_date()!=null){%><%=article.getPub_date() %><%} %></FONT></TD>
    <TD><FONT size=1><%=article.getOrigin() %></FONT></TD>
    <%
    for (int j=0;j<list2.size();j++)
    {
    	level=list2.get(j);
    	if(level.getLevel_id()==Integer.parseInt(article.getLevel_id())){
    	
    
     %>
    
    <TD><FONT size=1><%=level.getLevel_name() %></FONT></TD>
    <% 
     }
     } %>
    
    <TD align=middle><FONT size=1><% if (article.getAudit_flag().equals("N")){%> 未发布<%}else{ %>发布<%} %></FONT></TD>
    
    
    
    
    <TD><FONT size=1><A  href="<%=path%>/getArticleServlet?ids=<%=article.getId()%>@<%=article.getSubitem_id()%>@<%=pagenum%>">修改</A> 
      <A 
      href="<%=path%>/deleteArticleServlet?ids=<%=article.getId()%>@<%=article.getSubitem_id()%>">删除</A> 
      
      <% if(article.getAudit_flag().equals("N")){ %>
      
      <A  href="<%=path%>/auditArticleServlet?ids=<%=article.getId()%>@<%=article.getSubitem_id()%>@<%=pagenum%>">发布</A> 
      <%}else { %>
		发布
		<%} %>      
      
      </FONT></TD>
        <% if(article.getAudit_flag().equals("N")){ %>
    <TD align=middle><INPUT type=checkbox value=<%="N"+article.getId()%>      name="ids"></TD>
    <%}else{ %>
     <TD align=middle><INPUT type=checkbox value=<%="Y"+article.getId()%>      name="ids"></TD>
   
    <%} %>
    
  </TR>
  
  
  
  <%} %>
  
  
  

  <TR>
    
    <input type="hidden" name="subitem_id" value=<%=subitem_id %> >
    <input type="hidden" name="pagenum" value=<%=pagenum%>  >
    
 <TD colSpan=4><INPUT type=submit value=发布所选 name=split> <INPUT type=submit value=删除所选 name=split> </TD>
 
 

  <TD colSpan=5><FONT size=1>
  第<%=pagenum%>页&nbsp; 
   <%if(pagenum>1){%><a href="<%=path %>/articleSplitServlet?pagenum=1&subitem_id=<%=subitem_id %>" > 首页</a> <%} else {%>首页<%}%> &nbsp;
   <%if(pagenum>1){%><a href="<%=path %>/articleSplitServlet?pagenum=<%=pagenum-1 %>&subitem_id=<%=subitem_id %>" > 上一页</a> <%} else {%>上一页<%}%> &nbsp;
   <%if(pagenum<pagecount){%><a href="<%=path %>/articleSplitServlet?pagenum=<%=pagenum+1 %>&subitem_id=<%=subitem_id %>" > 下一页</a> <%} else {%>下一页<%}%> &nbsp;
   <%if(pagenum<pagecount){%><a href="<%=path %>/articleSplitServlet?pagenum=<%=pagecount %>&subitem_id=<%=subitem_id %>" > 尾页</a> <%} else {%>尾页<%}%> &nbsp;
  
 
 
 
 
 
  </FONT></TD></TR></TBODY></TABLE>
  </tr>
</table>
<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="20" class="word_copyright2" align="right">北京科瑞尔思科技有限公司&nbsp;版权所有<img src="images/spaces.gif" width="30" height="1" /></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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