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

📄 report_new.jsp

📁 jwp是 JSP WebProject的简写。它是一个基于Web的应用程序。它编写的方式是JSP/Java+Mysql.主要的功能是管理项目、任务、命令、用户、报告、文档。这个程序对学生管理自己的程序
💻 JSP
字号:
<%@ include file="../WEB-INF/include/header.jsp" %>
<%
	if(request.getParameter("GO") != null)
	{
		Report r = new Report();
		r.setProject(request.getParameter("TF_PROJECT"));
		r.setStartdate(request.getParameter("TF_START"));
		r.setEnddate(request.getParameter("TF_END"));
		r.setStatus(request.getParameter("TF_STATUS"));
		r.setStep(request.getParameter("TF_STEP"));
		r.setPhase(request.getParameter("TF_PHASE"));
		r.setDegree(request.getParameter("TF_DEGREE"));
		r.setEvents(request.getParameter("TF_EVENTS"));
		r.setPlannedevents(request.getParameter("TF_PLANNED"));
		r.setRisks(request.getParameter("TF_RISKS"));
		r.setDecision(request.getParameter("TF_DECISION"));
		r.setUser(usernr);
		r.setDate(dbday);
		r.insert();
		response.sendRedirect(response.encodeRedirectURL("projects.jsp"));
	}
	
	if(request.getParameter("CANCEL") != null)
		response.sendRedirect(response.encodeRedirectURL("projects.jsp"));
%>
<html>
<head>
<title>Reports</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../css/css.css" type="text/css">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td class="header" height="25" bgcolor="#666666">&nbspnew Report</td>
  </tr>
  <tr> 
    <td bgcolor="#EFEFEF">&nbsp;</td>
  </tr>
  <tr> 
    <td bgcolor="#EFEFEF"> 
      <form name="form1" method="post" action="">
        <table width="95%" border="0" align="center">
          <tr> 
            <td width="15%" class="text_bold">Project:</td>
            <td width="35%"> 
              <select name="TF_PROJECT" class="text">
                <option value="0" selected>- choose Project - </option>
                <%
				Vector vprojects = ses.getUser().getAvailableProjects();
				for(int i=0; i<vprojects.size(); i++)
				{
					Project p = (Project) vprojects.elementAt(i);
					//out.println("Manager: " + p.getManager());
%>
                <option value="<%=p.getLfdnr()%>"><%=p.getName()%></option>
                <%
				}
%>
              </select>
            </td>
            <td width="15%" class="text_bold">Creator:</td>
            <td width="35%" class="text"><%=username%></td>
          </tr>
          <tr> 
            <td width="15%" class="text_bold">Start:</td>
            <td width="35%" class="text"> 
              <input type="text" name="TF_START" size="15" maxlength="12" class="text">
              <a href="#"><img src="../images/view_multicolumn.png" width="22" height="22" onClick="MM_openBrWindow('kalender.jsp?formname=form1&amp;fieldname=TF_START','CAL','resizable=yes,width=250,height=250')" border="0"></a> 
            </td>
            <td width="15%" class="text_bold">End:</td>
            <td width="35%"> 
              <input type="text" name="TF_END" size="15" maxlength="12" class="text">
              <a href="#"><img src="../images/view_multicolumn.png" width="22" height="22" onClick="MM_openBrWindow('kalender.jsp?formname=form1&amp;fieldname=TF_END','CAL','resizable=yes,width=250,height=250')" border="0"></a> 
            </td>
          </tr>
          <tr> 
            <td width="15%" class="text_bold">Status:</td>
            <td width="35%"> 
              <select name="TF_STATUS" class="text">
                <option value="0" selected>- choose Status -</option>
                <option value="OK">OK</option>
                <option value="Planned">Planned</option>
                <option value="Critical">Critical</option>
                <option value="Stopped">Stopped</option>
                <option value="Delayed">Delayed</option>
                <option value="Canceled">Canceled</option>
              </select>
            </td>
            <td width="15%" class="text_bold">Step:</td>
            <td width="35%"> 
              <input type="text" name="TF_STEP" size="15" maxlength="255" class="text">
            </td>
          </tr>
          <tr> 
            <td width="15%" class="text_bold">Phase:</td>
            <td width="35%"> 
              <select name="TF_PHASE" class="text">
                <option value="0" selected>- choose Phase -</option>
                <option value="Planning">Planning</option>
                <option value="Analysis">Analysis</option>
                <option value="Check by Customer">Check by Customer</option>
                <option value="Development">Development</option>
                <option value="Test">Test</option>
                <option value="Documentation">Documentation</option>
                <option value="Release">Release</option>
              </select>
            </td>
            <td width="15%" class="text_bold">Degree:</td>
            <td width="35%"> 
              <select name="TF_DEGREE" class="text">
                <option value="0" selected>0</option>
                <option value="5" >5</option>
                <option value="10" >10</option>
                <option value="15" >15</option>
                <option value="20" >20</option>
                <option value="25" >25</option>
                <option value="30" >30</option>
                <option value="35" >35</option>
                <option value="40" >40</option>
                <option value="45" >45</option>
                <option value="50" >50</option>
                <option value="55" >55</option>
                <option value="60" >60</option>
                <option value="65" >65</option>
                <option value="70" >70</option>
                <option value="75" >75</option>
                <option value="80" >80</option>
                <option value="85" >85</option>
                <option value="90" >90</option>
                <option value="95" >95</option>
                <option value="100" >100</option>
              </select>
              <span class="text">% </span></td>
          </tr>
          <tr title="Enter here important Events in this Timerange..."> 
            <td width="15%" class="text_bold" valign="top">Events:</td>
            <td colspan="3"> 
              <textarea name="TF_EVENTS" cols="100" class="text" rows="6"></textarea>
            </td>
          </tr>
          <tr title="Enter here important Events until the next Report..."> 
            <td width="15%" class="text_bold" valign="top" nowrap>Planned Events:</td>
            <td colspan="3"> 
              <textarea name="TF_PLANNED" cols="100" class="text" rows="6"></textarea>
            </td>
          </tr>
          <tr title="Enter Risks you see for the Project..."> 
            <td width="15%" class="text_bold" valign="top">Risks:</td>
            <td colspan="3"> 
              <textarea name="TF_RISKS" cols="100" class="text" rows="6"></textarea>
            </td>
          </tr>
          <tr title="Enter here decisions to be made and which person is responsible..."> 
            <td width="15%" class="text_bold" valign="top">Decision:</td>
            <td colspan="3"> 
              <textarea name="TF_DECISION" cols="100" class="text" rows="6"></textarea>
            </td>
          </tr>
          <tr> 
            <td width="15%" class="text_bold" valign="middle">&nbsp;</td>
            <td width="35%">&nbsp; </td>
            <td width="15%" class="text_bold">&nbsp;</td>
            <td width="35%">&nbsp; </td>
          </tr>
          <tr> 
            <td width="15%" class="text_bold">&nbsp;</td>
            <td width="35%"> 
              <input type="submit" name="GO" value="Save" class="text">
              <input type="submit" name="CANCEL" value="Cancel" class="text">
            </td>
            <td width="15%" class="text_bold">&nbsp;</td>
            <td width="35%">&nbsp; </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#EFEFEF">&nbsp;</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 + -