<?php
	include('common/header.php');
?>
<div class="">
	<div class="col-xm-12">
		<div class="widget-box light-border">
			
			<div class="widget-body">
				<div class="widget-main">
					<div class="row">
						<div class="col-sm-12">
							<form class="form-horizontal" role="form">
							<div class="">
								<!-- PAGE CONTENT BEGINS -->	
								<div class="profile-user-info">
									<?php 
                       				 foreach ($users as $value) {
                          				$user_id = $value['user_id'];
                         			 ?>
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'User Type : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
											  	if ($value['user_type']!='') {
											  		echo $value['user_type'];
											  	}else{
											  		echo '-';
											  	}	
												
												echo form_hidden('admin_type_code','');
											?></span>
										</div>
									</div>
									
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Person Name : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['first_name']!='' || $value['last_name']!='') {
													echo $value['first_name']." ".$value['last_name'];
												}else{
													echo '-';
												}
												
												echo form_hidden('admin_type_name','');
											?></span>
										</div>
									</div>
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Email id : '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['email_id']!='') {
													echo $value['email_id'];
												}else{
													echo '-';
												}
												
												echo form_hidden('admin_type_name','');
											?></span>
										</div>
									</div>	
 
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Branch: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
											   		if ($value['company_branch_name']!='') {
											    		echo $value['company_branch_name'];
											    	}else{
											    		echo '-';
											    	}
												
												echo form_hidden('admin_type_name','');
											?></span>
										</div>
									</div>	
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Accessible Branch: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php	
												if($value['accessible_branches']!='') {
             									  echo $ac_branches=fetch_accessible_branch($value['accessible_branches']); 
            									}else{
												echo '-';
												}
												echo form_hidden('admin_type_name','');
											?></span>
										</div>
									</div>
									<div class="profile-info-row">
										<div class="profile-info-name"><?php echo 'Designation: '; ?></div>
										<div class="profile-info-value">
											<span>			
											<?php
												if ($value['designation']!='') {
													echo $value['designation'];
												}else{
													echo '-';
												}
												
												echo form_hidden('admin_type_name','');
											?></span>
										</div>
									</div>
										<?php } ?>						
								</div>
							</div>
							</form>	
						</div>
					</div>
				</div>	
			</div>
		</div>
	</div>
    <!-- /.col -->
</div>
<div class="clearfix form-actions">
	<div class="col-md-5" style="margin-left: 142px">
		<button class="btn btn-info" type="button" onclick="javascript:window.location='<?php echo base_url();?>index.php/gc/user/list_user'">
			Back
		</button>
	</div>
</div>
<div class="space-4"></div>
	<!-- /.page-row -->
    <!-- /.page-content --> 
</div>
<!-- /.main-content -->  
</div>
<!-- /#ace-settings-container --> 
</div>
<!-- /.main-container-inner --> 
<?php
	include('common/footer.php');
?>