<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_TryManagement, WebApp_deploy" title="试用商品管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script src="../Skin/CommStyle/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="Js/Function.js" type="text/javascript"></script>
    <table class="adminheading">
        <tr>
            <th valign="middle" class="cpane">
                商城商品管理
            </th>
            <td align="right">
            </td>
            <td class="rtdw">
            </td>
        </tr>
    </table>
    <div id="product_history">
        <div class="pageTitle" align="left">
            <asp:Literal ID="TeamBuyTitle" runat="server" Text="所有的试用商品" /></div>
        <asp:Repeater ID="Repeater1" runat="server">
            <HeaderTemplate>
                <table class="tableHead" style="width: 100%">
                    <tr>
                        <th style="width: 5%">
                            选择
                        </th>
                        <th style="width: 28%">
                            活动名称
                        </th>
                        <th style="width: 15%">
                            开始时间
                        </th>
                        <th style="width: 15%">
                            结束时间
                        </th>
                        <th style="width: 10%">
                            申请人数
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table class="tableHead" border="1" style="color: Black; border-collapse: collapse;
                    width: 100%">
                    <tr>
                        <td style="width: 5%">
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                            <asp:HiddenField ID="HiddenID" runat="server" Value='<%#Eval("TryID") %>' />
                        </td>
                        <td style="width: 28%">
                            <a target="_blank" href="../Try/ShowMytestProduct.aspx?ProductID=<%#Eval("TryID") %>">
                                <%#Eval("ProductName") %></a>
                        </td>
                        <td style="width: 15%">
                            <%#Eval("BeginDate") %>
                        </td>
                        <td style="width: 15%">
                            <%#Eval("EndDate") %>
                        </td>
                        <td style="width: 10%">
                            <%--<a href="../Member/Shop_TryApplication.aspx?ProductID=<%#Eval("TryID") %>">
                                <%#CountPeopleNum(Eval("TryID").ToString())%></a>--%>
                            <%#CountPeopleNum(Eval("TryID").ToString())%>
                        </td>
                        <td class="Operation">
                            <ul>
                                <li>
                                    <asp:LinkButton ID="lbtElite" runat="server" OnClick="lbtElite_Click" Text='<%#IsElite((int)Eval("TryID")) %>'></asp:LinkButton>
                                    |
                                    <asp:LinkButton ID="lbtDel" runat="server" OnClientClick=" return confirm('确定删除？')"
                                        OnClick="lbtDel_Click">删除</asp:LinkButton>
                                    | <a target="_blank" href="../Try/ShowMytestProduct.aspx?ProductID=<%#Eval("TryID") %>">
                                        预览</a></li>
                            </ul>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:Repeater>
        <table class="tableHead">
            <tr>
                <td>
                    <asp:Label ID="lbPage" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="AllSelect" runat="server" Text="全选" OnClick="AllSelect_Click" />&nbsp&nbsp&nbsp
                    <asp:Button ID="NotSelect" runat="server" Text="反选" OnClick="NotSelect_Click" />&nbsp&nbsp&nbsp&nbsp&nbsp
                    <asp:Button ID="btnApprove" runat="server" Text="通过审批" CommandName="EnableApprove"
                        OnClick="ButRecommend_Click" />&nbsp&nbsp&nbsp&nbsp&nbsp
                    <asp:Button ID="ButDel" runat="server" Text="删除" Width="50px" OnClick="ButDel_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
