Location: PHPKode > projects > Gashash > index.php
<?php include ('header.php');
if (!session_register("username")) { echo "boo";}
?>
<div align="center">
<table class="sborder" border="0" cellspacing="0" cellpadding="0" width="80%">
	    <tr>
    		<td width="100%" class="bg" height="40" >
			<table class="text" border="0" width="100%" cellspacing="2" cellpadding="2">
			<tr>
				<td width="11%" rowspan="2"><img src="images/cp.gif"/></td>
				<td width="78%"><?php echo _CP ;?></td>
			    <td width="11%"><a href="logout.php"><?php echo _LOGOUT ;?></a></td>
			</tr>
			<tr>
			  <td colspan="2">&nbsp;</td>
			  </tr>
			</table>
			</td>
	    </tr>
	<tr>
		<td>
		<table class="text" border="0" cellspacing="0" cellpadding="0" width="100%">
			<tr>
			<td align="center" width="33%"
			<?php 
			if (($_GET[tab] == "harvest") || ($_GET[tab] == "")) 
			{ echo "class=\"darkbg\" 
			style=\" border: 1px #085408; border-top-style: solid; border-left-style: solid;\""; } 
			else { echo "class=\"bg\"
			style=\" border: 1px #085408; border-top-style: solid; border-left-style: solid; border-bottom-style: solid\""; }
			?>
			>
			<a href="index.php?tab=harvest"><?php echo _HARVEST; ?></a></td>
			<td align="center" width="33%" 
			<?php 
			if ($_GET[tab] == "projects") { echo "class=\"darkbg\"
			style=\" border: 1px #085408; border-top-style: solid; border-left-style: solid; border-right-style: solid;\""; } 
			else { echo "class=\"lightbg\"
			style=\" border: 1px #085408; border-top-style: solid; border-left-style: solid; border-right-style: solid; border-bottom-style: solid\""; }
			?>
			>
			<a href="index.php?tab=projects"><?php echo _PROJECTS; ?></a></td>
			<td align="center" width="33%" 
			<?php 
			if ($_GET[tab] == "edit") { echo "class=\"darkbg\"
			style=\" border: 1px #085408; border-top-style: solid; border-right-style: solid;\""; } 
			else { echo "class=\"bg\"
			style=\" border: 1px #085408; border-top-style: solid; border-right-style: solid; border-bottom-style: solid\""; }
			?>
			><a href="index.php?tab=edit"><?php echo _EDITADMIN; ?></a></td>
			</tr>
		</table>
		</td>
	</tr>
	    <tr>
    		<td width="100%" class="darkbg" colspan="5" height="4" ></td>
	    </tr>
	<tr>
		<td width="100%">
<!---------------------------------------------------------------->
<?php	
	switch ($_GET['tab']) 
	{
		case "":
		define( 'gashash' , 1 );
		include ('harvest.php');
		break;
		
		case "harvest":
		define( 'gashash' , 1 );
		include ('harvest.php');
		break;
		
		case "projects":
		define( 'gashash' , 1 );
		include ('projects.php');
		break;
		
		case "edit":
		define( 'gashash' , 1 );
		include ('edit_admin.php');
		break;
		}
?>
<!---------------------------------------------------------------->
	</td>
	</tr>
	</table>
</div>	
<?php include ('footer.php');?>
Return current item: Gashash