Soniks
странно делаю похожие действия в админке АзерШопа (Asers Shop) и в поле описание продукта (_DESCRIPTION) возникает надпись "Undefined", при том, что поле _SHORTDESCRIPTION заполняется нормально :(
Привожу пример кода.
Было
Код:
echo "</select><br><br>"
."" . _PRODUCT . ": <input type=\"text\" name=\"title\" size=\"50\" maxlength=\"100\">"
." " . _FEATURED . " <input type=\"checkbox\" name=\"featured\" value=\"1\"><br><br>"
."" . _IMAGE . ":<br>".$product_image_path."/<input type=\"text\" name=\"image\" size=\"30\" maxlength=\"100\"><br><br>"
."" . _SHORTDESCRIPTION . ":<br><textarea name=\"shortdescription\" cols=\"100\" rows=\"10\"></textarea><br><br>"
."" . _DESCRIPTION . ":<br><textarea name=\"description\" cols=\"100\" rows=\"10\"></textarea><br><br><br>"
."" . _PRICE . ": <input type=\"text\" name=\"price\" size=\"10\" maxlength=\"60\"> $currency<br><br>"
."" . _ART . ": <input type=\"text\" name=\"art\" size=\"10\" maxlength=\"10\"><br><br>"
."" . _WEIGHT . ": <input type=\"text\" name=\"weight\" size=\"10\" maxlength=\"60\"><br><br>"
."" . _OPTION . " 1: <select name=\"option1\">";
$result = $db->sql_query("select oid, oname from asershop_productoptions");
echo "<option value=\"0\">"._NONE."</option>";
Стало:
Код:
echo "</select><br><br>"
."" . _PRODUCT . ": <input type=\"text\" name=\"title\" size=\"50\" maxlength=\"100\">"
." " . _FEATURED . " <input type=\"checkbox\" name=\"featured\" value=\"1\"><br><br>"
."" . _IMAGE . ":<br>".$product_image_path."/<input type=\"text\" name=\"image\" size=\"30\" maxlength=\"100\"><br><br>"
// ."" . _SHORTDESCRIPTION . ":<br><textarea name=\"shortdescription\" cols=\"100\" rows=\"10\"></textarea><br><br>"
."" . _SHORTDESCRIPTION . ":<br>";
$oFCKeditor = new FCKeditor('shortdescription');
$oFCKeditor->InstanceName = 'shortdescription';
$oFCKeditor->Create();
echo ""
// ."" . _DESCRIPTION . ":<br><textarea name=\"description\" cols=\"100\" rows=\"10\"></textarea><br><br><br>"
."" . _DESCRIPTION . ":<br>";
$oFCKeditor = new FCKeditor('description') ;
$oFCKeditor->InstanceName = 'description' ;
$oFCKeditor->Create() ;
echo""
."" . _PRICE . ": <input type=\"text\" name=\"price\" size=\"10\" maxlength=\"60\"> $currency<br><br>"
."" . _ART . ": <input type=\"text\" name=\"art\" size=\"10\" maxlength=\"10\"><br><br>"
."" . _WEIGHT . ": <input type=\"text\" name=\"weight\" size=\"10\" maxlength=\"60\"><br><br>"
."" . _OPTION . " 1: <select name=\"option1\">";
$result = $db->sql_query("select oid, oname from asershop_productoptions");
echo "<option value=\"0\">"._NONE."</option>";
с чем может быть связана подобная проблема?