<%@ page language="C#" autoeventwireup="true" inherits="tuan_1_sj_order, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="~/tuan/1/head.ascx" TagName="head" TagPrefix="UC" %>
<%@ Register Src="~/tuan/1/foot.ascx" TagName="foot" TagPrefix="UC" %>
<!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>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>用户订单_<%=ZK.config("title","tuan") %></title>
    <link href="/tuan/<%=ZK.config("tuantemplate", "tuan")  %>/skin/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/s/skin/base.js"></script>
    <script type="text/javascript" src="/tuan/<%=ZK.config("tuantemplate", "tuan")  %>/skin/public.js"></script>
    <style type="text/css">.self_td1{color: #2b6690;}</style>
    <script type="text/javascript">
        function self_show1(str1,str2,str3,str4){
            alert("订单号："+str1+"\r\n检验码："+str2+"\r\n手机号："+str3+"\r\n会员ID："+str4);
        }
        function self_show2(str1,str2,str3,str4){
            alert("会员用户名："+str1+"\r\n会员昵称："+str2+"\r\n真实姓名："+str3+"\r\nQQ号："+str4);
        }
        function self_search(){
            fid=document.getElementById("HiddenField1").value;
            strpar1=document.getElementById("inpOrderCode").value;
            strpar2=document.getElementById("inpRandomCode").value;
            if(fid=="")return;
            if(strpar1==""){alert("请输入订单号！"); return;}
            if(strpar2==""){alert("请输入检验码！"); return;}
            window.location="/tuan/sj_order.htm?fid="+fid+"&par1="+strpar1+"&par2="+strpar2;
        }
        function self_set(id,url){
            if(confirm("确定操作吗？"))
            window.location="/tuan/sj_order.htm?act=del&id="+id+"&url="+escape(url);
        }
    </script>
</head>
<body>
    <div class="wrap">
        <div class="box">
            <UC:head ID="head1" runat="server" />
            <script type="text/javascript">document.getElementById("homemenu").className="";</script>
            <div class="mainside">
                <div class="c1">
                    <div class="m1" style="background-image: url(/tuan/1/skin/mainbox_top_.gif)"></div>
                    <div class="v1" style="background-image: url(/tuan/1/skin/mainbox_bg_.gif)">
                        <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                        <div style="padding-top: 3px">
                            <table border="0" cellpadding="0" cellspacing="0" class="wto">
                                <tr>
                                    <td>订单号：</td>
                                    <td><input type="text" class="inp1" id="inpOrderCode" maxlength="50" style="width: 150px;border-color: #f2ab5f" autocomplete="off" /></td>
                                    <td style="padding-left: 10px">校验码：</td>
                                    <td><input type="text" class="inp1" id="inpRandomCode" maxlength="10" style="width: 80px;border-color: #f2ab5f" autocomplete="off" /></td>
                                    <td style="padding-left: 10px"><input type="button" class="but1" value="查询" onclick="self_search()" />&nbsp;<input type="button" class="but1" value="返回" onclick="if(location.href.indexOf('&par1=')==-1)window.location='/tuan/sj.htm';else window.location='/tuan/sj_order.htm?fid=<% =WM.RQ("fid")%>'" /></td>
                                </tr>
                            </table>
                        </div>
                        <form id="form1" runat="server">
                        <asp:HiddenField ID="HiddenField1" runat="server" />
                        <asp:Literal ID="JS1" runat="server"></asp:Literal>
                        <asp:Literal ID="JS2" runat="server"></asp:Literal>
                        </form>
                        <asp:Panel ID="Panel_Nodata" runat="server" Visible="false"><div class="tip_nodata" id="tip_nodata">无订单！</div></asp:Panel>
                        <asp:Panel ID="Panel_List" runat="server">
                            <asp:Repeater ID="Repeater1" runat="server">
                                <HeaderTemplate>
                                    <div class="cart_list" style="padding-bottom: 2px">
                                        <table border="0" cellpadding="0" cellspacing="1" width="100%">
                                            <tr>
                                                <th width="100">操作</th>
                                                <th width="80">当前状态</th>
                                                <th width="160">订单号</th>
                                                <th width="120">手机号/电话</th>
                                                <th width="50">数量</th>
                                                <th width="80">金额</th>
                                                <th>消费会员</th>
                                                <th width="136">订单时间</th>
                                            </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td><%#get2(Eval("state").ToString(), Eval("id").ToString())%></td>
                                        <td><div class="self_td1" onclick="self_show1('<%#Eval("OrderCode") %>','<%#Eval("RandomCode") %>','<%#WMcompare.IsEqual(get1(Eval("tel").ToString()), "", Eval("receivingphone").ToString(), get1(Eval("tel").ToString()))%>','<%#Eval("uid") %>')"><%#WMcompare.IsEqual(Eval("state").ToString(), "已付款", "<div class=\"red\">" + Eval("state").ToString() + "</div>", Eval("state").ToString())%></div></td>
                                        <td><a title="点击查看订单详情" href="/tuan/sj_view_order.htm?id=<%#Eval("id") %>" target="_blank"><%#Eval("OrderCode") %></a></td>
                                        <td><%#WMcompare.IsEqual(get1(Eval("tel").ToString()), "", Eval("receivingphone").ToString(), get1(Eval("tel").ToString()))%></td>
                                        <td><%#get1(Eval("quantity").ToString())%></td>
                                        <td><%#Convert.ToDouble(Eval("price").ToString()).ToString("#.##")%>元</td>
                                        <td><div class="self_td1" onclick="self_show2('<%#WMread.GetBy("u","m","id",Eval("uid").ToString()) %>','<%#WMread.GetBy("nickname","m","id",Eval("uid").ToString()) %>','<%#WMread.GetBy("realname","m","id",Eval("uid").ToString()) %>','<%#WMread.GetBy("qq","m","id",Eval("uid").ToString()) %>')"><%#ZK.m_u(Eval("uid").ToString())%></div></td>
                                        <td><%#WMtime.FormatDateTime(Eval("time").ToString(),"yyyy-MM-dd HH:mm")%></td>
                                    </tr>
                                </ItemTemplate>
                                <FooterTemplate></table></div></FooterTemplate>
                            </asp:Repeater>
                        </asp:Panel>
                        <asp:Panel ID="Panel_Turn" runat="server">
                            <table border="0" cellspacing="0" cellpadding="0" class="wto">
                                <tr>
                                    <td>
                                        <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged"
                                            UrlPagingTarget="_self" PageSize="10" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页"
                                            NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn"
                                            CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp"
                                            SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false"
                                            NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn">
                                        </DataPager:AspNetPager>
                                    </td>
                                </tr>
                            </table>
                            <div class="clear" style="height: 2px"></div>
                        </asp:Panel>
                        <asp:Literal ID="Literal_Turn_Space" runat="server"><div class="flow" style="height:7px"></div></asp:Literal>
                    </div>
                    <div class="n1" style="background-image: url(/tuan/1/skin/mainbox_bottom_.gif)"></div>
                </div>
            </div>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>
