<?php
$current_page = basename($_SERVER['PHP_SELF']);
?>
<div class="header">
	<a class="logo" href="#"><img src="img/logo.png" alt="" title=""/></a>
	<ul class="header_menu">
		<li class="list_icon"><a href="#">&nbsp;</a></li>
	</ul>    
</div>
<div class="menu">                
	<div class="breadLine">            
		<div class="arrow"></div>
		<div class="adminControl active">
			Hi, Administrator
		</div>
	</div>
	<div class="admin">
		<ul class="control">                
			<li><span class="icon-share-alt"></span> <a href="logout.php">Logout</a></li>
		</ul>
	</div>
	<ul class="navigation"> 
		<li <?php if($current_page == 'site_settings.php') { ?>class = "active"<?php } ?>>
			<a href="site_settings.php">
				<span class="isw-documents"></span><span class="text">App Settings</span>
			</a>
		</li> 
		<li <?php if($current_page == 'change_password.php') { ?>class = "active"<?php } ?>>
			<a href="change_password.php">
				<span class="isw-archive"></span><span class="text">Change Password</span>                 
			</a>
		</li>
		<li class="openable <?php if($current_page == 'add_edit_banner.php' || $current_page == 'banner_list.php') { ?>active<?php } ?>">
			<a href="#">
				<span class="isw-list"></span><span class="text">Banner Management</span>
			</a>
			<ul>
				<li <?php if($current_page == 'add_edit_banner.php') { ?>class = "active"<?php } ?>>
					<a href="add_edit_banner.php">
						<span class="icon-pencil"></span><span class="text">Add Banner</span>
					</a>
				</li>                                                                                          
				<li <?php if($current_page == 'banner_list.php') { ?>class = "active"<?php } ?>>
					<a href="banner_list.php">
						<span class="icon-list"></span><span class="text">Banner List</span>
					</a>     
			   </li>
			</ul>                                
		</li>
		<li <?php if($current_page == 'edit_about.php') { ?>class = "active"<?php } ?>>
			<a href="edit_about.php">
				<span class="isw-documents"></span><span class="text">About Us</span>
			</a>
		</li>
		<li <?php if($current_page == 'edit_terms.php') { ?>class = "active"<?php } ?>>
			<a href="edit_terms.php">
				<span class="isw-documents"></span><span class="text">Terms & Conditions</span>
			</a>
		</li>
		<li <?php if($current_page == 'edit_privacy.php') { ?>class = "active"<?php } ?>>
			<a href="edit_privacy.php">
				<span class="isw-documents"></span><span class="text">Privacy Policy</span>
			</a>
		</li>
		<li class="openable <?php if($current_page == 'add_edit_work.php' || $current_page == 'work_list.php') { ?>active<?php } ?>">
			<a href="#">
				<span class="isw-list"></span><span class="text">Work Management</span>
			</a>
			<ul>
				<li <?php if($current_page == 'add_edit_work.php') { ?>class = "active"<?php } ?>>
					<a href="add_edit_work.php">
						<span class="icon-pencil"></span><span class="text">Add Work</span>
					</a>
				</li>                                                                                          
				<li <?php if($current_page == 'work_list.php') { ?>class = "active"<?php } ?>>
					<a href="work_list.php">
						<span class="icon-list"></span><span class="text">Work List</span>
					</a>     
			   </li>
			</ul>                                
		</li>
		<li class="openable <?php if($current_page == 'add_edit_category.php' || $current_page == 'category_list.php' || $current_page == 'add_edit_service.php' || $current_page == 'service_list.php' || $current_page == 'add_edit_product.php' || $current_page == 'product_list.php') { ?>active<?php } ?>">
			<a href="#">
				<span class="isw-list"></span><span class="text">Category Management</span>
			</a>
			<ul>
				<li <?php if($current_page == 'add_edit_category.php') { ?>class = "active"<?php } ?>>
					<a href="add_edit_category.php">
						<span class="icon-pencil"></span><span class="text">Add Category</span>
					</a>
				</li>                                                                                          
				<li <?php if($current_page == 'category_list.php') { ?>class = "active"<?php } ?>>
					<a href="category_list.php">
						<span class="icon-list"></span><span class="text">Category List</span>
					</a>     
			   </li>
			</ul>                                
		</li>
		<li class="openable <?php if($current_page == 'add_edit_zip.php' || $current_page == 'zip_list.php') { ?>active<?php } ?>">
			<a href="#">
				<span class="isw-list"></span><span class="text">Pincode Management</span>
			</a>
			<ul>
				<li <?php if($current_page == 'add_edit_zip.php') { ?>class = "active"<?php } ?>>
					<a href="add_edit_zip.php">
						<span class="icon-pencil"></span><span class="text">Add Pincode</span>
					</a>
				</li>                                                                                          
				<li <?php if($current_page == 'zip_list.php') { ?>class = "active"<?php } ?>>
					<a href="zip_list.php">
						<span class="icon-list"></span><span class="text">Pincode List</span>
					</a>     
			   </li>
			</ul>                                
		</li>
		<li class="openable <?php if($current_page == 'quotation_list.php' || $current_page == 'quotation_details.php') { ?>active<?php } ?>">
			<a href="#">
				<span class="isw-list"></span><span class="text">Quotation Management</span>
			</a>
			<ul>
				<li <?php if($current_page == 'quotation_list.php') { ?>class = "active"<?php } ?>>
					<a href="quotation_list.php">
						<span class="icon-list"></span><span class="text">Quotation List</span>
					</a>     
			   </li>
			</ul>                                
		</li>
	</ul>
</div>
