<%@ Page Inherits="Caicai.Framework.UI.Admin.Templates" %>
<!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">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="style.css" rel="stylesheet" rev="stylesheet" media="all" />
<script type="text/javascript" src="../files/common/jquery.js"></script>
<script type="text/javascript" src="include/common.js"></script>
<script type="text/javascript">
$(function()
{
	if($("#templates").length != 0)
	{			
		$("a[class=update]").click(function()
		{
			window.open($(this).attr("href"),"newWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=100,left=100,width=680,height=520");
			return false;
		})

		$(".files").hide();

		$(".folder").click(function()
		{
			$(".folder_"+ $(this).attr("name")).toggle();
			return false;
		})

		$(".folder_" + $(".edit .focus").attr("name")).show();
	}
})
</script>
</head>
<body id="templates">
<form id="form1" runat="server">
<table class="table subsubmenu">
<thead>
<tr>
	<td colspan="2"><a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("SeleteTemplate") %></a><a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("BannerTemplate") %></a><a href="#" class="tag"><%= Caicai.Framework.Common.Language.Get("UpdateTemplate") %></a></td>
</tr>
</thead>
</table>
<br />
<table class="table">
<tr class="noeffect">
	<td class="templates">
	<asp:Repeater ID="RepeaterTemplates" runat="server">
	<ItemTemplate>
	<a href="templates.aspx?action=change&name=<%# Eval("Name") %>" <%# CurrentTemplates(Eval("Name").ToString()) %>><img src="../files/templates/<%# Eval("Name") %>.jpg" width="120" height="90" /><span><%# Eval("Name") %></span></a>
	</ItemTemplate>
	</asp:Repeater>
	</td>
</tr>
</table>
<table class="table">
<thead>
<tr>
	<td colspan="2"><a href="#" class="helpall">[?]</a></td>
</tr>
</thead>
<asp:Panel runat="server" ID="PanelConfig">
<tr>
	<th style="width:140px;"><%= Caicai.Framework.Common.Language.Get("PageTemplateBanner") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td><span class="note">
	<%= Caicai.Framework.Common.Language.Get("PageTemplateBanner","note") %><br />
		Templates - #01 Banner : 920px * 150px <br />
		Templates - #02 Banner : 950px * 130px<br />
		Templates - #03 Banner : 950px * 220px <br />
		Templates - #04 Banner : 950px * 124px <br />
		Templates - #05 Banner : 960px * 130px <br />
		Templates - #06 Banner : 950px * 173px <br />
		Templates - #07 Banner : 950px * 130px <br />
		Templates - #08 Banner : 860px * 140px <br />
		Templates - #09 Banner : 880px * 120px <br />
		Templates - #10 Banner : 864px * 161px <br />
		Templates - #11 Banner : 950px * 90px <br />
		Templates - #12 Banner : 1000px * 86px <br />
		Templates - #13 Banner : 1000px * 87px <br />
		Templates - #14 Banner : 1000px * 75px <br />
		Templates - #15 Banner : 950px * 173px <br />
		Templates - #16 Banner : 850px * 80px <br />
		Templates - #17 Banner : 850px * 80px <br />
		Templates - #18 Banner : 850px * 80px <br />
		Templates - #19 Banner : 960px * 180px <br />
		Templates - #20 Banner : 950px * 80px <br />
		Templates - #21 Banner : 1000px * 93px <br />
		Templates - #22 Banner : 1000px * 93px <br />
		Templates - #23 Banner : 1000px * 93px <br />
		Templates - #24 Banner : 1000px * 93px <br />
		Templates - #25 Banner : 1000px * 93px <br />
		Templates - #26 Banner : 962px * 120px <br />
		Templates - #27 Banner : 730px * 120px <br />
		Templates - #28 Banner : 1000px * 150px <br />
		Templates - #29 Banner : 770px * 120px <br />
		Templates - #30 Banner : 910px * 200px <br />
		<br />
	</span><Cai:CTextBox  ID="Page_TemplateBanner" runat="server" /><a href="../files/common/upload.aspx?action=original&id=Page_TemplateBanner&uploadname=header/" class="upload" height="400"><%= Caicai.Framework.Common.Language.Get("Upload") %></a><a href="Page_TemplateBanner" class="showpic"><%= Caicai.Framework.Common.Language.Get("ShowPic") %></td>
</tr>
</asp:Panel>
<tr>
	<th></th>
	<td><asp:Button ID="ButtonConfig" runat="server" CssClass="button"  OnClick="Manage_Click" /><input type="reset" class="button" value='<%= Caicai.Framework.Common.Language.Get("Reset") %>' /></td>
</tr>
</table>
<table class="table edit">
<thead>
	<tr>
		<td><%= Caicai.Framework.Common.Language.Get("File") %></td>
		<td style="width:120px;"><%= Caicai.Framework.Common.Language.Get("CreateDate") %></td>
		<td style="width:40px;"><%= Caicai.Framework.Common.Language.Get("Manage") %></td>
	</tr>
</thead>
<asp:Repeater runat="server" id="RepeaterTemplatesFiles">
<ItemTemplate>
	<tr <%# CurrentTemplates(Eval("Name").ToString()) %> name="<%# Eval("Name") %>">
		<td><img class="file" alt="file" src="images/ico_browseFolder.gif" />&nbsp;<strong><a href="#" name="<%# Eval("Name") %>" class="folder"><%# Eval("Name") %> <%= Caicai.Framework.Common.Language.Get("Template") %></a></strong></td>
		<td></td>
		<td></td>
	</tr>
	<tbody class="folder_<%# Eval("Name") %> files">
	<asp:Repeater runat="server"  DataSource='<%# BrowseFiles(Eval("Name")) %>'>
	<ItemTemplate>
	<tr>
		<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img class="file" alt="file" src="images/ico_browsefiles.gif" />&nbsp;<a href="fileupdate.aspx?action=update&name=<%# Eval("FullName") %>" class="update" title="<%# Eval("FullName") %>" target="_blank"><%# Eval("Name") %></a></td>
		<td><span><%# Eval("LastWriteTime")%></span></td>
		<td><a href="fileupdate.aspx?action=update&name=<%# Eval("FullName") %>" class="update" target="_blank"><%= Caicai.Framework.Common.Language.Get("Editor") %></a></td>
	</tr>
	</ItemTemplate>
	</asp:Repeater>
	</tbody>
</ItemTemplate>
</asp:Repeater>
</table>
</form>
</body>
</html>