officeequip_type_edit.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 = "cn.js.fan.web.*"%>
  6. <%@ page import = "com.redmoon.oa.officeequip.*"%>
  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. <%@ include file="../inc/nocache.jsp"%>
  14. <script language="JavaScript" type="text/JavaScript">
  15. <!--
  16. //-->
  17. </script>
  18. <style type="text/css">
  19. <!--
  20. .style2 {font-size: 14px}
  21. .STYLE5 {color: #FF0000}
  22. .STYLE6 {color: #000000}
  23. -->
  24. </style>
  25. </head>
  26. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  27. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  28. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  29. <%
  30. String priv = "officeequip";
  31. if (!privilege.isUserPrivValid(request, priv)) {
  32. out.println(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "pvg_invalid")));
  33. return;
  34. }
  35. String op = ParamUtil.get(request, "op");
  36. if (op.equals("modify")) {
  37. OfficeTypeMgr otm = new OfficeTypeMgr();
  38. boolean re = false;
  39. try {
  40. re = otm.modify(request);
  41. }
  42. catch (ErrMsgException e) {
  43. out.print(StrUtil.Alert(e.getMessage()));
  44. }
  45. if (re) {
  46. out.print(StrUtil.Alert("操作成功!"));
  47. }
  48. }
  49. int id = ParamUtil.getInt(request, "id");
  50. OfficeTypeDb btd = new OfficeTypeDb();
  51. btd = btd.getOfficeTypeDb(id);
  52. %>
  53. <table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0">
  54.   <tr> 
  55.     <td height="23" valign="bottom" background="../images/top-right.gif" class="right-title">&nbsp;&nbsp;<span> 办公用品类别编辑 </span></td>
  56.   </tr>
  57.   <tr> 
  58.     <td valign="top" background="../images/tab-b-back.gif">
  59. <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tableframe">
  60.   <form action="?op=modify" method=post> 
  61.       <tr>
  62.         <td height="69" align="center">办公类别名称<span class="STYLE6">(<span class="STYLE5">*</span>)</span>:
  63.   <input name="name" value="<%=btd.getName()%>">
  64.   <input name="id" value="<%=id%>" type=hidden>
  65.   &nbsp;
  66.   <input name="submit" type=submit value="确定">&nbsp;</td>
  67.       </tr>
  68.   </form>
  69.     </table></td>
  70.   </tr>
  71.   <tr> 
  72.     <td height="9">&nbsp;</td>
  73.   </tr>
  74. </table>
  75. <br>
  76. <br>
  77. </body>
  78. </html>