<?php
/*
* @author Istvan Franko
* @copyright 2014
*/

//navigation links in a table
echo"
<table border='0' align='center'  cellspacing='5' cellpadding='5' style='width:850px; margin-top:-40px;' >
<tr><ul>
<td  colspan='3' class=border text-align: center;'>
<li><a href='admin.php' style='text-decoration:none'>Home</a></li></td>
<td  colspan='3' class=border text-align: center;'>
<li><a href='insert-form.php' style='text-decoration:none'>Insert an item</a></li></td>
<td  colspan='3' class=border text-align: center;'>
<li><a href='search.php' style='text-decoration:none'>Search</a></li></td>
<td  colspan='3' class=border text-align: center;'>
<li><a href='orders-list.php' style='text-decoration:none'>Orders</a></li></td>
<td  colspan='3' class=border text-align: center;'>
<li><a href='feedbacks-list.php' style='text-decoration:none'>Feedbacks</a></li></td> 
"; 

//if logged in show logout
if (isset($_SESSION['adminlogin']))
	{
	echo "
		<td  colspan='3' class=border text-align: center;'>
		<li><a href='logout-form.php' style='text-decoration:none'>Logout</a></li></td>";
	} 
echo "</ul></tr></table>";
?>