<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Product_Order_Manage" %>

<!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>
    <title>[ <%=naviname %> ] - 订单管理</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Product_Order_Manage.js"></script>
    <script src="Plugin/Calendar/Calendar.js" type="text/javascript"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">

<!-- 弹出框 -->
<div id="ouBox" class="ouBox">
    <a class="close" title="关闭" href="#"></a>
    <div class="content"></div>
</div>
<!-- end 弹出框 -->

	<!-- 产品订单列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico8 F B"><%=naviname %> - <span class="V NoB">产品订单</span></span></div>
            <ul class="menu">
                <li><a class="<%=sift=="all"?"active":"" %>" href="<%=getFormUrl %>?sift=all&naviid=<%=naviid %>&naviname=<%=naviname %>"><span>全部</span></a></li>
                <li><a class="<%=sift=="0"?"active":"" %>" href="<%=getFormUrl %>?sift=0&naviid=<%=naviid %>&naviname=<%=naviname %>"><span>未处理</span></a></li>
                <li><a class="<%=sift=="1"?"active":"" %>" href="<%=getFormUrl %>?sift=1&naviid=<%=naviid %>&naviname=<%=naviname %>"><span>已处理</span></a></li>
            </ul>             
            </div>
        <!-- end 标 -->
        
         <div class="clear-8"></div>
         <span class="tbox_form"><label class="topname">订单号：</label><input type="text" id="barcode_text" value="<%=barcode %>" class="input162 f_left m_right6" /></span>
         <span class="tbox_form"><label class="topname">下单日期：</label><input type="text" id="addtime1_text" value="<%=time1 %>" class="date f_left m_right6" /></span>
         <span class="tbox_form"><label class="topname m_right8">至</label><input type="text" id="addtime2_text" value="<%=time2 %>" class="date f_left m_right6" /></span>
                <a href="#" id="order_Btn" rel="<%=getFormUrl %>?sift=<%=sift %>&naviid=<%=naviid %>&naviname=<%=naviname %>" class="bule-btn W f_left text_centent">订单查询</a>
           
        <div class="clear-8"></div>
        
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="38%" class="text_left">订单号</th>
                    <th width="40%" class="text_left">备注说明</th>
                    <th width="12%" class="text_center">下单时间</th>
                    <th width="10%">操作</th>
                </tr>
            </thead>
            <tbody id="Jquery_Tbody">
            	<%if (_orderListDat.Rows.Count > 0) %>
            <%{ %>
                <%for (int i = 0; i < _orderListDat.Rows.Count; i++) %>
                <%{ %>
            	<tr>
                    <td class="text_left">
                    	<span class="H B"><%=_orderListDat.Rows[i]["barcode"].ToString()%></span>
                        <span class="V">[<%=getIpCity(_orderListDat.Rows[i]["ip"].ToString())%>]</span> <span class="X Size9"><%=_orderListDat.Rows[i]["ip"].ToString()%></span><br />
                        <span class="Q">订购数量：<%=_orderListDat.Rows[i]["number"].ToString()%></span><br />
                         <span class="F">产品名：<%=_orderListDat.Rows[i]["productname"].ToString()%> </span><br />
                         <span class="X">浏览器[ <%=_orderListDat.Rows[i]["browser"].ToString()%> ] 操作系统 [ <%=_orderListDat.Rows[i]["os"].ToString()%> ]</span>
                         
					</td>
                	<td class="text_left">
                        <span class="V"><%=_orderListDat.Rows[i]["explain"].ToString()%></span>
                    </td>
                    <td>
                    	<span class="G">(<%=getTime1(_orderListDat.Rows[i]["addtime"].ToString())%>)</span><br />
                            <span class="V Size9"><%=getTime2(_orderListDat.Rows[i]["addtime"].ToString())%></span>
                    </td>
                    <td>
                    
                        <a href="<%=_orderListDat.Rows[i]["id"].ToString()%>" rel="intro" rev="<%=_orderListDat.Rows[i]["barcode"].ToString()%>" class="F underline">[订单明细]</a><br />
                        <%if (_orderListDat.Rows[i]["state"].ToString() == "True") %>
                        <%{ %>
                        <a href="0" title="<%=_orderListDat.Rows[i]["membername"].ToString() %>" rel="state" rev="<%=_orderListDat.Rows[i]["id"].ToString() %>" barcode="<%=_orderListDat.Rows[i]["barcode"].ToString() %>" class="Q underline">[恢复未处理]</a>
                        <%}else{ %>
                        <a href="1" title="<%=_orderListDat.Rows[i]["membername"].ToString() %>"  rel="state" rev="<%=_orderListDat.Rows[i]["id"].ToString() %>" barcode="<%=_orderListDat.Rows[i]["barcode"].ToString() %>" class="F underline">[处理订单]</a>
                        <%} %>
                        <br />
                        <a href="<%=_orderListDat.Rows[i]["id"].ToString() %>" title="<%=_orderListDat.Rows[i]["barcode"].ToString() %>" rel="del"  class="R underline">[删除]</a>
                    </td>
                </tr>
                <%} %>
            <%}else{ %>
            <tr>
            <td  colspan="4" class="text_left"><span class="V">暂无订单</span></td>
            </tr>
            <%} %>
            </tbody>
            <tfoot>
            	<tr>
                    <th width="90%" colspan="4" class="text_left">
                    <p class="PageBox">
                    	<%=getPagesInfo %>
                    </p>
                    <div class="clear-16"></div>
                    </th>
                </tr>
            </tfoot>
        </table>
        <!-- end 通用table -->
    <!-- end 文章列表管理 -->
</div>

</body>
</html>
