SystemDirectoryManage.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:19k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Vector vt = RoleManager.getAllRecord();
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>系统目录管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="javascript" type="text/javascript">
- 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:;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()))
- {
- var j,maxorder=0;
- haschild=false;
- childacount = 0;
- for(j=0;j<jsArray.length;j++)
- {
- if((jsArray[j][3]==jibie + 1)&&(jsArray[j][2]==shangjiID.toString())&&parseInt(maxorder)<parseInt(jsArray[j][5]))
- {
- 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;
- childacount++;
- }
- }
- 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)>parseInt(jsArray[i][5]))
- {
- 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/tminus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderopen.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>");
- 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/tminus.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>");
- 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/tminus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderopen.gif" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + "">" + jsArray[i][1] + "</a>");
- 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/tminus.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>");
- document.write(" <a>(共有个" + childacount + "子系统目录)</a> <a href="EditSystemDirectory.jsp?ID=" + jsArray[i][0] + "">修改系统目录</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Top">置顶</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Up">上移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Down">下移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Bottom">置底</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>");
- 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>");
- 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>");
- 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>");
- document.write(" <a></a> <a href="EditSystemDirectory.jsp?ID=" + jsArray[i][0] + "">修改系统目录</a>");
- document.write(" <a href="DelSystemDirectory.jsp?ID=" + jsArray[i][0] + "">删除系统目录</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Top">置顶</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Up">上移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Down">下移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Bottom">置底</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/lminus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderopen.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>");
- 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/lminus.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>");
- 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/lminus.gif" border="0" width="19" height="19" name="n" + (jibie + 1).toString() +"_" + jsArray[i][0] + ""><img align="absbottom" src="/images/tree/folderopen.gif" border="0" width="19" height="19" name="f" + (jibie + 1).toString() +"_" + jsArray[i][0] + "">" + jsArray[i][1] + "</a>");
- 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/lminus.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>");
- document.write(" <a>(共有个" + childacount + "子系统目录)</a> <a href="EditSystemDirectory.jsp?ID=" + jsArray[i][0] + "">修改系统目录</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Top">置顶</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Up">上移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Down">下移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Bottom">置底</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>");
- 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>");
- 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>");
- 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>");
- document.write(" <a></a> <a href="EditSystemDirectory.jsp?ID=" + jsArray[i][0] + "">修改系统目录</a>");
- document.write(" <a href="DelSystemDirectory.jsp?ID=" + jsArray[i][0] + "" onclick="return confirm('您确实要删除该目录吗?');">删除系统目录</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Top">置顶</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Up">上移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Down">下移</a> <a href="MoveSystemDirectory.jsp?ID=" + jsArray[i][0] + "&Direct=Bottom">置底</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;
- }
- -->
- </style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">系统目录管理</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
- <tr align="center" valign="top">
- <th bgcolor="<%=m_session.GetString("TitleColor")%>">
- 系统目录管理
- </th>
- </tr>
- <tr align="left" valign="top">
- <td>
- <img src="/images/tree/home.gif" align="absbottom" border="0" width="19" height="19"><a href="/home.jsp"><%=SystemParament.GetCommpanyName()%></a>
- <a>(包括<%=SystemDirectoryManager.getSubSystemDirectoryCount(0)%>个子系统目录) </a>
- <a href="AddSystemDirectory.jsp">添加系统目录</a>
- <script language="javascript">
- <!--
- var jsArray = new Array();
- <%
- Vector vc = SystemDirectoryManager.getSystemDirectoryData();
- 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) + ");");
- }
- %>
- showtree(0,0,"");
- -->
- </script>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </body>
- </html>