<%@ Control Language="C#"  %>
<%@ Import Namespace="ShopNum1.Common"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100" valign="top">
    <table width="90" border="0" cellspacing="1" cellpadding="0" 
    style="margin-top:4px; text-align:center" bgcolor="#DCEAF8"
    >
      <tr>
        <td height="20" bgcolor="#ffffff">商品名称：</td>
      </tr>
      <tr>
        <td height="100" bgcolor="#ffffff">商品图片：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">市场价格：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">本店价格：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">商品品牌：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">赠送消费积分：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">赠送等级积分：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">被点击数：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">被收藏数：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">被购买数：</td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">
       
            商品评论数：
          </td>
      </tr>
    </table></td>
    <td width="90%">
  
<asp:ListView ID="ListViewCompareProduct" runat="server" 
    DataSourceID="ObjectDataSourceData"  DataKeyNames="Guid" >
      <LayoutTemplate>
            <table id="Table1" runat="server" >
                <tr ID="itemPlaceholderContainer" runat="server">
                    <td ID="itemPlaceholder" runat="server">
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <td id="Td1" runat="server" valign="top">
      <table width="100%" border="0" cellspacing="1" cellpadding="0" style="table-layout:fixed; text-align:center" width="120"; bgcolor="#DCEAF8">
      <tr>
        <td style=" white-space:nowrap" height="20" bgcolor="#ffffff"><asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' /></td>
      </tr>
      <tr>
        <td height="100" bgcolor="#ffffff">   <a href='ProductDetail.aspx?guid=<%# Eval("guid") %>'   target="_blank"> 
                                    <asp:Image ID="ImageProduct" runat="server" Height="100px" 
                  ImageUrl= '<%# Globals.ImagePath+Eval("OriginalImge") %>'
                    Width="100px" />
                                     </a></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"> <%# Globals.MoneySymbol%><asp:Label ID="MarketPriceLabel" runat="server" 
                    Text='<%# Eval("MarketPrice") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"><%# Globals.MoneySymbol%><asp:Label ID="ShopPriceLabel" runat="server" Text='<%# Eval("ShopPrice") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"><asp:Label ID="BrandNameLabel" runat="server" Text='<%# Eval("BrandName") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"><asp:Label ID="PresentScoreLabel" runat="server" 
                    Text='<%# Eval("PresentScore") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"><asp:Label ID="PresentRankScoreLabel" runat="server" 
                    Text='<%# Eval("PresentRankScore") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"><asp:Label ID="ClickCountLabel" runat="server" 
                    Text='<%# Eval("ClickCount") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"><asp:Label ID="CollectCountLabel" runat="server" 
                    Text='<%# Eval("CollectCount") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff"><asp:Label ID="BuyCountLabel" runat="server" Text='<%# Eval("BuyCount") %>' /></td>
      </tr>
      <tr>
        <td height="20" bgcolor="#ffffff">
       
     <asp:Label ID="CommentCountLabel" runat="server" 
                    Text='<%# Eval("CommentCount") %>' />

                <asp:Label ID="GuidLabel"  Visible="false" runat="server" Text='<%# Eval("Guid") %>' />
          </td>
      </tr>
    </table>
    

            </td>
        </ItemTemplate>
</asp:ListView>
</td>
  </tr>
</table>
<asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
    SelectMethod="GetCompareProduct" 
    TypeName="ShopNum1.BusinessLogic.ShopNum1_Product_Action">
    <SelectParameters>
        <asp:ControlParameter ControlID="HiddenFieldGuid" Name="guids" 
            PropertyName="Value" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField ID="HiddenFieldGuid" runat="server" />
