最后二次开发完成后的效果
$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">添加关注</a> <a class="sendInfo" href="/e/member/msg/AddMsg/?enews=AddMsg" target="_blank">发送短信</a> </p> </li> <?php } ?>
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 帝国CMS二次开发调用关注我的列表