php /* * Copyright (c) 2003, Tomas Stucinskas a.k.a Baboon * All rights reserved. * * Redistribution and use with or without modification, are * permitted provided that the following conditions are met: * * Redistributions must retain the above copyright notice. * File licence.txt must not be removed from the package. * * Author : Tomas Stucinskas a.k.a Baboon * E-mail : baboon@ai-hq.com */ $query = DBQuery("SELECT * FROM $awards_table WHERE type = 'A' ORDER BY name ASC"); if(file_exists($base_folder."templates/awards.htm")) { $tpl = new phemplate(); $tpl->set_file("template", $base_folder."templates/awards.htm"); $awards = array(); $row = array(); $count = 0; while($row = DBFetchArray($query)) { if($count % 2 == 0){ $row["class"] = $rowclass1; } else { $row["class"] = $rowclass2; } $row["num"] = $count + 1; $awards[$count] = $row; $count++; } $tpl->set_var("mainscript", $mainscript); $tpl->set_loop("awards", $awards); $tpl->set_var("base", $base_folder); $content = $tpl->process("", "template", 1); } else { $content = "Error: template 'awards' does not exist"; } ?>
modules/awards.php 1.0.0
Babstats - Powered by BAB.stats Chronos

  Babstats

Stats » Kill/Death Stats ::
Game Stats ::
Goal Stats ::
Weapon Stats ::
Squad Stats ::
Map Stats ::
Compare Stats ::
Monthly Stats ::
Monthly Awards ::
Overall Stats

Search Player 

Admin ::
Servers ::
Ranks ::
Awards ::
FAQ ::
 


templates/main.htm 1.0.0


Page generated in 0.002 seconds
index.php 1.0.0