File: D:/web/circ.itp/inc-template-special-offers.asp
<%
Sub DummyHTMLHeaderToFoolDreamweaverSpecialOffers
%>
<link href="styles.css" rel="stylesheet" type="text/css">
<%
End Sub
' --- START OF SPECIAL OFFER TEMPLATES --- '
Sub ShowSpecialOffersHeader
%>
<table width="169" border="0" cellspacing="0" cellpadding="0">
<tr><td class="offer_heading">Special Offers</td></tr>
<tr><td background="images/bkd-offers.gif">
<%
End Sub
Sub ShowSpecialOffersEmpty
%>
<table>
<tr><td class="status_prodname">There are no special offers currently.</td></tr>
</table>
<%
End Sub
' (SS,18/2/05) added AMainGroup, AMainCategory, AMainSubcategory '
Sub ShowSpecialOffersItem(AProductCode, AProductDashAsUnderscore, AProductCodeURLEncoded, AProductName, AWasPrice, ANowPrice, ADiscountPercentage, AMainGroup, AMainCategory, AMainSubcategory)
%>
<!-- START OF SPECIAL OFFER DATA -->
<table width="162" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td colspan="2" class="offer_prodname"><a href="products.asp?code=<%=AProductCodeURLEncoded%>"><%=AProductName%></a><br>
<!-- Show product group name <span class="offer_group"><%=AMainGroup%></span> --></td>
</tr>
<tr>
<td class="offer_imagebox"><a href="<%=GetProductLink(AProductCode)%>"><img src="getpic.asp?code=<%=AProductCodeURLEncoded%>" alt="<%=AProductCode%>" width="50" height="50" border="0"></a></td>
<td class="offer_pricebox">Was <span class="offer_saleprice"><%=AWasPrice%></span><br>
<span class="offer_price">Now <%=ANowPrice%></span><br><br>
<font color="#D90028">save </font><span class="offer_discount"><%=FormatNumber(ADiscountPercentage, 0)%>%</span></td>
<br>
</tr>
<tr align="center"><td colspan="2"><img src="images/line-spec.gif"></td>
</tr>
</table>
<!-- END OF SPECIAL OFFER DATA -->
<%
End Sub
Sub ShowSpecialOffersFooter(AHRef)
%>
<br></td>
</tr>
<tr>
<td class="offer_viewall"><a href="<%=AHRef%>" class="offer_viewall"><font color="#000000">View all</font></a></td>
</tr>
</table>
<%
End Sub
' --- END OF SPECIAL OFFER TEMPLATES --- '
If Not ForProductList Then ShowSpecialOffers
%>