<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ordermanage.aspx.cs" Inherits="Focus.Admin.ordermanage" %>
<%@ Register TagPrefix="cc1" Namespace="Focus.Control" Assembly="Focus.Control" %>
<!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">
    <title>订单管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="styles/fntmanager.css" type="text/css" rel="stylesheet">
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet">

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

    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body>
    <form id="form1" runat="server">
    <div class="Navbutton" style="width: 98%;">
        <table cellspacing="1" cellpadding="4" align="left" class="table1">
            <tr>
                <td align="left">
                    <input title="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall"
                        id="chkall" />全选/取消全选 &nbsp;
                    <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="images/del.gif"
                        OnClick="DelRec_Click"></cc1:Button>&nbsp;
                    <button class="ManagerButton" type="button" onclick="javascript:window.location.href='productmanage.aspx?sortid=<%=sortid%>';">
                                    <img src="images/arrow_undo.gif" />返 回</button>
                </td>
            </tr>
        </table>
    </div>
    <cc1:DataGrid ID="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged"
        AllowPaging="true">
        <Columns>
            <asp:TemplateColumn HeaderText="选择">
                <ItemTemplate>
                    <input id="id" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>"
                        name="id" />
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="id" SortExpression="id" HeaderText="Id" Visible="false">
            </asp:BoundColumn>
            <asp:BoundColumn DataField="id" HeaderText="订单号"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="订购商品名称">
                <ItemTemplate>
                    <a href="../productview.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>"
                        target="_blank">
                        <%# DataBinder.Eval(Container, "DataItem.productname").ToString()%></a>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="price" HeaderText="价格"></asp:BoundColumn>
            <asp:BoundColumn DataField="ordercount" HeaderText="订购数量"></asp:BoundColumn>
            <asp:BoundColumn DataField="name" HeaderText="联系人"></asp:BoundColumn>
            <asp:BoundColumn DataField="email" HeaderText="Email"></asp:BoundColumn>
            <asp:BoundColumn DataField="phone" HeaderText="电话"></asp:BoundColumn>
            <asp:BoundColumn DataField="fax" HeaderText="传真"></asp:BoundColumn>
            <asp:BoundColumn DataField="postdatetime" HeaderText="提交时间"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="状态">
                <ItemTemplate>
                    <%# StateStr(DataBinder.Eval(Container, "DataItem.state").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="操作">
                <ItemTemplate>
                    <a href="orderedit.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>">
                        编辑</a>
                    <a href="../orderview.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" target="_blank">
                        详细</a>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
    </cc1:DataGrid>
    </form>
</body>
</html>
