E-Books
GetRssObject()) { $totalrows = count($oRssObject->aItems); $limitvalue = $page * $CBengine[’store_limit’] - ($CBengine[’store_limit’]); $endrow = min(($page*$CBengine[’store_limit’]),$totalrows); $startrow = ($page*$CBengine[’store_limit’])-($CBengine[’store_limit’]); $oRssObject->aItems = array_slice($oRssObject->aItems, $startrow, $CBengine[’store_limit’]); $bulletStart = $startrow+1; // FOR DEBUGGING if ($CBengine[’store_debug’] > 0) { if ($oRss->IsCached()) { echo ‘This feed is cached.
‘; } if ($oRss->IsStaleCache()) { echo ‘Unable to parse or retrieve feed.’; } } $page_label = ‘’; if (isset($_GET[”cat”])) { $catname = trim($oRssObject->oChannel->sTitle); $page_title = ‘’ . $catname . ‘ products’; $page_keywords = $catname; $page_description = $catname; $backlink1 = ‘Main » ‘; $backlink2 = ‘‘ . $catname . ‘‘; $page_label = ”
“.$backlink1.’ ‘.$backlink2 .”
“; } // INCLUDE HEADER include(”store_header.php”); print (’
“.”\n”); } }else{ // No results so load categories print (’Your search did not return any products.
‘); if (file_exists($CBengine[’store_cats’])) { $string = get_include_contents($CBengine[’store_cats’]); $string = str_replace(’storefront.php’,$CBengine[’store_home’],$string); echo($string); } } // RENDER STORE ITEMS print (’
- ‘.”\n”); foreach ($oRssObject->aItems as $oItem) { // $hoplink = trim($oItem->sLink).”&u=”. $CBengine[’user’].”&cbid=”.$CBengine[’cbid’]; $hoplink = $CBengine[’store_home’].”?hopid=”.$oItem->shopid; $newtext = str_replace(’,', ‘, ‘, $oItem->sDescription); print (’
- ‘.”\n”); print (’‘.trim($oItem->sTitle).’‘.”\n”); print (’‘.trim($newtext).’‘.”\n”); print (”
“.”\n”); } print (”
“.”\n”); // RENDER PAGED NAV if ($totalrows > $CBengine[’store_limit’]) { $numofpages = ceil($totalrows/$CBengine[’store_limit’]); $midpos = ceil($CBengine[’store_paged’]/2); if($page <= $midpos){ $startpage = 1; } else if ($page >= $numofpages-($midpos-1)){ $startpage = max($numofpages-($CBengine[’store_paged’]-1),1); }else{ $startpage = $page-($midpos-1); } $endpage = min($startpage+($CBengine[’store_paged’]-1),$numofpages); echo ‘
‘; } print (”
“); // INCLUDE FOOTER include(”store_footer.php”); }else{ include(”store_header.php”); print (’
‘); include(”store_footer.php”); } } else { // RENDER CATEGORIES include(”store_header.php”); print (’
“); include(”store_footer.php”); }
Technorati Tags: No Tags
Related Tags: No Tags
Possible Related Posts























