

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Homepage</title>
<style type="text/css"> 

a{
	font-family: calibri;
	color: FF6600;
	font-size: 14px;
}
 
b{
	font-family: calibri;
	color: black;
	font-size: 17px;
}
</style>
</head>
<body style="background-color:#F8F8F8;background-size:100% 20%;
background-repeat:no-repeat;">
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<table class="background" width="100%">
	<tr>
	<td>
		<img onclick="location.href='homepage.php'" src="bull01.jpg"/>
	</td>

	<td>
	<?php session_start();
if(isset($_SESSION['login']))
{
	$con= mysql_connect("localhost:3306","","");
if (!$con)
{
	die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", $con);
$email=$_SESSION['email'];
$result=mysql_query("select Username from userdata where Email='$email'");
$sq = mysql_fetch_row($result);
$sq=$sq[0];
echo "<p style='font-family: calibri;color: black;font-size: 14px;'>";
echo "Welcome ".$sq."</br>";
echo "</p>";
}
else
{
	header( "Location: login.php" ); 
}
?>
		<a href="logout.php" >Logout</a>
	</td>
	</tr>
	<tr>	<td>
<iframe width="100%" height="115" style="border:none;" name="ads" src="ads.php" frameborder="0"></iframe>
</td></tr>


</tr>

  </table>
  <table border="0" height="400" width="100%" >
	  <tr>
			<td valign="top" width='15%' style="background-color:#E8E8E8;">

				<b>NAVIGATION</b>
				</br>
				</br>
				<b>Home</b>
				</br> &nbsp &nbsp
				<a href="homepage.php">My Home</a>
				</br>
				&nbsp &nbsp
				<a href="aboutus.php" target="instructionset">About Us</a>
				</br>
				</br>
				<b>My Portfolio</b>
				</br> &nbsp &nbsp
				<a href="myportfolio.php" target="instructionset">My Game Portfolio</a>
				</br> &nbsp &nbsp
				<a href="leaderboard.php" target="instructionset">My Ranking</a>
				</br>
			     &nbsp &nbsp
				<a href="watchlist.php" target="instructionset">My Watchlist</a>
				</br>
				</br>
				<b>My Profile</b>
				</br> &nbsp &nbsp
				<a href="aboutme.php" target="instructionset">About Me</a>
				</br> &nbsp &nbsp
				<a href="accountmng.php">Edit Profile</a>
				</br> &nbsp &nbsp
				<a href="tradingdiary.php" target="instructionset">Trading Diary</a>
				</br>
				</br>
				<b>Trading Floor</b>
				</br> &nbsp &nbsp
				<a href="help.php" target="instructionset">Help
					Documentation</a>
				</br> &nbsp &nbsp
				<a href="Top5gainers.php" target="instructionset">Top 5 Gainers/Losers</a>
				</br> &nbsp &nbsp
				<a href="mostactive.php" target="instructionset">Most Active Companies</a>
				</br> &nbsp &nbsp
				<a href="tradestocks.php" target="instructionset">Trade Stocks</a>
				</br> &nbsp &nbsp
				<a href="tradinghistory.php" target="instructionset">Trading History</a>
				</br> &nbsp &nbsp
				<a href="forum.php" target="instructionset">Forum</a>
				</br>
				<iframe width="0%" height="0" style="border:none;" src="test.php" name="cronjob" frameborder="0"></iframe>
				</br>
				<div class="fb-like-box" data-href="http://www.facebook.com/pages/TradeFun/314683538561123" data-width="200" data-show-faces="true" data-stream="false" data-header="true"></div>
				</br>
			<td>
			<td valign="top" width="100%" style="background-color:#E8E8E8; background-size:100% 100%;
background-repeat:no-repeat;">
				<div id="rightcolumn">
<iframe width="100%" height="925" style="border:none;" name="instructionset" src="http://output40.rssinclude.com/output?type=iframe&amp;id=374623&amp;hash=e1c856f523b195ad478138c3fea39969"  frameborder="0"></iframe>
				</div>				
			</td>
						
			</td>
			
								
		</tr>
	</table>
	
</body>
</html>