<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title> AGENTS</title>
		
	
		 <meta name="keywords" content="BULKSMS CHAPCHAP,BULKSMSCHAPCHAP,BULK SMS CHAP CHAP www.bulksmschapchap.com,ksms.bulksmschapchap.com, CHAPCHAP SMS,bulk sms chap chap,Cheapest bulksms, Leading bulk sms,bulksmschapchap,bulksms chapchap, smschapchap, sms chapchap,fast sms,fast bulksms ,cheap bulksms, easy bulk sms, number one bulk sms, bulk sms in kenya, faster bulksms, speedy smms, bulksms BULK SMS, SMS, BULK EMAIL , EMAIL-SMS, Reminders, alerts, robisearch ltd, point of sale, biometric  bulk sms, mass sms, messages, best sms, best bulk sms,school bulk sms ">
  <meta name="description" content="The best bulk sms software by ROBISEARCH LIMITED. BulksmsChapChap is the best innovative sms app for communication.It allows you to create groups, save contacts etc .You can send sms, emails, reminders,appointments, biometric sms alert,advetisement, announcement, marketing, church services">
		

		
		<!--
		<link rel="stylesheet" href="<?php echo base_url(); ?><?php echo base_url(); ?>css/bootstrap-theme.css">
	     <link rel="stylesheet" href="<?php echo base_url(); ?><?php echo base_url(); ?>css/bootstrap-theme.min.css">
		-->		<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.css" rel="stylesheet">

		<link href="<?php echo base_url(); ?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/bootstrap/css/simple-sidebar.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	 <script src="<?php echo base_url(); ?>assets/bootstrap/js/jquery-3.1.1.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/bootstrapjs/bootstrap.min.js"></script>
   				<script src="<?php echo base_url(); ?>js/all.js?14.1" type="text/javascript" language="javascript" charset="UTF-8"></script>
	 <script src="<?php echo base_url(); ?>assets/bootstrap/js/count-textarea.js"></script>
    <script src="<?php echo base_url(); ?>application/js/loader.js"></script>

		
  <script type="text/javascript">
  
		
		 $(document).on("click", "#managebtndelete", function()
        {
          var itemid = $(this).data('id');
		  $("#itemid1").val(itemid); 
		  
		  
		   
        });
		
		
		
    </script>  
	

		

		<!-- end CSS-->

		
		
		
		
		
					
		

	
		
		
		
		
		
	<title>Home</title>
	
	
	

</head>

<?PHP

 echo $this->session->flashdata('imagemsg1'); 
		 
		    
$session_data = $this->session->userdata('logged_in');
 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
	
$data['surname'] = $session_data['surname'];
$data['id'] = $session_data['id'];
 $data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
$surname=$data['surname'];
   $userid=$data['id'];
 $company = $this->usermodel->populateallarray('smsconfig','id',$companyid);
$companyname = $company[0]['businessname'];


?>


<body>
    <nav class="navbar navbar-default no-margin">
    <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header fixed-brand">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"  id="menu-toggle">
                      <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
                    </button>
                    <a class="navbar-brand" href="#"><i class="fa fa-rocket fa-4"></i>AGENTS/ RESELLER
					</a>
                </div><!-- navbar-header-->
 
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                            <ul class="nav navbar-nav">
                                <li class="active" ><button class="navbar-toggle collapse in" data-toggle="collapse" id="menu-toggle-2"> <span class="glyphicon glyphicon-th-large" aria-hidden="true"></span></button>
								
								</li>
								
                            </ul>
							<ul class="nav navbar-nav">
                                	<li class="btn  hidden-xs">

				<i class="active"></i> <span class="text">	 
				<?php
	 				$profile = $this->usermodel->populateall('smsconfig','id',$companyid);
		
	 $confirmsmsaccount_result = $this->usermodel->confirmasmsccount($companyid);
		if(!is_array($profile)) 

 {
	 $this->session->set_flashdata('msg', '<div class="alert alert-danger fade in">
						 <a href="#" class="close" data-dismiss="alert">&times;</a><strong>Error!</strong>Please make sure you fill in your bio data first for you to upload your profile</div>');
							

    }else {

    
          
  	foreach ($profile as $c): 
$photo= $c->logo;
		 	if($photo!=""){
		 
		 
		
		
	
			
		
		$img=$c->logo;
	
		$img1='uploads/';
	$url = base_url().$img1.$img;

 
 ?>
<a href="<?php echo base_url(); ?>user/profileform"><img class="img-circle" src="<?php echo $url ?>" height="40" width="40" style="border-radius:15px; max-height:300px; margin:2px;  border-color:#000066;box-shadow:0 2px 4px rgba(30,30,30,0.5)inset; ">		</a>	 





	 <?php }else{
		 ?>
				<a href="<?php echo base_url(); ?>user/profileform" ><img class="img-circle" src="<?php echo base_url(); ?>images/img/default.jpg"   height="40" width="40" style="border-radius:15px; max-height:300px; margin:2px; border-color:#000066;box-shadow:0 2px 4px rgba(30,30,30,0.5)inset;"></a>

				<?php
	 }
		 endforeach; ?>

              <?php }?>

				
				</b></span>
				</li>
				  <li>
                    <a href="<?php echo base_url(); ?>user/profileform"> Welcome <?php echo$surname;?>: <?php if(isset($companyname)) {echo   $companyname; }?>	</a>
                </li>
				
				
				
								
                            </ul>
                </div>
					<div class="pull-left">
						
											<a style="color:red" href="<?php echo base_url();?>downloads/guidegeneral.pdf">Vie/Download guide?</a> 

		
										</div>
						<div class="pull-right">
						
											
					                    <a href="<?php echo base_url(); ?>user/logout" class="pull-right"> <i class="fa fa-power-off"></i><span class="text">Logout</span>	</a>
		
										</div>
    </nav>
    <div id="wrapper">
        <!-- Sidebar -->
        <div id="sidebar-wrapper" >
            <ul class="sidebar-nav nav-pills nav-stacked" id="menu">
 
                 <li class="active">
                    <a id="non-printable"  href="<?php echo base_url(); ?>user/reseller"><span class="fa-stack fa-lg pull-left"><i class="fa fa-dashboard fa-stack-1x "></i></span> Dashboard <?php  echo "(No ".$userid.")";?></a>
                   
                </li>
				                  	<li ><a href="<?php echo base_url(); ?>user/reseller"><span >Overview</span></a></li>

                  	<li ><a href="<?php echo base_url(); ?>user/viedeals"><span >Create Deals</span></a></li>

								<li ><a href="<?php echo base_url(); ?>user/viewtasks"><span >Create Task</span></a></li>
							<li ><a href="<?php echo base_url(); ?>user/complain"><span >View Comments  </span></a></li>
		<li ><a href="<?php echo base_url(); ?>user/payments"><span >Post Sales</span></a></li>
		<li ><a href="<?php echo base_url(); ?>user/updatedata"><span > Update Bio Data</span></a></li>

  			
			<li class="active">
                    <a id="non-printable"  href="<?php echo base_url(); ?>user/logout"><span class="fa-stack fa-lg pull-left"><i class="fa fa fa-lock fa-stack-1x "></i></span>Log out</a>
                </li>	
		   </ul>
        </div><!-- /#sidebar-wrapper -->
       
        <div id="page-content-wrapper">
            <div class="container-fluid xyz">
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			





		

