left.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:16k
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.util.*,com.gforce.gfoa.*,com.gforce.currency.*" %>
- <%
- Session m_session = new Session(session);
- int intUserID = m_session.GetInt("UserID");
- String strRightPages=m_session.GetString("RightPages");
- if(intUserID<1||strRightPages.length()<1)
- {
- out.println("<script language="javascript">alert("您没有登录或者已经超时退出,请重新登录!");top.location="/LogOut.jsp";</script>");
- out.close();
- }
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>左部导航页面——</title>
- <link href="css/txt.jsp" rel="stylesheet" type="text/css">
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- var jsArray = new Array();
- <%
- SystemDirectoryManager sysmanager = new SystemDirectoryManager();
- Vector vc = sysmanager.getSysDirData(strRightPages);
- for(int row=0;row<vc.size();row++)
- {
- String strTemp = "";
- Vector hashtab = (Vector)vc.get(row);
- for(int i=0;i<hashtab.size();i++)
- {
- if(i==2)
- {
- String strFarther = hashtab.get(i).toString();
- strFarther = strFarther.substring(0,strFarther.length() - 1);
- strFarther = strFarther.substring(strFarther.lastIndexOf("_") + 1);
- strTemp += ","" + strFarther + """;
- }
- else
- strTemp += ","" + hashtab.get(i).toString() + """;
- }
- out.println("jsArray[" + (row) + "]=new Array(" + strTemp.substring(1) + ","" + hashtab.get(2).toString() + "");");
- }
- %>
- function hasfile(shangjiid)
- {
- for(var i = 0;i<jsArray.length;i++)
- {
- if(jsArray[i][13].indexOf("_" + shangjiid.toString() + "_" )>=0 && jsArray[i][8].length>0)
- {
- return true;
- }
- }
- return false;
- }
- function showtree(jibie,shangjiID,bline)
- {
- if(jibie<1)
- {
- document.write("<div id="t" + jibie + "_" + shangjiID +"" style="display:;line-height: 10px;">");
- }
- else
- {
- document.write("<div id="t" + jibie + "_" + shangjiID +"" style="display:none;line-height: 10px;">");
- }
- var i,notislast,j,haschild;
- notislast=false;
- haschild=false;
- for(i=0;i<jsArray.length;i++)
- {
- if((jsArray[i][3]==jibie + 1)&&(jsArray[i][2]==shangjiID.toString()))
- {
- if(jsArray[i][12]=="true" && (jsArray[i][8].length>0 || hasfile(jsArray[i][0])) )
- {
- var j,maxorder=0;
- haschild=false;
- for(j=0;j<jsArray.length;j++)
- {
- if((jsArray[j][3]==jibie + 1)&&(jsArray[j][2]==shangjiID.toString())&&parseInt(maxorder,10)<parseInt(jsArray[j][5],10))
- {
- maxorder=jsArray[j][5];
- }
- }
- for(j=0;j<jsArray.length;j++)
- {
- if((jsArray[j][3]==jibie + 2)&&(jsArray[j][2]==jsArray[i][0]))
- {
- haschild=true;
- break;
- }
- }
- bline = bline.substr(0,jibie);
- for(j=0;j<bline.length;j++)
- if(bline.substr(j,1)=="1")
- document.write("<img align="absbottom" src="/images/tree/i.gif" border="0" width="19" height="19">");
- else
- document.write("<img align="absbottom" src="/images/tree/white.gif" border="0" width="19" height="19">");
- if(parseInt(maxorder,10)>parseInt(jsArray[i][5],10))
- {
- if(haschild)
- {
- if(jsArray[i][10]=="true")
- if(jsArray[i][7]=="")
- document.write("<a href="#" onclick="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ");return false;" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/tplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderclosed.gif" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "">" + jsArray[i][1] + "</a></a><br>");
- else
- document.write("<a href="#" onclick="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ");return false;" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/tplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src=""+jsArray[i][7] +"" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "">" + jsArray[i][1] + "</a></a><br>");
- else
- if(jsArray[i][7]=="")
- document.write("<a href="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ")" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/tplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderclosed.gif" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + "">" + jsArray[i][1] + "</a><br>");
- else
- document.write("<a href="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ")" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/tplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src=""+jsArray[i][7] +"" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + "">" + jsArray[i][1] + "</a><br>");
- }
- else
- {
- if(jsArray[i][10]=="true")
- if(jsArray[i][7]=="")
- document.write("<img align="absbottom" src="/images/tree/t.gif" border="0" width="19" height="19"><img align="absbottom" src="/images/tree/book.gif" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "" title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- else
- document.write("<img align="absbottom" src="/images/tree/t.gif" border="0" width="19" height="19"><img align="absbottom" src="" + jsArray[i][7] +"" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "" title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- else
- if(jsArray[i][7]=="")
- document.write("<img align="absbottom" src="/images/tree/t.gif" border="0" width="19" height="19"><img align="absbottom" src="/images/tree/book.gif" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- else
- document.write("<img align="absbottom" src="/images/tree/t.gif" border="0" width="19" height="19"><img align="absbottom" src="" + jsArray[i][7] +"" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- }
- bline += "1".toString();
- showtree(jibie + 1,jsArray[i][0],bline);
- }
- else
- {
- if(haschild)
- {
- if(jsArray[i][10]=="true")
- if(jsArray[i][7]=="")
- document.write("<a href="#" onclick="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ");return false;" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/lplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderclosed.gif" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "">" + jsArray[i][1] + "</a></a><br>");
- else
- document.write("<a href="#" onclick="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ");return false;" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/lplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src=""+jsArray[i][7] +"" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "">" + jsArray[i][1] + "</a></a><br>");
- else
- if(jsArray[i][7]=="")
- document.write("<a href="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ")" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/lplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderclosed.gif" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + "">" + jsArray[i][1] + "</a><br>");
- else
- document.write("<a href="javascript:clicktree(" + (jibie + 1).toString() +"," + jsArray[i][0] + ")" target="_self" title=""+ jsArray[i][11] +""><img align="absbottom" src="/images/tree/lplus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src=""+jsArray[i][7] +"" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + "">" + jsArray[i][1] + "</a><br>");
- }
- else
- {
- if(jsArray[i][10]=="true")
- if(jsArray[i][7]=="")
- document.write("<img align="absbottom" src="/images/tree/l.gif" border="0" width="19" height="19"><img align="absbottom" src="/images/tree/book.gif" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "" title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- else
- document.write("<img align="absbottom" src="/images/tree/l.gif" border="0" width="19" height="19"><img align="absbottom" src="" + jsArray[i][7] +"" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a href="" + jsArray[i][8] + "" target="" + jsArray[i][9] + "" title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- else
- if(jsArray[i][7]=="")
- document.write("<img align="absbottom" src="/images/tree/l.gif" border="0" width="19" height="19"><img align="absbottom" src="/images/tree/book.gif" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- else
- document.write("<img align="absbottom" src="/images/tree/l.gif" border="0" width="19" height="19"><img align="absbottom" src="" + jsArray[i][7] +"" border="0" width="19" height="19" title=""+ jsArray[i][11] +""><a title=""+ jsArray[i][11] +"">" + jsArray[i][1] + "</a><br>");
- }
- bline += "0".toString();
- showtree(jibie + 1,jsArray[i][0],bline);
- }
- }
- }
- }
- document.write("</div>");
- }
- function clicktree(jibie,shangjiID)
- {
- if(shangjiID>0)
- if(eval("t" + jibie + "_" + shangjiID).style.display=="none")
- {
- eval("t" + jibie + "_" + shangjiID).style.display="";
- if(eval("document.n" + jibie + "_" + shangjiID).src.toLowerCase().indexOf("tplus.gif")>0)
- eval("document.n" + jibie + "_" + shangjiID).src="/images/tree/tminus.gif";
- else
- eval("document.n" + jibie + "_" + shangjiID).src="/images/tree/lminus.gif";
- folderOpenString = "";
- for(j=0;j<jsArray.length;j++)
- {
- if((jsArray[j][0]==shangjiID))
- {
- folderOpenString = jsArray[j][6];
- break;
- }
- }
- if(folderOpenString=="")
- eval("document.f" + jibie + "_" + shangjiID).src="/images/tree/folderopen.gif";
- else
- eval("document.f" + jibie + "_" + shangjiID).src=folderOpenString;
- }
- else
- {
- eval("t" + jibie + "_" + shangjiID).style.display="none";
- if(eval("document.n" + jibie + "_" + shangjiID).src.toLowerCase().indexOf("tminus.gif")>0)
- eval("document.n" + jibie + "_" + shangjiID).src="/images/tree/tplus.gif";
- else
- eval("document.n" + jibie + "_" + shangjiID).src="/images/tree/lplus.gif";
- folderClosedString = "";
- for(j=0;j<jsArray.length;j++)
- {
- if((jsArray[j][0]==shangjiID))
- {
- folderClosedString = jsArray[j][7];
- break;
- }
- }
- if(folderClosedString=="")
- eval("document.f" + jibie + "_" + shangjiID).src="/images/tree/folderclosed.gif";
- else
- eval("document.f" + jibie + "_" + shangjiID).src=folderClosedString;
- }
- }
- //-->
- </SCRIPT>
- <base target="mainFrame">
- <style type="text/css">
- <!--
- a {
- color: #0A0A0A;
- }
- .treeback {
- background-image: url(images/zjm05.gif);
- background-repeat: repeat-y;
- }
- -->
- </style>
- </head>
- <body leftmargin="0" topmargin="0" bgcolor="<%=m_session.GetString("BackColor")%>">
- <table border="0" cellpadding="0" cellspacing="0" style="width:100%;height:98%;">
- <tr>
- <td><img src="images/zjm04.gif" width="196" height="48"></td>
- </tr>
- <tr>
- <td height="100%" align="center" valign="top" class="treeback"><br>
- <table width="85%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="top" nowrap="nowrap">
- <img src="/images/tree/home.gif" align="absbottom" border="0" width="19" height="19"><a href="/home.jsp"><%=SystemParament.GetSystemName()%></a>
- <script language="javascript">
- <!--
- showtree(0,0,"");
- -->
- </script>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td><img src="images/zjm06.gif" width="196" height="30"></td>
- </tr>
- </table>
- </body>
- </html>