137 lines
5.3 KiB
PHP
137 lines
5.3 KiB
PHP
<?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($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"> User 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</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;
|
|
$country=$ud->country;
|
|
|
|
|
|
}
|
|
?>
|
|
<form action="<?=base_url();?>user-edit-profile" method="POST">
|
|
<input type="hidden" name="primaryid" value="<?=$id;?>">
|
|
<div class="form-group row">
|
|
<label class="col-sm-4" style="text-transform: capitalize;">Full Name <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" value="<?=$name;?>" data-validation="required" name="fullname" placeholder="Full Name">
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4" style="text-transform: capitalize;">Email <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" readonly value="<?=$email;?>" placeholder="Email">
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 " style="text-transform: capitalize;">Mobile <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" value="<?=$mobile;?>" data-validation="number length" data-validation-length="10" name="mobile" placeholder="Mobile">
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 " style="text-transform: capitalize;">Pincode <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" value="<?=$pincode;?>" data-validation="number length" data-validation-length="6" name="pincode" placeholder="Pincode">
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4" style="text-transform: capitalize;">Country <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" value="<?=$country;?>" data-validation="required" name="country" placeholder="Country">
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4" style="text-transform: capitalize;">City <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" value="<?=$city;?>" name="city" data-validation="required" placeholder="City">
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4" style="text-transform: capitalize;">State <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<input type="text" class="form-control" value="<?=$state;?>" name="state" data-validation="required" placeholder="State">
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4" style="text-transform: capitalize;">Address <span style="color: red;"> * </span></label>
|
|
<div class="col-sm-8">
|
|
<textarea class="form-control" name="address" data-validation="required" placeholder="Address"><?=$address;?></textarea>
|
|
<span class="required" style="text-align:end;"></span>
|
|
</div>
|
|
</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>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<?php $this->load->view('front/includes/footer'); ?>
|