<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="norss.xsl"?>
<rss version="2.0"  xmlns:atom="http://www.w3.org/2005/Atom">
<%@ Language=VBScript%>
<% Response.ContentType = "text/xml" %>
<% strDate=dateadd("h", -7, Now())
   strDate=WeekdayName(Weekday(strDate),true) & ", " & Generic_TimeFormat(strDate,12) & " " & Generic_TimeFormat(strDate,13) & " GMT" %>
<channel>
	<title>FormulaZone: New Zone Recipes</title>
	<link>http://www.formulazone.com</link>
	
	<ttl>300</ttl>
	<lastBuildDate><% = strDate %></lastBuildDate>
	<managingEditor>fzsales@formulazone.com (Sales)</managingEditor>
	<webMaster>webmaster@formulazone.com (Webmaster)</webMaster>
	<language>en-us</language>
	
	<description>
		New Zone Diet Recipes delivered often!
	</description>
<!--#Include Virtual="ssi/VBSDBOpen.inc"-->
<!--#Include Virtual="ssi/VBSValidate.inc"-->
<% on error goto 0
	strDSQL=Dateadd("d",-7,Now())
	if instr(strDSQL," ")<>0 then strDSQL=left(strDSQL,instr(strDSQL," ")-1)
	strWhere=strWhere & "RecipeDateAdded>'" & strDSQL & "'"
	set oRS=con.execute("Select RecipeID, RecipeName, RecipeDateAdded FROM Recipe WHERE " & strWhere & " AND RecipeReview<>0 ORDER BY RecipeName")
	   if not (oRS.BOF or oRS.EOF) then
			do
				lngMID=oRS("RecipeID")
				strName=oRS("RecipeName")
				strName=replace(strName, "& ", "&amp; ")
				strName=replace(strName, "'", "&apos;")
				strDateAdded=oRS("RecipeDateAdded")
				strPubDate=DateAdd("h",-7,strDateAdded)
				strPubDate=WeekdayName(Weekday(strPubDate),true) & ", " & Generic_TimeFormat(strPubDate,12) & " " & Generic_TimeFormat(strPubDate,13) & " GMT"
				response.write("<item><title>" & strName & "</title>" & chr(10))
				response.write("<description>Added " & strDateAdded & "</description>" & chr(10))
				response.write("<link>http://www.formulazone.com/ViewRecipe.asp?MID=" & lngMID & "</link>")
				response.write("<pubDate>" & strPubDate & "</pubDate>" & chr(10))
				response.write("<guid isPermaLink=""true"">http://www.formulazone.com/ViewRecipe.asp?MID=" & lngMID & "</guid></item>" & chr(10))
				oRS.MoveNext
			loop while not oRS.EOF
	   end if
	   oRS.Close %>
<!--#Include Virtual="ssi/VBSDBClose.inc"-->
<atom:link href="http://www.formulazone.com/rss/newrecipes.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
