Expand|Select|Wrap|Line Numbers
- $page = $_GET['page'];
- if ($page);
- else
- $page = "index.php";
- if($login=="True"){
- //echo "inside admin login";
- $array = array('Home'=>'index.php','Stock'=>'stock.php','Order Now'=>'orderNow.php','Contact Us'=>'contectUs.php','Add'=>'addVehicle.php','Edit'=>'editVehicle.php','Logout'=>'logout.php');
- foreach ($array as $k=>$v){
- if ($page == $v)
- $background = "background='images/btn_inactive.gif' ";
- else
- $background = "background='images/btn_active.gif'";
- echo "<td width=200 height =35 align=center cellpadding=5 $background ><a href='$v?page=$v' class=toppanel > $k </a></td>";
- }
- }