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

📄 project_documents.jsp

📁 jwp是 JSP WebProject的简写。它是一个基于Web的应用程序。它编写的方式是JSP/Java+Mysql.主要的功能是管理项目、任务、命令、用户、报告、文档。这个程序对学生管理自己的程序
💻 JSP
字号:
<%@ include file="../WEB-INF/include/header.jsp" %>
<%!
	Project p;
%>
<%
	if(request.getParameter("project") != null)
	{
		p = new Project();
		p.get(request.getParameter("project"));
	}
%>
<html>
<head>
<title>Project Documents</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../css/css.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td class="header" height="25" bgcolor="#666666">&nbspProject Documents</td>
  </tr>
  <tr> 
    <td bgcolor="#EFEFEF">&nbsp;</td>
  </tr>
  <tr> 
    <td bgcolor="#EFEFEF"> 
      <form name="form1" method="post" action="">
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td height="25" bgcolor="#666666" class="header">&nbspProject</td>
          </tr>
          <tr> 
            <td bgcolor="#FAFAFA"> 
              <table width="100%" border="0">
                <tr> 
                  <td width="20%" class="text_bold">Project Name:</td>
                  <td width="80%" class="text"><%=p.getName()%></td>
                </tr>
                <tr> 
                  <td width="20%" class="text_bold">Organisation:</td>
                  <td width="80%" class="text"><%=p.getOrganisation()%></td>
                </tr>
                <tr> 
                  <td width="20%" class="text_bold" valign="top">Description:</td>
                  <td width="80%" class="text"><%=p.getDescription()%></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#666666" class="header">&nbspDocuments</td>
          </tr>
          <tr> 
            <td>
              <table width="100%" border="0" bgcolor="#FAFAFA">
                <tr> 
                  <td class="text_bold" width="20">Nr.</td>
                  <td class="text_bold">File</td>
                  <td class="text_bold">Description</td>
                  <td class="text_bold">Date</td>
                  <td class="text_bold">Mime</td>
                  <td class="text_bold" width="20">&nbsp;</td>
                  <td class="text_bold" width="20"> 
                    <div align="center"></div>
                  </td>
                  <td class="text_bold" width="20"> 
                    <div align="center"></div>
                  </td>
                </tr>
                <%
			Vector v = p.getDocuments();
			for(int i=0; i<v.size(); i++)
			{
				Document d = (Document) v.elementAt(i);
				String mime = d.getMime();
				String image = "../images/mimetypes/mime_empty.png";
				if(mime.equals("application/msword"))
					image = "../images/mimetypes/wordprocessing2.png";
				else if(mime.equals("application/octet-stream"))
					image = "../images/mimetypes/008_presentation_document.png";
				else if(mime.equals("application/vnd.ms-excel"))
					image = "../images/mimetypes/spreadsheet.png";
				else if(mime.equals("application/pdf"))
					image = "../images/mimetypes/pdf.png";
				else if(mime.equals("application/x-gzip-compressed"))
					image = "../images/mimetypes/tar2.png";
				else if(mime.equals("application/x-zip-compressed"))
					image = "../images/mimetypes/tar2.png";
					
%>
                <tr> 
                  <td width="20" class="text"><%=i+1%></td>
                  <td class="text_bold"><%=d.getFilename()%></td>
                  <td class="text"><%=d.getDescription()%></td>
                  <td class="text"><%=app.dbDateToNormalDate(d.getDate())%></td>
                  <td class="text"><img src="<%=image%>" alt="<%=d.getMime()%>" border="0"></td>
                  <td width="20">
                    <div align="center"><a href="document_view.jsp?view=<%=d.getLfdnr()%>"><img src="../images/Edit16.gif" width="16" height="16" border="0" alt="view this Document..."></a></div>
                  </td>
                  <td width="20"> 
                    <div align="center"><a href="download.jsp?doc=<%=d.getLfdnr()%>" target="_blank"><img src="../images/Import16.gif" width="16" height="16" alt="Download this File..." border="0"></a></div>
                  </td>
                  <td width="20"> 
                    <div align="center"><img src="../images/Delete16.gif" width="16" height="16" alt="Delete this File..."></div>
                  </td>
                </tr>
                <tr> 
                  <td width="20" class="text">&nbsp;</td>
                  <td colspan="4" class="text"><%=d.getComment()%></td>
                  <td width="20">&nbsp;</td>
                  <td width="20"> 
                    <div align="center"></div>
                  </td>
                  <td width="20"> 
                    <div align="center"></div>
                  </td>
                </tr>
                <tr bgcolor="#CCCCCC"> 
                  <td height="1" width="20"></td>
                  <td height="1"></td>
                  <td height="1"></td>
                  <td height="1"></td>
                  <td height="1"></td>
                  <td height="1" width="20"></td>
                  <td height="1" width="20"></td>
                  <td height="1" width="20"></td>
                </tr>
                <%
			}
%>
              </table>
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr> 
    <td> 
      <div align="center" class="copyright">WebProject Copyright 2003 - Jan Debertshaeuser</div>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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