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

<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Import Namespace="D.Common" %>
<!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" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 模板方案列表
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                <tr class="title">
                    <td width="20" class="t1">
                        ID
                    </td>
                    <td>
                        方案名称
                    </td>
                    <td>
                        文件夹名称
                    </td>
                    <td>
                        首页图片
                    </td>
                    <td>
                        是否使用
                    </td>
                    <td>
                        添加时间
                    </td>
                    <td>
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="RepTemplate" runat="server" 
                    OnItemCommand="RepTemplate_Delete" onitemdatabound="RepTemplate_ItemDataBound">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td align="center" class="t1">
                                <%#Eval("Id") %>
                            </td>
                            <td align="center">
                                <%#Eval("Name") %>
                            </td>
                            <td align="center">
                                <%#Eval("FolderName") %>
                            </td>
                            <td align="center">
                                <%#GetImg(Eval("Image","{0}"))%>                                
                            </td>
                            <td align="center">
                                <%#Function.GetStyleTrue(Eval("IsUse","{0}")) %>
                            </td>
                            <td align="center">
                                <%#Eval("UpdateTime","{0:yyyy-MM-dd}") %>
                            </td>
                            <td align="center">
                                <asp:LinkButton ID="LinkButton1" runat="server" Text="设为默认模版" CommandName="use" CommandArgument='<%#Eval("Id") %>'></asp:LinkButton>
                                ┊ <a href='setprogram.aspx?Id=<%#Eval("Id") %>'>修改</a> ┊
                                <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="delete" CommandArgument='<%#Eval("Id") %>'></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
