<%@ Control Language="C#" %>
<%@ Import Namespace="ShopNum1.Common"%>
<%@ Import Namespace="ShopNum1.Control"%>
 
 
 <asp:DataList ID="DataListShow" runat="server" 
                                        RepeatColumns="1" Width="100%" 
                                    GridLines="None" BorderWidth="0">
<ItemTemplate>
 <div class="mod2  OrganizationProduct clearfix">
     <div class="title clearfix "> <span class="left "></span></div>
	<div class="Organization clearfix">
     <table width="100%" border="0" cellpadding="0" cellspacing="0">      
           <tr>
            <td width="40" align="center">
                                <div class="OrganizationImage" style="padding-top:10px"><a href='ProductDetail.aspx?guid=<%# Eval("ProductGuid") %>'   target="_blank">   
                                    <asp:Image ID="ImageProduct" runat="server" Height="100px" 
                    ImageUrl='<%# Globals.ImagePath+"s_"+Eval("OriginalImgeProduct") %>' 
                    Width="100px" /></a>
                                </div>
                            </td>
            <td>
              <table id="Table1"   width="80%" border="0" cellpadding="0" cellspacing="0" > 
                  <tr>
                            <td align="center">       
                            </td>
                        </tr>
                 <tr>
                            <td align="left">                                
                                团购商品：<font class="f3"><a href='ProductDetail.aspx?guid=<%# Eval("ProductGuid") %>'   target="_blank"> <%# Eval("ProductName")%></a></font>
                            <br />
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                起止时间：<%# Eval("StartTime")%>--<%# Eval("EndTime")%>
                                <br />
                            </td>
                        </tr> 
                        <tr>
                            <td align="left">
                            价格阶梯：
                                <br />
                            </td>
                        </tr> 
                        <tr align="center">                           
                            <td> 
                             <asp:DataList ID="DataListOrganizBuyPrice" runat="server" 
                                        RepeatColumns="1" Width="100%" RepeatDirection="Horizontal" 
                                    GridLines="Horizontal">
                            <HeaderTemplate> 
                                <table  width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#f3f3f3"> 
                            <tr align="center">
                                <td>
                                  <strong>数据</strong> 
                                </td>
                                <td>
                                   <strong>价格</strong>
                                </td>
                            </tr>
                         </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                            <table width="100%" border="0" cellpadding="1" cellspacing="1"> 
                            <tr align="center">
                                <td width="50%" bgcolor="#FFFFFF" >
                                  <%# DataBinder.Eval(Container, "DataItem(Amount)", "{0}")%></td>
                                <td width="50%" bgcolor="#FFFFFF">
                                  <%# Globals.MoneySymbol%> <%# DataBinder.Eval(Container, "DataItem(Price)", "{0}")%></td>
                            </tr>
                         </table>
                            </ItemTemplate>
                             <%--<FooterTemplate>
                             </FooterTemplate>--%>
                            </asp:DataList>           
                            </td>
                        </tr>
                            <tr>
                            <td align="left">
                            
                            保证金：<%# Globals.MoneySymbol%><%# Eval("Deposit")%>
                                
                            </td>
                        </tr> 
                             <tr>
                            <td align="left">
                               当前价格：<%# Globals.MoneySymbol%><%# Eval("CurrentPrice")%>
                            </td>
                        </tr> 
                             <tr>
                            <td align="left">
                               限购数量：<%# Eval("RestrictCount")%>
                            </td>
                        </tr>
                          <tr>
                            <td align="left">
                               当前订购数量：<%# Eval("SpeakForCount")%>
                            </td>
                        </tr>  
                            <tr>
                            <td align="left">
                               赠送消费积分数：<%#Eval("PresentScore")%>
                            </td>
                        </tr>  
                            <tr>
                            <td align="left">
                              赠送等级积分数：<%# Eval("PresentRankScore")%>
                            </td>
                        </tr> 
                        <tr><td> 
                         <asp:HiddenField ID="HiddenFieldIsEnd" runat="server" Value='<%# Eval("IsEnd")%>'/><asp:Label ID="LabelOrganizeBuyMessage" runat="server"  ForeColor="red" Font-Bold="True" /><ShopNum1:SpanTimer ID="SpanTimerShow" runat="server" EndTime='<%# Eval("EndTime")%>'  />
                        </td></tr> 
                     </table>
             </td>
              </tr>       
    </table>
    </div></div>
     <div class="mod1">
  <table id="Table2"   width="100%" border="0" cellpadding="0" cellspacing="0"> 
         <tr>
            <td><div class="title clearfix"> <span class="left"></span> <span class="right"></span>
      <div class="fl" >团购说明</div>
    </div>
</td>
         </tr>
         <tr>
            <td><div class="content vote" id="space"><%# Eval("Memo")%></div></td>
         </tr>
  </table>
  </div>        
 </ItemTemplate>
</asp:DataList>
 
 

<!--带有价格的多选属性 -->


     <div class="mod1">
  <table id="Table2"   width="100%" border="0" cellpadding="0" cellspacing="0"> 
         <tr>
            <td><div class="title clearfix"> <span class="left"></span> <span class="right"></span>
      <div class="fl" >商品属性</div>
    </div>
</td>
         </tr>
         <tr>
            <td><div class="content vote" id="space"><asp:Repeater ID="RetpeaterAttribute2" runat="server">
<ItemTemplate>
      <p><%# Eval("Name")%>：</p>
                    <!-- 可多选的属性 -->
                    <asp:CheckBoxList ID="checkBoxListAttribute" runat="server">
                    </asp:CheckBoxList>
</ItemTemplate>
</asp:Repeater>


<!--带有价格的多选属性 -->
<asp:Repeater ID="RetpeaterAttribute1" runat="server">
<ItemTemplate>        
      <p\> <%# Eval("Name")%>：</p>
                    <!-- 可单选的属性 -->
                 <asp:RadioButtonList ID="radioButtonList" runat="server">
                 </asp:RadioButtonList>      
 </ItemTemplate>
</asp:Repeater>
</div></td>
         </tr>
  </table>
  </div> 
<!-- 购买按钮 -->
 <div style="border:1px solid #468ebe;background-color:#f4f9fd;height:100px;line-height:100px;font-size:14px;color:6699cc;padding-left:20px;" >
购买数量：<asp:TextBox ID="TextBoxBuyNumber" runat="server" Width="100"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidatorBuyNumber" 
                            runat="server" ControlToValidate="TextBoxBuyNumber" Display="Dynamic" 
                            ErrorMessage="该值不能为空！"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidatorBuyNumber" 
                        runat="server" ControlToValidate="TextBoxBuyNumber" Display="Dynamic" 
                        ErrorMessage="只能输入数量！" 
        ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>&nbsp;<asp:Button ID="ButtonBuy" runat="server" 
                                    Text="购买该商品" class="bnt_number6" />  </div>
 
 <asp:HiddenField ID="HiddenFieldGuid" runat="server"  Value='0'/>                     