<%@ page language="C#" autoeventwireup="true" inherits="Admin_TemplateManage_TemplateList, App_Web_dfnp41-c" enableEventValidation="false" theme="theme1" stylesheettheme="theme1" %>

<!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 id="Head1" runat="server">
    <title>PassionCMS</title>

    <script language="javascript" type="text/javascript" src="../../JScript.js"></script>

</head>
<body bgcolor="#FFFFFF">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td background="../images/Top_line_3.gif" height="2">
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="Table4" style="background-color: #3390C6;">
                        <tr>
                            <td height="27" width="20">
                            </td>
                            <td width="80" align="center" background='../images/Menu_selected_bg.gif'>
                                <asp:Menu ID="menu" runat="server" ItemWrap="false" Height="25" DynamicMenuItemStyle-BackColor="#F9E8A3"
                                    DynamicMenuItemStyle-Height="25" DynamicMenuItemStyle-Font-Underline="true" DynamicHoverStyle-ForeColor="#EC1653"
                                    OnMenuItemClick="menu_MenuItemClick">
                                </asp:Menu>
                            </td>
                            <td width="80" align="center">
                                <a href="addTemplate.aspx" class='menu_title'>添加模版</a>
                            </td>
                            <td width="80" align="center">
                                <a href="TemplateStoreroom.aspx" class='menu_title'>在线模版库</a>
                            </td>
                            <td>
                                &nbsp;</td>
                            <td bgcolor="3390C6" width="10">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td background="../images/Sub_menu_bg.gif" height="24">
                    <table class="O" cellspacing="0" cellpadding="0" width="100%" border="0" id="Table6">
                        <tr>
                            <td width="20">
                                &nbsp;</td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="10">
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td width="2%">
                </td>
                <td align="right">
                    <font color="#F76E60">■</font>中文&nbsp;&nbsp; <font color="#6EB0EA">■</font>英文&nbsp;&nbsp;<font
                        color="#FF00FF">■</font>繁体&nbsp;&nbsp; <font color="#51EDAD">■</font>中英文&nbsp;&nbsp;<font
                            color="#FFCCFF">■</font>中繁文&nbsp;&nbsp;<font color="#BBCCBB">■</font>英繁文&nbsp;&nbsp;<font
                                color="#DDCCDD">■</font>中英繁&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td width="2%">
                </td>
                <td align="left">
                    <asp:DataList ID="dlTemp" runat="server" BorderWidth="0px" ItemStyle-HorizontalAlign="left"
                        RepeatColumns="4" OnItemCommand="dlTemp_ItemCommand" OnItemDataBound="dlTemp_ItemDataBound"
                        RepeatDirection="Horizontal" CellSpacing="0" CellPadding="10">
                        <ItemTemplate>
                            <asp:HiddenField ID="hfAddress" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"Address") %>' />
                            <asp:HiddenField ID="hfTemplateCN" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"TemplateCN") %>' />
                            <asp:HiddenField ID="hfTemplateEN" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"TemplateEN") %>' />
                            <asp:HiddenField ID="hfTemplateFN" runat="server" Value='<%# DataBinder.Eval(Container.DataItem,"TemplateFN") %>' />
                            <table border="0" width="152" height="204" cellpadding="0" align="center" cellspacing="1"
                                bgcolor="#3a6ea5">
                                <tr>
                                    <td align="center" valign="middle">
                                        <table id="tbT" runat="server" width="150" height="150" border="0" cellpadding="0"
                                            cellspacing="0" bgcolor="#F5F8FA">
                                            <tr>
                                                <td align="center" height="30">
                                                    <asp:Label ID="lblTitle" Text='<%# DataBinder.Eval(Container.DataItem,"TemplateName") %>'
                                                        runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <table width="129" height="101" border="0" cellpadding="0" cellspacing="0" bgcolor="black">
                                                        <tr>
                                                            <td align="center">
                                                                <asp:Image ID="imgImage" ImageUrl='<%# DataBinder.Eval(Container.DataItem,"Image") %>'
                                                                    runat="server" ImageAlign="absmiddle" Width="128" Height="100" BorderWidth="0" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" height="35" valign="middle">
                                                    <asp:ImageButton ID="btnUse" runat="server" ImageAlign="absMiddle" BorderWidth="0"
                                                        ImageUrl="~/Admin/Images/ico_use.gif" CommandName="Use" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' />&nbsp;
                                                    <asp:HyperLink ID="btnView" runat="server" Style="vertical-align: middle;" BorderWidth="0"
                                                        ImageUrl="~/Admin/Images/ico_browse.gif" NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"Preview") %>'
                                                        Target="_blank" />&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" height="35">
                                                    <asp:ImageButton ID="btnEdit" runat="server" ImageAlign="AbsMiddle" BorderWidth="0"
                                                        ImageUrl="~/Admin/Images/ico_edit.gif" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' />&nbsp;
                                                    <asp:ImageButton ID="btnDelete" runat="Server" ImageAlign="absMiddle" BorderWidth="0"
                                                        ImageUrl="~/Admin/Images/ico_del.gif" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID") %>' />&nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:DataList>
                </td>
                <td width="2%">
                </td>
            </tr>
        </table>
        <table style="border: 1px; width: 100%;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="text-align: left; height: 25px; width: 2%;">
                </td>
                <td style="text-align: center; height: 25px;">
                    <asp:Label ID="lblListInfo" runat="server"></asp:Label>
                    &nbsp; 每页<asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                        <asp:ListItem Value="10" Text="10"></asp:ListItem>
                        <asp:ListItem Value="20" Text="20"></asp:ListItem>
                        <asp:ListItem Value="50" Text="50"></asp:ListItem>
                        <asp:ListItem Value="100" Text="100"></asp:ListItem>
                    </asp:DropDownList>条
                    <asp:LinkButton ID="lbFirst" runat="server" Text="首页" OnClick="lb_Click"></asp:LinkButton>
                    <asp:LinkButton ID="lbForward" runat="server" Text="上一页" OnClick="lb_Click"></asp:LinkButton>
                    <asp:LinkButton ID="lbNext" runat="server" Text="下一页" OnClick="lb_Click"></asp:LinkButton>
                    <asp:LinkButton ID="lbLast" runat="server" Text="尾页" OnClick="lb_Click"></asp:LinkButton>
                    跳至<asp:TextBox ID="txtToPageNo" runat="server" MaxLength="6" Width="38px" onkeypress="javascript:return JHshNumberText(event.which);"></asp:TextBox>页
                    <asp:Button ID="btnGo" runat="server" OnClick="btnGo_Click" Text="GO" />
                </td>
                <td style="text-align: left; height: 25px; width: 2%;">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
