<?php
/* --------------------------------------------------------------
attribute_images.php 2009-12-03 mb
Gambio GmbH
http://www.gambio.de
Copyright (c) 2009 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
?><?php
if(defined('_GM_VALID_CALL') === false) die('x0');
// create smarty elements
$smarty = new Smarty;
$options_ids = explode(',', substr($_GET['options_ids'], 0, -1));
$values_ids = explode(',', substr($_GET['values_ids'], 0, -1));
$products_attributes_id = 0;
$attributes = array();
for($i = 0; $i < count($options_ids); $i++){
$from = strpos($options_ids[$i], '[');
$products_options_id = substr($options_ids[$i], $from+1, -1);
$get_attr_data = xtc_db_query("SELECT
po.products_options_name,
pov.products_options_values_name,
pov.gm_filename
FROM
products_options po,
products_options_values pov
WHERE
po.products_options_id = '" . (int)$products_options_id . "'
AND po.language_id = '" . $_SESSION['languages_id'] . "'
AND pov.language_id = '" . $_SESSION['languages_id'] . "'
AND pov.products_options_values_id = '" . (int)$values_ids[$i] . "'
LIMIT 1");
if(xtc_db_num_rows($get_attr_data) == 1){
$row = xtc_db_fetch_array($get_attr_data);
if(!empty($row['gm_filename'])){
$attributes[] = array('NAME' => $row['products_options_name'],
'OPTIONS_NAME' => $row['products_options_values_name'],
'IMAGE' => $row['gm_filename']);
}
}
}
$smarty->assign('attributes', $attributes);
$smarty->assign('IMAGES_PATH', DIR_WS_CATALOG . DIR_WS_IMAGES . 'product_images/attribute_images/');
$attributes_images = $smarty->fetch(DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/module/gm_attribute_images.html');
echo $attributes_images;
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| admin_fav_master.php | 2013-11-12 21:02 | 1.63 KB | 76129f60960:kunden | -xw-x----- | |
| admin_lang_edit.php | 2013-11-12 21:02 | 1.72 KB | 76129f60960:kunden | -xw-x----- | |
| admin_leftboxes.php | 2013-11-12 21:02 | 1.74 KB | 76129f60960:kunden | -xw-x----- | |
| attribute_images.php | 2013-11-12 21:02 | 2.06 KB | 76129f60960:kunden | -xw-x----- | |
| attributes_calculator.php | 2013-11-12 21:02 | 4.75 KB | 76129f60960:kunden | -xw-x----- | |
| attributes_weight_calculator.php | 2013-11-12 21:02 | 1.56 KB | 76129f60960:kunden | -xw-x----- | |
| callback_service.php | 2013-11-12 21:02 | 2.03 KB | 76129f60960:kunden | -xw-x----- | |
| guestbook.php | 2013-11-12 21:02 | 7.63 KB | 76129f60960:kunden | -xw-x----- | |
| live_search.php | 2013-11-12 21:02 | 3.58 KB | 76129f60960:kunden | -xw-x----- | |
| mega_flyover.php | 2013-11-12 21:02 | 1.66 KB | 76129f60960:kunden | -xw-x----- | |
| order_quantity_checker.php | 2013-11-12 21:02 | 1.52 KB | 76129f60960:kunden | -xw-x----- | |
| product_images.php | 2013-11-12 21:02 | 3.82 KB | 76129f60960:kunden | -xw-x----- | |
| products_images_popup.php | 2013-11-12 21:02 | 3.16 KB | 76129f60960:kunden | -xw-x----- | |
| tell_a_friend.php | 2013-11-12 21:02 | 577 B | 76129f60960:kunden | -xw-x----- | |