Skip to content

Instantly share code, notes, and snippets.

@vishwakarma09
Created April 13, 2016 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vishwakarma09/1d30a4e9b5cbb46af6ad317104846c5c to your computer and use it in GitHub Desktop.
Save vishwakarma09/1d30a4e9b5cbb46af6ad317104846c5c to your computer and use it in GitHub Desktop.
edit user view
<section id="content">
<div class="container">
<div class="block-header">
<h2>Manage Users</h2>
</div>
<div class="card" id="profile-main">
<div class="pm-overview c-overflow mCustomScrollbar _mCS_3 mCS-autoHide" style="overflow: visible;"><div id="mCSB_3" class="mCustomScrollBox mCS-minimal-dark mCSB_vertical_horizontal mCSB_outside" tabindex="0"><div id="mCSB_3_container" class="mCSB_container mCS_x_hidden mCS_no_scrollbar_x" style="position: relative; top: 0px; left: 0px; width: 100%;" dir="ltr">
<div class="pmo-pic">
<div class="p-relative">
<img class="img-responsive mCS_img_loaded" src="<?php echo $User_details->userImage; ?>" alt="">
</div>
<div class="pmo-stat">
<h2 class="m-0 c-white"><?php echo $User_details->name;?></h2>
<?php echo $User_details->phoneNumber; ?>
</div>
</div>
<div class="pmo-block pmo-contact hidden-xs">
<h2>Contact</h2>
<ul>
<li><i class="zmdi zmdi-phone"></i><?php echo $User_details->phoneNumber; ?></li>
<li><i class="zmdi zmdi-email"></i><?php echo $User_details->name; ?></li>
<!-- <li><i class="zmdi zmdi-facebook-box"></i> malinda.hollaway</li>
<li><i class="zmdi zmdi-twitter"></i> @malinda (twitter.com/malinda)</li> -->
<li>
<i class="zmdi zmdi-pin"></i>
<address class="m-b-0 ng-binding">
Current or Home<br>
Address
</address>
</li>
</ul>
</div>
</div></div><div id="mCSB_3_scrollbar_vertical" class="mCSB_scrollTools mCSB_3_scrollbar mCS-minimal-dark mCSB_scrollTools_vertical" style="display: block;"><div class="mCSB_draggerContainer"><div id="mCSB_3_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 50px; display: block; height: 704px; max-height: 740px; top: 0px;" oncontextmenu="return false;"><div class="mCSB_dragger_bar" style="line-height: 50px;"></div></div><div class="mCSB_draggerRail"></div></div></div><div id="mCSB_3_scrollbar_horizontal" class="mCSB_scrollTools mCSB_3_scrollbar mCS-minimal-dark mCSB_scrollTools_horizontal" style="display: none;"><div class="mCSB_draggerContainer"><div id="mCSB_3_dragger_horizontal" class="mCSB_dragger" style="position: absolute; min-width: 50px; width: 0px; left: 0px;" oncontextmenu="return false;"><div class="mCSB_dragger_bar"></div></div><div class="mCSB_draggerRail"></div></div></div></div>
<div class="pm-body clearfix">
<form method="post" action="<?php echo site_url('administrator/users/user') . "/" . $user_id; ?>" >
<div role="tabpanel">
<ul class="tab-nav" role="tablist">
<li class="active"><a href="#basic_information" aria-controls="basic_information" role="tab" data-toggle="tab" aria-expanded="true">Basic Information</a></li>
<li class=""><a href="#location_information" aria-controls="location_information" role="tab" data-toggle="tab" aria-expanded="false">Location Details</a></li>
<li class=""><a href="#kyc_information" aria-controls="kyc_information" role="tab" data-toggle="tab" aria-expanded="false">Kyc Details</a></li>
<li class=""><a href="#education_information" aria-controls="education_information" role="tab" data-toggle="tab" aria-expanded="false">Education Details</a></li>
</ul>
<div class="tab-content">
<!-- start tab panel basic information -->
<div role="tabpanel" class="tab-pane active" id="basic_information">
<div class="pmb-block">
<div class="pmbb-header">
<h2><i class="zmdi zmdi-account m-r-5"></i> Basic Information</h2>
</div>
<div class="pmbb-body p-l-30">
<div class="pmbb-view">
<dl class="dl-horizontal">
<dt>Full Name</dt>
<dd><?php echo $User_details->name; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Email</dt>
<dd><?php echo $User_details->email; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Phone Number</dt>
<dd><?php echo $User_details->phoneNumber; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Account Type</dt>
<dd><?php echo $User_details->accountType; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Gender</dt>
<dd><?php echo $User_details->gender; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>DOB</dt>
<?php
if(isset($User_details->dob)){
$dob = $User_details->dob / 1000;
$dob = date('Y-m-d', $dob);
echo "<dd>$dob</dd>";
}
?>
<dd></dd>
</dl>
<dl class="dl-horizontal">
<dt>Marital Status</dt>
<dd><?php echo $User_details->maritalStatus; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Work Status</dt>
<dd><?php echo $User_details->workStatus; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Residential Status</dt>
<dd><?php echo $User_details->residentialStatus; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Father Name</dt>
<dd><?php echo $User_details->fatherName; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Role Type</dt>
<dd><?php echo $User_details->roleType; ?></dd>
</dl>
</div>
</div>
</div>
</div>
<!-- end tab panel basic information -->
<!-- start tab panel location information -->
<div role="tabpanel" class="tab-pane" id="location_information">
<!-- residence details block start -->
<? if(isset($User_details->userLocationDatas)){ ?>
<?php foreach($User_details->userLocationDatas as $entity){ ?>
<div class="pmb-block">
<div class="pmbb-header">
<h2><i class="zmdi zmdi-pin-drop m-r-5"></i> Location Information</h2>
</div>
<div class="pmbb-body p-l-30">
<div class="pmbb-view">
<dl class="dl-horizontal">
<dt>ID</dt>
<dd><?php echo $entity->id; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>User ID</dt>
<dd><?php echo $entity->userId; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Address</dt>
<dd><?php echo $entity->address; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>City</dt>
<dd><?php echo $entity->city; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>State</dt>
<dd><?php echo $entity->state; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Country</dt>
<dd><?php echo $entity->country; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>PIN code</dt>
<dd><?php echo $entity->pincode; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Address Type</dt>
<dd><?php echo $entity->type; ?></dd>
</dl>
<dl class="dl-horizontal">
<input type="hidden" name="location[]" value="ts-location-<?php echo $entity->id; ?>" />
<dt class="p-t-10">Is Verified</dt>
<div class="toggle-switch">
<input id="ts-location-<?php echo $entity->id; ?>" type="checkbox" hidden="hidden" name="ts-location-<?php echo $entity->id; ?>" <?php if($entity->isVerified == 1) echo "checked"; ?>>
<label for="ts-location-<?php echo $entity->id; ?>" class="ts-helper"></label>
</div>
</dl>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
<!-- end tab panel location information -->
<!-- start tab panel kyc details -->
<div role="tabpanel" class="tab-pane" id="kyc_information">
<!-- block user education details start -->
<div class="pmb-block">
<? if(isset($User_details->userKYCDatas)){ ?>
<?php foreach($User_details->userKYCDatas as $entity){ ?>
<div class="pmbb-header">
<h2><i class="zmdi zmdi-file m-r-5"></i> KYC Details </h2>
</div>
<div class="pmbb-body p-l-30">
<div class="pmbb-view">
<dl class="dl-horizontal">
<dt>ID</dt>
<dd><?php echo $entity->id; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>User ID</dt>
<dd><?php echo $entity->userId; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Type</dt>
<dd><?php echo $entity->type; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>KYC Id</dt>
<dd><?php echo $entity->kycId; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Image</dt>
<dd>
<div class="lightbox row">
<div data-src="<?php echo $entity->imageUrl; ?>" class="col-sm-6 col-xs-6" data-sub-html="<em><h3><?php echo $entity->type; ?></h3><p><?php echo $entity->userId; ?></p></em>">
<div class="lightbox-item">
<img src="<?php echo $entity->imageUrl; ?>" alt="">
</div>
</div>
</div>
</dd>
</dl>
<dl class="dl-horizontal">
<input type="hidden" name="kyc[]" value="ts-kyc-<?php echo $entity->id; ?>" />
<dt class="p-t-10">Is Verified</dt>
<div class="toggle-switch">
<input id="ts-kyc-<?php echo $entity->id; ?>" type="checkbox" hidden="hidden" name="ts-kyc-<?php echo $entity->id; ?>" <?php if($entity->isVerified == 1) echo "checked"; ?>>
<label for="ts-kyc-<?php echo $entity->id; ?>" class="ts-helper"></label>
</div>
</dl>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
<!-- end tab panel KYC information -->
<!-- start tab education kyc details -->
<div role="tabpanel" class="tab-pane" id="education_information">
<!-- block user education details start -->
<div class="pmb-block">
<? if(isset($User_details->userEducationDatas)){ ?>
<?php foreach($User_details->userEducationDatas as $entity){ ?>
<div class="pmbb-header">
<h2><i class="zmdi zmdi-accounts-list m-r-5"></i> Education Details </h2>
</div>
<div class="pmbb-body p-l-30">
<div class="pmbb-view">
<dl class="dl-horizontal">
<dt>ID</dt>
<dd><?php echo $entity->id; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>User ID</dt>
<dd><?php echo $entity->userId; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Institution Name</dt>
<dd><?php echo $entity->institutionName; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Degree Type</dt>
<dd><?php echo $entity->degreeType; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Degree Category Name</dt>
<dd><?php echo $entity->degreeCategoryName; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Description</dt>
<dd><?php echo $entity->description; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Start Date</dt>
<dd><?php echo date("Y-m-d", ($entity->startDate / 1000)); ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>End Date</dt>
<dd><?php echo date("Y-m-d", ($entity->endDate / 1000)); ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>City</dt>
<dd><?php echo $entity->city; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Country</dt>
<dd><?php echo $entity->country; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>State</dt>
<dd><?php echo $entity->state; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>PIN code</dt>
<dd><?php echo $entity->pincode; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Score</dt>
<dd><?php echo $entity->score; ?></dd>
</dl>
<dl class="dl-horizontal">
<dt>Report Card Image</dt>
<dd>
<div class="lightbox row">
<div data-src="<?php echo $entity->reportUrl;?>" class="col-sm-6 col-xs-6" data-sub-html="<em><h3><?php echo $entity->degreeType; ?></h3><p><?php echo $entity->degreeCategoryName; ?></p></em>">
<div class="lightbox-item">
<img src="<?php echo $entity->reportUrl; ?>" alt="">
</div>
</div>
</div>
</dd>
</dl>
<dl class="dl-horizontal">
<input type="hidden" name="education[]" value="ts-education-<?php echo $entity->id; ?>" />
<dt class="p-t-10">Is Verified</dt>
<div class="toggle-switch">
<input id="ts-education-<?php echo $entity->id; ?>" type="checkbox" hidden="hidden" name="ts-education-<?php echo $entity->id; ?>" <?php if($entity->isVerified == 1) echo "checked"; ?>>
<label for="ts-education-<?php echo $entity->id; ?>" class="ts-helper"></label>
</div>
</dl>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>
<!-- end tab panel Education information -->
</div>
<hr>
<div class="pmb-block">
<div class="m-t-30">
<button class="btn btn-primary btn-sm waves-effect">Save</button>
<a href="<?php echo site_url('administrator/users'); ?>" class="btn btn-link btn-sm waves-effect">Cancel</a>
</div>
</div>
</div> <!-- end tab panel -->
</form>
</div>
</div>
</div> <!-- container end-->
</section> <!-- section end -->
<!-- Data Table -->
<script type="text/javascript">
$(document).ready(function(){
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment