Exemplo n.º 1
0
 function image_zones_mod($zone_id, $heding = true)
 {
     $this->zone_id = $zone_id;
     $cImage = new image_front();
     $this->main_array = $cImage->get_zone_data($zone_id);
     $this->zones_array = $cImage->get_entries($zone_id, true, false);
 }
Exemplo n.º 2
0
 function get_image_css_tree($id, &$max_drop, &$max_width)
 {
     $sub_array = array();
     $count = $swidth = 0;
     $cImage = new image_front();
     $entries_array = $cImage->get_entries($id, true, false);
     if (!count($entries_array)) {
         return;
     }
     foreach ($entries_array as $key => $value) {
         $value['image_alt_title'] = strtoupper($value['image_alt_title']);
         $tmp_value = str_replace(' ', '', $value['image_alt_title']);
         $awidth = tep_string_length($tmp_value) * 9 + 16;
         $value['image_alt_title'] = htmlspecialchars(stripslashes($value['image_alt_title']));
         if ($awidth > $max_width) {
             $string_length = (int) ($max_width / 9);
             $value['image_alt_title'] = substr($value['image_alt_title'], 0, $string_length) . '...';
             $awidth = $max_width;
         }
         if ($awidth > $swidth) {
             $swidth = $awidth;
         }
         $sub_array[] = '<div class="css_sub hideflow"[<<<MAX_WIDTH>>>]><a href="' . tep_href_image_link($value['image_file']) . '" target="_blank">' . $value['image_alt_title'] . '</a></div>' . "\n";
         $count++;
         if ($count > $max_drop) {
             $max_drop = $count;
             //$max_width = $swidth;
             //return $sub_array;
         }
     }
     $max_width = $swidth;
     return $sub_array;
 }
Exemplo n.º 3
0
require 'includes/objects/html_start_sub2.php';
$heading_row = true;
require 'includes/objects/html_body_header.php';
$cImage = new image_front();
$abstract_array = $cImage->get_zone_data($current_abstract_id);
?>
            <div><h1><?php 
echo $abstract_array['abstract_zone_name'];
?>
</h1></div>
            <div class="desc"><?php 
echo $abstract_array['abstract_zone_desc'];
?>
</div>
<?php 
$cImage = new image_front();
$cText = new gtext_front();
$listing_sql = $cImage->get_entries($current_abstract_id, true, true, true);
$listing_split = new splitPageResults($listing_sql, IMAGE_PAGE_SPLIT);
if ($listing_split->number_of_rows > 0) {
    $split_params = 'abz_id=' . $current_abstract_id;
    $zones_array = $g_db->query_to_array($listing_split->sql_query);
    if ($listing_split->number_of_rows > IMAGE_PAGE_SPLIT && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {
        ?>
          <div class="splitLine bspacer">
            <div class="floater"><?php 
        echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_ENTRIES);
        ?>
</div>
            <div class="floatend"><?php 
        echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, $split_params);