分享

sql调用多个指定栏目指定文章

 shattermemo 2012-08-13
<!--sql调用多个指定栏目,文章-->
{dede:sql sql="select a.id,a.pubdate,a.litpic,a.title,t.id,t.typedir from  #@__archives as a left join #@__arctype as t on a.typeid=t.id where a.typeid in(69,70,71,72,73,74) and a.flag like '%p%' order by pubdate desc limit 0,4"}
            <div class="ppfk_cellk L">
                  <div class="ppfk_cell">
                    <div class="ppfk_cellpic bord"><a href="[field:typedir runphp='yes']@me=str_replace('{cmspath}','','@me');[/field:typedir]/[field:id/].html"><img src='[field:litpic/]' border='0' width='120' height='120' alt='[field:title/]'/></a></div>
                    <div class=" ppfk_wen"><a href="[field:typedir runphp='yes']@me=str_replace('{cmspath}','','@me');[/field:typedir]/[field:id/].html" title="[field:title/]">[field:title/]</a></div></div></div>
{/dede:sql}

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约