<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Template_Files.aspx.cs" Inherits="TotCms.Web.Admin.Template_Files" %>

<%@ 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 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" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1"  class="black_border">
      <tr>
        <td class="topic">
                    栏目模板列表</td>
    </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
      <tr>
        <td width="46%" height="25" bgcolor="#F5F5F5"><div align="center">标题</div></td>
        <td width="22%" bgcolor="#F5F5F5"><div align="center">大小</div></td>
        <td width="32%" bgcolor="#F5F5F5"><div align="center">日期</div></td>
      </tr>
        <tr>
        <td height="22" colspan="3" bgcolor="#FFFFFF">&nbsp;&nbsp;<a href="#" onclick="javascript:history.back();" title="back"><img src="images/icon/back.gif" alt="BACK" width="15" height="15" border="0" /></a></td>
      </tr>
      <asp:Repeater ID="FileList" runat="server">
        <ItemTemplate>
          <tr>
          <td height="22" bgcolor="#FFFFFF">
	          <div align="left">&nbsp;
	          <img src='images/icon/<%# Convert.ToBoolean(Eval("IsFolder"))?"folder1.gif":"file.gif"%>' width="18" height="18" border="0" align="absmiddle" alt="" />
	          <a href="<%# GetLink(Eval("Name"),Eval("IsFolder")) %>"><%# Eval("Name") %></a>
	          </div>	
	        </td>
          <td bgcolor="#FFFFFF"><div align="center"><%# Eval("Size") %></div></td>
          <td bgcolor="#FFFFFF"><div align="center"><%# Eval("LastUpdated") %></div></td>
        </tr>
        </ItemTemplate>
      </asp:Repeater>      
    </table>
    </form>
<script type="text/javascript">
function SelectFile(filename)
{	
	var opener=window.opener;
	var cateobj=opener.document.form1.Template;
	cateobj.value=filename;
	window.close();
}
</script>
</body>
</html>
