首页 > CMS > 织梦DEDE > 正文

织梦CMS在dede:arclist、dede:list等标签中调用附加字段

2024-07-09 22:52:20
字体:
来源:转载
供稿:网友

在dede:arclist、dede:list等标签中调用附加字段

  1. {dede:list perpage='20'} 
  2. <div class="f-con01"> 
  3. <div class="f-con01-l"> 
  4. <a><img src="/templets/qiba/images/con01-f.jpg"></a> 
  5. </div> 
  6. <div class="f-con01-r"> 
  7. <p class="a6"><a href="[field:arcurl/]" target="_blank">[field:title/]</a></p> 
  8. <p><a>[field:description/]...</a></p> 
  9. <dl> 
  10. <dt>地址:</dt> 
  11. <dd>[field:id runphp="yes"] 
  12. $dsql = new DedeSql(false); 
  13. $sql="SELECT qiba.address from `dede_addonqiba` as qiba where [email protected]"; 
  14. $arcRow = $dsql->GetOne($sql); 
  15. @me=''.$arcRow['address'].''; 
  16. [/field:id]</dd> 
  17. <dt>乘车路线:</dt> 
  18. <dd>[field:id runphp="yes"] 
  19. $dsql = new DedeSql(false); 
  20. $sql="SELECT qiba.roadline from `dede_addonqiba` as qiba where [email protected]"; 
  21. $arcRow = $dsql->GetOne($sql); 
  22. @me=''.$arcRow['roadline'].''; 
  23. [/field:id]</dd> 
  24. </dl> 
  25. <dl> 
  26. <dt>电话:</dt> 
  27. <dd>[field:id runphp="yes"] 
  28. $dsql = new DedeSql(false); 
  29. $sql="SELECT qiba.telephone from `dede_addonqiba` as qiba where [email protected]"; 
  30. $arcRow = $dsql->GetOne($sql); 
  31. @me=''.$arcRow['telephone'].''; 
  32. [/field:id]</dd> 
  33. </dl> 
  34. </div> 
  35. <div class="f-con01-b"> 
  36. <div class="star"> 
  37. <p>评分:</p> 
  38. [field:id runphp="yes"] 
  39. @me=rating_bar(@me,5); 
  40. [/field:id] 
  41. </div> 
  42. </div> 
  43. <div class="clear"></div> 
  44. </div> 
  45. {/dede:list}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表