HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/barbeatleanalyti/www/m.beatleanalytics.com/application/views/beatleAdmin/total_package.php
<?php 
	include('include/header.php');
	 $this->load->model('Admin_model');
?>
<script>
  $(document).ready(function(){
	  // ================== DELETE USER START FROM HERE ========================
 
		 $(".deluser").click(function(){
			var txt;
			var r = confirm("Would you like to delete this user");
			if (r == true) 
			{
				var deluser = $(this);
				var id = deluser.attr('data-uid');
				 
				var token = 'deleteuser';		
				 $.ajax({
					
					type : 'POST',
					url	 : 'deleteUserById',
					data : {id:id,token:token},
					success : function(res)
					{ 
						//alert(res);
						$("#rowid_"+id).hide('500');
					}			
					
				 });
			} 
			else 
			{
					
			}
			 
		 });
 
			$("#searchUser").change(function()
			{
				var usertype = $("#searchUser").val();
				 
				  $.ajax({
					
					type : 'POST',
					url	 : 'SearchUserByType',
					data : {usertype:usertype},
					success : function(res)
					{  
						if (res)
						{
							$("#hidedata").hide();
							$("#showdata").html(res);
						}
					}			
					
				 });
			});
			
			
	$('#example').DataTable();
  });
  </script> 
	<div class="right_col" role="main">
          <div class="">
		   <div class="col-md-12 col-sm-12 col-xs-12">
		   
		   
		     <!-----------------------new theme--------------------------------->
		  
		  <div class="new-theme">
		   <h1>Package Details</h1>
		   
		   <br>
	
<div class="columns col-md-4">
  <ul class="price">
    <li class="header">limited </li>
    <li class="grey second">RS. 20,000 / year</li>
    <li class="mdl">limited rights</li>
    <li class="mdl">500 Emails</li>
    <li class="mdl">500 SMS</li>
    <li class="mdl">-</li>
    <li class="grey"><a href="<?php echo base_url();?>index.php/beatleAdmin/limited_pro" class="">5 indausrty use this Package</a></li> 
  </ul>
</div>

<div class="columns col-md-4">
  <ul class="price">
    <li class="header" style="">unlimited</li>
    <li class="grey second">1 Lakh / year</li>
    <li class="mdl">All rights</li>
    <li class="mdl">5000 Emails</li>
    <li class="mdl">5000 SMS</li>
    <li class="mdl">-</li>
    <li class="grey"><a href="<?php echo base_url();?>index.php/beatleAdmin/unlimited_pro" class="">7 indausrty use this Package</a></li> 
  </ul>
</div>

<div class="columns col-md-4">
  <ul class="price">
    <li class="header">Trial</li>
    <li class="grey second">Rs.5000/ 3 Month</li>
    <li class="mdl">limited rights</li>
    <li class="mdl">0 Emails</li>
    <li class="mdl">0 SMS</li>
    <li class="mdl">-</li>
    <li class="grey"><a href="<?php echo base_url();?>index.php/beatleAdmin/tria_pro" class="">2 indausrty use this Package</a></li>
  </ul>
</div>
			
				
				
				
				
				
  
  <style>
 
.columns {
    float: left;
    width: 33.3%;
    padding: 8px;
}
li.grey.second {
    color: #383e4c;
}
li.grey {
    color: black !IMPORTANT;
    font-weight: 900;
}
.price {
    list-style-type: none;
   
    margin: 0;
    padding: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}
.mdl { color:#FFF;     font-size: 25px;}

.price:hover {
    box-shadow: 0 8px 12px 0 rgba(0,0,0,0.2);
}

.mdl {
  
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
}

 .header {
      background-color: #383e4c;
    color: white;
    font-size: 25px;
    border: 11px solid #eee;
    border-radius: 85px;
}

.price li {
    border-bottom: 1px solid #eee;
    padding: 16px;
    text-align: center;
}

.price .grey {
    background-color: #eee;
    font-size: 20px;
}

.button {
    background-color:#b10101;
    border: none;
    color: white;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
}

@media only screen and (max-width: 600px) {
    .columns {
        width: 100%;
    }
}
  </style>
		
		  </div>
		   
		
		  <!-----------------------// new theme------------------------------------->
		   
		   
		   
		 
		   
		   
		   
		   
		   
		   
		   
		   
		   
                <div class="x_panel" style="display:none;">
                  <div class="x_title">
                    <h2>User List<small></small></h2>
                  <!-- <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                        <ul class="dropdown-menu" role="menu">
                          <li><a href="#">Settings 1</a>
                          </li>
                          <li><a href="#">Settings 2</a>
                          </li>
                        </ul>
                      </li>
                      <li><a class="close-link"><i class="fa fa-close"></i></a>
                      </li>
                    </ul> -->
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                  
                    <table id="datatable" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>Name</th>
                          <th>Username</th>
                          <th>Mobile</th>
                          <th>Email</th>
                          <th>Group</th>
                          <th>Organization</th>
                          <th>Branch</th>
                          <th>Ind. Name (Ind. Type)</th>
                          <th>Login</th>
						  <th>Action</th>
						 </tr>
                      </thead>


                      <tbody>
					  <?php 
							if (empty($allUser)){
								
						?>
							<tr class="ng-hide">
								<td colspan="13"><h1 class="text-center text-muted ng-scope">No Users</h1><!-- end ngIf: !UsersList.ui.loading --></td>
							</tr>
						<?php } else {
								
									//echo "<pre>";
									//print_r($allUser);
									
						
									foreach ($allUser as $keyuser=>$valuser){
									
									if ($valuser->db_usertype == 'SU_admin')
									{
										$usertype = 'admin'; 
									}
									else if ($valuser->db_usertype == 'line_manager')
									{
										$usertype = 'Line Manager'; 
									}
									else 
									{
										$usertype = $valuser->db_usertype;
									}
									if ($valuser->db_usertype != 'SU_admin')
									{
						?>							
                        <tr id="rowid_<?php echo $valuser->userId;?>">
                          <td><?php echo $valuser->db_username;?></td>
                          <td><?php echo $valuser->db_userLoginName;?></td>
                          <td><?php echo $valuser->db_phone;?></td>
                          <td><?php echo $valuser->db_email;?></td>
                          <td><?php echo $usertype;?></td>
                          
                          <td>
							<?php 
								$userid = $valuser->userId;
								$usertype = $valuser->db_usertype;
								$data = $this->Admin_model->getAllOrganizationByUserId($usertype,$userid);
								if (!empty($data[0]->db_Orgname)){echo $data[0]->db_Orgname;}
							?>
						  </td>
                          
                          <td><?php 
						  
						  if(($valuser->db_usertype == 'line_manager' || $valuser->db_usertype == 'manager') && $valuser->BranchID != 0) {
							  $rsData = $this->Admin_model->getBranchName($valuser->BranchID);
						  	  echo @$rsData[0]->db_branchName;
						  }else{
							  echo '-';
						  }
						  
						  
						  //echo $valuser->BranchID;
						  
						  
						  ?></td>
                          
                          <td><?php 
						  if($valuser->db_usertype == 'line_manager' && $valuser->IndustryID != 0) {
						  	$rsData = $this->Admin_model->getIndustryName($valuser->IndustryID);
								
							echo @$rsData[0]->db_industry;
							
							$rsData1 = $this->Admin_model->fetch_all_ind_type_data(@$rsData[0]->db_ind_type_id);
							
							echo " (".@$rsData1[0]->name.")";
						  }else
						  	echo '-';
						  
						  ?></td>
                          
                          <td align="center">
                          <?php if(!empty($valuser->db_userLoginName)) {?>
                          			<a class="btn btn-success btn-sm" target="_blank" href="<?php echo base_url();?>index.php/beatleAdmin/directlogin/<?php echo $valuser->db_userLoginName;?>"> LOGIN </a>
                          			<!--<form class="form-horizontal" name="fromLogin" id="frmLogin" method="post" action="http://manage.beatleanalytics.com/manage.php?pg=login">
                                    <input type="hidden" name="pg" value="login" id="pg"/>
                                    <input type="hidden" name="acn" value="FetchUserDataToLogin" id="acn"/>  
                                    <input type="hidden" name="UserType" id="UserType" value="" />
                                    <input type="hidden" name="UserID"  id="userid" value="<?php echo $valuser->db_userLoginName;?>" >
                                    <input type="hidden" name="Password" id="password" value="beatle#4455">
                                    <input type="submit" />
                            		</form> -->
                           <?php } else {  ?>
                           
						   <?php }?>
                          </td>
						  <td>
							<ul class="nav navbar-right panel_toolbox">
							 
							 
							  <li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
								<ul class="dropdown-menu" role="menu">
								  <li><a href="users/<?php echo $valuser->userId;?>">Edit</a>
								  </li>
								  <li><a href="javascript:;" class="deluser" data-uid="<?php echo $valuser->userId;?>">Delete</a>
								  </li>
								</ul>
							  </li>
							 
							  </li>
							</ul></td>
                        </tr>
                        
						<?php 
									}
								}
							}
						?>
                      </tbody>
                    </table>
                  </div>
                </div>
				
				
				
				</div>
				</div>
				</div>
          
  	
<?php include ('include/footer.php'); ?>