• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > DedeCMS教程 > Dedecms二次开发 >

DEDE问答首页调用代码很实用.长度\宽度都可以调整.适合新手调用

来源: www.dedecms8.com 编辑:织梦吧 时间:2010-08-11点击:

<table width="390" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>{dede:sql sql="select dede_ask.id,dede_ask.title,dede_askanswer.content from dede_ask LEFT JOIN dede_askanswer on dede_ask.id=dede_askanswer.askid where dede_askanswer.ifanswer=1 and dede_askanswer.ifcheck=1 and dede_ask.bestanswer=dede_askanswer.id order by dede_ask.id desc LIMIT 0,3"}
                <table width="390" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="21"><a href="/ask/question.php?id=[field:id/]">问:[field:title function=cn_substr(@me,52)/]</a></td>
                  </tr>
                </table>
                <table width="390" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="21">答:[field:content function=cn_substr(html2text(@me),48)/]...<a href="/ask/question.php?id=[field:id/]" class="color1 STYLE4">[详细]</a></td>
                  </tr>
                </table>
               

{/dede:sql}</td>
            </tr>
          </table>


 

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ