droy | 5bb8117 | 2008-04-04 19:25:24 +0000 | [diff] [blame] | 1 | <?php |
| 2 | /******************************************************************************* |
| 3 | * Copyright (c) 2008 Eclipse Foundation and others. |
| 4 | * All rights reserved. This program and the accompanying materials |
| 5 | * are made available under the terms of the Eclipse Public License v1.0 |
| 6 | * which accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Eclipse Foundation - initial API and implementation |
| 11 | *******************************************************************************/ |
| 12 | |
| 13 | |
| 14 | require_once("frag_global.php"); |
| 15 | |
| 16 | $query = "SELECT value, quantity FROM scoreboard WHERE itemid = 'TOPTR' ORDER BY quantity DESC"; |
| 17 | |
| 18 | $res = mysql_query($query); |
| 19 | |
| 20 | ?> |
| 21 | <div id="top-translators-area"> |
| 22 | <h2>Top Translators</h2> |
| 23 | <dl> |
| 24 | <? |
| 25 | while($row = mysql_fetch_assoc($res)){ |
| 26 | ?><dt><?=$row['value'] ?></dt> |
| 27 | <dd><?=$row['quantity'];?></dd><? |
| 28 | } |
| 29 | ?> |
| 30 | </dl> |
droy | d0b8959 | 2008-05-15 19:18:20 +0000 | [diff] [blame] | 31 | <br /> |
| 32 | <a href="stats.php">More stats...</a> |
gobrien | 3189644 | 2008-04-07 17:56:41 +0000 | [diff] [blame] | 33 | </div> |
droy | d0b8959 | 2008-05-15 19:18:20 +0000 | [diff] [blame] | 34 | |
| 35 | <br style='clear: both;'> |