book_type_add.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.util.*"%>
  5. <%@ page import = "com.redmoon.oa.book.*"%>
  6. <%@ page import = "com.redmoon.oa.dept.*"%>
  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. <script language="JavaScript" type="text/JavaScript">
  14. <!--
  15. function findObj(theObj, theDoc)
  16. {
  17.   var p, i, foundObj;
  18.   
  19.   if(!theDoc) theDoc = document;
  20.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  21.   {
  22.     theDoc = parent.frames[theObj.substring(p+1)].document;
  23.     theObj = theObj.substring(0,p);
  24.   }
  25.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  26.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  27.     foundObj = theDoc.forms[i][theObj];
  28.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  29.     foundObj = findObj(theObj,theDoc.layers[i].document);
  30.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  31.   
  32.   return foundObj;
  33. }
  34. var GetDate=""; 
  35. function SelectDate(ObjName,FormatDate){
  36. var PostAtt = new Array;
  37. PostAtt[0]= FormatDate;
  38. PostAtt[1]= findObj(ObjName);
  39. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  40. }
  41. function SetDate()
  42. findObj(ObjName).value = GetDate; 
  43. }
  44. //-->
  45. </script>
  46. <style type="text/css">
  47. <!--
  48. .style2 {font-size: 14px}
  49. -->
  50. </style>
  51. </head>
  52. <body>
  53. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  54. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  55. <%
  56. String priv = "book.all";
  57. if (!privilege.isUserPrivValid(request, priv)) {
  58. out.println(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "pvg_invalid")));
  59. return;
  60. }
  61. %>
  62. <%@ include file="book_inc_menu_top.jsp"%>
  63. <br>
  64. <table border="0" cellpadding="3" cellspacing="1" >
  65. <tr>
  66.  <td>添加图书类别</td>
  67. </tr>
  68. </table>
  69. <table border="0" width="300" align="center" cellpadding="3" cellspacing="1">
  70. <form action="book_do.jsp?op=add" name="form1" method="post">
  71. <tr>
  72.  <td>类别名称:</td>
  73.  <td><input type="text" name="name" id="name"/></td>
  74. </tr>
  75. <tr>
  76.  <td></td>
  77.  <td align="center"><input type="button" value="添加"></td>
  78. </tr>
  79. </form>
  80. </table>
  81. </body>
  82. </html>