在列表內(nèi)容模板里面寫(xiě)如下代碼即可!
$userr=$empire->fetch1("select befrom from {$dbtbpre}ecms_news_data_{$r[stb]} where id='$r[id]'");
if(empty($userr[befrom]))
{
$userr[befrom]='IDC筆記'; //沒(méi)有填寫(xiě)來(lái)源顯示
}
if($userr[befrom])
{
$userr[befrom]=ReplaceBefrom($userr[befrom]);
}
$listtemp='
[!–tt.name–] [!–title–]
[!–newstime–] 來(lái)源于: '.$userr[befrom].'
[!–smalltext–]… [查閱全文]
';