如何实现把商品属性变成编辑器.doc_第1页
如何实现把商品属性变成编辑器.doc_第2页
如何实现把商品属性变成编辑器.doc_第3页
如何实现把商品属性变成编辑器.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

如何实现把商品属性变成编辑器开发思路演示地址:/第一找到后台那个编辑模板,把他改成一个编辑框,然后到数据库给它一个能存储的字段,然后再到前台把他显示出来过程:找后台商品属性的编辑模板:admintemplatesgoods_info.html找到: if $goods_type_list $FCKeditor /if 改:把其中$FCKeditor改成我们自定义的表段的名字;$shuxingOK完成第一步:接下来:找到:admin goods.php代码: /* 创建 html editor */create_html_editor(goods_desc, $goodsgoods_desc);在他后面再写一句create_html_editor(goods_shuxing,$goodsgoods_shuxing,shuxing);继续找代码:/* 入库 */ if ($is_insert) if ($code = ) $sql = INSERT INTO . $ecs-table(goods) . (goods_name, goods_name_style, goods_sn, . cat_id, brand_id, shop_price, market_price, is_promote, promote_price, . promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, . seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, . is_on_sale, is_alone_sale, goods_desc,在最后goods_desc,的结尾加一个:goods_shuxing, 向下看4行: $warn_number, $_POSTintegral, $give_integral, $is_best, $is_new, $is_hot, $is_on_sale, $is_alone_sale, . $_POSTgoods_desc,在$_POSTgoods_desc, 后面加一句$_POSTgoods_shuxing, 继续:查找: $sql = INSERT INTO . $ecs-table(goods) . (goods_name, goods_name_style, goods_sn, . cat_id, brand_id, shop_price, market_price, is_promote, promote_price, . promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, . seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, is_real, . is_on_sale, is_alone_sale, goods_desc,在goods_desc,后面加一个goods_shuxing,向下看5行:$brand_id, $shop_price, $market_price, $is_promote,$promote_price, . $promote_start_date, $promote_end_date, $goods_img, $goods_thumb, $original_img, . $_POSTkeywords, $_POSTgoods_brief, $_POSTseller_note, $goods_weight, $goods_number,. $warn_number, $_POSTintegral, $give_integral, $is_best, $is_new, $is_hot, 0, $is_on_sale, $is_alone_sale, . $_POSTgoods_desc,在$_POSTgoods_desc,后面加一个$_POSTgoods_shuxing, 继续:807行的样子:找到;$sql = UPDATE . $ecs-table(goods) . SET . goods_name = $_POSTgoods_name, . goods_name_style = $goods_name_style, . goods_sn = $goods_sn, .在后面加两句:goods_desc = $goods_desc, .goods_shuxing = $goods_shuxing, .847848行的样子找到: $sql .= keywords = $_POSTkeywords, . goods_brief = $_POSTgoods_brief, . seller_note = $_POSTseller_note, . goods_weight = $goods_weight, . goods_number = $goods_number, . warn_number = $warn_number, . integral = $_POSTintegral, . give_integral = $give_integral, . rank_integral = $rank_integral, . is_best = $is_best, . is_new = $is_new, . is_hot = $is_hot, . is_on_sale = $is_on_sale, . is_alone_sale = $is_alone_sale, .在后面加两句: goods_desc = $_POSTgoods_desc, .goods_shuxing = $_POSTgoods_shuxing, .includes/lib_main.php里面,在后面加多个参数找到:function create_html_editor($input_name, $input_value = )改成:function create_html_editor($input_name,$input_value = ,$call_name=)下面:$smarty-assign(FCKeditor, $FCKeditor);改成:if(!$call_name) $smarty-assign(FCKeditor,$FCKeditor); else $smarty-assi

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论