<?php
/* --------------------------------------------------------------
upcoming_products.php 2008-08-10 gambio
Gambio OHG
http://www.gambio.de
Copyright (c) 2008 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(upcoming_products.php,v 1.23 2003/02/12); www.oscommerce.com
(c) 2003 nextcommerce (upcoming_products.php,v 1.7 2003/08/22); www.nextcommerce.org
(c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: upcoming_products.php 1243 2005-09-25 09:33:02Z mz $)
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
if (MAX_DISPLAY_UPCOMING_PRODUCTS != '0') {
$module_smarty = new Smarty;
$module_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
// include needed functions
require_once (DIR_FS_INC.'xtc_date_short.inc.php');
$module_content = array ();
//fsk18 lock
$fsk_lock = '';
if ($_SESSION['customers_status']['customers_fsk18_display'] == '0')
$fsk_lock = ' and p.products_fsk18!=1';
if (GROUP_CHECK == 'true')
$group_check = "and p.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 ";
$expected_query = xtDBquery("select p.products_id,
pd.products_name,
products_date_available as date_expected from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd
where to_days(products_date_available) >= to_days(now())
and p.products_id = pd.products_id
".$group_check."
".$fsk_lock."
and pd.language_id = '".(int) $_SESSION['languages_id']."'
order by ".EXPECTED_PRODUCTS_FIELD." ".EXPECTED_PRODUCTS_SORT."
limit ".MAX_DISPLAY_UPCOMING_PRODUCTS);
if (xtc_db_num_rows($expected_query,true) > 0) {
$row = 0;
while ($expected = xtc_db_fetch_array($expected_query,true)) {
$row ++;
if($gmSEOBoost->boost_products) {
$gm_product_link = xtc_href_link($gmSEOBoost->get_boosted_product_url($expected['products_id'], $expected['products_name']) );
} else {
$gm_product_link = xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($expected['products_id'], $expected['products_name']));
}
$module_content[] = array ('PRODUCTS_LINK' => $gm_product_link, 'PRODUCTS_NAME' => $expected['products_name'], 'PRODUCTS_DATE' => xtc_date_short($expected['date_expected']));
}
$module_smarty->assign('language', $_SESSION['language']);
$module_smarty->assign('module_content', $module_content);
// set cache ID
$module_smarty->caching = 0;
$module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/upcoming_products.html');
$default_smarty->assign('MODULE_upcoming_products', $module);
}
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| klarna/ | 2013-11-12 21:06 | 0 B | 76129f60960:kunden | dxwrx-rx-r | |
| mediafinanz/ | 2013-11-12 21:07 | 13.58 KB | 76129f60960:kunden | dxwrx-rx-r | |
| order_total/ | 2013-11-12 21:06 | 170.74 KB | 76129f60960:kunden | dxwrx-rx-r | |
| payment/ | 2013-11-12 21:07 | 565.09 KB | 76129f60960:kunden | dxwrx-rx-r | |
| shipping/ | 2013-11-12 21:06 | 274.9 KB | 76129f60960:kunden | dxwrx-rx-r | |
| yatego/ | 2013-11-12 21:06 | 27.43 KB | 76129f60960:kunden | dxwrx-rx-r | |
| address_book_details.php | 2013-11-12 21:05 | 12.16 KB | 76129f60960:kunden | -xw-x----- | |
| also_purchased_products.php | 2013-11-12 21:05 | 109 B | 76129f60960:kunden | -xw-x----- | |
| checkout_new_address.php | 2013-11-12 21:05 | 12.94 KB | 76129f60960:kunden | -xw-x----- | |
| cross_selling.php | 2013-11-12 21:05 | 112 B | 76129f60960:kunden | -xw-x----- | |
| default.php | 2013-11-12 21:05 | 26.54 KB | 76129f60960:kunden | -xw-x----- | |
| downloads.php | 2013-11-12 21:05 | 4.36 KB | 76129f60960:kunden | -xw-x----- | |
| error_handler.php | 2013-11-12 21:05 | 1.87 KB | 76129f60960:kunden | -xw-x----- | |
| gift_cart.php | 2013-11-12 21:05 | 105 B | 76129f60960:kunden | -xw-x----- | |
| graduated_prices.php | 2013-11-12 21:05 | 111 B | 76129f60960:kunden | -xw-x----- | |
| metatags.php | 2013-11-12 21:05 | 4.49 KB | 76129f60960:kunden | -xw-x----- | |
| new_products.php | 2013-11-12 21:05 | 5.91 KB | 76129f60960:kunden | -xw-x----- | |
| order_details_cart.php | 2013-11-12 21:05 | 113 B | 76129f60960:kunden | -xw-x----- | |
| order_details_wishlist.php | 2013-11-12 21:05 | 113 B | 76129f60960:kunden | -xw-x----- | |
| product_attributes.php | 2013-11-12 21:05 | 113 B | 76129f60960:kunden | -xw-x----- | |
| product_info.php | 2013-11-12 21:05 | 107 B | 76129f60960:kunden | -xw-x----- | |
| product_listing.php | 2013-11-12 21:05 | 13.83 KB | 76129f60960:kunden | -xw-x----- | |
| product_navigator.php | 2013-11-12 21:05 | 112 B | 76129f60960:kunden | -xw-x----- | |
| product_reviews.php | 2013-11-12 21:05 | 110 B | 76129f60960:kunden | -xw-x----- | |
| products_media.php | 2013-11-12 21:05 | 108 B | 76129f60960:kunden | -xw-x----- | |
| products_new_main.php | 2013-11-12 21:05 | 10.21 KB | 76129f60960:kunden | -xw-x----- | |
| reviews.php | 2013-11-12 21:05 | 2.28 KB | 76129f60960:kunden | -xw-x----- | |
| specials_main.php | 2013-11-12 21:05 | 4.63 KB | 76129f60960:kunden | -xw-x----- | |
| upcoming_products.php | 2013-11-12 21:05 | 2.97 KB | 76129f60960:kunden | -xw-x----- | |