AudiV8 Posted May 21, 2004 Report Share Posted May 21, 2004 Hallo, Bekomme im Internetexplorer eine Fehlermeldung beim Aufruf "neues Produkt" " Es ist ein Laufzeitfehler aufgetreten soll der Debugmodus gestartet werden? Zeile:35 Fehler: 'document.all.products_3 NULL oder kein Objekt" Kann mir einer berichten was der Anlass dieser Fehlermeldung ist? Im Opera oder im Mozilla kommt der Fehler nicht. Hintergrund der Geschichte, ich bruach zum Katalog bef?llen die "Auto vervollst?ndigen" Funktion, welche ich in den anderen Browsern nicht aufgefunden habe. Beim Aufruf der Funktion "neues Produkt" kommt wie gesagt diese Fehlermeldung und er springt gleich runter zu dem Fenster wo die Produkt beschreibung rein kommt. Der Cursor springt ins Feld Kurzbeschreibung. Hat einer ne Idee was ich da wieder verzapft habe? Hier der Aufruf des Scriptes aus der "new_product" <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css"> <script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script> <script language="javascript"> var dateAvailable = new ctlSpiffyCalendarBox("dateAvailable", "new_product", "products_date_available","btnDate1","<?php echo $pInfo->products_date_available; ?>",scBTNMODE_CUSTOMBLUE); </script> <script language="JavaScript" type="text/JavaScript"> document.all.products_description_3.focus(); </script> Hier noch der Code aus meiner "new_product" im gesamten: <?php /* -------------------------------------------------------------- $Id: new_product.php,v 1.12 2004/03/16 15:01:16 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce -------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(categories.php,v 1.140 2003/03/24); [url]www.oscommerce.com[/url] (c) 2003 nextcommerce (categories.php,v 1.37 2003/08/18); [url]www.nextcommerce.org[/url] Released under the GNU General Public License -------------------------------------------------------------- Third Party contribution: Enable_Disable_Categories 1.3 Autor: Mikel Williams | [email][email protected][/email] New Attribute Manager v4b Autor: Mike G | [email][email protected][/email] | http://downloads.ephing.com Category Descriptions (Version: 1.5 MS2) Original Author: Brian Lowe <[email protected]> | Editor: Lord Illicious <[email protected]> Customers Status v3.x (c) 2002-2003 Copyright Elari [email][email protected][/email] | [url]www.unlockgsm.com/dload-osc/[/url] | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist Released under the GNU General Public License --------------------------------------------------------------*/ if ( ($_GET['pID']) && (!$_POST) ) { $product_query = xtc_db_query("select p.products_fsk18, p.product_template, p.options_template, pd.products_name, pd.products_car_manu, pd.products_car_model, pd.products_car_typ, pd.products_car_aufbau, pd.products_car_halast, pd.products_car_valast, pd.products_car_motor, pd.products_car_abbj, pd.products_car_bisbj, pd.products_car_specific, pd.products_fw_uvp, pd.products_fw_manu, pd.products_fw_tlrate, pd.products_fw_comment, pd.products_fw_abe, pd.products_fw_notes, pd.products_description, pd.products_short_description, pd.products_meta_title, pd.products_meta_description, pd.products_meta_keywords, pd.products_url, p.products_id, p.group_ids, p.products_sort, p.products_shippingtime, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_discount_allowed, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$_GET['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . $_SESSION['languages_id'] . "'"); $product = xtc_db_fetch_array($product_query); $pInfo = new objectInfo($product); } elseif ($_POST) { $pInfo = new objectInfo($_POST); $products_name = $_POST['products_name']; $products_car_manu = $_POST['products_car_manu']; $products_car_model = $_POST['products_car_model']; $products_car_typ = $_POST['products_car_typ']; $products_car_aufbau = $_POST['products_car_aufbau']; $products_car_halast = $_POST['products_car_halast']; $products_car_valast = $_POST['products_car_valast']; $products_car_motor = $_POST['products_car_motor']; $products_car_abbj = $_POST['products_car_abbj']; $products_car_bisbj = $_POST['products_car_bisbj']; $products_car_specific = $_POST['products_car_specific']; $products_fw_uvp = $_POST['products_fw_uvp']; $products_fw_manu = $_POST['products_fw_manu']; $products_fw_tlrate = $_POST['products_fw_tlrate']; $products_fw_comment = $_POST['products_fw_comment']; $products_fw_abe = $_POST['products_fw_abe']; $products_fw_notes = $_POST['products_fw_notes']; $products_description = $_POST['products_description']; $products_short_description = $_POST['products_short_description']; $products_meta_title = $_POST['products_meta_title']; $products_meta_description = $_POST['products_meta_description']; $products_meta_keywords = $_POST['products_meta_keywords']; $products_url = $_POST['products_url']; } else { $pInfo = new objectInfo(array()); } $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE)); $manufacturers_query = xtc_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); while ($manufacturers = xtc_db_fetch_array($manufacturers_query)) { $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); } $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE)); $tax_class_query = xtc_db_query("select tax_class_id, tax_class_title from " . TABLE_TAX_CLASS . " order by tax_class_title"); while ($tax_class = xtc_db_fetch_array($tax_class_query)) { $tax_class_array[] = array('id' => $tax_class['tax_class_id'], 'text' => $tax_class['tax_class_title']); } $shipping_statuses = array(); $shipping_statuses=xtc_get_shipping_status(); $languages = xtc_get_languages(); switch ($pInfo->products_status) { case '0': $status = false; $out_status = true; break; case '1': default: $status = true; $out_status = false; } ?> <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css"> <script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script> <script language="javascript"> var dateAvailable = new ctlSpiffyCalendarBox("dateAvailable", "new_product", "products_date_available","btnDate1","<?php echo $pInfo->products_date_available; ?>",scBTNMODE_CUSTOMBLUE); </script> <script language="JavaScript" type="text/JavaScript"> document.all.products_description_3.focus(); </script> <tr><td> <?php $form_action = ($_GET['pID']) ? 'update_product' : 'insert_product'; ?> <?php $fsk18_array=array(array('id'=>0,'text'=>NO),array('id'=>1,'text'=>YES)); ?> <?php echo xtc_draw_form('new_product', FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . '&action='.$form_action, 'post', 'enctype="multipart/form-data"'); ?> <span class="pageHeading"><?php echo sprintf(TEXT_NEW_PRODUCT, xtc_output_generated_category_path($current_category_id)); ?></span><br> <table width="100%" border="0"> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_STATUS; ?> <?php echo xtc_draw_separator('pixel_trans.gif', '24', '15') . '' . xtc_draw_radio_field('products_status', '1', $status) . '' . TEXT_PRODUCT_AVAILABLE . '' . xtc_draw_radio_field('products_status', '0', $out_status) . '' . TEXT_PRODUCT_NOT_AVAILABLE; ?><br> </span> <table width="100%" border="0"> <tr> <td class="main" width="127"><?php echo TEXT_PRODUCTS_DATE_AVAILABLE; ?><br> <small>(YYYY-MM-DD)</small></td> <td class="main"><?php echo xtc_draw_separator('pixel_trans.gif', '24', '15') . ''; ?> <script language="javascript">dateAvailable.writeControl(); dateAvailable.dateFormat="yyyy-MM-dd";</script></td> </tr> </table> <span class="main"> <br> </span></td> <td><table bgcolor="f3f3f3" style="border: 1px solid; border-color: #cccccc;" "width="100%" border="0"> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_SORT; ?></span></td> <td><span class="main"><?php echo xtc_draw_input_field('products_sort', $pInfo->products_sort); ?></span></td> </tr> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_MODEL; ?></span></td> <td><span class="main"><?php echo xtc_draw_input_field('products_model', $pInfo->products_model); ?></span></td> </tr> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?></span></td> <td><span class="main"><?php echo xtc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></span></td> </tr> <tr> <td><span class="main"><?php echo TEXT_FSK18; ?></span></td> <td><span class="main"><?php echo xtc_draw_pull_down_menu('fsk18', $fsk18_array, $pInfo->products_fsk18); ?></span></td> </tr> <tr> <?php if (ACTIVATE_SHIPPING_STATUS=='true') { ?> <td><span class="main"><?php echo BOX_SHIPPING_STATUS.':'; ?></span></td> <td><span class="main"><?php echo xtc_draw_pull_down_menu('shipping_status', $shipping_statuses, $pInfo->products_shippingtime); ?></span></td> </tr> <?php } ?> <tr> <?php $files=array(); if ($dir= opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_info/')){ while (($file = readdir($dir)) !==false) { if (is_file( DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_info/'.$file) and ($file !="index.html")){ $files[]=array( 'id' => $file, 'text' => $file); }//if } // while closedir($dir); } $default_array=array(); // set default value in dropdown! if ($content['content_file']=='') { $default_array[]=array('id' => 'default','text' => TEXT_SELECT); $default_value=$pInfo->product_template; $files=array_merge($default_array,$files); } else { $default_array[]=array('id' => 'default','text' => TEXT_NO_FILE); $default_value=$pInfo->product_template; $files=array_merge($default_array,$files); } echo '<td class="main">'.TEXT_CHOOSE_INFO_TEMPLATE.':</td>'; echo '<td><span class="main">'.xtc_draw_pull_down_menu('info_template',$files,$default_value); ?> </span></td> </tr> <tr> <?php $files=array(); if ($dir= opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_options/')){ while (($file = readdir($dir)) !==false) { if (is_file( DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_options/'.$file) and ($file !="index.html")){ $files[]=array( 'id' => $file, 'text' => $file); }//if } // while closedir($dir); } // set default value in dropdown! $default_array=array(); if ($content['content_file']=='') { $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><span class="main">'.xtc_draw_pull_down_menu('options_template',$files,$default_value); ?> </span></td> </tr> </table></td> </tr> </table> <br><br> <?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?> <table width="100%" border="0"> <tr> <td bgcolor="#FBFBFB" width="100" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_MANU; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_manu[' . $languages[$i]['id'] . ']', (($products_car_manu[$languages[$i]['id']]) ? stripslashes($products_car_manu[$languages[$i]['id']]) : xtc_get_products_car_manu($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_MODEL; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_model[' . $languages[$i]['id'] . ']', (($products_car_model[$languages[$i]['id']]) ? stripslashes($products_car_model[$languages[$i]['id']]) : xtc_get_products_car_model($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_TYP; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_typ[' . $languages[$i]['id'] . ']', (($products_car_typ[$languages[$i]['id']]) ? stripslashes($products_car_typ[$languages[$i]['id']]) : xtc_get_products_car_typ($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_AUFBAU; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_aufbau[' . $languages[$i]['id'] . ']', (($products_car_aufbau[$languages[$i]['id']]) ? stripslashes($products_car_aufbau[$languages[$i]['id']]) : xtc_get_products_car_aufbau($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_HALAST; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_halast[' . $languages[$i]['id'] . ']', (($products_car_halast[$languages[$i]['id']]) ? stripslashes($products_car_halast[$languages[$i]['id']]) : xtc_get_products_car_halast($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_VALAST; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_valast[' . $languages[$i]['id'] . ']', (($products_car_valast[$languages[$i]['id']]) ? stripslashes($products_car_valast[$languages[$i]['id']]) : xtc_get_products_car_halast($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_MOTOR; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_motor[' . $languages[$i]['id'] . ']', (($products_car_motor[$languages[$i]['id']]) ? stripslashes($products_car_motor[$languages[$i]['id']]) : xtc_get_products_car_motor($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_ABBJ; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_abbj[' . $languages[$i]['id'] . ']', (($products_car_abbj[$languages[$i]['id']]) ? stripslashes($products_car_abbj[$languages[$i]['id']]) : xtc_get_products_car_abbj($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_BISBJ; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_bisbj[' . $languages[$i]['id'] . ']', (($products_car_bisbj[$languages[$i]['id']]) ? stripslashes($products_car_bisbj[$languages[$i]['id']]) : xtc_get_products_car_bisbj($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_SPECIFIC; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_specific[' . $languages[$i]['id'] . ']', (($products_car_specific[$languages[$i]['id']]) ? stripslashes($products_car_specific[$languages[$i]['id']]) : xtc_get_products_car_specific($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td></tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_UVP; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_uvp[' . $languages[$i]['id'] . ']', (($products_fw_uvp[$languages[$i]['id']]) ? stripslashes($products_fw_uvp[$languages[$i]['id']]) : xtc_get_products_fw_uvp($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_MANU; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_manu[' . $languages[$i]['id'] . ']', (($products_fw_manu[$languages[$i]['id']]) ? stripslashes($products_fw_manu[$languages[$i]['id']]) : xtc_get_products_fw_manu($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_TLRATE; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_tlrate[' . $languages[$i]['id'] . ']', (($products_fw_tlrate[$languages[$i]['id']]) ? stripslashes($products_fw_tlrate[$languages[$i]['id']]) : xtc_get_products_fw_tlrate($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_COMMENT; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_comment[' . $languages[$i]['id'] . ']', (($products_fw_comment[$languages[$i]['id']]) ? stripslashes($products_fw_comment[$languages[$i]['id']]) : xtc_get_products_fw_comment($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_ABE; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_abe[' . $languages[$i]['id'] . ']', (($products_fw_abe[$languages[$i]['id']]) ? stripslashes($products_fw_abe[$languages[$i]['id']]) : xtc_get_products_fw_abe($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_NOTES; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_notes[' . $languages[$i]['id'] . ']', (($products_fw_notes[$languages[$i]['id']]) ? stripslashes($products_fw_notes[$languages[$i]['id']]) : xtc_get_products_fw_notes($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FFCC33" valign="top" class="main"><?php echo TEXT_PRODUCTS_NAME; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (($products_name[$languages[$i]['id']]) ? stripslashes($products_name[$languages[$i]['id']]) : xtc_get_products_name($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> </table> <table> <tr> <td class="main"><?php echo TEXT_PRODUCTS_URL . '<small>' . TEXT_PRODUCTS_URL_WITHOUT_HTTP . '</small>'; ?><?php echo xtc_draw_input_field('products_url[' . $languages[$i]['id'] . ']', (($products_url[$languages[$i]['id']]) ? stripslashes($products_url[$languages[$i]['id']]) : xtc_get_products_url($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> </table> <table width="100%" border="0"> <tr> <td class="main" colspan="2"><b><?php echo TEXT_PRODUCTS_DESCRIPTION; ?></b><br> <?php if (USE_SPAW=='true') { $sw = new SPAW_Wysiwyg( $control_name='products_description_'.$languages[$i]['id'] , // control's name $value= (($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : xtc_get_products_description($pInfo->products_id, $languages[$i]['id'])), // initial value $lang='', // language $mode = 'full', // toolbar mode $theme='default', // theme (skin) $width='100%', // width $height='400px', // height $css_stylesheet='', // css stylesheet file for content $dropdown_data='' // data for dropdowns (style, font, etc.) ); $sw->show(); } else { echo xtc_draw_textarea_field('products_description_' . $languages[$i]['id'], 'soft', '150', '15', (($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : xtc_get_products_description($pInfo->products_id, $languages[$i]['id']))); } ?> </td> </tr> <tr> <td class="main" width="60%" rowspan="2" valign="top"><b><?php echo TEXT_PRODUCTS_SHORT_DESCRIPTION; ?></b><br> <?php if (USE_SPAW=='true') { $sw = new SPAW_Wysiwyg( $control_name='products_short_description_' . $languages[$i]['id'] , // control's name $value= (($products_short_description[$languages[$i]['id']]) ? stripslashes($products_short_description[$languages[$i]['id']]) : xtc_get_products_short_description($pInfo->products_id, $languages[$i]['id'])), // initial value $lang='', // language $mode = '', // toolbar mode $theme='default', // theme (skin) $width='100%', // width $height='150px', // height $css_stylesheet='', // css stylesheet file for content $dropdown_data='' // data for dropdowns (style, font, etc.) ); $sw->show(); } else { echo xtc_draw_textarea_field('products_short_description_' . $languages[$i]['id'], 'soft', '60', '8', (($products_short_description[$languages[$i]['id']]) ? stripslashes($products_short_description[$languages[$i]['id']]) : xtc_get_products_short_description($pInfo->products_id, $languages[$i]['id']))); } ?></td> <td class="main"><?php echo TEXT_META_TITLE; ?><br> <?php echo xtc_draw_textarea_field('products_meta_title[' . $languages[$i]['id'] . ']', 'soft', '60', '1', (($products_meta_title[$languages[$i]['id']]) ? stripslashes($products_meta_title[$languages[$i]['id']]) : xtc_get_products_meta_title($pInfo->products_id, $languages[$i]['id']))); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_META_DESCRIPTION; ?><br> <?php echo xtc_draw_textarea_field('products_meta_description[' . $languages[$i]['id'] . ']', 'soft', '60', '3', (($products_meta_description[$languages[$i]['id']]) ? stripslashes($products_meta_description[$languages[$i]['id']]) : xtc_get_products_meta_description($pInfo->products_id, $languages[$i]['id']))); ?><br> <?php echo TEXT_META_KEYWORDS; ?><br> <?php echo xtc_draw_textarea_field('products_meta_keywords[' . $languages[$i]['id'] . ']', 'soft', '60', '3', (($products_meta_keywords[$languages[$i]['id']]) ? stripslashes($products_meta_keywords[$languages[$i]['id']]) : xtc_get_products_meta_keywords($pInfo->products_id, $languages[$i]['id']))); ?> </td> </tr> </table> <?php } ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><?php echo HEADING_PRODUCT_OPTIONS; ?></tr> <tr><td> <table width="100%" border="0" bgcolor="f3f3f3" style="border: 1px solid; border-color: #cccccc;"> <tr> <td class="main"><?php echo TEXT_PRODUCTS_QUANTITY; ?><br><?php echo xtc_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td> </tr> <tr><td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?><br><?php echo xtc_draw_input_field('products_weight', $pInfo->products_weight); ?><?php echo TEXT_PRODUCTS_WEIGHT_INFO; ?></td> </tr> <tr><td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr> <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?><br><?php echo xtc_draw_file_field('products_image') . '<br>' . xtc_draw_separator('pixel_trans.gif', '24', '15') . '' . $pInfo->products_image . xtc_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td> </tr> <tr><td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr> <?php if (GROUP_CHECK=='true') { $customers_statuses_array = xtc_get_customers_statuses(); $customers_statuses_array=array_merge(array(array('id'=>'all','text'=>TXT_ALL)),$customers_statuses_array); ?> <tr> <td style="border-top: 1px solid; border-color: #ff0000;" valign="top" class="main" ><?php echo ENTRY_CUSTOMERS_STATUS; ?></td> <td style="border-top: 1px solid; border-left: 1px solid; border-color: #ff0000;" bgcolor="#FFCC33" class="main"> <?php for ($i=0;$n=sizeof($customers_statuses_array),$i<$n;$i++) { if (strstr($pInfo->group_ids,'c_'.$customers_statuses_array[$i]['id'].'_group')) { $checked='checked '; } else { $checked=''; } echo '<input type="checkbox" name="groups[]" value="'.$customers_statuses_array[$i]['id'].'"'.$checked.'> '.$customers_statuses_array[$i]['text'].'<br>'; } ?> </td> </tr> <?php } ?> </table> </td></tr> <tr><td> <table width="100%" border="0"> <tr> <td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td colspan="4"><?php include(DIR_WS_MODULES.'group_prices.php'); ?></td> </tr> <tr> <td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> </table> </td></tr> <tr> <td class="main" align="right"><?php echo xtc_draw_hidden_field('products_date_added', (($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . xtc_image_submit('button_save.gif', IMAGE_SAVE,'style="cursor:hand" onClick="return confirm(\''.SAVE_ENTRY.'\')"') . '<a href="' . xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $_GET['pID']) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr></form> Link to comment Share on other sites More sharing options...
seek Posted September 22, 2004 Report Share Posted September 22, 2004 Das Problem ist die admin/includes/classes/spaw/class/script.js.php function SPAW_addOnSubmitHandler(editor) { thefield = SPAW_getFieldByEditor(editor, null); var sTemp = ""; oForm = document.all[thefield].form; if(oForm.onsubmit != null) { sTemp = oForm.onsubmit.toString(); iStart = sTemp.indexOf("{") + 2; sTemp = sTemp.substr(iStart,sTemp.length-iStart-2); } if (sTemp.indexOf("SPAW_UpdateFields();") == -1) { oForm.onsubmit = new Function("SPAW_UpdateFields();" + sTemp); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.