<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><?php echo ((PageContext::$metaTitle!='')?PageContext::$metaTitle:META_TITLE); ?></title>
<meta name="description" content="<?php echo ((PageContext::$metaDes!='')?PageContext::$metaDes:META_DES); ?>" />
<meta name="keywords" content="<?php echo ((PageContext::$metaKey!='')?PageContext::$metaKey:META_KEYWORDS); ?>" />
<script src="<?php echo BASE_URL; ?>public/js/library/jquery.js" type="text/javascript"></script>
<script src="<?php echo BASE_URL; ?>public/js/library/jquery.form.js" type="text/javascript"></script>
<script src="<?php echo BASE_URL; ?>public/js/library/jquery.validate.js" type="text/javascript"></script>
<script src="<?php echo BASE_URL; ?>public/js/library/FusionCharts.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css"  href="<?php echo BASE_URL;?>public/styles.css" media="all" />
<link rel="stylesheet" type="text/css"  href="<?php echo ConfigUrl::style();?>admin_main.css" media="all" />
</head>
<body>
<!-- Header Area Starts -->
<div class="HeaderRow">
	<div class="HeaderContent sitewidth">
		<div class="MainLogo">
			<a href="<?php echo ConfigUrl::base('admin');?>"><img src="<?php echo ConfigUrl::images('default').PRODUCT_LOGO;?>" alt="Logo"></a>
		</div>
		<div class="HeaderRight">
			<ul>
				<li class="HeaderSeperator">
					<div class="HeaderUserInfo">
					Welcome<br>
					<span>Administrator</span>
					</div>
				</li>
				<li class="HeaderSeperator"><a href="<?php echo ConfigUrl::base('default');?>" class="link_home" target="_blank">SITE HOME</a></li>
				<li class="HeaderSeperator"><a href="<?php echo ConfigUrl::base('admin');?>" class="link_admin">ADMIN DASHBOARD</a></li>
				<li><a href="<?php echo ConfigUrl::base()?>index/logout" class="link_logout">LOGOUT</a></li>
			</ul>
		</div>
	<div class="clear"></div>
	</div>
</div>
<!-- Header Area Ends-->

<!-- Content Area Starts -->
<div class="mid_section">
<div class="container">
	<div class="row">

		<!-- Content Left block starts -->
		<div class="ContentMenuBlock">
			<?php $base_name   =   basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));?>
			<?php //echo parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);echo"**********".PHP_URL_PATH;?>
			<div class="LeftMainMenu">
				<ul>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/dashboard" <?php if($base_name =='dashboard'){?> class='selected'<?php }?> >
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Dashboard
						</a>
					</li>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/users" <?php if($base_name =='users'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Manage Users
						</a>
					</li>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/listing" <?php if($base_name =='listing'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Manage Listing
						</a>
					</li>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/pendinglist" <?php if($base_name =='pendinglist'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Pending Listing
						</a>
					</li>
					
					<?php if(SITE_PAYMENT_MODE=="paid") {?>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/PaymentHistory" <?php if($base_name =='PaymentHistory'){?> class='selected'<?php }?> >
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Payments
						</a>
					</li>
					<?php } ?>
					<?php if(PRODUCT_COMMENT_MODE=="Y") {?>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/comments" <?php if($base_name =='comments'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Comments
						</a>
					</li>
					<?php } ?>
					<?php if(PRODUCT_RATE_MODE=="Y") {?>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/ratings" <?php if($base_name =='ratings'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Ratings
						</a>
					</li>
					<?php }
					if(PRODUCT_FORUM_MODE=="Y") {?>
					<li>
						<a target="_blank"  href="<?php echo BASE_URL;?>forum/admin.php" >
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Forum
						</a>
					</li>
					<?php
					}?>

					<?php if(SITE_PAYMENT_MODE=="paid") {?>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/listPlans" <?php if($base_name =='plans'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Plans
						</a>
					</li>
					<?php  }?>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/category" <?php if($base_name =='category'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Categories
						</a>
					</li>
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/settings" <?php if($base_name =='settings' || $base_name =='paymentsettings' || $base_name =='formfields' ){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Settings
						</a>
					</li>
					
					<!-- <li>
					
					<a href="<?php echo ConfigUrl::base()?>index/adminusers"><i class="fa fa-angle-right" aria-hidden="true"></i> Sub Admins</a>
					</li> -->
					
					
					
					<!--<li><a href="<?php echo ConfigUrl::base()?>index/formfields"><i class="fa fa-angle-right" aria-hidden="true"></i> Manage Form Fields</a></li>-->
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/contentmanagement" <?php if($base_name =='contentmanagement'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Content Management
						</a>
					</li>
					
					<li>
						<a href="<?php echo ConfigUrl::base()?>index/profileupdate" <?php if($base_name =='profileupdate'){?> class='selected'<?php }?>>
							<i class="fa fa-angle-right" aria-hidden="true"></i>
							Edit Profile
						</a>
					</li>
					<!-- <li><a href="<?php echo ConfigUrl::base()?>index/userplans" <?php if($base_name =='profileupdate'){?> class='selected'<?php }?>><i class="fa fa-angle-right" aria-hidden="true"></i> User Plans</a></li>-->
		</ul>
			</div>
		</div>
		<!-- Content Left block Ends -->

		<!-- Content Right block starts -->
                <div class="ContentItemsBlock">
                    <?php echo $this->_content; ?>
                </div>
		<!-- Content Right block starts -->

	<div class="clear"></div>
	</div>

</div>
</div>
<!-- Content Area Ends -->

<!-- Footer Area Starts -->
<div class="FooterRow">
<div class="FooterContent sitewidth">
Powered by <a rel="nofollow" href="http://www.iscripts.com/directory/">iScripts EasyIndex</a> . A premium product from <a rel="nofollow" href="http://www.iscripts.com/">iScripts.com</a>
</div>
</div>
<!-- Footer Area Ends -->
</body>
</html>
