<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Opro.aspx.cs" Inherits="web.admin.Opro" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Product</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" src="../inc/overlib.js"></script>
		<script language="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="Form1" 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" cellspacing="0" cellpadding="0" bgcolor="#EDF6FF" height="32" background="images/labelbg.gif">
	<tr>
		<td class="tl"></td>
		      <td class="tm"><span class="tt">团购商品、订单管理 &gt;&gt; 团购商品管理</td>
		<td class="tm2"><span class="tt"></span></td>
	
	</tr>
</table>
</div>
        <div align="center"><br />
        </div>
        <div class="mframe">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   
    <td  class="mm" align="left" valign="top" style="width: 100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  valign="top" style="width:100%" align="center">
    <table width="99%" align="center" cellpadding="0"  cellspacing="0" bgcolor="#EDF6FF" style="border:1px #CCCCCC solid;">
                        <tr height="35"> 
                                <td width="31">&nbsp; </td>
                                <td align="center" style="text-align: right; width: 576px;">
                                    搜索：关键字:
                                  <asp:TextBox id="txtKeyword" CssClass="input" runat="server" Width="46px"></asp:TextBox> 
                                    <asp:DropDownList ID="Ddsl" runat="server">
                                      
                                        <asp:ListItem Value="2">团购商品</asp:ListItem>
                                 
                                        <asp:ListItem Value="4">限时抢购</asp:ListItem>
                                    </asp:DropDownList>&nbsp;
                                </td>
                                <td width="288" align="center" style="width: 288px">
                                  </td>
                                <td width="86" align="center" > <asp:Button id="btnSearch" runat="server" CssClass="btn" Text="开始搜索"></asp:Button>&nbsp;</td>
                              </tr>
                              </table>
<table width="99%"  cellspacing="0" cellpadding="0" align="center">
                        <tr> 
                          <td class="mm1" style="width:98%"> <table  cellSpacing="0" cellPadding="0" width="99%" align="center" border="0">
                            
                              <tr height="35"> 
                                <td colspan="4"><br /> &nbsp;<asp:button ID="btnSavePrice" CssClass="btn1" runat=server Text="修改价格"></asp:button>
                                    &nbsp;
                          
                                    <asp:Button ID="Button9" CssClass="btn1"  runat="server" OnClick="Button9_Click" Text="删除商品" />
                                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr> 
                                      <td style="height: 5px"> </td>
                                    </tr>
                                  </table></td>
                              </tr>
                              <tr> 
                                <td height="23" class="forumRowHighlight" colspan=4> 
                                  <asp:datagrid id="dgProductList" runat="server" AllowPaging="True" PageSize="10" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="ProductID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title" BorderColor="#CCCCCC" BorderWidth="1px"> 
                                    <HeaderStyle Font-Bold="False" BackColor="#EDF6FF" CssClass="summary-title" Height="28px"></HeaderStyle>
                                    <Columns>
                                    <asp:TemplateColumn>
                                      <HeaderTemplate> 
                                        <asp:CheckBox id="chkAll" runat="server" AutoPostBack="True" OnCheckedChanged="chkAll_CheckedChanged" ></asp:CheckBox>
                                      </HeaderTemplate>
                                      <ItemTemplate> 
                                        <asp:CheckBox id="chkItem" runat="server"></asp:CheckBox>
                                      </ItemTemplate>
                                      <HeaderStyle Width="20px" /> 
                                      <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" HorizontalAlign="Center" /> 
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="商品名称">
                                      <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                      <ItemTemplate> <a href=<%# DataBinder.Eval(Container.DataItem, "Protype").ToString()!="1"?"../tuan/showProduct.aspx?productID=":"../Proinfo/proinfo_" %><%# DataBinder.Eval(Container.DataItem, "ProductID") %><%# DataBinder.Eval(Container.DataItem, "Protype").ToString()!="1"?"":".html" %> target=_blank> 
                                        <%# DataBinder.Eval(Container.DataItem, "Name") %>
                                        </a> </ItemTemplate>
                                    </asp:TemplateColumn>
                                    		<asp:TemplateColumn HeaderText="所属店铺">
			<HeaderStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="220px" BackColor="#EDF6FF" Wrap="False"></HeaderStyle>
			<ItemStyle HorizontalAlign="Center" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="False"></ItemStyle>
			<ItemTemplate>
			<a href="../company/company_<%# DataBinder.Eval(Container.DataItem, "sjid").ToString() %>.html" target="_blank"><%# GetComName(DataBinder.Eval(Container.DataItem, "sjid").ToString()) %></a>
			</ItemTemplate>
                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="False" />
			</asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="市场价格">
                                      <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Left" Width="60px"></ItemStyle>
                                      <ItemTemplate> 
                                        <asp:TextBox ID="txtMarketPrice" Runat=server Text=<%# DataBinder.Eval(Container.DataItem, "MarketPrice","{0:F}") %> Width="60"></asp:TextBox>
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="特卖价格">
                                      <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Left" Width="60px"></ItemStyle>
                                      <ItemTemplate> 
                                        <asp:TextBox ID="txtMemberPrice" Runat=server Text=<%# DataBinder.Eval(Container.DataItem, "MemberPrice","{0:F}") %> Width="60"></asp:TextBox>
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                           
                                    <asp:TemplateColumn HeaderText="库存量">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                                      <ItemTemplate> 
                                        <%# DataBinder.Eval(Container.DataItem, "Storage") %>
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="缩图">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                                      <ItemTemplate> <a href="#" onMouseOver="return overlib('<IMG SRC=../Upload/<%# DataBinder.Eval(Container.DataItem, "ThumbnailImg") %> >', CAPTION, '<%# DataBinder.Eval(Container.DataItem, "Name") %>',FGCOLOR, '#fcfcfc', BGCOLOR, '#0080C0', CAPCOLOR, '#ffffff', BORDER, 2, CLOSETEXT, 'Close');" onMouseOut="nd();"><IMG SRC="images/icon-viewpic.gif" border="0"></a> 
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="排序">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
                                      <ItemTemplate> 
                                        <table>
                                          <tr> 
                                            <td width="50%"> <asp:ImageButton ID="imgD" Runat="server" ImageUrl="images/a_down.gif" CommandName="Down"></asp:ImageButton></td>
                                            <td width="50%"> <asp:ImageButton ID="imgU" Runat="server" ImageUrl="images/a_up.gif" CommandName="Up"></asp:ImageButton></td>
                                          </tr>
                                        </table>
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                                    <asp:TemplateColumn HeaderText="发布">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                      <ItemTemplate> <a href='Cz.aspx?Action=ChangeProductIsForSale&pid=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&IsForSale=<%# DataBinder.Eval(Container.DataItem, "IsForSale") %>&<%=Request.QueryString.ToString()%>'> 
                                        <img src='images/publish_<%# DataBinder.Eval(Container.DataItem, "IsForSale") %>.png' border="0"></a> 
                                      </ItemTemplate>
                                    </asp:TemplateColumn>
                                   
                                    <asp:TemplateColumn>
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                      <ItemTemplate> <a href='tgproAdd.aspx?ProductID=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>&<%=Request.QueryString.ToString()%>'> 
                                        修改</a> </ItemTemplate>
                                    </asp:TemplateColumn>
                                   
                                      <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
									CommandName="del"> 
                                      <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                    </asp:ButtonColumn>
                                     <asp:TemplateColumn HeaderText="销售状态">
                                      <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                      <ItemStyle HorizontalAlign="Center" Width="130px"></ItemStyle>
                                      <ItemTemplate> 
                                      
                                     <%# DataBinder.Eval(Container.DataItem, "ProType").ToString() == "3" ? DataBinder.Eval(Container.DataItem, "Status").ToString() == "1" ? "<a href='?lx=tz&ProductID=" + DataBinder.Eval(Container.DataItem, "ProductID") + "'> 停止销售</a> " : "<a href='?lx=ks&ProductID=" + DataBinder.Eval(Container.DataItem, "ProductID") + "'><font color='#FF0000'>开始销售</font></a>" : DataBinder.Eval(Container.DataItem, "Status").ToString() == "1"?"销售中":"已经结束"%> 
                                      
                                       </ItemTemplate>
                                    </asp:TemplateColumn>
                                    </Columns>
                                    <PagerStyle Mode="NumericPages" BackColor="White" Height="26px"></PagerStyle>
                                    <ItemStyle BackColor="White" Height="30px" /> 
                                  </asp:datagrid> <TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" id="tablePage">
                                    <TR height="35"> 
                                      <TD vAlign="middle" style="height: 35px"> 
                                        <asp:label id="lblPager" Runat="server"></asp:label></TD>
                                      <TD vAlign="middle" align="right" style="height: 35px"><INPUT id="controlID" type="hidden" name="controlID" runat="server"> 
                                        <asp:textbox id="txtPage" Runat="server" Width="30px" CssClass="input"></asp:textbox> 
                                        &nbsp;&nbsp; <asp:button id="btnJump" Runat="server" CssClass="btn" Text=" Go "></asp:button></TD>
                                    </TR>
                                  </TABLE></td>
                              </tr>
                            </table>
                            <div id="overDiv" style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></div>
                            </td>
                        </tr>
                      </table>
</td>
  </tr>
</table>


              </td>

  </tr>
</table>
        </div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
