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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="cn.js.fan.util.*"%>
  3. <%@ page import="com.redmoon.oa.flow.*"%>
  4. <script>
  5. function findObj(theObj, theDoc)
  6. {
  7.   var p, i, foundObj;
  8.   
  9.   if(!theDoc) theDoc = document;
  10.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  11.   {
  12.     theDoc = parent.frames[theObj.substring(p+1)].document;
  13.     theObj = theObj.substring(0,p);
  14.   }
  15.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  16.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  17.     foundObj = theDoc.forms[i][theObj];
  18.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  19.     foundObj = findObj(theObj,theDoc.layers[i].document);
  20.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  21.   
  22.   return foundObj;
  23. }
  24. function ShowChild(imgobj, name)
  25. {
  26. var tableobj = findObj("childof"+name);
  27. if (tableobj.style.display=="none")
  28. {
  29. tableobj.style.display = "";
  30. if (imgobj.src.indexOf("i_puls-root-1.gif")!=-1)
  31. imgobj.src = "images/i_puls-root.gif";
  32. if (imgobj.src.indexOf("i_plus-1-1.gif")!=-1)
  33. imgobj.src = "images/i_plus2-2.gif";
  34. if (imgobj.src.indexOf("i_plus-1.gif")!=-1)
  35. imgobj.src = "images/i_plus2-1.gif";
  36. }
  37. else
  38. {
  39. tableobj.style.display = "none";
  40. if (imgobj.src.indexOf("i_puls-root.gif")!=-1)
  41. imgobj.src = "images/i_puls-root-1.gif";
  42. if (imgobj.src.indexOf("i_plus2-2.gif")!=-1)
  43. imgobj.src = "images/i_plus-1-1.gif";
  44. if (imgobj.src.indexOf("i_plus2-1.gif")!=-1)
  45. imgobj.src = "images/i_plus-1.gif";
  46. }
  47. }
  48. function selectDir(dirCode, dirName) {
  49. form1.dirCode.value = dirCode;
  50. form1.submit();
  51. }
  52. </script>
  53. <link href="common.css" rel="stylesheet" type="text/css">
  54. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  55. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
  56. <!--
  57. body {
  58. margin-left: 0px;
  59. margin-right: 0px;
  60. margin-bottom: 0px;
  61. }
  62. -->
  63. </style><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#EFEFEF">
  64.   <tr>
  65.     <td width="33%" align="center"><%
  66. Directory dir = new Directory();
  67. Leaf rootLeaf = dir.getLeaf(Leaf.CODE_ROOT);
  68. DirectoryView dv = new DirectoryView(rootLeaf);
  69. dv.ListFunc(out, "_self", "selectDir", "", "" );
  70. %>
  71. <form name="form1" action="flow_sel_predefined_list.jsp" method="post" target="flowPredefineMainFrame">
  72. <input type="hidden" name="dirCode" />
  73. </form>
  74. </td>
  75.   </tr>
  76. </table>