帝国cms手机端WAP中内容页模板调用栏目缩略图和栏目简介方法

这里介绍下在帝国cms手机端WAP中内容页模板调用栏目缩略图和栏目简介方法,代码如下:


<span class="php"><span class="hljs-preprocessor">&lt;?php</span>
<span class="hljs-variable">$cr</span>=<span class="hljs-variable">$empire</span>-&gt;fetch1(<span class="hljs-string">"select classimg from {$dbtbpre}enewsclass where classid='"</span>.<span class="hljs-variable">$r</span>[<span class="hljs-string">'classid'</span>].<span class="hljs-string">"' limit 1"</span>);
<span class="hljs-preprocessor">?&gt;</span></span>
栏目缩放图:<span class="hljs-tag">&lt;<span class="hljs-title">img src="</span><span class="php"><span class="hljs-preprocessor">&lt;?</span>=<span class="hljs-variable">$cr</span>[classimg]<span class="hljs-preprocessor">?&gt;</span></span>"&gt;</span>

<span class="php"><span class="hljs-preprocessor">&lt;?</span>
<span class="hljs-variable">$classr</span>=<span class="hljs-variable">$empire</span>-&gt;fetch1(<span class="hljs-string">"select intro from {$dbtbpre}enewsclass where classid='"</span>.<span class="hljs-variable">$navinfor</span>[classid].<span class="hljs-string">"' limit 1"</span>);
<span class="hljs-preprocessor">?&gt;</span></span>

栏目简介:<span class="php"><span class="hljs-preprocessor">&lt;?</span>=DoWapRepNewstext(<span class="hljs-variable">$classr</span>[intro])<span class="hljs-preprocessor">?&gt;</span></span>
本文原创,作者:你连背影都温柔☀,其版权均为梦子博客所有。如需转载,请注明出处:https://www.mongziit.com/995.html

发表评论