<%@ page title="" language="C#" masterpagefile="~/Member/MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_TryManagement, WebApp_deploy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div class="pageTitle"><asp:Literal ID="TeamBuyTitle" runat="server" Text="所有的试用品" /></div>
    <asp:Repeater ID="Repeater1" runat="server">
        <HeaderTemplate>
            <table class="tableHead">
                <tr>
                    <th style=" width:5%">选择</th>
                   <th style=" width:30%">活动名称</th>
                   <th style=" width:10%">开始时间</th>
                   <th style=" width:10%">结束时间</th>
                   <th style=" width:15%">申请人数</th>
                   <th style=" width:35%">操作</th>
                </tr>
            </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table class="tableHead" border="1" style="color: Black; border-collapse: collapse;">
                <tr>
                    <td style=" width:5%">
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                        <asp:HiddenField ID="HiddenID" runat="server" Value='<%#Eval("TryID") %>' />
                    </td>
                    <td style=" width:30%"><a target="_blank" href="../Try/ShowMytestProduct.aspx?ProductID=<%#Eval("TryID") %>"><%#Eval("ProductName") %></a></td>
                    <td style=" width:10%"><%#Eval("BeginDate") %></td>
                    <td style=" width:10%"><%#Eval("EndDate") %></td>
                    <td style=" width:15%"><a href="Shop_TryApplication.aspx?ProductID=<%#Eval("TryID") %>"> <%#CountPeopleNum(Eval("TryID").ToString())%></a></td>
                    <td style=" width:35%" class="Operation">
                       <ul>
                           <li><asp:LinkButton ID="lbtElite" runat="server" onclick="lbtElite_Click" Text='<%#IsElite((int)Eval("TryID")) %>'></asp:LinkButton></li>
                           <li> <a href="Shop_TryProductEdit.aspx?ProductID=<%#Eval("TryID") %>">修改</a></li>
                           <li> <asp:LinkButton ID="lbtDel" runat="server" OnClientClick=" return confirm('确定删除？')" onclick="lbtDel_Click">删除</asp:LinkButton></li>
                           <li><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="ButRecommend" runat="server" Text="推荐" Width="50px" OnClick="ButRecommend_Click" />&nbsp&nbsp&nbsp&nbsp&nbsp
                       <asp:Button ID="CanelRecommend" runat="server" Text="取消推荐" Width="100px" OnClick="CanelRecommend_Click" />&nbsp&nbsp&nbsp&nbsp&nbsp
                       <asp:Button ID="ButDel" runat="server" Text="删除" Width="50px" OnClick="ButDel_Click"/>
                   </td>
                </tr>
     </table>
</asp:Content>

