<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="ETongJin.YM.Web.Home.OrderList" %>

<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>订单列表 - Powered by E桶金</title>
    <link rel="stylesheet" href="images/user.css" type="text/css" media="screen,projection" />

    <script type="text/javascript" src="../Utility/jquery.js"></script>

    <%if (false)
      {%>

    <script type="text/javascript" src="../Utility/jquery-dev.js"></script>

    <%}%>

    <script type="text/javascript" src="images/home.js"></script>

    <script type="text/ecmascript" src="../Utility/layer/js/jquery.nyroModal-1.5.0.pack.js"></script>

    <link type="text/css" rel="stylesheet" href="../Utility/layer/styles/nyroModal.css" />

    <script type="text/javascript">
        function CheckAll(obj) {
            var allcheck = document.getElementsByName("productid");
            for (i = 0; i < allcheck.length; i++) {
                allcheck[i].checked = obj.checked;
            }
        }
        parent.menuSelect("orderList" + queryString("t"));

        $(function() {
            $.nyroModalSettings({
                bgColor: "#cccccc",
                width:180
            });
            function preloadImg(image) {
                var img = new Image();
                img.src = image;
            }
            preloadImg('../utility/layer/img/ajaxLoader.gif');
        });

    </script>

    <meta http-equiv="x-ua-compatible" content="ie=7" />
</head>
<body>
    <div class="wrap">
        <form id="form1" runat="server">
        <div class="panel ym_h_rt ym_line">
            <ul class="ym_head">
                <li class="title"> <%if (Request.QueryString["t"] == "0") Response.Write("卖家"); else Response.Write("买家"); %>
订单列表</li>
            </ul>
            <table class="tableBorder" border="0" cellpadding="0" cellspacing="1" width="99%">
                <tr>
                    <th colspan="7" align="right">
                        <table border="0" cellspacing="0" cellpadding="0" style="float: right;">
                            <tr>
                                <td width="80" style="color: #990000;">
                                    筛选：
                                </td>
                                <td width="90">
                                    <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                                        <asp:ListItem Text="按属性" Value="-1" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="买家正在付款" Value="0"></asp:ListItem>
                                        <asp:ListItem Text="买家已经付款" Value="1"></asp:ListItem>
                                        <asp:ListItem Text="卖家已经发货" Value="2"></asp:ListItem>
                                        <asp:ListItem Text="买家已经确认" Value="3"></asp:ListItem>
                                        <asp:ListItem Text="买家申请退款" Value="4"></asp:ListItem>
                                        <asp:ListItem Text="卖家同意付款" Value="5"></asp:ListItem>
                                        <asp:ListItem Text="卖家拒绝退款" Value="6"></asp:ListItem>
                                        <asp:ListItem Text="卖家已经评论" Value="97"></asp:ListItem>
                                        <asp:ListItem Text="买家已经评论" Value="98"></asp:ListItem>
                                        <asp:ListItem Text="双方均已评论" Value="99"></asp:ListItem>
                                        <asp:ListItem Text="交易已关闭" Value="100"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td width="90">
                                    <asp:DropDownList ID="ddlOrder" runat="server" AutoPostBack="true" onchange="if(this.value=='-1') return false;"
                                        OnSelectedIndexChanged="ddlOrder_SelectedIndexChanged">
                                        <asp:ListItem Text="排序方式" Value="-1" Selected="True"></asp:ListItem>
                                        <asp:ListItem Text="按商品ID" Value="0"></asp:ListItem>
                                        <asp:ListItem Text="下定单时间" Value="1"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                    </th>
                </tr>
                <tr align="center">
                    <td>
                        <b>商品名称</b>
                    </td>
                    <td width="60px">
                        <b>价格</b>
                    </td>
                    <td width="50px">
                        <b>购买者</b>
                    </td>
                    <td width="60px">
                        <b>时间</b>
                    </td>
                    <td width="160px">
                        <b>留言</b>
                    </td>
                    <td width="80px">
                        <b>状态</b>
                    </td>
                    <td width="100px">
                        <b>可执行的操作</b>
                    </td>
                </tr>
                <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                    <ItemTemplate>
                        <tr bgcolor="#FFFFFF" onmouseover="javascript:this.bgColor='#E3E1D7'" onmouseout="javascript:this.bgColor='#FFFFFF'"
                            style="text-align: center; height: 27">
                            <td style="text-align: left;">
                                <input type="hidden" runat="server" id="oid" value='<%#Eval("orderid")%>' />
                                <a href="<%# Eval("Status").ToString()=="-1"?("/show.aspx?i="+Eval("ProductID")):Eval("PathURL") %>"
                                    target="_blank">
                                    <%# ETongJin.Common.StringOperate.CutString(Eval("Title").ToString(),26) %></a>
                            </td>
                            <td>
                                <%#Eval("totalfee")%>元
                            </td>
                            <td>
                                <a href="/usershow.aspx?n=<%#Eval("UserName") %>" target="_blank">
                                    <%#Eval("UserName") %></a>
                            </td>
                            <td>
                                <%#Eval("addtime")%>
                            </td>
                            <td>
                                <%#Eval("notes") %>
                            </td>
                            <td>
                                <asp:Label ID="OrderStatus" runat="server" Text='<%#Eval("Status")%>' ForeColor="Red"></asp:Label>
                            </td>
                            <td>
                                <asp:PlaceHolder ID="phAction" runat="server"></asp:PlaceHolder>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <tr>
                    <th colspan="7" style="text-align: center;">
                        <div id="tnt_pagination">
                            <%= PageStr%></div>
                        <div class="ym12_mian_y">
                        </div>
                    </th>
                </tr>
            </table>
        </div>
        </form>
    </div>
</body>
</html>
