列表模板中要調(diào)用副表字段內(nèi)容需要采用“list.var支持程序代碼”。下面以讀取新聞副表中的newstext字段為例的list.var模板代碼: $fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$r[stb]} where id='$r[id]'"); $listtemp='<a href="[!--titleurl--]">[!--title--]</a> <br>副表內(nèi)容字段:'.$fr[newstext].'<br><br>';