1.多个字段排序
$Xwdt=$this->modelAtc->findAll("Type_id=5","Top_index desc,created desc",9,"Id,Title,created,Dianji,Top_index");
   $this->smarty->assign('Xwdt',$Xwdt);

© 2008, Zeroun's Blog -- 黄志勇的博客!. 版权所有.

作者:
该日志由 admin 于2008年06月29日发表在ASP, C/C++/C#, JS/Ajax/Css/Html, PHP分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。 | +复制链接
转载请注明: 代码笔记
关键字:
【上一篇】
【下一篇】

您可能感兴趣的文章:

2 篇回应 (访客:2 篇, 博主:0 篇)

  1. dobby 说道:

    修改收藏夹位置:
    注删表路径:
    HKEY_USERs\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    把“Favorites”的值改成想要的路径!

    #1楼
  2. admin 说道:

    2.一个smarty的表格自动分行的代码

    {{section name=loop loop=$list step=1}}
    {{if $smarty.section.loop.index % 4==0}}
    {{/if}}

    {{/section}}

    width="91%" bgcolor="#dedfde" border="0">
    width="90%" border="0">
    border="0">
    {{$list[loop].Title}}
    图片说明:{{$list[loop].Content}}” rel=”lightbox[plants]“>点 击 查 看 大 图
    f width="10" height="100" />
     
    #2楼

发表评论

[请申请gravatar头像,木有头像的评论可能不会被回复|头像相关帮助]

插入图片