<%@ Page Language="C#" MasterPageFile="~/AngelShopMasters.Master" AutoEventWireup="true"
    CodeBehind="dingdan123.aspx.cs" Inherits="AngelShop.dingdan123" Title="Orders" %>

<%@ Register Src="~/usercontrol/Member.ascx" TagName="mem" TagPrefix="URL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script src="JS/jquery-1.5.1.min.js" type="text/javascript"></script>
<script type="text/javascript" >
    function upoderid(id,pid) {
        jQuery.ajax({
            type: 'get',
            url: '/tools/submit_ajax.ashx?action=upoderpid&pid=' + pid,
            dataType: "json",
            cache: false,
            success: function (data) {
                window.location.href = "AddComment.aspx?id=" + id + "&pid=" + pid + "";
            },
            error: function (e) {
                alert(e);
            }
        });
 }

 function upoderidcall(pid) {
     jQuery.ajax({
         type: 'get',
         url: '/tools/submit_ajax.ashx?action=upoderpid&pid=' + pid,
         cache: false,
         dataType: "json",
         success: function (data) {
             window.location.href = 'dingdan123.aspx';
         },
         error: function (e) {
             alert(e);
         }
     });
 }



</script>

    <div class="neiye">
        <div class="neiye_1" style="width: 207px;">
            <URL:mem ID="me" runat="server" />
            <br />
            <%=contents%>
        </div>
        <div class="neiye_2">
            <div class="neiye_24">
                <div class="dd_r_t">
                    <span>My Order</span><img src="images/dindan_03.jpg" width="32" height="30" />
                    <div class="clear">
                    </div>
                </div>
                <div class="time">
                    Order Number:</div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <asp:RadioButton ID="radio1" runat="server" Text="unpaid" GroupName="rs" OnCheckedChanged="radio1_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radio2" runat="server" Text="canceled" GroupName="rs" OnCheckedChanged="radio2_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radio3" runat="server" Text="paid" GroupName="rs" OnCheckedChanged="radio3_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radio4" runat="server" Text="shipped" GroupName="rs" OnCheckedChanged="radio4_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radio5" runat="server" Text="Pick Up" GroupName="rs" OnCheckedChanged="radio5_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radio6" runat="server" Text="Delivered" GroupName="rs" OnCheckedChanged="radio6_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                        <td>
                            <asp:RadioButton ID="radio7" runat="server" Text="Returned" GroupName="rs" OnCheckedChanged="radio7_CheckedChanged"
                                AutoPostBack="True" />
                        </td>
                    </tr>
                </table>
                <div style="clear: both">
                    <asp:Repeater ID="rptOrderList" runat="server">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellspacing="1" cellpadding="0" style="background: #dbdbdb;
                                            line-height: 30px;">
                                            <tr>
                                                <td width="10%" bgcolor="#ededed">
                                                    <div align="center">
                                                        Order code</div>
                                                </td>
                                                <td width="18%" bgcolor="#ededed">
                                                    <div align="center">
                                                        Consignee</div>
                                                </td>
                                                <td width="12%" bgcolor="#ededed">
                                                    <div align="center">
                                                       Post</div>
                                                </td>
                                                <td width="16%" bgcolor="#ededed">
                                                    <div align="center">
                                                        Order amount($)
                                                    </div>
                                                </td>
                                                <td width="12%" bgcolor="#ededed">
                                                    <div align="center">
                                                         Order time</div>
                                                </td>
                                                <td width="11%" bgcolor="#ededed">
                                                    <div align="center">
                                                        Order status</div>
                                                </td>
                                                <td width="11%" bgcolor="#ededed">
                                                    <div align="center">
                                                      Mailing costs</div>
                                                </td>
                                                <td width="18%" bgcolor="#ededed">
                                                    <div align="center">
                                                        Operation</div>
                                                </td>
                                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td bgcolor="#FFFFFF">
                                    <div align="center">
                                        <%# Eval("ids")%></div>
                                </td>
                                <td bgcolor="#FFFFFF">
                                    <div align="center">
                                        <%# Eval("name")%>
                                    </div>
                                </td>
                                <td bgcolor="#FFFFFF">
                                    <div align="center">
                                        <%#getField(Eval("FreightType").ToString(), "Title")%> 
                                        </div>
                                </td>
                                <td bgcolor="#FFFFFF">
                                    <div align="center">
                                        <asp:Label ID="lbT" runat="server" Text='<%# Eval("orderamount")%>'></asp:Label>
                                    </div>
                                </td>
                                <td bgcolor="#FFFFFF">
                                    <div align="center">
                                      <%# Eval("UpTime")%>
                                    </div>
                                </td>
                                <td bgcolor="#FFFFFF">
                                    <div align="center">
                                        <%# Eval("className")%>
                                          <asp:HiddenField ID="lbW" runat="server" Value='<%# Eval("orderWeight")%>' />
                                    </div>
                                </td>
                                 <td bgcolor="#FFFFFF">
                                    <div align="center">
                                      <asp:Label ID="lbFreight" runat="server" Text='<%# Eval("Freight")%>'></asp:Label>($)
                                       </div>
                                     
                                    </div>
                                </td>
                                <td bgcolor="#FFFFFF">
                                    <div align="center">
                                        <a href="dingdan.aspx?pid=<%# Eval("ids")%>">View</a>
                                        <%#ispays(Eval("className").ToString(), Eval("ids").ToString(), Eval("IsOk").ToString(), Eval("TrackingNumber").ToString())%>                  
                                        </div>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table> </td> </tr> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <p>
                        Weight:<asp:Label ID="lbWeight" runat="server" Text="Label"></asp:Label>KG
                        <br />
                  The total amount (including shipping cost): $<asp:Label ID="lbFreight" runat="server" Text="Label"></asp:Label><br />
                        <br />
                    </p>
                </div>
                <div style="clear: both; text-align: center">
                    <div id="PageInfo" runat="server" class="anpager">
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
