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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

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

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="tableBorder" border="0" cellpadding="0" cellspacing="1">
        <tr>
            <th colspan="7">
                <table width="100%" border="0">
                    <tr>
                        <td>
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="80" style="color: #990000;">
                                        筛选：
                                    </td>
                                    <td width="90">
                                        <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" onchange="if(this.value=='-2') return false;"
                                            OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                                            <asp:ListItem Text="按属性" Value="-2" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="已付款" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="未付款" Value="0"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </th>
        </tr>
        <tr>
            <td width="35" class="td2">
                选中
            </td>
           
            <td width="60" class="td2">
                金额
            </td>
            <td width="45" class="td2">
                商品ID
            </td>
            <td width="70" class="td2">
                下订单时间
            </td>
            <td width="70" class="td2">
                付款时间
            </td>
            <td class="td2" width="80">
                状态
            </td>
            <td width="80px" class="td2">
                订单常规操作
            </td>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <tr bgcolor="#FFFFFF" onmouseover="javascript:this.bgColor='#E3E1D7'" onmouseout="javascript:this.bgColor='#FFFFFF'"
                    style="text-align: center; height: 27">
                    <td>
                       
                    </td>
                   
                    <td style="text-align: left;">
                        &nbsp;
                        <%# Eval("ToTalFee")%>
                    </td>
                    <td>
                        <a href="/show.aspx?i=<%#Eval("PID") %>" target="_blank">
                            <%# Eval("PID") %></a>
                    </td>
                    <td>
                        <%#Eval("AddTime")%>
                    </td>
                    <td>
                        <%#Eval("UpdateTime") %>
                    </td>
                    <td>
                        <%#Eval("status").ToString()=="1"?"已支付":"未支付"%>
                    </td>
                    <td>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <th colspan="8" style="text-align: center;">
            <div style="float:left;"><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox' style="border: none" />选中本页显示的所有商品</div>
            <div style="float:right">
                <div id="tnt_pagination">
                    <%= PageStr%></div>
                <div class="ym12_mian_y">
                </div>
            </div>
            </th>
        </tr>
    </table>
</asp:Content>
