E-Books

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”); if($totalrows > 0){ print ($page_label.”\n”); if (isset($_GET[”kw”])) { $backlink = ‘Main » ‘; print (’

‘.$backlink.’ ‘.$totalrows.” search results for “.$_GET[”kw”].”

“.”\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 (’

  1. ‘.”\n”); print (’‘.trim($oItem->sTitle).’‘.”\n”); print (’‘.trim($newtext).’‘.”\n”); print (”
  2. “.”\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 ‘

‘; if($page != 1){ $pageprev = $page-1; echo(”Prev “); } for($i = $startpage; $i <= $endpage; $i++){ if($i == $page){ echo("$i “); }else{ echo(”$i “); } } if(($totalrows - ($CBengine[’store_limit’] * $page)) > 0){ $pagenext = $page+1; echo(”Next“); } echo ‘

‘; } print (”

“); // INCLUDE FOOTER include(”store_footer.php”); }else{ include(”store_header.php”); print (’

Your search did not return any products.

‘); include(”store_footer.php”); } } else { // RENDER CATEGORIES include(”store_header.php”); print (’

‘.”\n”); if (file_exists($CBengine[’store_cats’])) { $string = get_include_contents($CBengine[’store_cats’]); $string = str_replace(’storefront.php’,$CBengine[’store_home’],$string); echo($string); } else { // do nothing } print (”

“); include(”store_footer.php”); }

Get Social, Bookmark Us!!:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • del.icio.us
  • digg
  • Fark
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • Smarking
  • Spurl

Posted in Uncategorized | Trackback | del.icio.us | Top Of Page



Site Search Tags: No Tags
Technorati Tags: No Tags
Related Tags: No Tags


Possible Related Posts

Leave a Reply