2016年4月1日

摘要: 发现phpcms数据表里面,存的是区域的数字,具体的自己看。自己查非常麻烦。内置一个函数可以搞定。 //第一个参数,传的就是数据表里面的数字 {get_linkage($val['area'],1,' ',1)} 阅读全文
posted @ 2016-04-01 15:50 林旭涛 阅读(148) 评论(0) 推荐(0) 编辑

2016年3月30日

摘要: (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 阅读全文
posted @ 2016-03-30 15:39 林旭涛 阅读(129) 评论(0) 推荐(0) 编辑

2016年3月28日

摘要: <?php /***自定义不按照模型进行全站搜索*code by XT*2016/3/16*/defined('IN_PHPCMS') or exit('No permission resources.'); pc_base::load_sys_class('form','',0); pc_base 阅读全文
posted @ 2016-03-28 12:39 林旭涛 阅读(395) 评论(0) 推荐(0) 编辑

2016年3月25日

摘要: <script> function GetHref(obj){ var Para =$(obj).text();//$(obj)把dom对象转换jq对象 alert(Para); }</script> <button onclick="GetHref(this);" src="www">1111</ 阅读全文
posted @ 2016-03-25 11:39 林旭涛 阅读(2487) 评论(0) 推荐(0) 编辑
摘要: 错误提示: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the s 阅读全文
posted @ 2016-03-25 10:28 林旭涛 阅读(322) 评论(0) 推荐(0) 编辑

2016年3月24日

摘要: {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 阅读全文
posted @ 2016-03-24 14:24 林旭涛 阅读(233) 评论(0) 推荐(0) 编辑

2016年3月21日

摘要: {php $j=1;} {loop subcat($catid) $v} <strong>{$v[catname]}</strong>//$v[catname]是主栏目的名称 {pc:content action="lists" catid="$v[catid]" num="5" order="id 阅读全文
posted @ 2016-03-21 18:39 林旭涛 阅读(314) 评论(0) 推荐(0) 编辑
摘要: {pc:content action="position" posid="2" order="listorder DESC" num="4" moreinfo="1" } {loop $data $key $val} {$val[title]}{$val[money]} {/loop}{/pc} 第 阅读全文
posted @ 2016-03-21 16:11 林旭涛 阅读(342) 评论(0) 推荐(0) 编辑

2016年3月18日

摘要: //在需要调用的模板前写这句代码,$CATEGORYS 代表分类,$TYPE 代表类别(没有这句话,调不出来) {php $CATEGORYS = getcache('category_content_'.$siteid,'commons');$TYPE = getcache('type_conte 阅读全文
posted @ 2016-03-18 15:21 林旭涛 阅读(448) 评论(0) 推荐(0) 编辑

导航