File: /home/barbeatleanalyti/www/public_html/application/views/manage/profilesetup.php
<?php include("include/header.php");
//echo "<pre>";
//print_r($userinfo);
//echo "</pre>";
?>
<style>
.auth-box { height: auto !important; }
</style>
<body>
<!-- WRAPPER -->
<div id="wrapper">
<div class="vertical-align-wrap">
<div class="vertical-align-middle">
<div class="auth-box lockscreen clearfix">
<div class="content">
<div class="logo text-center"><img src="<?php echo base_url()?>assets-manage/img/bb-logo.png" alt="Klorofil Logo"></div>
<h3 class="text-center">COMPLETE YOUR PROFILE DETAILS</h3>
<div class="user text-center">
<img src="<?php echo base_url()?>assets-manage/img/default-img.png" class="img-circle" alt="Avatar">
<h2 class="name"><?php echo $userinfo[0]->name;?></h2>
</div>
<form class="form-auth-small" method="post" action="" >
<input type="hidden" name="action" id="action" value="insertprofiledata">
<div class="form-group">
<label for="signin-email" class="control-label">Email</label>
<input type="email" class="form-control" disabled name="email" id="email" value="<?php echo $userinfo[0]->emailid;?>" placeholder="Email">
</div>
<div class="form-group">
<label for="signin-email" class="control-label">Phone</label>
<input type="phone" class="form-control" disabled name="phone" id="phone" value="<?php echo $userinfo[0]->phone;?>" placeholder="Phone">
</div>
<div class="form-group">
<label for="signin-password" class="control-label sr-only">Organization name</label>
<input type="text" autocomplete="off" class="form-control" name="orgname" id="orgname" value="" placeholder="Organization name">
</div>
<div class="form-group">
<label for="signin-password" class="control-label sr-only">Department name</label>
<input type="text" autocomplete="off" class="form-control" name="department" id="department" value="" placeholder="Department name">
</div>
<div class="form-group">
<label for="signin-password" class="control-label sr-only">Designation name</label>
<input type="text" autocomplete="off" class="form-control" name="designation" id="designation" value="" placeholder="Designation name">
</div>
<div class="form-group">
<label for="signin-password" class="control-label sr-only">Address</label>
<input type="text" autocomplete="off" class="form-control" name="address" id="address" value="" placeholder="Address">
</div>
<div class="form-group">
<label for="signin-password" class="control-label sr-only">State</label>
<input type="text" autocomplete="off" class="form-control" name="state" id="state" value="" placeholder="State name">
</div>
<div class="form-group">
<label for="signin-password" class="control-label sr-only">City name</label>
<input type="text" autocomplete="off" class="form-control" name="city" id="city" value="" placeholder="City name">
</div>
<div class="form-group">
<label for="signin-password" class="control-label sr-only">Pincode</label>
<input type="number" autocomplete="off" class="form-control" name="pincode" id="pincode" value="" placeholder="Pincode">
</div>
<div class="form-group text-center">
<button type="submit" autocomplete="off" onClick="javascript: return validateFrom()" style="text-align:center;" class="btn btn-primary"> <i class="fa fa-arrow-right"></i> </button>
</div>
</form>
<script>
function validateFrom(){
var error = 0;
var dataArr = new Array('orgname','department','designation','address','state','city','pincode');
for(var i=0; i<dataArr.length; i++){
if(document.getElementById(dataArr[i]).value.trim() == ''){
document.getElementById(dataArr[i]).style.border = '1px solid red';
error = 1;
}
}
if(error == 1)
return false;
}
</script>
</div>
</div>
</div>
</div>
</div>
<!-- END WRAPPER -->
</body>
</html>