PHP学习_PHP技术_PHP网站建设_PHP程序员专注于PHP技术研究及学习

Adophper » 编程开发 » Destoon分类目录下按拼音浏览

Destoon分类目录下按拼音浏览

此文被围观1102日期: 2012-03-31 分类 : 编程开发  标签:  ···

代码如下:

{php $LETTER = array(‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’, ‘i’, ‘j’, ‘k’, ‘l’, ‘m’, ‘n’, ‘o’, ‘p’, ‘q’, ‘r’, ‘s’, ‘t’, ‘u’, ‘v’, ‘w’, ‘x’, ‘y’, ‘z’);}
{loop $LETTER $l}
<a href=”?letter={$l}” target=”_self” id=”letter_{$l}”>{$l}</a>
{/loop}

查询:

{php $lt = $_GET['letter'];}
{if empty($lt)}
<!–{tag(“moduleid=$moduleid&table=category&condition=moduleid=$moduleid and level=1&order=item desc&showpage=1&areaid=$cityid&page=$page&pagesize=”.$MOD[pagesize].”&template=xxx-list&dtpre=$DT_PRE”)}–>
{else}
<!–{tag(“moduleid=$moduleid&table=category&condition=moduleid=$moduleid and level=1 and letter=’”.$lt.”‘&order=item desc&showpage=1&areaid=$cityid&page=$page&pagesize=”.$MOD[pagesize].”&template=xxx-list&dtpre=$DT_PRE”)}–>
{/if}


本站使用ThinkPHP框架开发读图网主题,目前托管在阿里云,图片由读图网提供. 蜀ICP备12031064号

Copyright © 2011-2017adophper.com All Rights Reserved.