<%@ page language="C#" autoeventwireup="true" inherits="Scmay, LebiMall" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!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 runat="server">
     <title><%=model_t.Title%>-已卖出的宝贝</title>
    <meta name="description" content=<%=model_t.Description %> />
    <meta name="keywords" content=<%=model_t.Keywords %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/cart.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css3.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css2.css" rel="stylesheet" type="text/css" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="images/js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript">
       var optw='<%=optw %>';
       var ostate='<%=ostate %>';
       function reValue(){
            var funame=escape(document.getElementById("txtuname").value);
            var code=escape(document.getElementById("txtcode").value);
            var cname=escape(document.getElementById("txtcname").value);
            var start=escape(document.getElementById("starttime").value);
            var end=escape(document.getElementById("endtime").value);
            var ptw=escape(document.getElementById("Select2").value);
            var state=escape(document.getElementById("Select1").value);
            if(ptw=="-1"){
                ptw="";
            }
            if(start==""||end==""){
                window.location.href="Scmay.aspx?funame="+funame+"&cname="+cname+"&ptw="+ptw+"&state="+state+"&code="+code;
            }else{
                window.location.href="Scmay.aspx?funame="+funame+"&cname="+cname+"&ptw="+ptw+"&state="+state+"&starttime="+start+"&endtime="+end+"&code="+code;
            }
       }
       function onselect(){
            var slist=document.getElementById("Select1");
            for(var i=0;i<slist.length;i++){
                if(ostate==slist[i].value){
                    slist[i].selected='selected';
                }
            }
            var slist2=document.getElementById("Select2");
            for(var i=0;i<slist2.length;i++){
                if(optw==slist2[i].value){
                    slist2[i].selected='selected';
                }
            }
       }
       function updatep(cid,price){
            window.location.href="UpdateOrderFormPrice.aspx?cid="+cid+"&price="+price.value;
       }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
       
    </script>
</head>
<body onload="onselect()">
    <form id="form1" runat="server">
        <div id="top-menu02">
        <div id="top-menu">
            <div class="right">
                <script type="text/javascript">indexhead();</script>
            </div>
        </div>
    </div>
    <div id="top">
        <div id="logo">
            <a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">
                <img src="Upload/WebAdminImages/<%=model_t.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
       <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model_t.Tab == "1"){ %>
                <a href="<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
            <li><a href="http://<%=Request.Url.Host %><%=model_t.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
        <p>
            <span><a href="ShopCoupon.aspx">优惠券</a></span></p>
    </div>
        <div id="contenter2">
            <div id="contenter">
                <script type="text/javascript">shopLeft();</script>
                <div id="right">
                    <div class="contenter">
                        <table class="table_td">
                            <tr>
                                <td class="bct1">宝贝名称：</td>
                                <td><input id="txtcname" type="text" class="txt_s1" runat="server" /></td>
                                <td class="bct1">成交时间：</td>
                                <td width="18px">从</td>
                                <td width="80px"><input class="txt_s2" type="text" runat="server" id="starttime" name="txtstartTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',autoPickDate:'null'})" /></td>
                                <td width="18px">到</td>
                                <td width="80px"><input class="txt_s2" type="text" runat="server" id="endtime" name="txtendTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',autoPickDate:'null'})" /></td>
                                <td class="bct1">物流服务：</td>
                                <td><select id="Select2" runat="server">
                                        <option value="-1">全部</option>
                                        <option value="1">在线付款</option>
                                        <option value="2">货到付款</option>
                                        <option value="3">银行汇款</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td>买家昵称：</td>
                                <td><input id="txtuname" type="text" class="txt_s1" runat="server" /></td>
                                <td>交易状态：</td>
                                <td colspan="2">
                                    <select id="Select1" runat="server">
                                        <option value="-1">所有订单</option>
                                        <option value="0">等待买家付款</option>
                                        <option value="1">等待发货</option>
                                        <option value="2">已发货</option>
                                        <option value="3">成功订单</option>
                                        <option value="4">无效订单</option>
                                    </select>
                                </td>
                                <td colspan="2" align="right">订单编号：</td>
                                <td colspan="2"><input id="txtcode" type="text" class="txt_s1" runat="server" /></td>
                                <td><input id="btnsearch" type="button" value="搜索" onclick="reValue()" /></td>
                            </tr>
                        </table>
                        <div class="buyti">
                            <ul>
                                <li class="li-001">宝贝</li>
                                <li class="li-002">单价(元)</li>
                                <li class="li-003">数量</li>
                                <li class="li-004">买家</li>
                                <li class="li-005">交易状态</li>
                                <li class="li-006">实付款(元)</li>
                            </ul>
                        </div>
                        <div id="cdiv" runat="server">
                        </div>
                        <div class="leaf">
                            <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                                runat="server" RecordCount="228" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                                PrevPageText="上一页" PageSize="10" UrlPaging="True" ShowMoreButtons="False" CustomInfoClass="pages1"
                                ShowDisabledButtons="False" CurrentPageButtonPosition="Center" ShowBoxThreshold="50"
                                ShowFirstLast="False">
                            </webdiyer:AspNetPager>
                        </div>
                    </div>
                </div>
                <div class="both">
                </div>

                <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="copyright" runat="server" id="copr"></div>
            </div>
        </div>
    </form>
</body>
</html>
