Location: PHPKode > projects > iLP System > Release 2.2/upload/_backend/lib/templates/tpl.menu.php
<?php
/**
 * iLP System Template: Hauptmenü (Backend)
 * 
 * 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">';

if (1 == $_SESSION['config']['locked'])
{
	echo '<div class="info">
			<h1>'.$lang['page']['menu']['locked']['header'].'</h1>
			<p>'.$lang['page']['menu']['locked']['text'].'</p>
			<a href="?ilp='.ilpUrlEncode('events;unlock').'&ref=';
	
	if(isset($_GET['ilp']))
		echo $_GET['ilp'];
	else
		echo ilpUrlEncode('start');
	
	echo '"><img src="../images/icons/lock_open.png" alt="icon" /> '.$lang['page']['menu']['locked']['unlock'].'</a>
		</div>';
}

echo '<ul class="menu">
			<li class="title">'.$lang['page']['navi']['events'].'</li>
			<li><a';

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

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

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

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

if (isset($tpl['url'][0]) && 'eventtypes' == $tpl['url'][0] && !isset($tpl['url'][1]))
{
	echo ' id="menu_active"';
}
echo ' href="?ilp='.ilpUrlEncode('eventtypes').'"><img src="../images/icons/calendar_edit.png" alt="icon" />'.$lang['page']['menu']['edit_type'].'</a></li>
		</ul>
		<ul class="menu">
			<li class="title">'.$lang['page']['navi']['users'].'</li>
			<li><a';

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

if (isset($tpl['url'][0]) && 'search' == $tpl['url'][0] && isset($tpl['url'][1]) && 'user' == $tpl['url'][1])
{
	echo ' id="menu_active"';
}
echo ' href="?ilp='.ilpUrlEncode('users').'"><img src="../images/icons/user_edit.png" alt="icon" />'.$lang['page']['menu']['edit_user'].'</a></li></ul>
	<ul class="menu">
		<li class="title">'.$lang['page']['navi']['system'].'</li>
		<li><a';

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

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