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

Jsp/Servlet

开发平台:

Java

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