policybot/application/views/front/z-agent-profile.php

244 lines
7.1 KiB
PHP
Raw Permalink Normal View History

2021-11-30 10:56:55 +00:00
<?php $this->load->view('front/includes/header'); ?>
<?php $primaryid=$this->session->userdata('primaryid');
$userrole=$this->session->userdata('userrole');
$loggedname=$this->session->userdata('loggedname');
$tables="users";
$wheres=array("id"=>$primaryid);
$shows=("*");
$userdet=$this->commonsql_model->selectTable($tables,$wheres,$shows);
if(isset($userdet)&& $userdet->num_rows()>0)
{
$ud=$userdet->row();
$id=$ud->id;
$loggedusername=$ud->name;
$email=$ud->email;
$mobile=$ud->mobile;
$pincode=$ud->pincode;
$state=$ud->state;
$city=$ud->city;
$address=$ud->address;
$country=$ud->country;
$profilepic=$ud->profilepic;
}
?>
<style>
.fbox-center .fbox-icon {
margin-bottom: 1rem!important;
}
.fbox-bg.fbox-center {
padding: 0 1rem 1rem !important;
}
</style>
<section id="page-title" style="background-image: url('<?=base_url();?>fassets/images/about/333.jpg');">
<div class="container clearfix">
<h1 style="text-align:center"> Agent Profile</h1>
<span style="text-align:center;font-weight:500">Hi <?=ucwords($loggedusername);?> , Welcome to policybot</span>
</div>
</section>
<!-- Content
============================================= -->
<section id="content">
<div class="content-wrap ">
<div class="container clearfix">
<?php if(isset($age)&& $age->num_rows()>0)
{
$ag=$age->row();
$category=$ag->category;
$introd=$ag->intro;
$experience=$ag->experience;
$location =$ag->location;
$term =$ag->term;
$benefits =$ag->benefits;
$specializations =$ag->specializations;
$racetype =$ag->racetype;
$pincode =$ag->pincode;
$company =$ag->company;
$cmpname =$ag->cmpname;
}?>
<div class="row" >
<div class="col-md-4 col-lg-3">
<?php $this->load->view('front/includes/leftmenu'); ?>
</div>
<div class="col-md-8 col-lg-9">
<div class="col-md-12">
<img src="<?=base_url();?><?=$profilepic;?>" style="width:75px;height:75px" class="alignleft img-circle img-thumbnail my-0" alt="Avatar" style="max-width: 84px;">
<div class="heading-block border-0">
<h3><?=strtoupper($loggedusername);?></h3>
<span style="font-size:16px"><i class="icon-line-mail"></i> <?=$email;?> <i class="icon-circle" style="font-size:5px;"> </i> <i class="icon-line-phone-call"></i> <?=$mobile;?></span>
</div>
<div class="clear"></div>
<div class="row clearfix">
<div class="col-lg-12">
<div class="tabs tabs-alt clearfix" id="tabs-profile">
<ul class="tab-nav clearfix">
<li><a href="#tab-feeds"><i class="icon-user"></i> Intro</a></li>
<li><a href="#tab-posts"><i class="icon-pencil2"></i> Benefits</a></li>
<li><a href="#tab-replies"><i class="icon-reply"></i> Specializations</a></li>
</ul>
<div class="tab-container">
<div class="tab-content clearfix" id="tab-feeds">
<p><?=$introd;?></p>
<div class="row">
<div class="col-md-6">
<ul class="list-group list-group-flush">
<?php if($address!="") { ?><li class="list-group-item d-flex justify-content-between align-items-center px-0">
<span class="text-muted">Address:</span><span class="text-dark fw-semibold"><?=$address;?></span>
</li><?php } ?>
<?php if($city!="") { ?><li class="list-group-item d-flex justify-content-between align-items-center px-0">
<span class="text-muted">City:</span><span class="text-dark fw-semibold"><?=$city;?></span>
</li><?php } ?>
<?php if($state!="") { ?><li class="list-group-item d-flex justify-content-between align-items-center px-0">
<span class="text-muted">State:</span><span class="text-dark fw-semibold"><?=$state;?></span>
</li><?php } ?>
<?php if($pincode!="") { ?><li class="list-group-item d-flex justify-content-between align-items-center px-0">
<span class="text-muted">Pincode:</span><span class="text-dark fw-semibold"><?=$pincode;?></span>
</li><?php } ?>
<?php if($cmpname!="") { ?><li class="list-group-item d-flex justify-content-between align-items-center px-0">
<span class="text-muted">Company:</span><span class="text-dark fw-semibold"><?=$cmpname;?></span>
</li><?php } ?>
</ul>
</div>
<div class="col-md-6">
<div class="card product-meta">
<div class="card-body">
<span class="tagged_as">Category: <?php
$i=1;
$cat=explode(",", $category);
foreach($cat as $ca)
{
if($ca!=""){
$tables="categories";
$wheres=array("id"=>$ca);
$shows=("*");
$cate=$this->commonsql_model->selectTable($tables,$wheres,$shows);
if(isset($cate)&& $cate->num_rows()>0)
{
$c=$cate->row();
$categoryname=$c->name;}
?>
<a href="#" rel="tag"><?=$categoryname;?></a> <?php $i++; } else { ?> <h4 style="text-align:center">Not Mentioned...! </h4><?php } }
?> </span>
</div>
</div><!-- Product Single - Meta End -->
</div>
</div>
</div>
<div class="tab-content clearfix" id="tab-posts">
<!-- Posts
============================================= -->
<div class="row gutter-40 posts-md mt-4">
<div class="entry col-12">
<div class="col-12 col-sm-12">
<ul class="iconlist">
<?php
$i=1;
$benef=explode(",", $benefits);
foreach($benef as $ben)
{
if($ben!=""){?>
<li style="margin-bottom: 5px;"><i class="icon-line-corner-down-right"></i><?=$ben;?></li><?php $i++; } else { ?> <h4 style="text-align:center">Not Mentioned...! </h4><?php } }
?>
</ul>
</div>
</div>
</div>
</div>
<div class="tab-content clearfix" id="tab-replies">
<div class="clear topmargin-sm"></div>
<ol class="commentlist border-0 m-0 p-0 clearfix">
<div class="entry col-12">
<div class="col-12 col-sm-12">
<ul class="iconlist">
<?php
$j=1;
$spec=explode(",", $specializations);
foreach($spec as $sp)
{ if($sp!=""){?>
<li style="margin-bottom: 5px;"><i class="icon-line-corner-down-right"></i><?=$sp;?></li><?php } else { ?> <h4 style="text-align:center">Not Mentioned...! </h4><?php } }
?>
</ul>
</div>
</div>
</ol>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- #content end -->
</div>
</div>
</div>
</div>
</section>
<?php $this->load->view('front/includes/footer'); ?>