コード例 #1
0
 function execute()
 {
     global $oscTemplate;
     $data = '';
     $execute = false;
     // select banners_group to be used
     $new_banner_search = tep_build_banners_group(MODULE_BOXES_BANNER_BOX_DISPLAY_GROUP);
     $sql = "select banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search;
     // " order by banners_sort_order";
     $banners_query = tep_db_query($sql);
     // if no active banner in the specified banner group then the box will not show
     $banner_cnt = 0;
     $data1 .= '<ul class="row">';
     while ($banners_all = tep_db_fetch_array($banners_query)) {
         $banner_cnt++;
         $data1 .= '<li class="col-xs-12">' . tep_display_banner('static', $banners_all['banners_id']) . '</li>';
         $execute = true;
     }
     $data1 .= '</ul>';
     $data .= '<div class="banner-box">' . $data1 . '</div>';
     if ($execute) {
         $oscTemplate->addBlock($data, $this->group);
     }
 }
コード例 #2
0
ファイル: loader.php プロジェクト: rabbit-source/setbook.ru
        tep_exit();
        break;
    case 'check_ssl':
        if (isset($HTTP_GET_VARS['ssl']) && ($HTTP_GET_VARS['ssl'] == 'on' || $HTTP_GET_VARS['ssl'] == 'off')) {
            $enable_ssl = $HTTP_GET_VARS['ssl'];
            if (!tep_session_is_registered('enable_ssl')) {
                tep_session_register('enable_ssl');
            }
            //		echo 'var ssl_enabled = "' . $enable_ssl . '";' . "\n";
        }
        tep_exit();
        break;
    case 'rotate_banner':
        $banner_group = tep_sanitize_string($HTTP_GET_VARS['group']);
        if ($banner = tep_banner_exists($banner_group, $HTTP_GET_VARS['shown'])) {
            echo tep_display_banner($banner);
            ?>
<script language="javascript" type="text/javascript"><!--
  var shownBanner = <?php 
            echo $banner['banners_id'];
            ?>
;
//--></script>
<?php 
        }
        tep_exit();
        break;
    case 'load_tree':
        $product_type_id = (int) $HTTP_GET_VARS['type'];
        if ((int) $HTTP_GET_VARS['type'] > 0) {
            $products_types_query = tep_db_query("select products_types_id, products_types_default_status, products_last_modified from " . TABLE_PRODUCTS_TYPES . " where products_types_id = '" . (int) $HTTP_GET_VARS['type'] . "'");
コード例 #3
0
ファイル: footer.php プロジェクト: jobw0110/lascolinasobgyn
?>
&nbsp;&nbsp;</td>
    <td align="right" class="footer">&nbsp;&nbsp;<?php 
echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted;
?>
&nbsp;&nbsp;</td>
  </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" class="smallText"><?php 
echo FOOTER_TEXT_BODY;
?>
</td>
  </tr>
</table>
<?php 
if ($banner = tep_banner_exists('dynamic', '468x50')) {
    ?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><?php 
    echo tep_display_banner('static', $banner);
    ?>
</td>
  </tr>
</table>
<?php 
}