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

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.web.*"%>
  5. <%@ page import = "cn.js.fan.util.*"%>
  6. <%@ page import = "com.redmoon.oa.book.*"%>
  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 = "book.all";
  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. BookTypeMgr btm = new BookTypeMgr();
  38. boolean re = false;
  39. try {
  40. re = btm.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. BookTypeDb btd = new BookTypeDb();
  51. btd = btd.getBookTypeDb(id);
  52. %>
  53. <%@ include file="book_inc_menu_top.jsp"%>
  54. <br>
  55. <table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0">
  56.   <tr> 
  57.     <td height="23" valign="bottom" background="../images/top-right.gif" class="right-title">&nbsp;&nbsp;<span> 图书类别编辑 </span></td>
  58.   </tr>
  59.   <tr> 
  60.     <td valign="top" background="../images/tab-b-back.gif">
  61. <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  62.   <form action="?op=modify" method=post> 
  63.       <tr>
  64.         <td height="69" align="center">图书类别名称<span class="STYLE6">(<span class="STYLE5">*</span>)</span>:
  65.   <input name="name" value="<%=btd.getName()%>">
  66.   <input name="id" value="<%=id%>" type=hidden>
  67.   &nbsp;
  68.   <input name="submit" type=submit value="确定">&nbsp;</td>
  69.       </tr>
  70.   </form>
  71.     </table></td>
  72.   </tr>
  73.   <tr> 
  74.     <td height="9"><img src="../images/tab-b-bot.gif" width="494" height="9"></td>
  75.   </tr>
  76. </table>
  77. <br>
  78. <br>
  79. </body>
  80. </html>