Location: PHPKode > projects > Php4dvd - movie database > php4dvd/tpl/default/menu.html
<div id="menu">
	<table width="100%">
		<tr>
			<td width="25%">			
				<a href="./">My collection</a>
			</td>
			{* User can only add a movie when logged in and editor *}
			{if $loggedin && $User->isEditor()}
			<td width="25%">
				<a href="./?go=add">Add movie</a>
			</td>
			{/if}
			{* Users can change their password *}
			{if $loggedin}
			<td width="25%">
				<a href="./?go=profile">My profile</a>
			</td>
			{/if}
			{* User can only modify users when logged in and admin *}
			{if $loggedin && $User->isAdmin()}
			<td width="25%">
				<a href="./?go=users">User management</a>
			</td>
			{/if}
		</tr>
	</table>
</div>
Return current item: Php4dvd - movie database