<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.templatetree" Codebehind="global_templatetree.aspx.cs" %>
<%@ Register TagPrefix="cc3" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
  <HEAD 
id=Head1>
		<title></title>
		<LINK rev="stylesheet" media="all" href="../styles/default.css" type="text/css" rel="stylesheet">
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">
		<LINK href="../styles/tab.css" type="text/css" rel="stylesheet">
		<script type="text/javascript">
  function nodeCheckChanged(node)
  {
    var status = "未选取"; 
    if (node.Checked) status = "选取"; 
   // document.getElementById("lblClientSideCheck").innerHTML = status + ": '" + node.Text + "'";
  }
  
		</script>
<script language="javascript" src="../js/common.js"></script>
</head>

	<body topMargin="3">
		<form id="Form1" runat="server">
<%if(Request.Params["templateid"]=="1"){%>
<script language="javascript">
showhint(0, '<ul><li>您正在修改默认模板,为了扩充其他模板的方便,强烈建议您不要对默认模板的内容进行修改. </li></ul><ul><li>点击相应的模板文件进行编辑</li></ul>');
</script>
<%}else{%>
<script language="javascript">
showhint(0, '点击相应的模板文件进行编辑');
</script>
<%}%>
		&nbsp; &nbsp; <b>当前模板: <%=Request.Params["templatename"]%></b><br /><br />
		<table class="table1" cellSpacing="0" cellPadding="4" width="100%" border="0"><tr><td width="3"></td><td>
				<cc3:TabControl id="TabControl1" SelectionMode="Client" runat="server" TabScriptPath="../js/tabstrip.js" width="760" height="100%">
			<cc3:TabPage Caption="模板文件" ID="tabPage22">
		     	<div style="OVERFLOW: auto;HEIGHT: 400px">
			
				<cc2:CheckBoxList id="TreeView1" runat="server" RepeatColumns="2"></cc2:CheckBoxList>
			</div>
			<br />
			<input type=checkbox id=chkall name=chkall onclick="javascript:CheckByName(document.getElementById('Form1'),'TabControl1:tabPage22:TreeView1','null');">选择全部 &nbsp;&nbsp;
			<cc2:Button id="CreateTemplate" runat="server" Text=" 按选中的模板文件生成页面 "></cc2:Button>&nbsp;&nbsp;&nbsp;&nbsp;
			<cc2:Button id="DeleteTemplateFile" runat="server" Text="删除指定的模板文件" ButtonImgUrl="../images/del.gif"></cc2:Button>&nbsp;&nbsp;&nbsp;&nbsp;
			<A href="#" class="TextButton" onclick="javascript:window.location.href='global_templatevariable.aspx?templateid=<%=Request.Params["templateid"]%>&templatename=<%=Request.Params["templatename"]%>&path=<%=Request.Params["path"]%>'">模板变量列表</A>
			
			<br />
				</cc3:TabPage>
		<cc3:TabPage Caption="其它文件" ID="tabPage33">
			<div style="OVERFLOW: auto;HEIGHT: 400px" align="left">
			<cc2:Repeater id="TreeView2" runat="server">
				<ItemTemplate>
						<%# DataBinder.Eval(Container.DataItem,"filename").ToString()%><br />
				</ItemTemplate>
			</cc2:Repeater>
				
				</div>						
				</cc3:TabPage>
		</cc3:TabControl>
			</td></tr></table>			<br />
			
			<asp:label id="lblClientSideCheck" runat="server" CssClass="hint">&nbsp;</asp:label>
			<asp:label id="lblCheckedNodes" runat="server" CssClass="hint">&nbsp;</asp:label>
			<asp:label id="lblServerSideCheck" runat="server" CssClass="hint">&nbsp;</asp:label>
			<script type="text/javascript">
                  document.getElementById("lblClientSideCheck").innerText = document.getElementById("lblServerSideCheck").innerText;
			</script>
			
			<br />
			
			
		</form></STRONG>
		
		<%=footer%>
	</body>
</HTML>
