<%@ page language="C#" autoeventwireup="true" inherits="admin_template_SelectTemplate, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="System.Globalization" %>
<!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">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
    <base target="_self" />
    <script>
        var api = frameElement.api, W = api.opener;
        function ondb(path) {
            W.DianCMS_$("<%=ControlId %>").value = path;
            api.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">    
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table width="99%" align="center" cellpadding="2" cellspacing="0" border="0" class="dh">
        <tr>
            <td height="22">
                <asp:ImageButton ID="ImageButton1" ImageUrl="../images/folder_back.gif" runat="server"
                    ToolTip="<%$ Resources:Lang,Template_Up%>" OnClick="ImageButton1_Click" />
                <asp:ImageButton ID="ImageButton2" ImageUrl="../images/refresh.gif" runat="server"
                    OnClick="ImageButton2_Click" ToolTip="<%$ Resources:Lang,Template_Refresh%>" />
            </td>
            <td align="right">                
                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Lang,Template_NowPath%>"></asp:Literal>：<asp:Label ID="LitPath" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>
    <table cellpadding="2" cellspacing="1" border="0" class="border" width="100%"
        align="center">
        <asp:Repeater ID="Repeater1" runat="server" 
            OnItemCommand="Repeater1_ItemCommand" onitemdatabound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <tr class="title">
                    <td align="center" class="t1">
                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Lang,Template_List_Head_Type%>"></asp:Literal>
                    </td>
                    <td><asp:ImageButton ID="ImageButton4" ImageUrl="../images/up.gif" runat="server" OnClick="Up_Name_Click" />
                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Lang,Template_List_Head_Name%>"></asp:Literal>
                        <asp:ImageButton ID="ImageButton3" ImageUrl="../images/down.gif" runat="server" OnClick="Down_Name_Click" />
                    </td>
                    <td width="40">选择</td>
                    <td><asp:ImageButton ID="ImageButton5" ImageUrl="../images/up.gif" runat="server" OnClick="Up_Time_Click" />
                        <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Lang,Common_UpdateTime%>"></asp:Literal>
                        <asp:ImageButton ID="ImageButton6" ImageUrl="../images/down.gif" runat="server" OnClick="Down_Time_Click" />
                    </td>
                    <td>
                        <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Lang,Common_Size%>"></asp:Literal>
                    </td>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr runat="server" class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'" id="TrCell">
                    <td width="25" align="center" class="t1">
                        <img src='<%#Eval("image") %>' />
                    </td>
                    <td>
                        <asp:Literal ID="LiteralName" runat="server"></asp:Literal><asp:LinkButton ID="LinkButtonName"
                            runat="server" CommandName="Next" CommandArgument='<%#Eval("Path") %>'></asp:LinkButton>
                    </td>
                    <td align="center"><asp:Literal ID="LitSelect" runat="server"></asp:Literal></td>
                    <td width="130">
                        <%#Eval("UpdateTime", "{0:yyyy-MM-dd}")%>
                    </td>
                    <td width="50">
                        <%#Eval("Size") %>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
