<%@ page language="C#" autoeventwireup="true" inherits="tuan_1_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>
</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)">
                        <asp:Literal ID="Literal1" runat="server" Visible="false"><div class="tip_nodata">提醒：您有{$1}条由系统发出的团购短消息尚未阅读！<a href="/user/mail.aspx" target="_blank" style="color:#f30">【立即阅读】</a></div></asp:Literal>
                        <%@ register assembly="Pager" namespace="Wuqi.Webdiyer" tagprefix="DataPager" %>
                        <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="160">订单号</th>
                                                <th width="80">校验码</th>
                                                <th><div class="al" style="padding-left: 10px">订单商品</div></th>
                                                <th width="50">数量</th>
                                                <th width="80">金额</th>
                                                <th width="80">当前状态</th>
                                                <th width="136">订单时间</th>
                                            </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <%#Eval("OrderCode") %>
                                            <%#get1(Eval("state").ToString(),Eval("id").ToString())%>
                                        </td>
                                        <td>
                                            <%#get2(Eval("state").ToString(), Eval("RandomCode").ToString())%>
                                        </td>
                                        <td>
                                            <div class="al" style="padding-left: 10px"><a title="点击查看" href="/tuan/<%#Eval("fid") %>.htm" target="_blank"><%#WM.E(WMread.GetBy("shorttitle", "tuan", "id", Eval("fid").ToString()), 46, true)%></a></div>
                                        </td>
                                        <td>
                                            <%#Eval("quantity")%>
                                        </td>
                                        <td>
                                            <%#Convert.ToDouble(Eval("price").ToString()).ToString("#.##")%>元
                                        </td>
                                        <td>
                                            <%#WMcompare.IsEqual(Eval("state").ToString(), "已付款", "<div class=\"red\">" + Eval("state").ToString() + "</div>", Eval("state").ToString())%>
                                        </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>
