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

Jsp/Servlet

开发平台:

Java

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