Ejemplo n.º 1
0
 /**
  * Fetch all categories
  *
  * @return boolean on failure
  * @return string on success
  */
 public function fetchAllCategories()
 {
     global $gdbObj;
     $sql = "SELECT * FROM " . self::$table_cat;
     $resut = $gdbObj->query($sql);
     $existCount = $gdbObj->num_rows($resut);
     if ($existCount < 1) {
         return false;
     } else {
         $counter = 1;
         while ($row = mysql_fetch_array($resut)) {
             $id = $row[0];
             $name = $row[1];
             $results .= formatCategory($id, $name);
             $counter++;
         }
         return $results;
     }
 }
Ejemplo n.º 2
0
      <!--Ends listing_share_bar-->
      <div class="grid_17" id="listing_general">
        <div class="grid_10">
          <div id="title">
            <h1><?php 
echo $title;
?>
</h1>
          </div>
          <div id="category">
            <ul>
              <?php 
echo formatSubCategory($mainCatId, $mainCategory, $subCatId, $subCategory);
?>
 <?php 
echo formatCategory($mainCatId, $mainCategory);
?>
            </ul>
          </div>
          <div id="rating" >
            <div class="srtgs" id="rt_listing_<?php 
echo $lid;
?>
" <?php 
if ($package == 'b' || $package == 's') {
    ?>
 style="display:none" <?php 
}
?>
></div>
          </div>