"DS_Session")); $contemporary=ContemporaryFlag(); $CurrentRecord=ReadCurrentRecord("userfiles","userfile",basename($PHP_SELF)); $DSMETAKEYWORDS=$CurrentRecord->metakeywords; $DSMETADESCRIPTION=$CurrentRecord->metadescription; include("newsletter.inc"); $q = "SELECT volume_num,publish_date,title,newsletter_no FROM newsletter WHERE active='Y' ORDER BY volume_no DESC"; $r = DoQuery($q); while ($row = mysql_fetch_object($r)) { $listing[]=$row; } if (! $_REQUEST[newsletter_no]) { $q = "SELECT * FROM newsletter WHERE active='Y' ORDER BY volume_no DESC LIMIT 1"; $r = DoQuery($q); while ($row = mysql_fetch_object($r)) { $Newsletter=$row; } } else { $Newsletter=ReadCurrentRecord("newsletter","newsletter_no",$_REQUEST[newsletter_no]); } DSBeginPage("Newsletter Archives",0,1,1); #$smarty->debugging=true; $smarty->assign("Newsletter",$Newsletter); $smarty->assign("listing",$listing); if (InstantEdit()) { $smarty->assign("instantedit","newsletter_no>"); } DSEndPage(0,0,"newsletterarchives.tpl"); ?>