Location: PHPKode > projects > Blackbeard's Revenge > character.php
<?php
session_start(); 
//header("Cache-control: private");

require_once "headers.php";
require_once "common.php";

//  --------------------------------------------------
//  |  Blackbeard's Revenge                          |
//  |  Written By:  Brian Austin                     |
//  |  Contact at:  hide@address.com         |
//  |  CopyLeft 2003								 |
//  |  Module:  Character                            |
//  |  Description:                                  |
//  |    This module handles character sheet display |
//  --------------------------------------------------
echo"<BODY><div align=left>";
echo "<table class=\"menu\">";
echo "	<tr>";
echo "		<td class=\"menuheader\" style=\"height:25px;width:450px;text-align:center\" colspan=3>Character Stats</td>";
echo "	</tr><tr><td>";
echo "<table class=\"data\" style=\"width: 450;border-top:1px solid black;border-left:1px solid black;border-right:1px solid black;border-bottom:3px solid black\"\">";
echo "<tr><td colspan=2 class=\"header2\" style=\"border-top:1px solid black;border-left:1px solid black;border-right:1px solid black;border-bottom:1px solid black;padding: 2px;\">Name:  ". $_SESSION[user]["name"] ."</td></tr>";
echo "<tr>";
echo "<td><table class=\"data\">";
echo "      <tr><td style=\"text-align: center\"><img src=\"http://blackbeard.voyageurperdu.com/images/pirate_". $_SESSION[user]["sex"]  .".png\" alt=\"Your portrait\"><br><br><img src=\"http://blackbeard.voyageurperdu.com/images/flags/flag". $_SESSION[user]["country"] .".png\" alt=\"Your national flag\"><br><br><img src=\"http://blackbeard.voyageurperdu.com/images/rank/". $_SESSION[user]["level"]  .".gif\" alt=\"Your rank\" height=35 width=100></td></tr>";
echo "    </table>";
echo "</td>";
echo "<td style=\"text-align:right\">";
echo "<div align=center><table class=\"data\" style=\"border-top:1px solid black;border-left:1px solid black;border-right:1px solid black;border-bottom:3px solid black;width:300px\">";
echo "      <tr>";
echo "        <td style=\"color:#4E90FF;font-weight: bold\">Age</td>";
echo "	    <td style=\"width:100px; text-align:left\">";

	for($x = MINAGE; $x < $_SESSION[user]["age"] && $x < MAXAGE;  $x=$x+AGESCALER)
	{
		echo"<img src=\"http://blackbeard.voyageurperdu.com/images/bluebar.png\">";
	}

echo "      </td><td style=\"color:#4E90FF; text-align:right;font-weight: bold\">". $_SESSION[user]["age"]  . "</td>";
echo "      </tr>";
echo "      <tr>";
echo "        <td style=\"color:#7FA191;font-weight: bold\">Charisma</td>";
echo "	    <td style=\"width:100px; text-align:left\">";

	for($x = MINCHAR; $x < $_SESSION[user]["charisma"] && $x < MAXCHAR; $x=$x+CHARSCALER)
		{
			echo "<img src=\"http://blackbeard.voyageurperdu.com/images/greenbar.png\">";
		}

echo "	    </td><td style=\"color: #7FA191; text-align:right;font-weight: bold\">". $_SESSION[user]["charisma"] ."</td>";
echo "      </tr>";
echo "      <tr>";
echo "        <td><font style=\"color: #E20000;font-weight: bold\">Gunnery Skill</td>";
echo "	    <td style=\"width:100px; text-align:left\">";

	for($x = MINGUNN; $x < $_SESSION[user]["gunnery"] && $x < MAXGUNN; $x=$x+GUNNSCALER)
		{
			echo "<img src=\"http://blackbeard.voyageurperdu.com/images/redbar.png\">";
		}

echo "	    </td><td style=\"color:#E20000; text-align:right;font-weight: bold\">". $_SESSION[user]["gunnery"]."</td>";
echo "      </tr>";
echo "      <tr>";
echo "        <td style=\"color:#404040; font-weight: bold\">Sailing Skill</td>";
echo "	    <td style=\"width:100px; text-align:left\">";


	for($x = MINSAIL; $x < $_SESSION[user]["sailing"] && $x < MAXSAIL; $x=$x+SAILSCALER)
		{
			echo "<img src=\"http://blackbeard.voyageurperdu.com/images/greybar.png\">";
		}
echo "	    </td><td style=\"color:#404040; text-align:right;font-weight: bold\">". $_SESSION[user]["sailing"] ."</td>";
echo "     </tr>";
echo "      <tr>";
echo "        <td style=\"color:#FFA500;font-weight: bold\">Experience</td>";
echo "  	    <td style=\"width:100px; text-align:left\">";

	for($x = MINEXP; $x < $_SESSION[user]["experience"] && $x < MAXEXP; $x=$x+EXPSCALER)
		{
			echo "<img src=\"http://blackbeard.voyageurperdu.com/images/orangebar.png\">";
		}
echo "	    </td><td style=\"color:#FFA500; text-align=right;font-weight: bold\">". $_SESSION[user]["experience"] ."</td>";
echo "    </tr>";
echo "    </table>";
echo "<table style=\"width: 300px\"><tr><td style=\"text-align:center\">";
include("shipstats.php");
echo "</td></tr></table>";
echo "</div></td>";
echo "</tr>";
echo "<tr>";
echo "<td style=\"text-align: center\" colspan=2>";
echo " <div align=center><table>";
echo "    <tr><td style=\"color:#FCE430; text-align:center; font-weight: bold\"><img src=\"http://blackbeard.voyageurperdu.com/images/gold.png\" alt=\"Your booty\"><br>Gold</td>";
echo "      <td style=\"color:#FCE430; text-align:center;font-weight: bold\">". $_SESSION[user]["gold"] . "<td style=\"width:75\"></td>";
echo "      <td style=\"text-align:center; text-align:center;font-weight: bold\"><img src=\"http://blackbeard.voyageurperdu.com/images/map.png\" alt=\"Treasure maps\"><br>Treasure Maps</td>";
echo "      <td style=\"color:#000000; text-align:center; font-weight: bold\">". $_SESSION[user]["maps"] ."</td>";
echo "    </tr>";
echo "    </table>";
echo "</div></td>";
echo "</tr>";
echo "</table>";
echo "</td></tr></table>";

echo "</div>";
echo "</BODY>";
include("footer.php");

?>
Return current item: Blackbeard's Revenge