最后二次開發(fā)完成后的效果
$totalquery="select count(*) as total from {$dbtbpre}enewshy where fname='$username'".$a; $num=$empire->gettotal($totalquery); $query="select * from {$dbtbpre}enewshy where fname='$user[username]'".$a; $query.=" order by fid desc limit $offset,$line"; $sql=$empire->query($query); $returnpage=page1($num,$line,$page_line,$start,$page,$search);
<?php while($r=$empire->fetch($sql)){ $fuaddr=$empire->fetch1("select userpic,fax from {$dbtbpre}enewsmemberadd where userid='$r[userid]' limit 1"); $fuaddr2=$empire->fetch1("select userfen,username from {$dbtbpre}enewsmember where userid='$r[userid]' limit 1"); ?> <li> <img src="<?=$fuaddr[userpic]?$fuaddr[userpic]:$public_r[newsurl].'e/data/images/nouserpic.gif'?>" width="60" height="60"> <p class="gz_info"> <a class="gz_name" href="../ShowInfo/?username=<?=$fuaddr2[username]?>" target="_blank"><?=$fuaddr2[username]?></a> <span>性別:<?=$fuaddr[fax]?> 積分:<?=$fuaddr2[userfen]?></span> </p> <p class="gz_opera"> <a class="qx_gz" href="/e/member/friend/add/?fcid=0?<?=$fuaddr2[username]?>" target="_blank">添加關(guān)注</a> <a class="sendInfo" href="/e/member/msg/AddMsg/?enews=AddMsg" target="_blank">發(fā)送短信</a> </p> </li> <?php } ?>
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 帝國CMS二次開發(fā)調(diào)用關(guān)注我的列表