<%
Select Case strListType
Case "batchofcoupons" %>
<% WriteString("ContentText_CouponCode") %>
<% WriteString("FormLabel_CouponValue") %>
<% WriteString("FormLabel_StartDate") %>
<% WriteString("FormLabel_EndDate") %>
<% WriteString("FormLabel_Used") %>
<%
if numRecordCount<>0 then
do while NOT objRecordSet.EOF
numBackgroundCounter = numBackgroundCounter + 1
If numBackgroundCounter mod 2 = 0 then
strBGColour = "#EEEEEE"
else
strBGColour = "#DDDDDD"
end if
%>
<% =objRecordSet("CP_CouponCode") %>
<%
If objRecordSet("CP_DiscountType")="p" then
response.write(objRecordSet("CP_DiscountValue") & "%")
else
response.write(strDefaultCurrencySymbol & " " & CurrencyDisplay(objRecordSet("CP_DiscountValue"), 1, blnDefaultCurrencyHasDecimals))
end if
%>
<%
If objRecordSet("CP_EndDate") > Cdate("2999/12/30") then
response.write("-")
else
response.write(FriendlyDate(objRecordSet("CP_EndDate"), "d"))
end if %>
<% If objRecordSet("CP_Used")="y" then %><% end if %>
<%
if numRecordCount<>0 then
do while NOT objRecordSet.EOF
numBackgroundCounter = numBackgroundCounter + 1
If numBackgroundCounter mod 2 = 0 then
strBGColour = "#EEEEEE"
else
strBGColour = "#DDDDDD"
end if
%>
<% Case "specificcoupon"
if numRecordCount > -1 then %>
<% WriteString("ContentText_CouponCode") %>
<% =objRecordSet("CP_CouponCode") %>
<% WriteString("FormLabel_CouponValue") %>
<%
If objRecordSet("CP_DiscountType")="p" then
response.write(objRecordSet("CP_DiscountValue") & "%")
else
response.write(strDefaultCurrencySymbol & " " & CurrencyDisplay(objRecordSet("CP_DiscountValue"), 1, blnDefaultCurrencyHasDecimals))
end if
%>
<%
If objRecordSet("CP_EndDate") > Cdate("2999/12/30") then
response.write("-")
else
response.write(FriendlyDate(objRecordSet("CP_EndDate"), "d"))
end if %>