customproducts1.ascx

来自「在线点卡销售系统」· ASCX 代码 · 共 39 行

ASCX
39
字号
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="CustomProducts.ascx.cs" Inherits="wqshop.Modules.CustomProducts" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%BindCustomProductList(1,2,"dlCustomProductts","New");%>
<asp:DataList ID="dlCustomProductts"
 CellPadding="4" 
 CellSpacing="0" 
 GridLines="None" 
 RepeatColumns="2"
 RepeatDirection="Horizontal" 
 RepeatLayout="Table"
 Visible="false" 
 Width="100%" 
 runat="server">
  <itemstyle VerticalAlign="top" />
  <itemtemplate>
                                <table cellpadding="0" cellspacing="0" border="0" width="140" align="center">
                                  <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="148" height="92" /></a></td>
                                  </tr>
                                  <tr>
                                    <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></span></td>
                </tr>
                <tr>
                  <td><span class="thumbnailTitle1">
   <%=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) {%><% }%></span>
<table border="0" cellspacing="0" cellpadding="0" class="product" align="center">
  <tr>
    <td class="xx"><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  class="buy"><a href="#" onclick='addtocart(<%#DataBinder.Eval(Container.DataItem,"ProductID")%>)'><%=GetResourceString("Buy")%></a></td>
    <td class="collect"><a href='Actions.aspx?action=Favorite&ProductID=<%#DataBinder.Eval(Container.DataItem,"ProductID")%>&ReturnUrl=<%=Request.Url%>'><%=GetResourceString("AddToFavourite")%></a></td>
  </tr>
</table>
    </td>
          </tr>
              </table>
             </itemtemplate>
		   </asp:DataList>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?