104 lines
2.9 KiB
PHP
104 lines
2.9 KiB
PHP
|
<?php $this->load->view('front/includes/header'); ?>
|
||
|
<link rel="stylesheet" href="<?=base_url();?>fassets/css/components/bs-filestyle.css" type="text/css" />
|
||
|
<?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($userdet->num_rows()>0)
|
||
|
{
|
||
|
$u=$userdet->row();
|
||
|
$loggedusername=$u->name;
|
||
|
}
|
||
|
?>
|
||
|
|
||
|
|
||
|
|
||
|
<style>
|
||
|
.fbox-center .fbox-icon {
|
||
|
margin-bottom: 1rem!important;
|
||
|
}
|
||
|
.fbox-bg.fbox-center {
|
||
|
|
||
|
padding: 0 1rem 1rem !important;
|
||
|
|
||
|
}
|
||
|
.form-error{ text-align:end!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>
|
||
|
|
||
|
<section id="content">
|
||
|
<div class="content-wrap ">
|
||
|
<div class="container clearfix">
|
||
|
<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">
|
||
|
<h3>Edit Profile Picture</h3>
|
||
|
<?php
|
||
|
if(isset($userdet)&& $userdet->num_rows()>0)
|
||
|
{
|
||
|
$ud=$userdet->row();
|
||
|
$id=$ud->id;
|
||
|
$name=$ud->name;
|
||
|
$email=$ud->email;
|
||
|
$mobile=$ud->mobile;
|
||
|
$pincode=$ud->pincode;
|
||
|
$state=$ud->state;
|
||
|
$city=$ud->city;
|
||
|
$address=$ud->address;
|
||
|
$profilepic=$ud->profilepic;
|
||
|
$country=$ud->country;
|
||
|
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
<?=form_open_multipart(base_url().'frontend/change_agent_profile');?>
|
||
|
<div class="col-lg-6 bottommargin">
|
||
|
<div class="col-md-12">
|
||
|
<input type="hidden" name="primaryid" value="<?=$id;?>">
|
||
|
<label><img src="<?=base_url();?><?=$profilepic;?>" style="width:100px;height:100px"></label><br>
|
||
|
</div>
|
||
|
<div class="col-lg-12 bottommargin">
|
||
|
|
||
|
<input id="input-6" name="input6" type="file" accept="image/*" class="file-loading" data-show-preview="false">
|
||
|
</div>
|
||
|
<div class="form-group row">
|
||
|
<div class="col-sm-10">
|
||
|
<input type="submit" class="btn btn-primary" name="submit" value="Submit" style="float:right;">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<?=form_close();?>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|
||
|
<?php $this->load->view('front/includes/footer'); ?>
|
||
|
<script src="<?=base_url();?>fassets/js/components/bs-filestyle.js"></script>
|
||
|
<script>
|
||
|
$("#input-6").fileinput({
|
||
|
showUpload: false,
|
||
|
maxFileCount: 10,
|
||
|
mainClass: "input-group-lg",
|
||
|
showCaption: true
|
||
|
});
|
||
|
</script>
|