{"id":199129,"date":"2025-05-03T08:25:56","date_gmt":"2025-05-03T00:25:56","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199129\/"},"modified":"2025-05-03T08:25:56","modified_gmt":"2025-05-03T00:25:56","slug":"%e5%9c%a8ecshop%e9%a6%96%e9%a1%b5%e8%b0%83%e7%94%a8%e6%a0%87%e7%ad%be%e4%ba%91%e7%9a%84%e6%89%80%e6%9c%89%e6%a0%87%e7%ad%be","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199129\/","title":{"rendered":"\u5728ECSHOP\u9996\u9875\u8c03\u7528\u6807\u7b7e\u4e91\u7684\u6240\u6709\u6807\u7b7e"},"content":{"rendered":"<p>&nbsp;\u7ecf\u5e38\u770b\u5230\u6709\u4eba\u95ee\uff0c\u5982\u4f55\u628aECSHOP<strong>\u6807\u7b7e\u4e91<\/strong>\u8c03\u7528\u5230<span>\u9996\u9875\u5462\uff0c\u73b0\u5728\u5c31\u6765\u8bf4\u4e00\u4e0b\u76f8\u5173\u7684\u4fee\u6539\u6559\u7a0b\u3002<\/span><\/p>\n<p><span>\u8001\u89c4\u77e9\uff0c\u8fd8\u662f\u4ee5\u5b98\u65b9\u9ed8\u8ba4\u6a21\u677f\u4e3a\u4f8b\u3002<\/p>\n<p> \u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u6253\u5f00 \/index.php&nbsp;\u6587\u4ef6<\/p>\n<p> \u627e\u5230<br \/> <\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>$smarty-&gt;assign(&#8216;shop_notice&#8217;,&nbsp;&nbsp;&nbsp;&nbsp; $_CFG[&#8216;shop_notice&#8217;]);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \/\/ \u5546\u5e97\u516c\u544a<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5728\u5b83\u4e0b\u8fb9\u589e\u52a0PHP\u4ee3\u7801<\/p>\n<p>$sql=\u2018select tag_id,user_id,tag_words,count(tag_id) as tag_count\u2019.<\/p>\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#8216;from&#8217;.$globals[&#8221;ecs]-&gt;table[&#8216;tag&#8217;.]&#8221;group by tag_words&#8221;;<\/p>\n<p>$tag_list=$globals[&#8216;db&#8217;]-&gt;getall($sql);<\/p>\n<p>if(!empty($tag_lset))<\/p>\n<p>{ &nbsp; &nbsp;<\/p>\n<p>&nbsp;&nbsp; inlude_once(root_path. &#8216;includes\/lib_clips.php&#8217;);<\/p>\n<p>&nbsp;&nbsp;color_tag($tag_list);<\/p>\n<p>} $smarty-&gt;assign(&#8216;tag_list&#8217;,$tag_list); \/\/\u6807\u7b7e\u4e91<\/p>\n<p> \u7136\u540e\uff0c\u6211\u4eec\u518d\u6253\u5f00 \u6a21\u677f\u6587\u4ef6&nbsp;&nbsp;\/themes\/default\/index.dwt&nbsp;<\/p>\n<p> \u9f20\u6807\u5b9a\u4f4d\u5230\u4f60\u60f3\u663e\u793a\u6807\u7b7e\u4e91\u7684\u5730\u65b9\uff0c\u52a0\u5165\u4e0b\u9762\u4ee3\u7801<\/p>\n<table cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<td><font>&lt;!&#8211;\u6807\u7b7e\u4e91&#8211;&gt;<br \/> &lt;div class=&#8221;box&#8221;&gt;<br \/> &nbsp;&lt;div class=&#8221;box_1&#8243;&gt;<br \/> &nbsp; &lt;h3&gt;&lt;span&gt;&lt;a href=&#8221;\/exchange.php&#8221; class=&#8221;f6&#8243;&gt;\u6807\u7b7e\u4e91&lt;\/a&gt;&lt;\/span&gt;&lt;\/h3&gt;<br \/> &nbsp;&nbsp;&nbsp; &lt;div class=&#8221;centerPadd&#8221;&gt;<br \/> &nbsp;&nbsp;&nbsp; &lt;div class=&#8221;clearfix goodsBox&#8221; style=&#8221;border:none;&#8221;&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8211; {if $tag_list} &#8211;&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8211; \u6807\u7b7e\u4e91\u5f00\u59cb {foreach from=$tag_list item=tag}&#8211;&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span style=&#8221;font-size:{$tag.size}; line-height:36px;&#8221;&gt; | &lt;a href=&#8221;{$tag.url}&#8221; style=&#8221;text-decoration:none;color:{$tag.color}&#8221;&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {if $tag.bold}<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;b&gt;{$tag.tag_words|escape:html}&lt;\/b&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {else}<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$tag.tag_words|escape:html}<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {\/if}<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/a&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/span&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8211; \u6807\u7b7e\u4e91\u7ed3\u675f {\/foreach}&#8211;&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8211; {else} &#8211;&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;span style=&#8221;margin:2px 10px; font-size:14px; line-height:36px;&#8221;&gt;{$lang.no_tag}&lt;\/span&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8211; {\/if} &#8211;&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&#8221;more&#8221;&gt;&lt;a href=&#8221;\/tag_cloud.php&#8221;&gt;&lt;img src=&#8221;images\/more.gif&#8221; \/&gt;&lt;\/a&gt;&lt;\/div&gt;<br \/> &nbsp;&nbsp;&nbsp; &lt;\/div&gt;<br \/> &nbsp;&nbsp;&nbsp; &lt;\/div&gt;<br \/> &nbsp;&lt;\/div&gt;<br \/> &lt;\/div&gt;<br \/> &lt;div class=&#8221;blank5&#8243;&gt;&lt;\/div&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> &nbsp;\u6700\u540e\uff0c\u5230\u540e\u53f0\u66f4\u65b0\u4e0b\u7f13\u5b58\uff0c\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u7ecf\u5e38\u770b\u5230\u6709\u4eba\u95ee\uff0c\u5982\u4f55&#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-199129","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199129","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=199129"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199129\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}