<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JfOrder.aspx.cs" Inherits="web.admin.JfOrder" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ProductField</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet">
<style type="text/css">
body {margin:0px; height:768px}
</style>
	
	

<script language="javascript" type="text/javascript">
<!--

function Button1_onclick() {
history.go(-1);
}

// -->
</script>
		<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
</HEAD>
	<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
		
<table width="100%" height="550"  cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td height="33" class="tl"></td>
		      <td height="37" class="tm"><span class="tt">外买食单管理  &gt;&gt;积分兑换管理</span></td>
		      <td class="tm2"><span class="tt"></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
              <td  class="mm" align="left" valign="top"> <div align="center">
                  <table width="75%" border="0" cellpadding="6" cellspacing="0">
                    <tr> 
                      <td width="76%"> <div align="left">
                         </div></td>
                      <td width="24%"><input type="submit" name="Submit" value="刷新" onClick="javascript:window.location.reload();"></td>
                    </tr>
                  </table>
                  
                </div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top" > 
                      <table width="97%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1" style="height: 14px"></td>
		                  <td class="mm1" style="height: 14px">
		                   <asp:Panel ID="Panel1" runat="server"  Width="100%" Visible="false">
       
        <asp:GridView ID="mypp" runat="server" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" Width="99%" HorizontalAlign="Center" BorderColor="Gainsboro"  AllowPaging="True" OnRowDataBound="mypp_RowDataBound" >
            <Columns>
          
                <asp:TemplateField HeaderText="ID">
                    <ItemTemplate>
                        &nbsp;&nbsp;<asp:Label ID="pname" runat="server" Text= <%# Eval("ID")%>></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                    <ItemStyle HorizontalAlign="Center" />
                
                </asp:TemplateField>
                  <asp:TemplateField HeaderText="会员名称(查看)">
                    <ItemTemplate>
                        &nbsp;&nbsp;<a href="member.aspx?name=<%#Eval("member") %>"><asp:Label ID="name" runat="server" Text=' <%#Eval("member")%> '></asp:Label></a>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" />
                
                </asp:TemplateField>
               
                  <asp:TemplateField HeaderText="兑换商品(查看)">
                    <ItemTemplate>
                       &nbsp;&nbsp;<a href="../showFreepro.aspx?id=<%#Eval("productid") %>" target="_blank"><asp:Label ID="pidd" runat="server" Text=' <%#getlei(Convert.ToInt32(Eval("productid")))%> '></asp:Label></a>                   </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" />
                
                </asp:TemplateField>
                <asp:TemplateField HeaderText="电话">
                    <ItemTemplate>
                       &nbsp;&nbsp;<asp:Label ID="tel" runat="server" Text=' <%#Eval("tel")%> '></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" />
                
                </asp:TemplateField>
                <asp:TemplateField HeaderText="手机">
                    <ItemTemplate>
                       &nbsp;&nbsp;<asp:Label ID="apid" runat="server" Text=' <%#Eval("sj")%> '></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" />
                
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="真实姓名">
                    <ItemTemplate>
                       &nbsp;&nbsp;<asp:Label ID="truename" runat="server" Text=' <%#Eval("truename")%> '></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Font-Size="12px" />
                      <ItemStyle HorizontalAlign="Center" />
                
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                       <ItemTemplate>
                            <a href="?action=del&ID=<%#Eval("id") %>"
                                        onclick="return confirm('建议保留一段时间后再删除!\n\n否则会员会无法查知食单的处理情况!\n\n确认要删除吗？');">
                                        [删除]</a>&nbsp;
                              
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="50px" />
               
                   
                </asp:TemplateField>
                <asp:TemplateField HeaderText="管理">
                 <ItemTemplate>
                            <a href="?action=mod&ID=<%#Eval("id") %>">
                                        [管理]</a>&nbsp;
                              
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                
                </asp:TemplateField>
                <asp:TemplateField HeaderText="状态">
                 <ItemTemplate>
                     <asp:TextBox ID="TextBox1" runat="server" Width="0" Text='<%# Bind("bz") %>'></asp:TextBox>
                         
                     <asp:Label ID="url" runat="server" ></asp:Label> 
                      </ItemTemplate>
                    <HeaderStyle Font-Size="12px" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                
                </asp:TemplateField>
            </Columns>
            <RowStyle Height="32px" />
            <HeaderStyle BackColor="AliceBlue" Height="35px" ForeColor="LightSalmon" CssClass="head" />
           
        </asp:GridView>
            <p class="pagemenu" style="text-align: right">
                    	<span>
                    		共<asp:Literal ID="lttotal" runat="server"></asp:Literal>
                    	    个定单，第<asp:Literal ID="ltcurpage" runat="server">1</asp:Literal>页/共<asp:Literal ID="lttotalpage" runat="server"></asp:Literal>页
                     	</span>
                    	<span class="padd1">
                    		<asp:LinkButton ID="lbfirst" runat="server" OnClick="lbfirst_Click" ToolTip="第一页" ><img src="images/first-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="pre" runat="server"  ToolTip="上一页" OnClick="pre_Click" ><img src="images/left-icon.gif" id="IMG1" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lbup" runat="server" OnClick="lbup_Click" CssClass="pageA">上一页</asp:LinkButton>
                        	<asp:LinkButton ID="lbdown" runat="server" OnClick="lbdown_Click" CssClass="pageA">下一页</asp:LinkButton>
                        	<asp:LinkButton ID="next" runat="server" ToolTip="下一页" OnClick="next_Click" ><img src="images/right-icon.gif" border="0"/></asp:LinkButton>
                        	<asp:LinkButton ID="lblast" runat="server" OnClick="lblast_Click" ToolTip="最后一页"><img src="images/last-icon.gif" border="0"/></asp:LinkButton>
                        </span>
                    </p>
        </asp:Panel>
                              <asp:Panel ID="Panel2" runat="server" Width="100%" Visible="false">
                                  <asp:HiddenField ID="HiddenField1" runat="server" />
                                  &nbsp;&nbsp;
                              <table width="95%" height="308" border="0" align="center" cellPadding="8" cellSpacing="1" bgcolor="#CCCCCC"
							id="Table5">
                                <tr bgcolor="#EDF6FF" > 
                                  <td height="35" colspan="2" align="right" background="img/labelbg.gif"> 
                                    <div align="center"> 积分购物管理&nbsp;&nbsp;&nbsp; 
                                    </div></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td width="90" height="29" align="right"> 会员名称： 
                                  </td>
                                  <td width="799" bgcolor="#FFFFFF" style="width: 451px"> 
                                    <asp:Label ID="mc" runat="server"></asp:Label>
                                    &nbsp;&nbsp; <font color="#FF0000">&lt;---点击会员名称查看会员情况</font></td>
                                </tr>
                                <tr bgcolor="#F4F4F4"> 
                                  <td align="right" style="height: 28px"> 兑换商品：</td>
                                  <td bgcolor="#F4F4F4" style="width: 451px; height: 28px;"> 
                                    <asp:Label ID="sp" runat="server"></asp:Label>
                                    &nbsp; &nbsp; <font color="#FF0000">&lt;---点击商品名称查看商品情况</font></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td align="right" style="height: 28px"> 联系电话：</td>
                                  <td style="width: 451px; height: 28px;"> <asp:Label ID="dh" runat="server"></asp:Label></td>
                                </tr>
                                <tr bgcolor="#F4F4F4"> 
                                  <td align="right" style="height: 28px"> 联系手机：</td>
                                  <td style="width: 451px; height: 28px;"> 
                                    <asp:Label ID="sj" runat="server"></asp:Label> 
                                  </td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td align="right" style="height: 28px"> 地址：</td>
                                  <td style="width: 451px; height: 28px;"><asp:Label ID="dz" runat="server"></asp:Label> 
                                     </td>
                                </tr>
                                <tr bgcolor="#F4F4F4"> 
                                  <td align="right" style="height: 28px"> 真实姓名：</td>
                                  <td style="width: 451px; height: 28px;"> 
                                    <asp:Label ID="xm" runat="server"></asp:Label></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td align="right" style="height: 28px">处理说明：</td>
                                  <td style="width: 451px; height: 28px;"><asp:TextBox ID="cl" runat="server" Height="73px" TextMode="MultiLine" Width="389px"></asp:TextBox><br />
                                      填写内容比如:<span style="color: #ff0033">已经发货,请查收</span></td>
                                </tr>
                                <tr bgcolor="#FFFFFF"> 
                                  <td height="40"></td>
                                  <td style="width: 451px"> &nbsp;&nbsp;&nbsp; 
                                    <asp:button id="btnSubmit" CssClass="btn" runat="server" Text="处理定单" OnClick="btnSubmit_Click"  ></asp:button> 
                                    <FONT face="宋体">&nbsp;</FONT> &nbsp;&nbsp;&nbsp; 
                                    <asp:button id="btnCancel" CssClass="btn" runat="server" Text="重写" OnClick="btnCancel_Click" ></asp:button> 
                                    &nbsp;&nbsp;&nbsp; <input id="Button1" type="button" value="返回" language="javascript" onclick="return Button1_onclick()" /></td>
                                </tr>
                              </table>
                              </asp:Panel>
		                   </td>
		<td class="mr1" style="height: 14px"></td>
	</tr>
</table>
                    </td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl" style="height: 15px"></td>
		<td class="bm" style="height: 15px">&nbsp;</td>
		<td class="br" style="height: 15px"></td>
	</tr>
</table>
</div>
    </td>
  </tr>
</table>

		</form>
	</body>
</HTML>
