update.jsp

来自「07年做得人力资源管理系统」· JSP 代码 · 共 56 行

JSP
56
字号
<%@ page language="java" import="com.buat.hr.institution.Institution,com.buat.hr.institution.InstitutionDAO" pageEncoding="gbk"%>
<%    
          int id=0;
          String idstr=request.getParameter("id");
       try{
             id=Integer.parseInt(idstr);
       }catch(Exception e){}
          InstitutionDAO dao=new InstitutionDAO();
   	      Institution institution=dao.searchInstitution(id);
%>
<html>
  <head>  
  </head>
        <script type="text/javascript">
			   function opinion()
			   {
			        return window.confirm("确定保存对此表信息的修改?");			         		        
			    }  
        </script>
 
  <body background="../bg.jpg">
    <form action="ProcessUpdate.jsp">
       <table width="70%" border="2" align="center"> 
       		 <input type="hidden" name="id" value=<%=institution.getInstitutionId()%>>     
    		<tr> 				
				<td colspan="2"><font color="red">修改奖惩</font></td>
			</tr>
			<tr>
			
				<th>奖惩名称:</th>
				<td><input type="text" name="name" value=<%=institution.getName() %> readonly >
				   <font size="2" color="red"><b>提示:奖惩名称不可修改</b></font>
				</td>
			</tr>
			<tr>
				<th>奖惩原因:</th>
				<td><input type="text" name="reason" value=<%=institution.getReason() %> ></td>
			</tr>
			<tr>
				<th>奖惩说明:</th>
				<td><textarea  wrap="soft" name="explains" rows="5" cols="25"><%=institution.getExplains()%></textarea></td>
			</tr>
			<tr>
				<th colspan="2" align="center"><input type="submit" value="提交" onclick="return opinion()">&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;<input type="reset" value="重置"></th>
			</tr>
			<tr>
			        <th colspan="2" align="center">
    					<a href="Scan.jsp">返回</a>
    				</th>
			</tr>
		</table>
    </form>
  </body>
</html>

⌨️ 快捷键说明

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