rank_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.basic.*"%>
  6. <%@ page import = "cn.js.fan.web.*"%>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title>添加职级</title>
  12. <link href="../common.css" rel="stylesheet" type="text/css">
  13. <%
  14. String op = ParamUtil.get(request, "op");
  15. if (op.equals("add")) {
  16. RankMgr rm = new RankMgr();
  17. boolean re = false;
  18. try {
  19.   re = rm.create(request);
  20. }
  21. catch (ErrMsgException e) {
  22. out.print(StrUtil.Alert(e.getMessage()));
  23. }
  24. if (re)
  25. out.print(StrUtil.Alert_Redirect("操作成功!", "rank_add.jsp"));
  26. }
  27. %>
  28. <style type="text/css">
  29. <!--
  30. .STYLE5 {color: #FF0000}
  31. -->
  32. </style>
  33. </head>
  34. <body>
  35. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  36. <%
  37. if (!privilege.isUserPrivValid(request, com.redmoon.oa.pvg.PrivDb.PRIV_ADMIN)) {
  38. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  39. return;
  40. }
  41. %>
  42. <TABLE width="45%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="tableframe">
  43.   <FORM name="form1" action="?op=add" method="post">
  44.     <TBODY>
  45.       <TR>
  46.         <TD colspan="4" align="left" class="right-title">&nbsp;添加职级</TD>
  47.       </TR>
  48.       <TR>
  49.         <TD height="26" align="right">名 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称:</TD>
  50.         <td><input name="userName" id="userName" size="30" >          &nbsp;
  51.         <input type="hidden" name="code" value="<%=cn.js.fan.util.RandomSecquenceCreator.getId(20)%>"></td></TR>
  52.       <TR>
  53.         <TD height="26" align="right">序&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</TD>
  54.         <td><input name="orders"  id="orders" size="10" ></td>
  55.       </TR>
  56.       
  57.       <TR>
  58.         <TD height="30" colspan="4" align="center"><input name="button" type="submit" class="button1"  value="创建职级 ">
  59.           &nbsp;&nbsp;&nbsp;&nbsp;
  60.         <input name="button2" type="button" class="button1"  value="返回列表" onClick="window.location.href='rank_list.jsp'"></TD>
  61.       </TR>
  62.     </TBODY>
  63.   </FORM>
  64. </TABLE>
  65. </body>
  66. </html>