"DS_Session")); $contemporary=ContemporaryFlag(); if($contemporary == 'Y') { DSBeginPage("Recent Additions",1,1); } else { DSBeginPage("Recent Acquisitions",1,1); } #todo set contemporary $sql=" SELECT *,image.price as price1 FROM image,artist,code WHERE image.artist_no = artist.artist_no AND image.medium = code.code AND code.category = 'medium' AND artist.contemporary IN('$contemporary') and image.isactive='Y' AND image.isavailable='Y' AND artist.isactive='Y' ORDER BY image.dte_added DESC LIMIT 0,20"; $recentacqs=ImageArray1($sql); $smarty->assign("recentacqs",$recentacqs); DSEndPage(0,0,"recentacqs.tpl"); ?>