</td> <td class="main" width="100%"> <?php if ($_SESSION['html_editor_preference_status'] == "FCKEDITOR") { $oFCKeditor = new FCKeditor('products_short_description[' . $languages[$i]['id'] . ']'); $oFCKeditor->Value = isset($products_short_description[$languages[$i]['id']]) ? stripslashes($products_short_description[$languages[$i]['id']]) : zen_get_products_short_description($pInfo->products_id, $languages[$i]['id']); $oFCKeditor->Width = '99%'; $oFCKeditor->Height = '350'; // $oFCKeditor->Config['ToolbarLocation'] = 'Out:xToolbar' ; // $oFCKeditor->Create() ; $output = $oFCKeditor->CreateHtml(); echo $output; } else { // using HTMLAREA or just raw "source" echo zen_draw_textarea_field('products_short_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '30', isset($products_short_description[$languages[$i]['id']]) ? stripslashes($products_short_description[$languages[$i]['id']]) : zen_get_products_short_description($pInfo->products_id, $languages[$i]['id'])); //,'id="'.'products_description' . $languages[$i]['id'] . '"'); } ?> </td> </tr> </table> </td> </tr> <?php } //&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& END &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ?>
$products_description = $_POST['products_description']; $products_short_description = $_POST['products_short_description']; $products_photo_html = $_POST['products_photo_html']; $products_url = $_POST['products_url']; } else { $product = $db->Execute("select p.products_id, pd.language_id, pd.products_name,\n pd.products_description,pd.products_short_description,products_photo_html,\n\t\t\t\t\t\t\t\t\t pd.products_url, p.products_quantity,\n p.products_model,p.products_afterbuy_model,p.products_image, \n\t\t\t\t\t\t\t\t\t p.products_price, p.products_virtual,\n p.products_weight, p.products_date_added, p.products_last_modified,\n p.products_date_available, p.products_status, p.manufacturers_id,\n p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,\n p.product_is_free, p.product_is_call, p.products_quantity_mixed,\n p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max,\n p.products_sort_order\n from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd\n where p.products_id = pd.products_id\n and p.products_id = '" . (int) $_GET['pID'] . "'"); $pInfo = new objectInfo($product->fields); $products_image_name = $pInfo->products_image; } $form_action = isset($_GET['pID']) ? 'update_product' : 'insert_product'; $languages = zen_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { if (isset($_GET['read']) && $_GET['read'] == 'only') { $pInfo->products_name = zen_get_products_name($pInfo->products_id, $languages[$i]['id']); $pInfo->products_description = zen_get_products_description($pInfo->products_id, $languages[$i]['id']); $pInfo->products_short_description = zen_get_products_short_description($pInfo->products_id, $languages[$i]['id']); $pInfo->products_url = zen_get_products_url($pInfo->products_id, $languages[$i]['id']); } else { $pInfo->products_name = zen_db_prepare_input($products_name[$languages[$i]['id']]); $pInfo->products_description = zen_db_prepare_input($products_description[$languages[$i]['id']]); $pInfo->products_short_description = zen_db_prepare_input($products_short_description[$languages[$i]['id']]); $pInfo->products_url = zen_db_prepare_input($products_url[$languages[$i]['id']]); } $specials_price = zen_get_products_special_price($pID); ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . $pInfo->products_name;