account_add.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "com.redmoon.oa.account.*"%>
  6. <%@ page import = "cn.js.fan.web.*"%>
  7. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  12. <title>创建帐号</title>
  13. <link href="../common.css" rel="stylesheet" type="text/css">
  14. <%@ include file="../inc/nocache.jsp"%>
  15. <%
  16. String op = ParamUtil.get(request, "op");
  17. if (op.equals("add")) {
  18. AccountMgr am = new AccountMgr();
  19. boolean re = false;
  20. try {
  21.   re = am.create(request);
  22. }
  23. catch (ErrMsgException e) {
  24. out.print(StrUtil.Alert(e.getMessage()));
  25. }
  26. if (re)
  27. out.print(StrUtil.Alert_Redirect("操作成功!", "account_add.jsp"));
  28. }
  29. %>
  30. <script>
  31.  function setPerson(deptCode, deptName, user, userRealName)
  32. {
  33. form1.person.value = userRealName;
  34. form1.userName.value = user;
  35. }
  36. </script>
  37. <style type="text/css">
  38. <!--
  39. .STYLE5 {color: #FF0000}
  40. -->
  41. </style>
  42. </head>
  43. <body>
  44. <TABLE width="45%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="tableframe">
  45.   <FORM name="form1" action="?op=add" method="post">
  46.     <TBODY>
  47.       <TR>
  48.         <TD colspan="4" align="left" class="right-title">&nbsp;添加工号</TD>
  49.       </TR>
  50.       <TR>
  51.         <TD height="26" align="right">工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;号:</TD>
  52.         <TD><INPUT name="name" id="name" maxLength="255">
  53.         <span class="STYLE5"> *</span> </TD>
  54.       </TR>
  55.       <TR>
  56.         <TD height="26" align="right">姓 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</TD>
  57.         <td><input name="person" type="text" id="person" size="20" readonly>&nbsp;<a href="#" onClick="javascript:showModalDialog('../user_sel.jsp',window.self,'dialogWidth:480px;dialogHeight:320px;status:no;help:no;')">选择用户</a><input type="hidden" name="userName"></td>
  58.       </TR>
  59.       
  60.       <TR>
  61.         <TD height="30" colspan="4" align="center"><input name="button" type="submit" class="button1"  value="创建工号 ">
  62.           &nbsp;&nbsp;&nbsp;&nbsp;
  63.         <input name="button2" type="button" class="button1"  value="返回列表" onClick="window.location.href='account_list.jsp'"></TD>
  64.       </TR>
  65.     </TBODY>
  66.   </FORM>
  67. </TABLE>
  68. </body>
  69. </html>