<?php

/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_banner_box.php 2982 2006-02-07 07:56:41Z birdbrain $
 */
$content = '';
// if no active banner in the specified banner group then the box will not show
if ($banner = zen_banner_exists('dynamic', $banner_box_group)) {
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    $content .= zen_display_banner('static', $banner);
    $content .= '</div>';
}
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_banner_box_all.php 2982 2006-02-07 07:56:41Z birdbrain $
 */
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
// select banners_group to be used
$new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET_ALL);
// secure pages
switch ($request_type) {
    case 'SSL':
        $my_banner_filter = " and banners_on_ssl= " . "1 ";
        break;
    case 'NONSSL':
        $my_banner_filter = '';
        break;
}
$sql = "select banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search . $my_banner_filter . " order by banners_sort_order";
$banners_all = $db->Execute($sql);
// if no active banner in the specified banner group then the box will not show
$banner_cnt = 0;
while (!$banners_all->EOF) {
    $banner_cnt++;
    $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET_ALL);
    $content .= zen_display_banner('static', $banners_all->fields['banners_id']);
    // add spacing between banners
    if ($banner_cnt < $banners_all->RecordCount()) {
        $content .= '';
    }
    $banners_all->MoveNext();
}
$content .= '</div>';
    $flag_disable_footer = true;
  }
  require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>

</div>
<!--bof- parse time display -->
<?php
  if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
  }
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
  if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>
<!--eof- banner #6 display -->
<!--bof- easy embed template bottom-->
<?php echo $sangEmbed->bottom() ?>
<!--bof- easy embed template  bottom-->
</body>
Example #4
0
<!--bof-ip address display -->
<?php 
    if (SHOW_FOOTER_IP == '1') {
        ?>
<div id="siteinfoIP"><?php 
        echo TEXT_YOUR_IP_ADDRESS . '  ' . $_SERVER['REMOTE_ADDR'];
        ?>
</div>
<?php 
    }
    ?>
<!--eof-ip address display -->

<!--bof-banner #5 display -->
<?php 
    if (SHOW_BANNERS_GROUP_SET5 != '' && ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5))) {
        if ($banner->RecordCount() > 0) {
            ?>
<div id="bannerFive" class="banners"><?php 
            echo zen_display_banner('static', $banner);
            ?>
</div>
<?php 
        }
    }
    ?>
<!--eof-banner #5 display -->

<!--bof- site copyright display -->
<div id="siteinfoLegal" class="legalCopyright"><?php 
    echo FOOTER_TEXT_BODY;
Example #5
0
<?php

//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | license@zen-cart.com so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id$
//
require_once DIR_FS_INCLUDES . 'functions/banner.php';
if ($banner = zen_banner_exists('dynamic', '468x50')) {
    if ($banner->RecordCount() > 0) {
        print '<div id="banner">' . zen_display_banner('static', $banner) . '</div>';
    }
}