摘要:
发现phpcms数据表里面,存的是区域的数字,具体的自己看。自己查非常麻烦。内置一个函数可以搞定。 //第一个参数,传的就是数据表里面的数字 {get_linkage($val['area'],1,' ',1)} 阅读全文
摘要:
(select id,catid,typeid,title from hz_news_donate_goods where typeid=66 ) union(select id,catid,typeid,title from hz_news_donate_money where typeid=66 阅读全文
摘要:
<?php /***自定义不按照模型进行全站搜索*code by XT*2016/3/16*/defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_sys_class('form','',0); pc_base 阅读全文
摘要:
<script> function GetHref(obj){ var Para =$(obj).text();//$(obj)把dom对象转换jq对象 alert(Para); }</script> <button onclick="GetHref(this);" src="www">1111</ 阅读全文
摘要:
错误提示: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the s 阅读全文
摘要:
{pc:get sql="select *,count(*) as count from hz_favorite where adddate>=DATE_SUB(CURDATE(),INTERVAL WEEKDAY(CURDATE()) DAY) group by title order by co 阅读全文
摘要:
{php $j=1;} {loop subcat($catid) $v} <strong>{$v[catname]}</strong>//$v[catname]是主栏目的名称 {pc:content action="lists" catid="$v[catid]" num="5" order="id 阅读全文
摘要:
{pc:content action="position" posid="2" order="listorder DESC" num="4" moreinfo="1" } {loop $data $key $val} {$val[title]}{$val[money]} {/loop}{/pc} 第 阅读全文
摘要:
//在需要调用的模板前写这句代码,$CATEGORYS 代表分类,$TYPE 代表类别(没有这句话,调不出来) {php $CATEGORYS = getcache('category_content_'.$siteid,'commons');$TYPE = getcache('type_conte 阅读全文