<%@ page language="C#" autoeventwireup="true" inherits="Web_ProductCompare, mallz" enableviewstate="false" viewstateencryptionmode="Never" enableviewstatemac="false" validaterequest="false" enableEventValidation="false" %>
<%@ Register tagPrefix="MZ" TagName="TextFormat" Src="UserControls/ProductTextFormat.ascx" %>
<html runat="server" visible="false" xmlns="http://www.w3.org/1999/xhtml" id="html1">
<head>
<title>商品对比</title>
<link href="css/AuctionCompare.css"  rel="stylesheet"  type="text/css" />
<script src="/member/Js/mallz_time.js" type="text/javascript" ></script>
<script type="text/javascript">
function doBid(id)
{
   var _form=document.forms["aspnetForm"];
    if(_form)
   {
     try{
             _form.action="Buy.aspx?ProductID="+id;
            _form.origin_buy.value="false";
            _form.submit();
     }
     catch(e){}
   }
}
</script>
</head>
<body>

<asp:repeater ID="ShowCompareProductLiteral" runat="server">
    <HeaderTemplate>
        <table cellspacing="0" class="CompareTable" summary="商品属性比较" width="100%">
        <tr><td>
            <table cellspacing="0" >
                <tr>
                    <th width="100" height="100">商品图片：</th>
                </tr>
                <tr>
                    <th>商品名称：</th>
                </tr>
                <tr>
                    <th>交易类型：</th>
                </tr>
                <tr>
                    <th>商品价格：</th>
                </tr>
                <tr>
                    <th>卖家名称：</th>
                </tr>
                <tr>
                    <th>信誉评价：</th>
                </tr>
                <tr>
                    <th>商品属地：</th>
                </tr>
                <tr>
                    <th>剩余时间：</th>
                </tr>
                <tr>
                    <th>新旧程度：</th>
                </tr>
                <tr>
                    <th>&nbsp;</th>
                </tr>
            </table>
        </td>
    </HeaderTemplate>
    <ItemTemplate>
        <td id="<%# "td_" + Eval("ProductID") %>">
            <table cellspacing="0" style="border:1px #ccc solid;" >
                <tr>
                    <td height="100" align="center"><img src="<%# Eval("ProductSmallImageUrl") %>" /></td>
                </tr>
                <tr>
                    <td align="center"><asp:Literal ID="Literal1" Text='<%# Eval("ProductName") %>' runat="server"/></td>
                </tr>
                <tr>
                    <td align="center"><asp:Literal ID="Literal7" Text='<%# MallZ.Web.Shop.TextFormat.GetProductType(Eval("ProductType").ToString()) %>' runat="server"/></td>
                </tr>
                <tr>
                    <td align="center"><asp:Literal ID="Literal2" Text='<%# Eval("CurrentPrice") %>' runat="server"/></td>
                </tr>
                <tr>
                    <td align="center"><asp:HyperLink ID="Literal4" Text='<%# Eval("ShopOwnerName") %>' Target="_blank" NavigateUrl='<%# "/Shop/index.aspx?ShopID=" + Eval("ShopID") %>' runat="server"/></td>
                </tr>
                <tr>
                    <td align="center"><asp:Literal ID="Literal6" Text='<%# "&nbsp;<script  type=\"text/javascript\">displayStar(" + Eval("SaleCrediet") + ");</script>" %>' runat="server"/></td>
                </tr>
                <tr>
                    <td align="center"><asp:Literal ID="Literal3" Text='<%# Eval("Province").ToString() + Eval("City").ToString() %>' runat="server"/></td>
                </tr>
                <tr>
                    <td align="center"><MZ:TextFormat runat="server" ID="TextFormat0" Text="LeftTime" Value='<%# Eval("EndDate")+"|"+Eval("NoLimitDate") %>' /></td>
                </tr>
                <tr>
                    <td align="center"><asp:Literal ID="Literal5" Text='<%# MallZ.Web.Shop.TextFormat.GetProductStandard(Eval("NewDegree").ToString()) %>' runat="server"/></td>
                </tr>
                <tr>
                    <td align="center">
                    <asp:HyperLink ID="HyperLink2" Target="_blank" NavigateUrl='<%# "Buy.aspx?ProductID=" + Eval("ProductID") %>' runat="server" Text="购买" />
                    <asp:HyperLink ID="HyperLink1" Target="_blank" NavigateUrl='<%# "Member/Index.aspx?mainurl=AddMyFav.aspx?ProductID=" + Eval("ProductID") %>' runat="server" Text="收藏" />
                    <a href="javascript:void(0)" onclick="javascript:{document.getElementById('<%# "td_" + Eval("ProductID") %>').style.display='none';}">删除</a>
                    </td>
                </tr>
            </table>
        </td>
    </ItemTemplate>
    <FooterTemplate>
        </tr></table>
    </FooterTemplate>
</asp:repeater>

<asp:HiddenField ID="P_ID" runat="server" />
</body>
</html>





