add.jsp

来自「java web开发技术方案宝典」· JSP 代码 · 共 76 行

JSP
76
字号
<%@ page contentType="text/html; charset=gb2312"%>
<%@ taglib uri="struts-html" prefix="html" %>
<%@ include file="/view/setBasePath.jsp" %>
<%
  String result=(String)request.getAttribute("AddR");
  if(result==null)result="";
%>
<html>
<head>
    <title>部门管理-添加部门</title>
    <base href="<%=basePath %>">
</head>
<body>
  <center>
      <html:form action="/mng/baseDate/mngBranch/add">
          <input type="hidden" name="op" value="add">
          <input type="hidden" name="actiontype" value="doadd">
                    <table border="0" cellspacing="0" cellpadding="0"><tr><td align="right" colspan="3"><jsp:include page="operate.jsp"/></td></tr></table>
                    <table border="1" cellspacing="0" width="600" bordercolor="lightgrey" bordercolorlight="lightgrey" bordercolordark="white" rules="none">
                        <tr height="25" bgcolor="#FFE380">
                            <td width="25%">&nbsp;部门编号:</td>
                            <td width="70%"><html:hidden property="id" write="true"/></td>
                        </tr>
                        <tr><td colspan="2" align="center"><font color="red"><%=result%></font></td></tr>                        
                        <tr height="30">
                            <td align="center">部门名称:</td>
                            <td>
                                <html:text property="branchName" size="35" style="border:1 solid;border-color:lightgrey;background:#F9F9F9"/>
                                &nbsp;
                                <html:errors property="BranchNameE"/>
                            </td>
                        </tr>
                        <tr height="30">
                            <td align="center">部门介绍:</td>
                            <td>
                                <html:text property="branchInfo" size="35" style="border:1 solid;border-color:lightgrey;background:#F9F9F9"/>
                                &nbsp;
                                <html:errors property="BranchInfoE"/>                            
                            </td>
                        </tr>
                        <tr height="30">
                            <td align="center">部门主管:</td>
                            <td>
                                <html:text property="branchManager" size="35" style="border:1 solid;border-color:lightgrey;background:#F9F9F9"/>
                                &nbsp;
                                <html:errors property="BranchManagerE"/>                            
                            </td>
                        </tr>
                        <tr height="30">
                            <td align="center">部门地址:</td>
                            <td>
                                <html:text property="branchAddr" size="35" style="border:1 solid;border-color:lightgrey;background:#F9F9F9"/>
                                &nbsp;
                                <html:errors property="BranchAddrE"/>                                
                            </td>
                        </tr>
                        <tr height="30">
                            <td align="center">部门电话:</td>
                            <td>
                                <html:text property="branchPhone" size="35" style="border:1 solid;border-color:lightgrey;background:#F9F9F9"/>
                                &nbsp;
                                <html:errors property="BranchPhoneE"/>                                
                            </td>
                        </tr>
                        <tr height="30">
                            <td align="center" width="20%" colspan="2">
                                <html:submit style="border:0;width=47;height=20;background-image:url(image/add_b.gif)" value=" "/>
                                <html:reset style="border:0;width=47;height=20;background-image:url(image/reset_b.gif)" value=" "/>
                            </td>
                        </tr>
                        <tr height="10" bgcolor="#FFF3AF"><td colspan="2">&nbsp;</td></tr>
      </table>
      </html:form>
  </center>  
</body>
</html>

⌨️ 快捷键说明

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