<?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>';
}
예제 #2
0
<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;
    ?>
</div>
<!--eof- site copyright display -->
예제 #3
0
 * @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>';
예제 #4
0
// | 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$
//
global $gBitDb, $gCommerceSystem, $gBitProduct;
require_once BITCOMMERCE_PKG_PATH . 'includes/bitcommerce_start_inc.php';
// INSERT INTO configuration (`configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `use_function`, `set_function`, `date_added`) VALUES ('Banner Display Group - Side Box banner_box_all', 'SHOW_BANNERS_GROUP_SET_ALL', 'BannersAll', 'The Banner Display Group may only be from one (1) Banner Group for the Banner All sidebox<br /><br />Default Group is BannersAll<br /><br />What Banner Group do you want to use in the Side Box - banner_box_all?<br />Leave blank for none', '19', '72', '', '', 'NOW');
// ALTER TABLE `banners` ADD `banners_sort_order` INT( 11 ) DEFAULT '0' NOT NULL;
$banner_box_group = SHOW_BANNERS_GROUP_SET_ALL;
//	require($template->get_template_dir('tpl_banner_box_all.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box_all.php');
$new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET_ALL);
// secure pages
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
    $my_banner_filter = " and banners_on_ssl= " . "'1' ";
} else {
    $my_banner_filter = '';
}
$sql = "select banners_id from " . TABLE_BANNERS . " where status = '1' " . $new_banner_search . $my_banner_filter . " order by banners_sort_order";
if ($rs = $gBitDb->Execute($sql)) {
    $sideboxBannersAll = array();
    // if no active banner in the specified banner group then the box will not show
    // uses banners in the defined group $banner_box_group
    while ($banners_all = $rs->fetchRow()) {
        $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET_ALL);
        array_push($sideboxBannersAll, zen_display_banner('static', $banners_all['banners_id']));
    }
}
if (empty($moduleTitle)) {
    $_template->tpl_vars['moduleTitle'] = new Smarty_variable('Sponsors');
}
    $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>
예제 #6
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>';
    }
}
예제 #7
0
//
// +----------------------------------------------------------------------+
// |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$
//
global $gBitDb, $gCommerceSystem, $gBitProduct, $banner;
require_once BITCOMMERCE_PKG_PATH . 'includes/bitcommerce_start_inc.php';
require_once DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'banner.php';
require_once DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'html_output.php';
$banner_box_group = SHOW_BANNERS_GROUP_SET7;
if ($bannerRs = zen_banner_exists('dynamic', $banner_box_group)) {
    $_template->tpl_vars['bannerContent'] = new Smarty_variable(zen_display_banner('static', $bannerRs));
}
if (empty($moduleTitle)) {
    $_template->tpl_vars['moduleTitle'] = new Smarty_variable('Sponsors');
}
예제 #8
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$
//
global $gBitDb, $gCommerceSystem, $gBitProduct;
require_once BITCOMMERCE_PKG_PATH . 'includes/bitcommerce_start_inc.php';
$banner_box_group = SHOW_BANNERS_GROUP_SET8;
if ($bannerRs = zen_banner_exists('dynamic', $banner_box_group)) {
    $_template->tpl_vars['sideboxBannerBox2'] = new Smarty_variable(zen_display_banner('static', $bannerRs));
}
if (empty($moduleTitle)) {
    $_template->tpl_vars['moduleTitle'] = new Smarty_variable('Sponsors');
}