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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="com.redmoon.oa.dept.*" %>
  3. <%@ page import="cn.js.fan.util.*" %>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <LINK href="../common.css" type=text/css rel=stylesheet>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  9. <title>选择模板-菜单</title>
  10. <script>
  11. function findObj(theObj, theDoc)
  12. {
  13.   var p, i, foundObj;
  14.   
  15.   if(!theDoc) theDoc = document;
  16.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  17.   {
  18.     theDoc = parent.frames[theObj.substring(p+1)].document;
  19.     theObj = theObj.substring(0,p);
  20.   }
  21.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  22.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  23.     foundObj = theDoc.forms[i][theObj];
  24.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  25.     foundObj = findObj(theObj,theDoc.layers[i].document);
  26.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  27.   
  28.   return foundObj;
  29. }
  30. function ShowChild(imgobj, name)
  31. {
  32. var tableobj = findObj("childof"+name);
  33. if (tableobj.style.display=="none")
  34. {
  35. tableobj.style.display = "";
  36. if (imgobj.src.indexOf("i_puls-root-1.gif")!=-1)
  37. imgobj.src = "images/i_puls-root.gif";
  38. if (imgobj.src.indexOf("i_plus-1-1.gif")!=-1)
  39. imgobj.src = "images/i_plus2-2.gif";
  40. if (imgobj.src.indexOf("i_plus-1.gif")!=-1)
  41. imgobj.src = "images/i_plus2-1.gif";
  42. }
  43. else
  44. {
  45. tableobj.style.display = "none";
  46. if (imgobj.src.indexOf("i_puls-root.gif")!=-1)
  47. imgobj.src = "images/i_puls-root-1.gif";
  48. if (imgobj.src.indexOf("i_plus2-2.gif")!=-1)
  49. imgobj.src = "images/i_plus-1-1.gif";
  50. if (imgobj.src.indexOf("i_plus2-1.gif")!=-1)
  51. imgobj.src = "images/i_plus-1.gif";
  52. }
  53. }
  54. </script>
  55. </head>
  56. <body style="background-image:url()">
  57. <table width="100%"  border="0">
  58.   <tr>
  59.     <td align="left">&nbsp;请选择部门</td>
  60.   </tr>
  61. </table>
  62. <table width="100%"  border="0">
  63.   <tr>
  64.     <td width="5" align="left">&nbsp;</td>
  65.   <td align="left">
  66. <%
  67. DeptMgr dm = new DeptMgr();
  68. DeptDb dd = dm.getDeptDb(DeptDb.ROOTCODE);
  69. DeptView tv = new DeptView(dd);
  70. tv.ListSimple(out, "midFrame", "../archive_simple/user_archive_main.jsp", "", "" );
  71. %>
  72. </td>
  73.   </tr>
  74. </table>
  75. </body>
  76. </html>