Пример #1
0
<?php 
                $boxContent = ob_get_clean();
                $boxHeading = BOARDS_NEW_APP_NAVBAR_TITLE;
                include DIR_WS_TEMPLATES_BOXES . 'box1.php';
                ?>
	</div>
	  <!--div class="row_product_description"><?php 
                echo $board_info['boards_description'] == strip_tags($board_info['boards_description']) ? nl2br($board_info['boards_description']) : $board_info['boards_description'];
                ?>
</div//-->
	</div>
<?php 
                if (sizeof($board_other_images) > 0) {
                    $boxID = '';
                    $boxHeading = BOARDS_ENTRY_OTHER_IMAGES;
                    $boxContent = tep_show_images_carousel($board_other_images, 'board_images');
                    include DIR_WS_TEMPLATES_BOXES . 'box1.php';
                }
            } else {
                echo '<p>' . BOARDS_ERROR_NO_BOARD_FOUND . '</p>';
            }
            ?>
	<br /><div class="buttons">
	  <div style="float: left;"><?php 
            echo '<a href="' . tep_href_link(FILENAME_BOARDS, tep_get_all_get_params(array('boards_id')) . 'tPath=' . $boards_types_id) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
            ?>
</div>
	</div>
<?php 
        } else {
            if ($boards_types_id > 0) {
Пример #2
0
<?php

if (basename(SCRIPT_FILENAME) == FILENAME_DEFAULT && empty($sPath_array) && ($iName == 'index' || $iName == '')) {
    $from_abroad_page_check_query = tep_db_query("select count(*) as total from " . TABLE_SECTIONS . " where sections_path = 'from_abroad' and sections_status = '1'");
    $from_abroad_page_check = tep_db_fetch_array($from_abroad_page_check_query);
    if ($from_abroad_page_check['total'] > 0) {
        $images = array();
        $images[] = array('image_small' => '/images/Image/from_abroad/auto.jpg', 'image_title' => 'Автомобили и запчасти', 'image_link' => '/from_abroad/shops/auto.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/children.jpg', 'image_title' => 'Детские товары', 'image_link' => '/from_abroad/shops/children.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/furniture.jpg', 'image_title' => 'Все для дома', 'image_link' => '/from_abroad/shops/furniture.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/tools.jpg', 'image_title' => 'Инструменты и промышленные товары', 'image_link' => '/from_abroad/shops/tools.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/cosmetics.jpg', 'image_title' => 'Косметика и парфюмерия', 'image_link' => '/from_abroad/shops/cosmetics.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/musical.jpg', 'image_title' => 'Музыкальные инструменты', 'image_link' => '/from_abroad/shops/musical.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/haberdashery.jpg', 'image_title' => 'Одежда, обувь, галантерея', 'image_link' => '/from_abroad/shops/haberdashery.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/sport.jpg', 'image_title' => 'Спортивные товары', 'image_link' => '/from_abroad/shops/sport.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/jewelry_watches.jpg', 'image_title' => 'Украшения и часы', 'image_link' => '/from_abroad/shops/jewelry_watches.html');
        $images[] = array('image_small' => '/images/Image/from_abroad/electronics.jpg', 'image_title' => 'Электроника', 'image_link' => '/from_abroad/shops/electronics.html');
        $box_info_query = tep_db_query("select blocks_id, blocks_name from " . TABLE_BLOCKS . " where blocks_filename = '" . tep_db_input(basename(__FILE__)) . "' and language_id = '" . (int) $languages_id . "'");
        $box_info = tep_db_fetch_array($box_info_query);
        $boxHeading = '<a href="' . tep_href_link(DIR_WS_CATALOG . 'from_abroad/') . '">' . $box_info['blocks_name'] . '</a>';
        $carousel_id = 'from_abroad_carousel';
        $boxID = 'block_' . $carousel_id;
        $carousel_function_name = $carousel_id . '_onload';
        $boxContent = tep_show_images_carousel($images, $carousel_id);
        include DIR_WS_TEMPLATES_BOXES . 'box1.php';
    }
}
Пример #3
0
<?php

if (basename(SCRIPT_FILENAME) == FILENAME_PRODUCT_INFO) {
    $products_id = (int) $HTTP_GET_VARS['products_id'];
    $other_images_query = tep_db_query("select products_images_image from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int) $products_id . "' and language_id = '" . (int) $languages_id . "' order by products_images_id");
    if (tep_db_num_rows($other_images_query) > 0) {
        $box_info_query = tep_db_query("select blocks_name from " . TABLE_BLOCKS . " where blocks_filename = '" . tep_db_input(basename(__FILE__)) . "' and language_id = '" . (int) $languages_id . "'");
        $box_info = tep_db_fetch_array($box_info_query);
        $author_info_query = tep_db_query("select authors_id from " . TABLE_PRODUCTS . " where products_id = '" . (int) $products_id . "'");
        $author_info = tep_db_fetch_array($author_info_query);
        $block_authors_name = tep_get_authors_info($author_info['authors_id'], DEFAULT_LANGUAGE_ID);
        $block_product_name = (tep_not_null($block_authors_name) ? $block_authors_name . ': ' : '') . tep_get_products_info($products_id, DEFAULT_LANGUAGE_ID);
        $boxHeading = sprintf($box_info['blocks_name'], $block_product_name);
        $pieces = 0;
        $products_images = array();
        $products_images_dir = DIR_WS_IMAGES . 'prints/' . substr(sprintf("%06d", $products_id), 0, -4) . '/' . sprintf("%06d", $products_id) . '/';
        while ($other_images = tep_db_fetch_array($other_images_query)) {
            $pieces++;
            $image_title = str_replace("'", '&#039;', '‘рагмент ' . $pieces);
            $products_images[] = array('image_small' => $products_images_dir . 'thumbs/' . $other_images['products_images_image'], 'image_link' => $products_images_dir . $other_images['products_images_image'], 'image_title' => $image_title);
        }
        $boxContent = tep_show_images_carousel($products_images, 'pic' . $product_info['products_id']);
        if (tep_not_null($boxContent)) {
            include DIR_WS_TEMPLATES_BOXES . 'box1.php';
        }
    }
}