Location: PHPKode > projects > SWG Resource Tracker > distro/upload/menu.php
<?php
	
/*
 *	SWG Resource Tracker
 *	Copyright (C) 2004 Enigma
 *
 *	This program is free software; you can redistribute it and/or
 *	modify it under the terms of the GNU General Public License
 *	as published by the Free Software Foundation; either version 2
 *	of the License, or (at your option) any later version.
 *	
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *	
 *	You should have received a copy of the GNU General Public License
 *	along with this program; if not, write to the Free Software
 *	Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
?>
<div id="menuheader">Main Menu</div>
<h4>Locations</h4>
<div class="menuitem"><?php echo "<a href='$baseurl?act=add'>Add a Resource Location</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=view'>View Resource Locations</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=places&amp;CODE=1'>Add a Place</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=places'>View Places</a>"; ?></div>

<br />
<h4>Availability</h4>
<div class="menuitem"><?php echo "<a href='$baseurl?act=current&amp;CODE=1'>Add Current Resources</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=current'>View Current Resources</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=history'>View Past Resources</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=recent'>View Recent Resources</a>"; ?></div>

<br />
<div class="menuitem"><?php echo "<a href='$baseurl?act=surveydroid'>Import Survey Droid</a>"; ?></div>

<br />
<div class="menuitem"><?php echo "<a href='$baseurl?act=schematic'>Schematics</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=skills'>Skill Trees</a>"; ?></div>


<?php
	if (LOGGED_IN)
	{
?>
<h4>Inventory</h4>
<div class="menuitem"><?php echo "<a href='$baseurl?act=addinventory'>Add Inventory</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=inventory'>View Inventory</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=importinventory'>Import Inventory</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=exportinventory'>Export Inventory</a>"; ?></div>
<?php
	}
?>

<br />
<h4>Class Specific</h4>
<div class="menuitem"><?php echo "<a href='$baseurl?act=architect'>Architect</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=armorsmith'>Armorsmith</a>"; ?>
	<div class="menuitem"><?php echo "<a href='$baseurl?act=ris'>RIS</a>"; ?></div>
</div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=artisan'>Artisan</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=bioengineer'>Bio-Engineer</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=chef'>Chef</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=combatmedic'>Combat Medic</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=doctor'>Doctor/Medic</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=droidengineer'>Droid Engineer</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=shipwright'>Shipwright</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=smuggler'>Smuggler</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=tailor'>Tailor</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=weaponsmith'>Weaponsmith</a>"; ?></div>
<br />
<div class="menuitem"><?php echo "<a href='$baseurl?act=creature'>Creature Resources</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=power'>Power</a>"; ?></div>

<br />
<h4>Resources</h4>
<div class="menuitem"><?php echo "<a href='$baseurl?act=tree'>View Resource Tree</a>"; ?></div>
<?php
	if (LOGGED_IN)
	{
?>
<div class="menuitem"><?php echo "<a href='$baseurl?act=favorites'>Favorites/Watched</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=calculation'>Set Calculation</a>"; ?></div>
<?php
	}
?>
<br />
<?php
	if (LOGGED_IN)
	{
?>
<div class="menuitem"><?php echo "<a href='$baseurl?act=account'>Account</a>"; ?></div>
<div class="menuitem"><?php echo "<a href='$baseurl?act=settings'>Settings</a>"; ?></div>
<?php
	}
?>
<div class="menuitem"><?php echo "<a href='$baseurl?act=help'>Help</a>"; ?></div>
<?php
	if (PHP_OS == "Darwin" || PHP_OS == "Linux")
	{
		$load = array();
		ereg("load average[a-z]*: ([0-9\.]+)", `uptime`, $load);
		$load = ceil(($load[1] / SERVER_LOAD_MAX) * 100);
		if ($load > 100)
		{
			$load = 100;
		}
		
		echo "<div id=\"serverloadtext\">Server Load:</div>
				<div id=\"serverloadshell\"><div id=\"serverload\" style=\"width: {$load}%\"></div></div>\n";
	}
?>
Return current item: SWG Resource Tracker