本文整理汇总了PHP中bts_select函数的典型用法代码示例。如果您正苦于以下问题:PHP bts_select函数的具体用法?PHP bts_select怎么用?PHP bts_select使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bts_select函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bts_select
<?php
/*
$Id$
osCmax e-Commerce
http://www.oscmax.com
Copyright 2000 - 2011 osCmax
Released under the GNU General Public License
*/
require 'includes/application_top.php';
require bts_select('language', FILENAME_AFFILIATE_BANNERS_BUILD);
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_AFFILIATE_BANNERS_BUILD));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php
echo CHARSET;
?>
">
<base href="<?php
echo ($request_type == 'SSL' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG;
?>
">
<title><?php
示例2: bts_select
<?php
/*
$Id$
osCmax e-Commerce
http://www.oscmax.com
Copyright 2000 - 2011 osCmax
Released under the GNU General Public License
*/
require 'includes/application_top.php';
$navigation->remove_current_page();
require bts_select('language', FILENAME_POPUP_COUPON_HELP);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php
echo CHARSET;
?>
">
<base href="<?php
echo ($request_type == 'SSL' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG;
?>
">
<title><?php
示例3: bts_select
Copyright 2000 - 2011 osCmax
Released under the GNU General Public License
*/
?>
<script src="http://www.google.com/jsapi"></script>
<script>
// Load jQuery
google.load("jquery", "1.4.0");
</script>
<script type="text/javascript" src="includes/javascript/slimbox2/slimbox2.js"></script>
<?php
include DIR_WS_INCLUDES . 'javascript/sbcustom.php';
?>
<link rel="stylesheet" type="text/css" href="<?php
echo bts_select('stylesheet', 'slimbox2.css');
// BTSv1.5
?>
">
<script type="text/javascript">
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
<script type="text/javascript">
// Plus/Minus Code
function TextBox_AddToIntValue(targetId,addToValue)
{var input=document.getElementById(targetId);var textInt=parseInt(input.value);if(isNaN(textInt))
{textInt=0;}
input.value=textInt+addToValue;if(input.value<=1){input.value=1;}}
</script>
示例4: tep_image
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><?php
if ($corner_bottom_left == 'rounded') {
$corner = 'bottom_left.png';
} else {
$corner = 'bottom_left_sq.png';
}
echo tep_image(bts_select('images', 'infobox/' . $corner));
?>
</td>
<td width="100%" height="5" class="infoBoxBottom"></td>
<td><?php
if ($corner_bottom_left == 'rounded') {
$corner = 'bottom_right.png';
} else {
$corner = 'bottom_right_sq.png';
}
echo tep_image(bts_select('images', 'infobox/' . $corner));
?>
</td>
</tr>
</table>
</td>
</tr>
示例5: bts_select
</table>
<!-- Store width controller -->
</div>
<div class="closing_shadow"></div>
<div class="page_footer">
<!-- Page Module Controller -->
<?php
include DIR_WS_MODULES . FILENAME_FOOTER_PAGE_MODULES;
?>
<!-- Page Module Controller -->
</div>
<?php
if (bts_select('javascript', $PHP_SELF)) {
// if a specific javscript file exists for this page it will be loaded
require bts_select('javascript', $PHP_SELF);
} else {
if (isset($javascript) && file_exists(DIR_WS_JAVASCRIPT . basename($javascript))) {
require DIR_WS_JAVASCRIPT . basename($javascript);
}
}
if ($pfile == 'index.php') {
if (isset($LoadSlideshowJS) && $LoadSlideshowJS == true) {
echo '<script type="text/javascript" src="http://www.google.com/jsapi"></script>';
echo '<script type="text/javascript">' . "\n";
echo '// Load jQuery' . "\n";
echo 'google.load("jquery", "1.4.0");' . "\n";
echo '</script>' . "\n";
echo '<script type="text/javascript" src="' . DIR_WS_JAVASCRIPT . 'showcase.2.0.js"></script>';
require DIR_WS_JAVASCRIPT . 'slideshow_init.js.php';
}
示例6: bts_select
echo bts_select('stylesheet', 'jqzoom.css');
// BTSv1.5
?>
">
<link rel="stylesheet" type="text/css" href="<?php
echo bts_select('stylesheet', 'slimbox2.css');
// BTSv1.5
?>
">
<link rel="stylesheet" type="text/css" href="<?php
echo bts_select('stylesheet', 'dynamic_mopics.css');
// BTSv1.5
?>
">
<link rel="stylesheet" type="text/css" href="<?php
echo bts_select('stylesheet', 'scrollable.css');
// BTSv1.5
?>
">
<script language="javascript" type="text/javascript"><!--
function popupImage(url, imageHeight, imageWidth) {
var newImageHeight = (parseInt(imageHeight) + 40);
var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
var xPos = ((screen.width / 2) - (parseInt(imageWidth) / 2));
imageWindow = window.open(url,'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + imageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);
imageWindow.moveTo(xPos, yPos);
imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));
if (window.focus) {
示例7: tep_redirect
// if no shipping method has been selected, redirect the customer to the shipping method selection page
if (!tep_session_is_registered('shipping') || !tep_session_is_registered('sendto')) {
/* One Page Checkout - BEGIN */
// tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
/* One Page Checkout - END */
}
if (tep_not_null(MODULE_PAYMENT_INSTALLED) && !tep_session_is_registered('payment')) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
// avoid hack attempts during the checkout procedure by checking the internal cartID
if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
if ($cart->cartID != $cartID) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}
}
require bts_select('language', FILENAME_CHECKOUT_PROCESS);
/* One Page Checkout - BEGIN */
if (ONEPAGE_CHECKOUT_ENABLED == 'True') {
require 'includes/classes/onepage_checkout.php';
$onePageCheckout = new osC_onePageCheckout();
}
/* One Page Checkout - END */
// load selected payment module
require DIR_WS_CLASSES . 'payment.php';
// LINE ADDED: MOD - CREDIT CLASS Gift Voucher Contribution
if ($credit_covers) {
$payment = 'credit_covers';
}
$payment_modules = new payment($payment);
// load the selected shipping module
require DIR_WS_CLASSES . 'shipping.php';
示例8: tep_image
<?php
}
?>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="14"><?php
echo tep_image(bts_select('images', 'infobox/top_left.png'));
?>
</td>
<td width="100%" height="14" class="infoBoxHeading"> <?php
echo HEADING_SEARCH_CRITERIA;
?>
</td>
<td height="14" nowrap><?php
echo tep_image(bts_select('images', 'infobox/top_right.png'));
?>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
<tr>
<td><?php
echo tep_draw_separator('pixel_trans.gif', '100%', '1');
?>
</td>
</tr>
<tr>
<td class="boxText" align="center"><?php
示例9: contentBoxHeading
function contentBoxHeading($contents)
{
$this->table_width = '100%';
$this->table_cellpadding = '0';
$info_box_contents = array();
$info_box_contents[] = array(array('text' => tep_image(bts_select('images', 'infobox/top_left.png'))), array('params' => 'class="contentBoxHeading" width="100%"', 'text' => $contents[0]['text']), array('text' => tep_image(bts_select('images', 'infobox/top_right.png'))));
$this->tableBox($info_box_contents, true);
}
示例10: tep_redirect
tep_redirect(tep_href_link(FILENAME_DEFAULT));
}
// EOF Separate Pricing Per Customer v4.2.x, Hide products from groups mod
}
// if (isset($_GET['action']))
// include the who's online functions
require DIR_WS_FUNCTIONS . 'whos_online.php';
tep_update_whos_online();
// include the password crypto functions
require DIR_WS_FUNCTIONS . 'password_funcs.php';
// include validation functions (right now only email address)
require DIR_WS_FUNCTIONS . 'validations.php';
// split-page-results
require DIR_WS_CLASSES . 'split_page_results.php';
// infobox
require bts_select('include', 'classes/boxes.php');
// auto activate and expire banners
require DIR_WS_FUNCTIONS . 'banner.php';
tep_activate_banners();
tep_expire_banners();
// auto expire special products
require DIR_WS_FUNCTIONS . 'specials.php';
tep_expire_specials();
// BOF Open Featured Sets
require DIR_WS_FUNCTIONS . 'featured_sets.php';
if (SUSPEND_FEATURED_SETS_EXPIRING == 'false') {
// auto expire featured products
tep_expire_featured();
// auto expire featured manufacturers
tep_expire_featured_manufacturers();
// auto expire featured manufacturer
示例11: bts_select
<!-- right_navigation_eof //-->
</table></td>
<?php
} else {
if (ONEPAGE_SHOW_OSC_COLUMNS == 'true') {
?>
<td class="rightcol" width="<?php
echo BOX_WIDTH_RIGHT;
?>
" valign="top"><table border="0" width="<?php
echo BOX_WIDTH_RIGHT;
?>
" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php
require bts_select('column', 'column_right.php');
// BTSv1.5
?>
<!-- right_navigation_eof //-->
</table></td>
<?php
} elseif (ONEPAGE_SHOW_CUSTOM_COLUMN == 'true') {
?>
<td width="<?php
echo BOX_WIDTH_RIGHT;
?>
" valign="top"><table border="0" width="<?php
echo BOX_WIDTH_RIGHT;
?>
" cellspacing="0" cellpadding="2">
示例12: define
define('FILENAME_AFFILIATE_BANNERS_PRODUCT', 'affiliate_banners_product.php');
define('FILENAME_AFFILIATE_BANNERS_TEXT', 'affiliate_banners_text.php');
define('FILENAME_AFFILIATE_SHOW_BANNER', 'affiliate_show_banner.php');
define('FILENAME_AFFILIATE_REPORTS', 'affiliate_reports.php');
define('FILENAME_AFFILIATE_CLICKS', 'affiliate_clicks.php');
define('FILENAME_AFFILIATE_VALIDPRODUCTS', 'affiliate_validproducts.php');
define('FILENAME_AFFILIATE_PASSWORD', 'affiliate_password.php');
define('FILENAME_AFFILIATE_PASSWORD_FORGOTTEN', 'affiliate_password_forgotten.php');
define('FILENAME_AFFILIATE_SALES', 'affiliate_sales.php');
define('FILENAME_AFFILIATE_SIGNUP', 'affiliate_signup.php');
define('FILENAME_AFFILIATE_SIGNUP_OK', 'affiliate_signup_ok.php');
define('FILENAME_AFFILIATE_PAYMENT', 'affiliate_payment.php');
// include the language translations
//Line Changed Bug Fix #1316 http://bugtrack.oscmax.com/view.php?id=1316
//require(DIR_WS_LANGUAGES . $language . '/affiliate.php');
require bts_select('language', 'affiliate.php');
$affiliate_clientdate = date("Y-m-d H:i:s");
$affiliate_clientbrowser = isset($_SERVER["HTTP_USER_AGENT"]);
$affiliate_clientip = isset($_SERVER["REMOTE_ADDR"]);
$affiliate_clientreferer = isset($_SERVER["HTTP_REFERER"]);
if (!isset($_SESSION['affiliate_ref'])) {
tep_session_register('affiliate_ref');
tep_session_register('affiliate_clickthroughs_id');
if (isset($_GET['ref']) || isset($_POST['ref'])) {
if ($_GET['ref']) {
$affiliate_ref = $_GET['ref'];
}
if ($_POST['ref']) {
$affiliate_ref = $_POST['ref'];
}
if ($_GET['products_id']) {
示例13: header
*/
header("Content-type: application/rss+xml");
require 'includes/application_top.php';
function mysqlTimestamp2unix($input)
{
$y = substr($input, 0, 4);
$m = substr($input, 6, 2);
$d = substr($input, 9, 2);
$h = substr($input, 12, 2);
$min = substr($input, 15, 2);
$s = substr($input, 18, 2);
return mktime($h, $min, $s, $m, $d, $y);
}
//1234567890123456789
//2007-01-01 15:48:04
require bts_select('language', FILENAME_ARTICLE_RSS);
$language_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where languages_id = '" . (int) $languages_id . "'");
$language_code = tep_db_fetch_array($language_query);
$code_lang = $language_code['code'];
echo "<?xml version='1.0' ?><rss version='2.0'><channel>\n\n\n <title>" . NEWS_TITLE . "</title>\n";
echo "<link>" . HTTP_SERVER . "</link>\n";
echo "<description>" . NEWS_DESCRIPTION . "</description>\n";
echo "<language>" . $code_lang . "</language>\n";
echo "<docs>" . HTTP_SERVER . DIR_WS_CATALOG . FILENAME_ARTICLE_RSS . "</docs>\n";
// $news_query_raw = tep_db_query("select nd.name, n.date_created, nd.content, n.id from " . TABLE_NEWS . " n, " . TABLE_NEWS_DESC . " nd where nd.language_id = '" . (int)$languages_id . "' and n.id = nd.news_id order by n.id desc " );
/*$news_query_raw = tep_db_query("select a.articles_id, a.authors_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, ad.articles_description, au.authors_name, td.topics_name, a2t.topics_id from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au using(authors_id), " . TABLE_ARTICLES_DESCRIPTION . " ad, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td using(topics_id) where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_status = '1' and a.articles_id = a2t.articles_id and ad.articles_id = a2t.articles_id and ad.language_id = '" . (int)$languages_id . "' and td.language_id = '" . (int)$languages_id . "' order by a.articles_date_added desc, ad.articles_name limit". NEWS_RSS_ARTICLE);*/
$news_query_raw = tep_db_query("select a.articles_id, a.authors_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, ad.articles_description, au.authors_name, td.topics_name, a2t.topics_id from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au using(authors_id), " . TABLE_ARTICLES_DESCRIPTION . " ad, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td using(topics_id) where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_status = '1' and a.articles_id = a2t.articles_id and ad.articles_id = a2t.articles_id and ad.language_id = '" . (int) $languages_id . "' and td.language_id = '" . (int) $languages_id . "' order by a.articles_date_added desc, ad.articles_name limit " . NEWS_RSS_ARTICLE);
// use language_id for language support.
while ($content_rec = tep_db_fetch_array($news_query_raw)) {
echo "<item>";
$headline = $content_rec['articles_name'];
示例14: tep_cache_manufacturers_box
function tep_cache_manufacturers_box($auto_expire = false, $refresh = false)
{
global $_GET, $language;
$cache_output = '';
$manufacturers_id = '';
if (isset($_GET['manufacturers_id']) && is_numeric($_GET['manufacturers_id'])) {
$manufacturers_id = $_GET['manufacturers_id'];
}
if ($refresh == true || !read_cache($cache_output, 'manufacturers_box-' . str_replace('/', '-', bts_select('boxes', $box_base_name)) . '-' . $language . '.cache' . $manufacturers_id, $auto_expire)) {
ob_start();
include DIR_WS_BOXES . 'manufacturers.php';
$cache_output = ob_get_contents();
ob_end_clean();
write_cache($cache_output, 'manufacturers_box-' . str_replace('/', '-', bts_select('boxes', $box_base_name)) . '-' . $language . '.cache' . $manufacturers_id);
}
return $cache_output;
}
示例15: bts_select
<?php
/*
$Id$
osCmax e-Commerce
http://www.oscmax.com
Copyright 2000 - 2011 osCmax
Released under the GNU General Public License
*/
// Most of this file is changed or moved to BTS - Basic Template System - format.
// For adding in contribution or modification - parts of this file has been moved to: catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).
// catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change).
// (Sub 'fallback' with your current template to see if there is a template specific file.)
require 'includes/application_top.php';
$navigation->remove_current_page();
require bts_select('language', FILENAME_ADVANCED_SEARCH);
//MODIFIED -MOVED to BTS
$content = CONTENT_POPUP_SEARCH_HELP;
$body_attributes = ' marginwidth="10" marginheight="10" topmargin="10" bottommargin="10" leftmargin="10" rightmargin="10"';
require DIR_WS_TEMPLATES . TEMPLATENAME_POPUP;
require 'includes/application_bottom.php';