/[LeafOK_CVS]/fenglin/bbs/top_user_gen.inc.bak.php
ViewVC logotype

Annotation of /fenglin/bbs/top_user_gen.inc.bak.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Mon Jun 21 00:13:21 2004 UTC (21 years, 9 months ago) by sysadm
Branch: MAIN
Generate top_user_list

1 sysadm 1.1 <?
2     $rs=mysql_query("select bbs.UID,count(*)*10+".
3     "sum(bbs.excerption*100+".
4     "bbs.ontop*50+bbs.reply_count/10+".
5     "bbs.view_count/100+bbs.length/1000)".
6     " as c_order,user_pubinfo.nickname from bbs".
7     " inner join user_pubinfo on bbs.UID=user_pubinfo.UID".
8     " inner join section_config on bbs.SID=section_config.SID".
9     " where bbs.TID=0 and bbs.visible and bbs.transship=0 and".
10     " section_config.public and section_config.exp_get".
11     " and section_config.recommend and (bbs.sub_dt >= ".
12     "subdate(now(),interval '14' day))".
13     " group by bbs.UID having c_order>=100".
14     " order by c_order desc limit 10")
15     or die("Query data error!");
16    
17     while ($row=mysql_fetch_array($rs))
18     {
19     ?>
20     <a class="s2" href="javascript:show_profile(<? echo $row["UID"]; ?>)"><? echo $row["nickname"]; ?></a><br>
21     <?
22     }
23    
24     mysql_free_result($rs);
25     ?>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1