📄 commendproduct.ascx
字号:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="CommendProduct.ascx.cs" Inherits="XpShop.WebUI.Modules.CommendProduct" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<div class="mframe">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="73"><img src="template/green/images/main28.gif" width="73" height="40"></td>
<td background="template/green/images/main29.gif"> 推荐商品</td>
<td width="21"><a href="Search.aspx?keyword=&Type=Commend"><img src="template/green/images/main32.gif" width="21" height="40" border="0"></a></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="ml"></td>
<td class="mm">
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>
<td valign="top">
<%BindCommendProductList(config.CommendProductSizeInIndex);%>
<asp:DataList id="dlCommendProductts"
CellPadding="5"
CellSpacing="0"
GridLines="None"
RepeatColumns="3"
RepeatDirection="Horizontal"
RepeatLayout="Table"
Visible=false
Width="100%"
runat="server">
<ItemStyle CssClass="alignCenterTop"/>
<ItemTemplate>
<table width="100%" border="0" cellspacing="2" cellpadding="2" bgcolor="#FFFFFF">
<tr>
<td align="center" valign="top" width="60" style="padding-right:5px">
<table border="0" cellspacing="1" cellpadding="5" bgcolor="#DBDBDB">
<tr bgcolor="#FFFFFF" align="center">
<td><font color="#000000"><a href='Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>'><img src='upload/<%#DataBinder.Eval(Container.DataItem,"ThumbnailImg")%>' width=60 border=0 align=center vspace=0 hspace=0 style='border-color:#000000'></a></font></td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="22">
<tr valign="top">
<td height="28"><a href='Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>' target=_self ><font color="#000000"><%#DataBinder.Eval(Container.DataItem,"Name")%></font></a></td>
</tr>
<tr>
<td><font color="#006666">市价:<%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:c}")%></font></td>
</tr>
<tr>
<td><font color="#FF3300">会员:<%#DataBinder.Eval(Container.DataItem,"MarketPrice","{0:c}")%></font></td>
</tr>
</table>
<table border="0" cellspacing="2" cellpadding="0" height="20">
<tr>
<td height="22" ><a href='Show.aspx?PID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>'><img src="template/green/images/m_detail.gif" border="0" ></a></td>
<td height="22" ><a href="#" onclick='addtocart(<%#DataBinder.Eval(Container.DataItem,"ProductID")%>)'><img src="template/green/images/m_buy.gif" border="0" ></a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=2>
<%# GetAliPayButton(DataBinder.Eval(Container.DataItem,"ProductID").ToString())%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
</table>
</td>
<td class="mr"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" >
<tr>
<td class="bl"></td>
<td class="bm"> </td>
<td class="br"></td>
</tr>
</table>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -