{"id":199060,"date":"2025-05-03T10:44:49","date_gmt":"2025-05-03T02:44:49","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199060\/"},"modified":"2025-05-03T10:44:49","modified_gmt":"2025-05-03T02:44:49","slug":"ecshop%e5%90%8e%e5%8f%b0%e5%b0%86%e5%95%86%e5%93%81%e7%ae%80%e5%8d%95%e6%8f%8f%e8%bf%b0%e4%bf%ae%e6%94%b9%e6%88%90%e7%bc%96%e8%be%91%e5%99%a8%e5%bd%a2%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199060\/","title":{"rendered":"Ecshop\u540e\u53f0\u5c06\u5546\u54c1\u7b80\u5355\u63cf\u8ff0\u4fee\u6539\u6210\u7f16\u8f91\u5668\u5f62\u5f0f"},"content":{"rendered":"<p>\u5982\u679c\u4f60\u60f3\u628a\u5546\u54c1\u7b80\u5355\u63cf\u8ff0\u5f04\u7684\u82b1\u91cc\u80e1\u54e8\u7684\uff0c\u4e5f\u8bb8\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6bd4\u8f83\u6709\u7528\u3002<\/p>\n<p> \u56e0\u4e3a\u7528\u7f16\u8f91\u5668\u5f62\u5f0f\u6765\u53d1\u5e03\uff0c\u624d\u6700\u5bb9\u6613\u5b9e\u73b0\u4e2a\u6027\u5316\u7684\u7b80\u5355\u63cf\u8ff0\uff0c\u6bd4\u5982\u201c\u7ed9\u6587\u5b57\u52a0\u4e0d\u540c\u989c\u8272\u201d\u3001\u201c\u7a7f\u63d2\u4e00\u4e2a\u56fe\u7247\u201d\u3001\u201c\u7ed9\u67d0\u6bb5\u6587\u5b57\u52a0\u4e00\u4e2a\u80cc\u666f\u8272\u201d\u7b49\u7b49\u3002<br \/> &nbsp;<br \/> 1\uff09\u3001\u9996\u5148\u6765\u4fee\u6539 \/includes\/lib_main.php \u6587\u4ef6 <br \/> \u5c06<br \/> <span style=\"background-color: #ccffff\">function create_html_editor($input_name, $input_value = &#8221;)<br \/> <\/span><span>\u4fee\u6539\u4e3a<br \/> <\/span><span style=\"background-color: #ccffff\">function create_html_editor($input_name, $input_value = &#8221;,$fckid=0)<\/span><\/p>\n<p> \u7ee7\u7eed\u5411\u4e0b\u627e\u5230<br \/> <span style=\"background-color: #ccffff\">$smarty-&gt;assign(&#8216;FCKeditor&#8217;, $FCKeditor);<\/span><br \/> \u5c06\u5b83\u4fee\u6539\u4e3a <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><font>if ($fckid)<br \/> {<br \/> $smarty-&gt;assign(&#8216;FCKeditor&#8217;.$fckid, $FCKeditor);<br \/> }<br \/> else<br \/> {<br \/> $smarty-&gt;assign(&#8216;FCKeditor&#8217;, $FCKeditor);<br \/> }<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> &nbsp;2\uff09\u3001\u63a5\u4e0b\u6765\u8981\u4fee\u6539 \/admin\/goods.php \u6587\u4ef6<br \/>\n<br \/> \u627e\u5230 <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><font>create_html_editor(&#8216;goods_desc&#8217;, $goods[&#8216;goods_desc&#8217;]);<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5728\u5b83\u4e0b\u9762\u53e6\u6dfb\u52a0\u4e00\u884c<br \/>\n <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><font>create_html_editor(&#8216;goods_brief&#8217;, $goods[&#8216;goods_brief&#8217;],2);<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> 3\uff09\u3001\u6700\u540e\u4fee\u6539\u4e00\u4e0b\u5bf9\u5e94\u7684\u6a21\u677f\u6587\u4ef6 \/admin\/templates\/goods_info.htm <br \/> \u627e\u5230\u4e0b\u9762\u8fd9\u884c\u4ee3\u7801<\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><font>&lt;textarea name=&#8221;goods_brief&#8221; cols=&#8221;40&#8243; rows=&#8221;3&#8243;&gt;{$goods.goods_brief|escape}&lt;\/textarea&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5e76\u4e14\u4fee\u6539\u4e3a<\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><font>{$FCKeditor2}<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u81ea\u540e\uff0c\u4e3a\u4e86\u80fd\u591f\u987a\u5229\u7684\u4fdd\u5b58\u8f83\u957f\u5185\u5bb9\uff0c\u8fd8\u5e94\u8be5\u4fee\u6539\u4e00\u4e0b ecs_goods \u8868\u7684 goods_brief \u5b57\u6bb5\uff0c\u5c06\u5b83\u7684\u5b57\u6bb5\u7c7b\u578b\u4ece varchar(255) \u4fee\u6539\u4e3a&nbsp;&nbsp;text<br \/> \u81f3\u4e8e\u5982\u4f55\u4fee\u6539\uff0c\u6709\u5f88\u591a\u9014\u5f84\uff0c\u4f8b\u5982\u4f7f\u7528phpmyadmin&nbsp;&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u4f60\u60f3\u628a\u5546\u54c1\u7b80\u5355\u63cf\u8ff0\u5f04\u7684\u82b1\u91cc\u80e1&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199060","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199060"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199060\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}