<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Category_Tree.aspx.cs" Inherits="TotCms.Web.Admin.Category_Tree" %>
<%@ Register src="UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>选择栏目分类</title>
<link href="style/global.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/xmlhttp.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/tree_view.js"></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);
}
</script>
</head>
<body onLoad="CreateProjectExplorer()">
    <form id="form1" runat="server">
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <tr>
        <td class="topic">栏目分类管理</td>
      </tr>   
      <tr>
        <td>
          <div id="DivJs" runat="server"></div>
        </td>
      </tr>
    </table>
    </form>
<script type="text/javascript">
function SelectFile(classid,classtitle)
{	
	var opener=window.opener;
	//var cateobj=opener.document.addCategory.parentid;
	var cateobj=opener.document.getElementById('CategoryId');
	cateobj.value=classid;
	opener.document.getElementById('CategoryTitle').innerHTML=classtitle;
	window.close();
}
</script>
</body>
</html>
