<%@ page title="" language="C#" masterpagefile="~/User/Default.master" autoeventwireup="true" inherits="User_UserShop_ChangeManage, App_Web_ldgzaw0x" clientidmode="Static" validaterequest="false" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="WebUserControlTop.ascx" TagName="WebUserControlTop" TagPrefix="uc2" %>
<asp:Content ContentPlaceHolderID="head" runat="Server">
    <title>我的店铺</title>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="Content">
	<ol class="breadcrumb">
    	<li>您现在的位置：<a title="网站首页" href="/"><%= Call.SiteName%></a></li>
        <li><a title="会员中心" href="/User/Default.aspx">会员中心</a></li>
        <li><a href="ProductList.aspx">我的店铺</a></li>
        <li class="active">交换商品</li>
    </ol>
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <uc2:WebUserControlTop ID="WebUserControlTop1" runat="server" />
            <div class="us_topinfo" style="margin-top: 10px;">
                <asp:HiddenField ID="HiddenPUser" runat="server" />
                <table class="table table-bordered table-striped table-hover">
                    <tr align="center">
                        <td width="3%" class="title">
                            <asp:CheckBox ID="Checkall" onclick="javascript:CheckAll(this);" runat="server" />
                        </td>
                        <td width="5%" class="title">ID
                        </td>
                        <td width="15%" class="title">申请人
                        </td>
                        <td width="10%" class="title">对方锁定
                        </td>
                        <td width="8%" class="title">你锁定
                        </td>
                        <td width="10%" class="title">对方状态
                        </td>
                        <td width="10%" class="title">你的状态
                        </td>
                        <td width="10%" class="title">交易状态
                        </td>
                        <td width="10%" class="title">对方发货
                        </td>
                        <td width="10%" class="title">你发货
                        </td>
                        <td width="20%" class="title">操作
                        </td>
                    </tr>
                    <asp:Repeater ID="ChangeRepeater" runat="server">
                        <ItemTemplate>
                            <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                                <td height="22" align="center">
                                    <input name="Item" type="checkbox" value='<%# Eval("C_ID")%>' />
                                </td>
                                <td height="22" align="center">
                                    <%#Eval("C_ID")%>
                                </td>
                                <td height="22" align="center">
                                    <%#getName(Eval("UserID").ToString())%>
                                </td>
                                <td height="22" align="left">
                                    <%#queren(Eval("UserLock").ToString())%>
                                </td>
                                <td height="22" align="left">
                                    <a href="?menu=PLOck&id=<%#Eval("C_ID") %>" style="color: Red;">
                                        <%#queren(Eval("PUserLock").ToString())%></a>
                                </td>
                                <td height="22" align="center">
                                    <%#State(Eval("UserChange").ToString(),1)%>
                                </td>
                                <td height="22" align="center">
                                    <%#State(Eval("EState").ToString(),3)%>
                                </td>
                                <td height="22" align="center">
                                    <a href="?menu=PUser&id=<%#Eval("C_ID") %>" style="color: Red;">
                                        <%#State(Eval("PUserChange").ToString(),1)%></a>
                                </td>
                                <td height="22" align="center">
                                    <%#State(Eval("UserPost").ToString(),2)%>
                                </td>
                                <td height="22" align="center">
                                    <a href="?menu=PPost&id=<%#Eval("C_ID") %>" style="color: Red;">
                                        <%#State(Eval("PUserPost").ToString(), 2)%></a>
                                </td>
                                <td height="22" align="center">
                                    <a onclick="javascript: window.open('ChangeProduct.aspx?menu=PUser&C_ID=<%#Eval("C_ID") %>', 'newwindow', 'height=700, width=1000, top=0, left=5, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no');"
                                        href="javascript:void(0);">查看</a> <a href="?menu=del&id=<%#Eval("C_ID") %>" onclick="return confirm('不可恢复性删除数据,你确定将该数据删除吗？');">删除</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr class="tdbg">
                        <td height="22" colspan="11" align="center" class="tdbgleft">共
						<asp:Label ID="Allnum" runat="server" Text=""></asp:Label>
                            条记录
						<asp:Label ID="Toppage" runat="server" Text="" />
                            <asp:Label ID="Nextpage" runat="server" Text="" />
                            <asp:Label ID="Downpage" runat="server" Text="" />
                            <asp:Label ID="Endpage" runat="server" Text="" />
                            页次：<asp:Label ID="Nowpage" runat="server" Text="" />/<asp:Label ID="PageSize" runat="server"
                                Text="" />页
						<asp:Label ID="pagess" runat="server" Text="" />条记录/页 转到第<asp:DropDownList ID="DropDownList1"
                            runat="server" AutoPostBack="True">
                        </asp:DropDownList>
                            页
                        </td>
                    </tr>
                </table>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td style="height: 21px">
                            <asp:Button ID="Button3" CssClass="btn btn-primary" runat="server" OnClick="Button3_Click" OnClientClick="return confirm('不可恢复性删除数据,你确定将该数据删除吗？');"
                                Text="批量删除" />&nbsp;
                        </td>
                    </tr>
                </table>
            </div>
        </asp:View>
        <asp:View ID="View2" runat="server">
            该功能尚未开启！
        </asp:View>
    </asp:MultiView>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ScriptContent">
    <script language="javascript">
        function CheckAll(spanChk)//CheckBox全选
        {
            var oItem = spanChk.children;
            var theBox = (spanChk.type == "checkbox") ? spanChk : spanChk.children.item[0];
            xState = theBox.checked;
            elm = theBox.form.elements;
            for (i = 0; i < elm.length; i++)
                if (elm[i].type == "checkbox" && elm[i].id != theBox.id)
                {
                    if (elm[i].checked != xState)
                        elm[i].click();
                }
        }
    </script>
</asp:Content>
