manange_new.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:8k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.sql.*,ntsky.admin.article.*"%>
- <jsp:useBean id="Pagination" class="ntsky.common.Pagination"/>
- <%
- Article aie = new Article();
- int curPages = Pagination.curPages(Pagination.strPage(request,"page"));
- Pagination.setRows(10);//每页显示10条
- int totalPages = Pagination.getPages(aie.sum());//取出总页数
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>修改文章</title>
- <link rel="stylesheet" href="../../css/admin.css" type="text/css">
- </head>
- <STYLE type=text/css>
- BODY {
- BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
- }
- TABLE {
- BORDER-LEFT: 0px; BORDER-TOP: 0px
- }
- TD {
- FONT: 12px 宋体;
- border-bottom-color: #CCFFFF;
- border-left-style: none;
- }
- IMG {
- BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
- }
- A {
- COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
- }
- A:hover {
- COLOR: #428eff; TEXT-DECORATION: underline
- }
- .sec_menu {
- BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
- }
- .menu_title {
- }
- .menu_title SPAN {
- COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
- }
- .menu_title2 {
- }
- .menu_title2 SPAN {
- COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
- }
- .style1 {color: #FF0000}
- </STYLE>
- <body>
- <p> </p>
- <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <tr><td><div align="center" class="style1">产品分享管理</div></td>
- </tr>
- </table>
- <table width="696" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <form action="search.jsp" method="post">
- <tr>
- <td height="28" align="left" class="title"> 查找文章:
- <input type="text" name="search" size="20">
- <input type="submit" value="Search"></td>
- </tr>
- </form>
- </table>
- <br>
- <table width="696" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="73"><table width="696" height="12%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <tr align="center">
- <td width="71%" height="32">文章题目(加入时间)(成功分享)</td>
- <td width="10%">点击次数</td>
- <td width="10%">编辑</td>
- <td width="9%">删除</td>
- </tr>
- <%
- if((aie.sum()) > 0){
- ResultSet rs = Pagination.getPageSet(aie.rs_title(),curPages);
- int i=1;//变量获得每页显示的条数
- while(rs.next()){
- %>
- <tr align="center">
- <td height="28"> <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
- <td width="33%" align="center"><%=rs.getString("date")%></td>
- </tr>
- </table></td>
- <td height="28"> <%=rs.getString("hits")%> </td>
- <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
- <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
- </tr>
- <tr align="center">
- <td height="32">文章题目(加入时间)(事业介绍)</td>
- <td>点击次数</td>
- <td>编辑</td>
- <td>删除</td>
- </tr>
- <tr align="center">
- <td height="28">
- <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
- <td width="33%" align="center"><%=rs.getString("date")%></td>
- </tr>
- </table></td>
- <td height="28"> <%=rs.getString("hits")%> </td>
- <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
- <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
- </tr>
- <tr align="center">
- <td height="32">文章题目(加入时间)(事业新闻)</td>
- <td>点击次数</td>
- <td>编辑</td>
- <td>删除</td>
- </tr>
- <tr align="center">
- <td height="28">
- <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
- <td width="33%" align="center"><%=rs.getString("date")%></td>
- </tr>
- </table></td>
- <td height="28"> <%=rs.getString("hits")%> </td>
- <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
- <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
- </tr>
- <tr align="center">
- <td height="32">文章题目(加入时间)(经营之道)</td>
- <td>点击次数</td>
- <td>编辑</td>
- <td>删除</td>
- </tr>
- <tr align="center">
- <td height="28">
- <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="67%" height="27" align="center"><a href="../../news/listarticle.jsp?articleid=<%=rs.getString("articleid")%>"><%=rs.getString("title")%></a></td>
- <td width="33%" align="center"><%=rs.getString("date")%></td>
- </tr>
- </table></td>
- <td height="28"> <%=rs.getString("hits")%> </td>
- <td height="28"><a href=editarticle.jsp?articleid=<%=rs.getString("articleid")%>><img src="../images/admin/edit.gif" alt="编辑栏目" width="19" height="18" border="0"></a></td>
- <td height="28"><a href="delarticle.jsp?articleid=<%=rs.getString("articleid")%>"><img src="../images/admin/del.gif" width="16" height="16" border="0"></a></td>
- </tr>
- <%
- i=i+1;
- if(i>10)
- break;
- }
- rs.close();
- %>
- <%}else{%>
- <tr align="center">
- <td height="27" colspan="4" class="title"><div align="left"></div></td>
- </tr>
- <%}%>
- </table></td>
- </tr>
- <tr>
- <td height="31">
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td width="62%" height="29"> </td>
- <td width="21%" align="center" valign="bottom">
- <%if(curPages>1){%>
- <a href="article.jsp?page=<%=curPages-1%>"><img src="../images/prev.gif" width="36" height="11" border="0"></a>
- <%}%>
- </td>
- <td width="17%" valign="bottom">
- <%if(curPages<totalPages){%>
- <a href="article.jsp?page=<%=curPages+1%>"><img src="../images/next.gif" width="36" height="11" border="0"></a>
- <%}%>
- </td>
- </tr>
- </table></td>
- </tr>
- </table>
- <%aie.close();%>
- <p> </p>
- </body>
- </html>