upload_show.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:3k
源码类别:

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.lang.*" errorPage="" %>
  3. <%@ page import="java.lang.*"%>
  4. <%@ page import="MyFly.Bean.Upload" %>
  5. <%@ include file ="top.jsp" %>
  6. <HTML>
  7. <HEAD>
  8. <TITLE>星海购书网</TITLE>
  9. <META content="text/html; charset=gb2312" http-equiv=Content-Type>
  10. <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
  11. </HEAD>
  12. <BODY leftMargin=0  topMargin=0 marginheight="0" marginwidth="0">
  13. <TABLE align=center border=1 cellPadding=0 cellSpacing=0 width=760 bgcolor="#6FBA0A">
  14.   <TBODY>
  15.   <TR>
  16.     <TD width="772" height=322 vAlign=top bgColor=#ffffff><table width="101%"
  17.             height="115%" border=1 cellpadding=0 cellspacing=0>
  18.       <tbody>
  19.         <tr>
  20.           <td width="100%" height=40 valign=top>
  21.             <table border=0 cellpadding=0 cellspacing=0 width="100%">
  22.               <tbody>
  23.                 <tr>
  24.                   <td height=32 class=title_right>&nbsp;&nbsp;&nbsp;<img src="image/xz07.gif" width="16" height="16"> <strong>当前位置: </strong><a href="default.jsp">首页</a><strong> --&gt; </strong>资料下载</td>
  25.                 </tr>
  26.               </tbody>
  27.           </table></td>
  28.         </tr>
  29.         <tr>
  30.           <td height=323 valign=top>
  31.             <table width="595" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  32.               <tr>
  33.                 <td colspan="3" align="center"><span class="style4"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;资料下载</span></td>
  34.               </tr>
  35.               <tr>
  36.                 <td width="324"><span class="style17">文件说明</span></td>
  37.                 <td width="168" ><span class="style17">添加时间</span></td>
  38.                 <td width="95" ><span class="style17">下载</span></td>
  39.               </tr>
  40.               <%
  41.   request.setCharacterEncoding("gb2312");
  42.   Upload upload=new Upload();
  43.   ResultSet rs=upload.Query();
  44.   String temp=null;
  45.   String temp2=null;
  46.   while(rs.next())
  47.   {
  48.   temp=rs.getString(2);
  49.   //System.out.print(temp);
  50.  //temp=new String(temp.getBytes("ISO8859_1"));
  51.   //System.out.print(temp);
  52.   temp2=rs.getString(3);
  53.  // String s=URLDecoder.decode(temp);
  54.   //System.out.print(s);
  55.   //String name=new String(request.getParameter("index").getBytes("ISO8859_1"));
  56.   String s=java.net.URLEncoder.encode(temp,"UTF-8");
  57.  // System.out.print(s);
  58.   %>
  59.               <tr>
  60.                 <td><%=temp2%></td>
  61.                 <td ><%=rs.getString(4)%></td>
  62.                 <td><a href="../upload/<%=s%>">点击下载</a></td>
  63.               </tr>
  64.               <tr>
  65.                 <td background=image/line.gif width="324" height="5" colspan="3"></td>
  66.               </tr>
  67.                 <%
  68.   }
  69.   %>
  70.           </table></td>
  71.         </tr>
  72.       </table></TD>
  73.   </TR>
  74. </TBODY></TABLE>
  75. <%@ include file ="foot.jsp"%>
  76. </BODY></HTML>