<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<html>
<head>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style/sys.css" rel="stylesheet">
<title>目录树</title>
<link rel="stylesheet" href="css/tree.css">
<script language="javascript" src="js/tree_view.js"></script>
<script src="js/xmlhttp.js" type="text/javascript"></script>
<script type="text/javascript">
function addChild(pdiv,classid,classtitle){
	CreateTreeItem( pdiv,"images/tree/folder_closed.gif","images/tree/folder_open.gif",classid,classtitle,"javascript:SelectFile('"+classid+"','"+classtitle+"');","_self",0);
}
function ConfirmDel()
{
   if(confirm("确认删除？并且不能恢复！确定要删除此信息吗？"))
     return true;
   else
     return false;
	 
}
</script>
</head>
<%
'''''''''''''''''''''''''''''''''''''''''''''''
'call checkPrevilege(Session("Name"),"p01")
'''''''''''''''''''''''''''''''''''''''''''''''
Dim ClassSql,rs,ParentId
if not isempty(request.QueryString("classid")) then
	ParentId=Clng(request.QueryString("classid"))
else
	ParentId=0
end if
%>

<body ondragstart="return false;" onselectstart="return false;"  onLoad="CreateProjectExplorer()">

<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--<iframe src="right_top.htm" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" height="30" width="100%"></iframe> --></td>
  </tr>
</table>

<%
ClassSql = "Select * from catalogs where parentID="&ParentId
Set rs = Conn.Execute(ClassSql)
response.Write("<script language=""JavaScript"" type=""text/JavaScript"">"&Chr(10))
response.Write("function CreateProjectExplorer()"&Chr(10))
response.Write("{"&Chr(10))
response.Write("	Initialise();"&Chr(10))
response.Write("	d=CreateTreeItem( rootCell, ""images/tree/project.gif"", ""images/tree/project.gif"",0,""根目录"", ""javascript:SelectFile(\""0\"",\""根目录\"");"", ""_self"" );"&Chr(10))
'response.Write("d2 = CreateTreeItem( d, ""images/tree/folder_closed.gif"", ""images/tree/folder_open.gif"", 2,""中文"", ""http://www.sdfdc.com"", null );"&Chr(10))
do while Not rs.Eof
	Response.Write("CreateTreeItem(d,""images/tree/folder_closed.gif"", ""images/tree/folder_open.gif"","&rs("id")&", """&rs("title")&""", ""javascript:SelectFile('"&rs("id")&"','"&rs("title")&"');"", ""_self"",0);"&Chr(10))
	rs.MoveNext
loop
response.Write("}"&Chr(10))
response.Write("</script>"&Chr(10))
%>
<%
rs.close
Set rs = Nothing
%>
<script type="text/javascript">

function SelectFile(classid,classtitle)
{	
	var arr=new Array(classid,classtitle) 
	window.returnValue =arr;
	window.close();
}
</script>
</body>
</html>
<%call connclose()%>