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

📄 back_articleselect.jsp~16~

📁 一、数据库登录名:blog 密码:blog 二、首页应该运行log.jsp页面。其用户名:aa 密码:aaaa
💻 JSP~16~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.ArrayList" %>

<html>
<head>
<title>
back_articleSelect
</title>
</head>
<script language="javascript" type="text/javascript">
function deteleArticle(id){
if(confirm("你确定要删除吗??")){
 window.location.href="deteleArticleAction.do?id="+id;
}
}
</script>
<%
Integer typeid=null;
if(request.getParameter("typeId")!=null){
 typeid=Integer.valueOf(request.getParameter("typeId"));
}
%>
<jsp:useBean id="dd" scope="session" class="OperationDB.operation">
</jsp:useBean>

<body bgcolor="#ffffff">
<table width="573" border="0" align="center" cellpadding="0" cellspacing="0" background="images/back1.gif">
  <tr>

    <td width="573" valign="top"><table width="227" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="myimage/back_noword_03.jpg" width="573" height="25" alt=""></td>
      </tr>
    </table>
      <table width="573" border="0" cellpadding="0" cellspacing="0" background="images/back_noword_05.jpg">
        <tr>
          <td valign="top" align="center">
		   <table width="500" border="0">
      <tr>
        <td><div align="center">
<%ArrayList list=dd.slectArticleType();
  for(int i=0;i<list.size();i++){
   ActionForm.articleTypeActionForm atf=(ActionForm.articleTypeActionForm)list.get(i);

%> <a href="back_articleSelect.jsp?typeId=<%=atf.getId()%>"> [<%=atf.getTypeName()%>]</a>&nbsp;
    <%}%>



		</div></td>
      </tr>
    </table>
	         <br>
    <table width="486" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#9A9EC5">
            <tr>
              <td width="81" height="20"><div align="center">文章题目</div></td>
              <td width="73"><div align="center">文章类别</div></td>
              <td width="142"><div align="center">发布时间</div></td>
              <td width="64"><div align="center">回复数量</div></td>
              <td width="98"><div align="center">操作</div></td>
            </tr>
<%
Integer tid=null;
if(request.getParameter("typeId")!=null){
 tid=Integer.valueOf(request.getParameter("typeId"));
}
ArrayList ar=dd.findarticle(tid);
for(int i=0;i<ar.size();i++){
ActionForm.articleActionForm af=(ActionForm.articleActionForm)ar.get(i);



%>

            <tr bgcolor="#FFFFFF">
              <td height="30"><div align="center">
			 <a href="back_restoreSelect.jsp?id=<%=af.getId()%>" title="可以查看回复内容" target="main"><%=af.getTitle()%> </a>

			  </div></td>
              <td><div align="center"><%=dd.findarticleType(Integer.valueOf(af.getTypeID()))%></div></td>
              <td><div align="center"><%=af.getPhTime()%></div></td>
              <td><div align="center"><%=dd.findRestore(Integer.valueOf(af.getId())).size()%></div></td>
              <td><div align="center"><A href="back_articleUpdate.jsp?id=<%=af.getId()%>" target="main">修改</A>&nbsp;&nbsp;
                <a href="javascript:deteleArticle('<%=af.getId()%>')">删除</a></div></td>
            </tr>
<%}%>
          </table>
		   </td>
        </tr>
      </table>
      <table width="227" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="myimage/back_noword_18.jpg" width="573" height="21" alt=""></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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