} $default_array[] = array('id' => 'default', 'text' => $t); $default_value = $pInfo->product_template; $files = array_merge($default_array, $files); echo ' <td class="main">' . TEXT_CHOOSE_INFO_TEMPLATE . ':</td>'; echo ' <td class="main"> ' . olc_draw_pull_down_menu('info_template', $files, $default_value); ?> </td> </tr> <tr> <?php $directory = $basedir . 'options/'; $files = olc_get_templates($directory); // set default value in dropdown! $default_array = array(); if ($content['content_file'] == EMPTY_STRING) { $default_array[] = array('id' => 'default', 'text' => TEXT_SELECT); $default_value = $pInfo->options_template; $files = array_merge($default_array, $files); } else { $default_array[] = array('id' => 'default', 'text' => TEXT_NO_FILE); $default_value = $pInfo->options_template; $files = array_merge($default_array, $files); } echo ' <td class="main">' . TEXT_CHOOSE_OPTIONS_TEMPLATE . ':' . '</td>'; echo ' <td class="main">
if ($not_is_gallery_and_not_isprint_version) { include DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS; include DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS; include DIR_WS_MODULES . FILENAME_PRODUCT_REVIEWS; include DIR_WS_MODULES . FILENAME_PRODUCTS_MEDIA; } include DIR_WS_MODULES . FILENAME_PRODUCTS_ATTRIBUTES; } include DIR_FS_INC . 'olc_get_price_disclaimer.inc.php'; $info_smarty->assign('PRICE_DISCLAIMER', $price_disclaimer); $info_smarty->assign('PICTURE_DISCLAIMER', PICTURE_DISCLAIMER); $product_template = $product_info['product_template']; $prod_info_dir = CURRENT_TEMPLATE_MODULE . 'product_info/'; if ($product_template == EMPTY_STRING or $product_template == 'default') { $templates_dir = TEMPLATE_PATH . $prod_info_dir; $files = olc_get_templates($templates_dir); $product_template = $files[0]['id']; } if ($is_pdf) { $is_pdf = false; } else { $product_info = $info_smarty->fetch($prod_info_dir . $product_template, $cacheid); if ($isprint_version) { $isprint_version = false; $body = '<body'; if ($fake_print) { $product_info = HTML_BR . HTML_BR . HTML_BR . HTML_BR . $product_info; $product_info .= HTML_BR . '<p align="center">' . olc_image(CURRENT_TEMPLATE_BUTTONS . 'button_window_close.gif', EMPTY_STRING, EMPTY_STRING, EMPTY_STRING, $onclick_text . 'window.close()"') . '</p>'; } else { $body .= ' onload="window.print()"'; }
' . $form_end; $main_content = EMPTY_STRING; if ($resultstring) { $main_content .= ' <span class="smallText">' . $resultstring . '</span><br/><br/> '; } $main_content .= olc_draw_form($form_name, FILENAME_AUCTIONS_NEW, EMPTY_STRING) . $action_edit_field . $table_start; //display_section_header(AUCTIONS_TEXT_ARTICLE); display_section_content_line(ENTRY_CATEGORIES, $content, true); $main_content .= $table_end_form_end; if ($product_id) { $size_10 = $size . '10' . QUOTE; $size_50 = $size . '50' . QUOTE; $form_name = "auction_data"; $templates = olc_get_templates($template_dir, true); $content_template = olc_draw_pull_down_menu($template_text, $templates, $template, $onchange); $products_description = $myproducts[$description_text]; $products_description = $products_description ? stripslashes($products_description) : olc_get_products_description($product_id, SESSION_LANGUAGE_ID); if (!$predefined_data || $rebuild) { if ($base_price) { $base_price = str_replace('(', $dot_blank . AUCTIONS_TEXT_BASE_PRICE, $base_price); $vpe = $vpe . str_replace(RPAREN, EMPTY_STRING, ltrim($base_price)); if ($not_ebay_express_only) { $vpe .= AUCTIONS_TEXT_BASE_BASE_STARTPRICE; } } $vpe .= DOT; $products_description .= $vpe; if (NO_TAX_RAISED) { $price_disclaimer = PRICE_DISCLAIMER_NO_TAX;
Customers Status v3.x (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist New Attribute Manager v4b Autor: Mike G | mp3man@internetwork.net | http://downloads.ephing.com Cross-Sell (X-Sell) Admin 1 Autor: Joshua Dechant (dreamscape) (c) 2004 XT - Commerce; www.xt-commerce.com Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ olc_smarty_init($module_smarty, $cacheid); include DIR_WS_MODULES . "product_attributes_info_build.php"; // template query $template_query = olc_db_query("\nSELECT\noptions_template\nFROM " . TABLE_PRODUCTS . "\nWHERE products_id=" . $_GET['products_id']); $template_data = olc_db_fetch_array($template_query); $options_template = $template_data['options_template']; $product_options = 'product_options'; $product_options_dir = CURRENT_TEMPLATE_MODULE . $product_options . SLASH; if ($options_template == EMPTY_STRING or $options_template == 'default') { $templates_dir = TEMPLATE_PATH . $product_options_dir; $files = olc_get_templates($templates_dir, false, 'selection'); $options_template = $files[0]['id']; } //W. Kaiser - AJAX if (USE_AJAX) { $module_smarty->assign('OPTIONS_HAVE_PRICE', $options_have_price); $module_smarty->assign('PRODUCTS_PRICE', $products_price); } //W. Kaiser - AJAX $module_smarty->assign('options', $products_options_data); $module_smarty->assign('IS_PRINT_VERSION', $isprint_version || $is_gallery); $module = $module_smarty->fetch($product_options_dir . $options_template, $cacheid); if ($info_smarty) { $info_smarty->assign('MODULE_product_options', $module); }
} else { $text = TEXT_NO_FILE; } $default_array = array('id' => 'default', 'text' => $text); $default_value = $cInfo->listing_template; $files = array_merge($default_array, $files); echo ' <td class="main">' . TEXT_CHOOSE_INFO_TEMPLATE_LISTING . ':</td> <td> <span class="main">' . olc_draw_pull_down_menu('listing_template', $files, $default_value) . '</span> </td> </tr> <tr> '; $dir0 = $dir00 . 'categorie_listing/'; $files = olc_get_templates($dir0); // set default value in dropdown! if ($files) { $text = TEXT_SELECT; } else { $text = TEXT_NO_FILE; } $default_array = array('id' => 'default', 'text' => $text); $default_value = $cInfo->categories_template; $files = array_merge($default_array, $files); echo ' <td class="main">' . TEXT_CHOOSE_INFO_TEMPLATE_CATEGORIE . ':</td> <td> <span class="main">' . olc_draw_pull_down_menu('categorie_template', $files, $default_value) . '</span> </td> </tr>