<div class="sidebar col-sm-5 col-md-4 hidden-sm hidden-xs">
      <div class="sidebar-usernav" data-spy="affixx" data-offset-top="110" data-offset-bottom="590">
        <div class="row">
          <div class="col-sm-12">
            <div class="user-info-header">
	

<?php
//code for to get web logo
if($this->session->userdata('user_type')==1)
{
$user_id=$this->session->userdata('userloginid');
$can_query_image = mysql_query("SELECT * from njobn_candidate WHERE candidate_id='".$user_id."'");
$fetch_can_image = mysql_fetch_array($can_query_image);
$image_profile=$fetch_can_image['image'];
}
else
{
$user_id=$this->session->userdata('userloginid');
$rec_query_image = mysql_query("SELECT * from njobn_employee WHERE employee_id='".$user_id."'");
$fetch_rec_image = mysql_fetch_array($rec_query_image);
$image_profile=$fetch_rec_image['image'];
}
?>

			 <?php
	   if($image_profile!='')
{?>
              <div style="background-image: url('<?php echo base_url();?>assets/upload/<?php echo $image_profile;?>');" class="profile-photo"></div>
   
   <?php }

else
{?>

 <div style="background-image: url('<?php echo base_url();?>assets_front/images/JNJUKWebLogo.png');" class="profile-photo"></div>

 <?php }?> 
              <h4><?php
$user_id = $this->session->userdata('userloginid');
$user_query = mysql_query("SELECT * from njobn_webusers WHERE user_id='".$user_id."'");
$fetch_user = mysql_fetch_array($user_query);
echo $fetch_user['fname'];
?></h4>
              <hr>
              Manage your TadaJobs account </div>
            <ul class="list-unstyled">
<?php
					if($this->session->userdata('user_type')==1)
					{?>
			   <li><a href="<?php echo base_url();?>front_end/candidate_dashboard?looking_for_data=looking_for_data"><i class="fa fa-user usernav-icon text-info" aria-hidden="true"></i> Profile</a></li>
             
			   <li><a href="<?php echo base_url();?>front_end/myapplication"><i class="fa fa-check-circle text-success usernav-icon" aria-hidden="true"></i> Applied Jobs</a></li>
			  
              <li><a href="<?php echo base_url();?>front_end/shortlist"><i class="fa fa-star text-primary usernav-icon" aria-hidden="true"></i> Saved Jobs</a></li>

             
			 
			 <?php }
			 else{?>
			 <li><a href="<?php echo base_url();?>front_end/employee_dashboard"><i class="fa fa-user usernav-icon text-info" aria-hidden="true"></i> Profile</a></li>
<?php
if($fetch_user['subuser']!=1){?>
			  <li><a href="<?php echo base_url();?>front_end/manage_users"><i class="fa fa-check-circle text-success usernav-icon" aria-hidden="true"></i>Manage Users</a></li>
			  <?php }?>
              <li><a href="<?php echo base_url();?>front_end/recruiters"><i class="fa fa-check-circle text-success usernav-icon" aria-hidden="true"></i>Manage Jobs</a></li>
			  <li><a href="<?php echo base_url();?>front_end/addjob"><i class="fa fa-check-circle text-success usernav-icon" aria-hidden="true"></i>Post Job</a></li>
			   <li><a href="<?php echo base_url();?>front_end/reports"><i class="fa fa-check-circle text-success usernav-icon" aria-hidden="true"></i>Reports</a></li>
			  <li><a href="<?php echo base_url();?>front_end/browse_candidates"><i class="fa fa-check-circle text-success usernav-icon" aria-hidden="true"></i>CV Bank</a></li>
			 
			 <?php }
			 ?>

              <li class="active"><a href="<?php echo base_url();?>front_end/change_password"><i class="fa fa-key usernav-icon" aria-hidden="true"></i> Change Password</a></li>   
              <li><a href="<?php echo base_url();?>front_end/user_logout"><i class="fa fa-sign-out text-muted usernav-icon" aria-hidden="true"></i> Log Out</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>