<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Collection_Manage.aspx.cs" Inherits="Collection_Manage" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!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>收藏管理</title>
<link rel="stylesheet" type="text/css" href="../css/forms.css" />
    <link href="../style/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
    <script src="../js/jquery.js" type="text/javascript"></script>
</head>
<body topmargin="0px" bottommargin="0px" leftmargin="0px" rightmargin="0px" onload ="controlInputNumber()" >
    <form id="form1" runat="server">
    <div class="forms1">
    <div class="forms2">
        <span>
            收藏管理
        </span>
        <div class="forms4">
            <a href="Collection_Add.aspx" class="forms4_1">收藏添加</a>
        </div>
    </div>
    <div style="border:1px solid #FFFFFF">
    <table class="forms3" width="100%" height="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td class="forms5_1" nowrap="nowrap" align="left">
                <span style="color:Black">产品编号：</span>
                <asp:TextBox ID="txtProductId" runat="server"></asp:TextBox>
					&emsp;
					<span style="color:Black">搜索关键字：</span>
					<asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    &emsp;
                    <asp:ImageButton ID="btnquery" runat="server" Text="" OnClick="btnquery_Click" ImageUrl="../images/blue/search.jpg" Height="21px" Width="58px" style="vertical-align:middle" />                            
            </td>
        </tr>
			<tr>
				<td class="forms5_2">&nbsp;</td>
			</tr>
        <tr>
            <td>                
                <table cellpadding="0" cellspacing="0" width="100%" style="margin-top:10px">
                    <tr>
                        <td class="forms6_1" style="width:28px" align="center">
                            <input id="chkChooseauditAll" type="checkbox" onclick="ChooseAll(this)" />
                        </td>
                        <td class="forms6_1" align="left">
                                <span style="color:Black">产品编号</span>
                            </td>
                            <td class="forms6_1" align="left">
                                <span style="color:Black">产品名称</span>
                            </td>
                            <td class="forms6_1" align="left">
                                <span style="color:Black">会员编号</span>
                            </td>
                            <td class="forms6_1" align="left">
                                <span style="color:Black">会员名称</span>
                            </td>
                            <td class="forms6_1" align="left">
                               <span style="color:Black">收藏时间</span> 
                            </td>
                        <td class="forms6_2" align="left" width="100px">
                            <span style="color:Black">操作</span>
                        </td>
                    </tr>
                    <asp:Repeater runat="server" ID="rptCollection" OnItemCommand="rptCollection_ItemCommand">
                        <ItemTemplate>
                            <tr onmouseover="this.style.background='#F3FBCA'" onmouseout="this.style.background='#ffffff';">
                                <td class="forms6_3" style="width:28px" align="center">
                                    <input type="checkbox" name="chkChooseaudit" value="<%#Eval("ID")%>" onclick="ChooseItemClick(this);" />
                                </td>
                                  <td class="forms6_3" align="left">
                                        <span style="color:Black"><%# Eval("ProductId")%></span>
                                    </td>
                                    <td class="forms6_3" align="left">
                                        <span style="color:Black"><%# Eval("ProductName")%></span>
                                    </td>
                                    <td class="forms6_3" align="left">
                                        <span style="color:Black"><%# Eval("MemberId")%></span>
                                    </td>
                                    <td class="forms6_3" align="left">
                                        <span style="color:Black"><%# Eval("MemberName")%></span>
                                    </td>
                                    <td class="forms6_3" align="left">
                                        <span style="color:Black"><%# DateTime.Parse(Eval("CollectionDate").ToString()).ToString("yyyy-MM-dd HH:mm:ss")%></span>
                                    </td>
                                <td class="forms6_4" align="left">
                                    <a href="Collection_Update.aspx?id=<%#  Eval("ID") %>">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:LinkButton Text="删除" runat="server" ID="linkbtnDelete" CommandName="Del" style="cursor:hand;" CommandArgument='<%# Eval("ID") %>' OnClientClick="javascript:return confirm('您确实要删除吗！')" />
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <div id="data_page_div" runat="server">
                    <div>
                        <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:HiddenField ID="hidBatchDelId" runat="server" />
                                    <asp:HiddenField ID="hidBatchReviewId" runat="server" />
                                </td>
                                <td runat="server" id="trRecord">
                                    <nobr><webdiyer:AspNetPager ID="pager" PageSize="10" runat="server" CssClass="_tab_page_div" UrlPaging="True" FirstPageText="【首页】"
                                        LastPageText="【尾页】" NextPageText="【下一页】" NumericButtonCount="5" PrevPageText="【上一页】"
                                        CustomInfoClass="_tab_pager_div1" ShowCustomInfoSection="left" EnableUrlRewriting="false" PageIndexBoxClass="page_box_ipt" SubmitButtonClass="page_btn_go" SubmitButtonText="" ShowInputBox="Never">
                                    </webdiyer:AspNetPager></nobr>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </div>
    </div>
    </form>
</body>
</html>
