'; $r = new SelectQuery; $r->setSelects("*"); $r->setTables("recipes"); $r->setOrder("entry_dt DESC"); $r->setWhere("active_flg = 1"); $r->setWhere("recipe_flg = 1"); $query = $r->buildQuery(); $p = new Paginate; $p->setQuery($query); $p->setPerPage(10); $p->getNav($paginate); $navLinks = $p->getNavLinks(); $queryNew = $p->getQueryNew(); $totalRows = $p->getTotalRows(); $totalPages = $p->getTotalPages(); $d = dbSelect($queryNew); if($d){ foreach($d as $v){ echo "
"; echo ''; echo ''; echo '
'; if(file_exists(IMG_PATH . $v['thumb_img_fn']) && $v['thumb_img_fn'] != ""){ echo ""; } echo ''; echo ""; echo $v['teaser']; echo '
'; echo "
"; } } echo '
'; $text = ob_get_contents(); ob_end_clean(); $c = new contentBox; $c->set('text', $text); $c->set('left', $left); $c->set('topCode', ""); $c->printGo(); $leftCol = ob_get_contents(); ob_end_clean(); /***************** LEFT SIDEBAR END */ /***************** MAIN */ ob_start(); include 'tpl_rightCol.php'; $mainCol = ob_get_contents(); ob_end_clean(); /***************** MAIN END */ $layout = new Layout; $layout->setParam("leftCol", $leftCol); $layout->setParam("mainCol", $mainCol); $layout->twoCol(); ?>