Example #1
0
 function display_filter_box()
 {
     extract(tep_load('defs'));
     $cStrings =& $this->strings;
     $result = false;
     $cSuper = new super_front();
     $zones_array = $cSuper->get_parent_zones($cDefs->abstract_id);
     if (count($zones_array)) {
         $total_array = array();
         for ($i = 0, $j = count($zones_array); $i < $j; $i++) {
             $zone_id = $zones_array[$i]['abstract_zone_id'];
             $text_data = $cSuper->get_zone_data($zone_id);
             $total_array[$i] = array('id' => $zone_id, 'name' => $text_data['abstract_zone_name'], 'href' => tep_href_link(FILENAME_COLLECTIONS, 'abz_id=' . $zone_id), 'text' => tep_truncate_string($text_data['abstract_zone_desc']));
         }
         require $this->box_collection;
         $result = true;
     }
     return $result;
 }
Example #2
0
if (!$current_abstract_id) {
    tep_redirect();
}
$cAbstract = new abstract_front();
if (!$cAbstract->is_zone_type($current_abstract_id, 'super_zones')) {
    tep_redirect();
}
$cSuper = new super_front();
$abstract_array = $cSuper->get_zone_data($current_abstract_id);
$breadcrumb->add($abstract_array['abstract_zone_name'], tep_href_link($g_script, 'abz_id=' . $current_abstract_id));
require 'includes/objects/html_start_sub1.php';
require 'includes/objects/html_start_sub2.php';
$heading_row = true;
require 'includes/objects/html_body_header.php';
$cSuper = new super_front();
$abstract_array = $cSuper->get_zone_data($current_abstract_id);
?>
        <div><h1><?php 
echo $abstract_array['abstract_zone_name'];
?>
</h1></div>
        <div><?php 
echo $abstract_array['abstract_zone_desc'];
?>
</div>
<?php 
$zones_array = $cSuper->get_entries($current_abstract_id);
// Setup the best fit arrays
$length_array = array();
for ($i = 0, $j = DEFAULT_COLUMN_SUPER_SPLIT; $i < $j; $i++) {
    $length_array[] = 0;