Location: PHPKode > projects > iLP System > Release 2.2/upload/lib/templates/tpl.menu.php
<?php
/**
 * Main menu
 * 
 * Autor:		Florian "ApoY2k" Peschka
 * Projekt:		iLP System
 * Paket:		apoy2k.ilp.wrynn.lib.tpl
 * Lizenz:		CreativeCommons (by-nc-sa)
 * Kontakt:		hide@address.com
 * Version:		2.1.1
 */
echo '<div id="menu">
				<ul class="menu">
					<li class="title">'.$lang['page']['menu']['main'].'</li>';

if (isset($tpl['user']['logged']) && true == $tpl['user']['logged'])
{
	echo '<li><a';
	if (isset($tpl['url'][1]) && 'list' == $tpl['url'][1])
	{
		echo ' id="menu_active"';
	}
	echo ' href="?ilp='.ilpUrlEncode('start;list').'"><img src="images/icons/cart.png" alt="icon" />'.$lang['page']['menu']['list'].'</a></li>
		<li><a';
		
	if (isset($tpl['url'][1]) && 'reqs' == $tpl['url'][1])
	{
		echo ' id="menu_active"';
	}
	echo ' href="?ilp='.ilpUrlEncode('start;reqs').'"><img src="images/icons/email.png" alt="icon" />'.$lang['page']['menu']['reqs'].'</a></li>
		<li><a';
		
	if (isset($tpl['url'][1]) && 'events' == $tpl['url'][1])
	{
		echo ' id="menu_active"';
	}
	echo ' href="?ilp='.ilpUrlEncode('start;events').'"><img src="images/icons/date.png" alt="icon" />'.$lang['page']['menu']['events'].'</a></li>
	
		<li><a href="logout.php"><img src="images/icons/key_delete.png" alt="icon" />'.$lang['page']['menu']['logout'].'</a></li>';
}

else
{
	echo '<li><a';
	if (isset($tpl['url'][1]) && 'login' == $tpl['url'][1])
	{
		echo ' id="menu_active"';
	}
	echo ' href="?ilp='.ilpUrlEncode('start;login').'"><img src="images/icons/key_go.png" alt="icon" />'.$lang['page']['menu']['login'].'</a></li>';
}

echo '</ul>
	<ul class="menu">
		<li class="title">'.$lang['page']['menu']['statistics'].'</li>
		<li><a';
	if (isset($tpl['url'][0]) && 'statistics' == $tpl['url'][0])
	{
		echo ' id="menu_active"';
	}
	echo ' href="?ilp='.ilpUrlEncode('statistics').'"><img src="images/icons/chart_bar.png" alt="icon" />'.$lang['page']['menu']['show_all'].'</a></li>
	</ul>
	</div>';
?>
Return current item: iLP System