<!-- Aside (Left Column) -->
		<div id="aside" class="box">

			<div class="padding box">
			<div style="padding-bottom:80px;">
			<p id="logo" style="font-size:36px; font-weight:bold;"><h1><a href="<?php echo SITE_URL.ADMIN_DIR ?>">Venture Wing</a></h1></p>
          </div>	<?php $file_name = basename($_SERVER['SCRIPT_NAME']);
				
					if($file_name=='adminlist.php' || $file_name=='addadmin.php'){ ?>					
					
						<form action="adminlist.php" method="post" id="search" name="search">
							<fieldset>
								<legend>Search</legend>
								<p><input type="text" size="17" name="search_input" id="search_input" value="<?php echo $_POST['search_input'] ?>" class="input-text" />&nbsp;
									<input id="search_submit" name="search_submit" type="submit" value="OK" class="input-submit-02" /><br />
									
							</fieldset>
						</form>

						<?php if($ADD_ACCESS){ ?>
							<p id="btn-create" class="box"><a href="addadmin.php"><span>Add Administrator</span></a></p>
						<?php } ?>	
						
					<?php }else if($file_name=='userlist.php' || $file_name=='adduser.php'){ ?>
					
						<form action="userlist.php" method="post" id="search" name="search">
							<fieldset>
								<legend>Search</legend>
								<p><input type="text" size="17" name="search_input" id="search_input" value="<?php echo $_POST['search_input'] ?>" class="input-text" />&nbsp;
									<input id="search_submit" name="search_submit" type="submit" value="OK" class="input-submit-02" /><br />
									
							</fieldset>
						</form>

						<?php if($ADD_ACCESS){ ?>
							<p id="btn-create" class="box"><a href="adduser.php"><span>Add User</span></a></p>
						<?php } ?>						

					<?php }else if($file_name=='paid_userlist.php' || $file_name=='addpaid_user.php'){ ?>
					
						<form action="paid_userlist.php" method="post" id="search" name="search">
							<fieldset>
								<legend>Search</legend>
								<p><input type="text" size="17" name="search_input" id="search_input" value="<?php echo $_POST['search_input'] ?>" class="input-text" />&nbsp;
									<input id="search_submit" name="search_submit" type="submit" value="OK" class="input-submit-02" /><br />
									
							</fieldset>
						</form>

						<?php if($ADD_ACCESS){ ?>
							<p id="btn-create" class="box"><a href="addpaid_user.php"><span>Add Paid Member</span></a></p>
						<?php } ?>						

					<?php }else if($file_name=='pagelist.php' || $file_name=='addpage.php'){ ?>
							
								

						<?php if($ADD_ACCESS){ ?>
							<p id="btn-create" class="box"><a href="addpage.php"><span>Add Page</span></a></p>					
						<?php } ?>	

					<?php }else if($file_name=='advertizelist.php' || $file_name=='addadvertize.php'){ ?>
							
								

						<?php if($ADD_ACCESS){ ?>
							<p id="btn-create" class="box"><a href="addadvertize.php"><span>Add Advertise</span></a></p>					
						<?php } ?>	

					<?php }else if($file_name=='gallerylist.php' || $file_name=='addgallery.php'){ ?>
							
								<form action="gallerylist.php" method="post" id="search" name="search">
									<fieldset>
										<legend>Search</legend>
										<p><input type="text" size="17" name="search_input" id="search_input" value="<?php echo $_POST['search_input'] ?>" class="input-text" />&nbsp;
									<input id="search_submit" name="search_submit" type="submit" value="OK" class="input-submit-02" /><br />
									
							</fieldset>
						</form>

						<?php if($ADD_ACCESS){ ?>
							<p id="btn-create" class="box"><a href="addgallery.php"><span>Add Image</span></a></p>					
						<?php } ?>	

					<?php } ?>	

			</div> 
			
			

		<!--	<ul class="box">
			
				<?php 
					if($_SESSION['admin_access']!='Full'){
						$admin_access = explode(',',$_SESSION['admin_access']);
					}else{
						$admin_access = array();
					}
					
					$fname=basename($_SERVER['SCRIPT_FILENAME']);
					
					if($_SESSION['admin_access']=='Full' || ( in_array('1',$admin_access)) ){ ?>

						<li  class="<?php echo ($fname=='adminlist.php' || $fname=='addadmin.php') ? 'submenu-a' : 'submenu' ?>"><a href="adminlist.php">Administrator</a>

							<?php if($event_access[1] && in_array('add',$event_access[1]) || $_SESSION['admin_access']=='Full'){ ?>
								<ul>
									<li><a href="addadmin.php">Add Administrator</a></li>
								</ul>
							<?php } ?>	
							
						</li>

				<?php } 
		
					if($_SESSION['admin_access']=='Full' || ( in_array('2',$admin_access)) || $_SESSION['admin_access']=='Full' ){ ?>
						
						<li class="<?php echo ($fname=='userlist.php' || $fname=='adduser.php') ? 'submenu-a' : 'submenu' ?>" ><a href="userlist.php">User</a>
							<?php if($event_access[2] && in_array('add',$event_access[2]) || $_SESSION['admin_access']=='Full'){ ?>
								<ul>
									<li><a href="adduser.php">Add User</a></li>
									<li><a href="userlist.php?act=export">Export</a></li>
								</ul>
							<?php } ?>	
						</li>
						
				<?php } if($_SESSION['admin_access']=='Full' || ( in_array('3',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?>
						
						<li class="<?php echo ($fname=='paid_userlist.php' || $fname=='addpaid_user.php') ? 'submenu-a' : 'submenu' ?>" ><a href="paid_userlist.php">Paid Member</a>
							<?php if($event_access[2] && in_array('add',$event_access[2]) || $_SESSION['admin_access']=='Full'){ ?>
								<ul>
									<li><a href="addpaid_user.php">Add Paid Member</a></li>
									<li><a href="paid_userlist.php?act=export">Export</a></li>
								</ul>
							<?php } ?>	
						</li>
						
				<?php }  
				
					
				if($_SESSION['admin_access']=='Full' || ( in_array('5',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?>

						<li class="<?php echo  ($fname=='pagelist.php' || $fname=='addpage.php') ? 'submenu-a' : 'submenu' ?>"><a href="pagelist.php">Pages</a>
							<?php if($event_access[5] && in_array('add',$event_access[5]) || $_SESSION['admin_access']=='Full'){ ?>
								<ul>
									<li><a href="addpage.php">Add page</a></li>
								</ul>
							<?php } ?>	
						</li>

				<?php } 
				if($_SESSION['admin_access']=='Full' || ( in_array('4',$admin_access)) || $_SESSION['admin_access']=='Full' ){ ?>

						<li class="<?php echo  ($fname=='advertizelist.php' || $fname=='addadvertize.php') ? 'submenu-a' : 'submenu' ?>"><a href="advertizelist.php">Advertise</a>
							<?php if($event_access[4] && in_array('add',$event_access[4]) || $_SESSION['admin_access']=='Full'){ ?>
								<ul>
									<li><a href="addadvertize.php">Add Advertise</a></li>
								</ul>
							<?php } ?>	
						</li>

				<?php } 
				if($_SESSION['admin_access']=='Full' || ( in_array('10',$admin_access)) || $_SESSION['admin_access']=='Full'){ ?>

						<li class="<?php echo  ($fname=='gallerylist.php' || $fname=='addgallery.php') ? 'submenu-a' : 'submenu' ?>"><a href="gallerylist.php">Tour Gallery</a>
							<?php if($event_access[10] && in_array('add',$event_access[10]) || $_SESSION['admin_access']=='Full'){ ?>
								<ul>
									<li><a href="addgallery.php">Add Image</a></li>
								</ul>
							<?php } ?>	
						</li>

				<?php } 
				
						
				if($_SESSION['admin_access']=='Full' || ( in_array('8',$admin_access)) ){ ?>

					<li class="<?php echo  ($fname=='setting.php') ? 'submenu-a' : 'submenu' ?>"><a href="setting.php">Settings</a></li>

				<?php } ?>

			</ul>-->


		</div> <!-- /aside -->