Location: PHPKode > projects > Confrontation Tournament Database > skins.php
<?php
	// Script for skins.
	
	//
	// AwardPrint function prints an award icon to the table if player has it.
	// This file functions in conjuction with the definitions given in the XML database
	//
	
	function AwardPrint($awardName)
	{
		if ($awardName == "fairplay")
		{
			print '<img src="thumb.gif" align="top">';
		}
		if ($awardName == "noppa")
		{
			print '<img src="noppa.gif" align="top">';
		}
		/*if ($awardName == "army")
		{
			print "Best Painted Army Award!";
		}*/
		if ($awardName == "first")
		{
			print '<img src="trophy_gold.gif" align="top">';
		}
		if ($awardName == "second")
		{
			print '<img src="trophy_silver.gif" align="top">';
		}
		if ($awardName == "third")
		{
			print '<img src="trophy_bronze.gif" align="top">';
		}
	}
	
	// Table definitions
	
	//$tableStyle = 'width="90%" border="3" cellpadding="5" cellspacing="2" background="background.jpg"';
	$cellStyle = 'background="background_dark.jpg"';
?>
Return current item: Confrontation Tournament Database