alter table esc_goods add newfck text;
改动文件:4个
themes/default/goods.dwt
admin/templates/goods_info.htm
admin/includes/lib_main.php
admin/goods.php
lib_main.php 在function create_html_editor() 下添加下面部分
function create_html_editor2($input_name,$output_name,$input_value = '')
{
global $smarty;
$editor = new FCKeditor($input_name);
$editor->BasePath = '../includes/fckeditor/';
$editor->ToolbarSet = 'Normal';
$editor->Width = '100%';
$editor->Height = '320';
$editor->Value = $input_value;
$FCKeditor = $editor->CreateHtml();
$smarty->assign($newfck, $FCKeditor);//这里输出就用$output_name变量了。
}
admin/goods.php 找到 create_html_editor('goods_desc', $goods['goods_desc']);
添加一个 create_html_editor2('newfck', $goods['newfck']);
themes/default/goods.dwt 找到 {$FCKeditor}
按照这个格式换成我们自己添加的{$newfck}
admin/goods.php 找 goods_desc 这个名称 把我们定义的 newfck 加上一份