📄 hotproduct.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="HotProduct.ascx.cs" Inherits="wqshop.Modules.HotProduct" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<%BindHotProductList(config.HotProductSizeInIndex);%>
<asp:DataList id="dlHotProducts"
CellPadding="5"
CellSpacing="0"
GridLines="None"
RepeatColumns="4"
RepeatDirection="Horizontal"
RepeatLayout="Table"
Visible=false
Width="100%"
runat="server">
<ItemStyle CssClass="alignCenterTop"/>
<ItemTemplate>
<table cellpadding="0" cellspacing="0" border="0" width="140">
<tr>
<td colspan="2" align="left"></td>
</tr>
<tr>
<td width="50%" align="center">
<a href='<%if(config.html==""){%>Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%><%}else{%>products-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%><%}%>'><img src='<%=config.Path%>upload/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>' border=0 width="90" height="90" /></a>
</td>
</tr>
<tr><span class="thumbnailTitle">
<td align="center">
<span class="thumbnailTitle">
>> <a href='<%if(config.html==""){%>Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%><%}else{%>products-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%><%}%>' target=_self ><%#DataBinder.Eval(Container.DataItem,"Name")%></a><br /></span></td>
</tr>
<tr><td align="left"><br /><span class="thumbnailTitle">
<%=GetResourceString("MarketPrice")%>:<%=GetCurrency()%><%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:f}")%><br />
<%=GetResourceString("MemberPrice")%>:<%=GetCurrency()%><%#DataBinder.Eval(Container.DataItem,"MemberPrice","{0:f}")%><% if(config.MarkUnit == 1) {%><% }%><br />
<table border="0" cellspacing="0" cellpadding="0" class="product">
<tr>
<td width="50" background="Template/freemodelv11/Images/xx-b.gif"><a href='<%if(config.html==""){%>Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%><%}else{%>products-<%#DataBinder.Eval(Container.DataItem,"ProductID")%>.<%=config.html%><%}%>'><%=GetResourceString("Details")%></a></td>
<td width="40" background="Template/freemodelv11/Images/buy-b.gif"><a href="#" onclick='addtocart(<%#DataBinder.Eval(Container.DataItem,"ProductID")%>)'><%=GetResourceString("Buy")%></a></td>
<td width="40" background="Template/freemodelv11/Images/collect-b.gif"><a href='Actions.aspx?action=Favorite&ProductID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>&ReturnUrl=<%=Request.Url%>'><%=GetResourceString("AddToFavourite")%></a></td>
</tr>
</table>
</td>
</tr>
<!--隐藏的支付宝功能开始 <tr>
<td align=center>
<%# GetAliPayButton(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%> </td>
</tr> 隐藏的支付宝功能结束-->
</table>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -