?? queryorder.aspx
字號:
?<%@ Register TagPrefix="uc1" TagName="productSearch" Src="Controls/productSearch.ascx" %>
<%@ Page language="c#" Codebehind="queryOrder.aspx.cs" AutoEventWireup="false" Inherits="shop.queryOrder" %>
<%@ Register Src="Controls/head.ascx" TagName="head" TagPrefix="uc2" %>
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title>queryOrder</title>
<LINK href="style\SiteStyle.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form id="form1" runat="server">
<center>
<table>
<tr>
<td style="width: 757px">
<uc2:head ID="Head1" runat="server" />
</td>
</tr>
<tr>
<td style="width: 757px" align="center">
<table>
<tr>
<td style="height: 52px">
<br />
查詢訂單:
<asp:TextBox ID="txtOrderId" runat="server"></asp:TextBox>
<asp:Button ID="btnQuery" runat="server" Text="查詢" Width="46px" Height="22px" /><asp:RegularExpressionValidator
ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtOrderId"
ErrorMessage="請輸入正確的訂單編號!" ValidationExpression="\d*"></asp:RegularExpressionValidator>
<hr color="#43a0db" size="1" width="100%" />
<asp:Label ID="lblError" runat="server" ForeColor="Red" Width="392px"></asp:Label></td>
</tr>
<tr style="font-family: 宋體">
<td style="height: 30px" valign="top">
<font face="宋體"><span style="color: #ff0000">以下是您的所有訂單信息:(請點擊訂單號查看訂單詳細</span>信息)<br />
</font>
<asp:DataList ID="dlOrders" runat="server" RepeatColumns="20">
<ItemTemplate>
<a href='queryOrder.aspx?OrderId=<%# DataBinder.Eval(Container.DataItem,"OrderId")%>'>
<%# DataBinder.Eval(Container.DataItem,"OrderId")%>
</a>
</ItemTemplate>
</asp:DataList>
<hr color="#43a0db" size="1" width="100%" />
</td>
</tr>
<tr>
<td valign="top">
訂單詳細內容:<br />
<asp:DataGrid ID="dgOrderDetails" runat="server" AutoGenerateColumns="False" BackColor="White"
BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="560px" GridLines="None">
<SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<AlternatingItemStyle BackColor="SeaShell" />
<ItemStyle ForeColor="#000066" />
<HeaderStyle BackColor="#43A0DB" Font-Bold="True" ForeColor="White" />
<FooterStyle BackColor="White" ForeColor="#000066" />
<Columns>
<asp:BoundColumn DataField="OrderId" HeaderText="訂單號">
<HeaderStyle Width="80px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="ProductName" HeaderText="商品名稱"></asp:BoundColumn>
<asp:BoundColumn DataField="Quantity" HeaderText="購買數量">
<HeaderStyle Width="90px" />
</asp:BoundColumn>
<asp:BoundColumn DataField="UnitCost" DataFormatString="{0:c}" HeaderText="單價">
<HeaderStyle Width="90px" />
</asp:BoundColumn>
</Columns>
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" Mode="NumericPages" />
</asp:DataGrid></td>
</tr>
<tr>
<td style="height: 104px">
<table id="table3" border="1" bordercolor="lightgrey" bordercolordark="#ffffff" cellpadding="0"
cellspacing="0" width="560">
<tr>
<td bgcolor="seashell" height="28" style="width: 85px; height: 28px; color: #99ff33; background-color: #43a0db;">
此訂單總額:</td>
<td bgcolor="seashell" style="height: 28px; background-color: #43a0db;">
<asp:Label ID="lblSum" runat="server" Width="104px" ForeColor="White"></asp:Label></td>
</tr>
<tr>
<td style="width: 85px; height: 27px; color: #99ff33; background-color: #43a0db;">
此訂單狀態:</td>
<td style="height: 27px; background-color: #43a0db;">
<asp:Label ID="lblStatus" runat="server" Width="296px" ForeColor="White"></asp:Label></td>
</tr>
<tr>
<td style="width: 85px">
**注</td>
<td>
未處理表示:我們尚未收到您的貨款或者你選擇了“貨到付款”的方式。<br />
以處理表示:已發貨,請注意查收。
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height: 32px">
<hr color="#43a0db" size="1" width="100%" />
<table width="100%">
<tr>
<td align="center" style="height: 17px">
? 版權所有2000-2006,杭州品杰科技有限責任公司</td>
</tr>
<tr>
<td align="center">
未經杭州品杰科技有限責任公司書面特別授權,請勿轉載或建立鏡像,違者依法必究</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</form>
</body>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -