帝国cms列表内容模板(list.var)调用会员头像会员名会员积分

内容摘要
列表内容模板(list.var) 代码: $uid=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid={$r[userid]}"); $usql=$empire->fetch1("select * from {$dbt
文章正文

列表内容模板(list.var)

 

代码:

 

$uid=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid={$r[userid]}");

 

$usql=$empire->fetch1("select * from {$dbtbpre}enewsmember where userid = {$r['userid']}");

 

$userpic=$uid['userpic'];

 

$uurl="/e/space/?userid={$r['userid']}";

 

$jifen=$usql['userfen'];

 

$listtemp='<div class="head">

 

<a href="'.$uurl.'" title="[!--title--]">

 

<img src="'.$userpic=$uid['userpic'].'" width="50" height="50" alt="">

 

</a>积分<span class="jf">'.$jifen.'</span>

 

<span class="zz">作者:</span>

 

<a href="'.$uurl.'" >'.$r[username].'</a>

 

</div>';

代码注释

作者:喵哥笔记

IDC笔记

学的不仅是技术,更是梦想!