Your IP : 18.225.98.39
<?php
session_start(); ob_start();
include("lib/connect.inc.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Profile</title>
<link rel="shortcut icon" href="img/fav.png" />
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesheet" href="treant/Treant.css">
<link rel="stylesheet" href="treant/examples/tree/basic-example.css">
<?php include('head.php'); ?>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<?php include('nav.php'); ?>
<div class="content-wrapper">
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Profile</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active">Profile</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Content Header (Page header) -->
<!-- Content Wrapper. Contains page content -->
<!-- /.content-header -->
<!-- Main content -->
<!-- Small boxes (Stat box) -->
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<!-- Profile Image -->
<div class="card">
<div class="card-header text-white bg-dark">
<h5>Profile Picture</h5>
</div>
<div class="card-body box-profile">
<div class="text-center">
<img class="profile-user-img img-fluid img-circle"
<?php $picture1 = (userName($uid,'photo')=='')?'user.png':userName($uid,'photo'); ?>
<img src="images/<?php echo $picture1 ?>" alt="alt.png" class="rounded-circle mr-1" width="180" height="200"/>
</div>
<h3 class="profile-username text-center"><?php echo ucwords(userName($uid,'firstname')) ?></h3>
<center> <button type="button" class="btn btn-primary " data-toggle="modal" data-target="#uploadpicture"><b>Upload New Photo</b></button></center>
</div>
<!-- /.card-body -->
<!-- /.card -->
<!-- About Me Box -->
</div>
<!-- /.card-header -->
<!-- /.card-body -->
</>
<!-- /.card -->
</div>
<!-- /.col -->
<div class="col-md-9">
<div class="card ">
<div class="card-header text-white bg-dark">
<h5>Personal Information</h5>
</div>
<!-- <div class="box-block"> -->
<div class="row">
<!---->
<!-- <div class="col-md-3">-->
<!-- <div class="box bg-white">-->
<!-- <div class="box-block b-b">-->
<!-- --><?php ////$picture1 = (userName($uid,'photo')=='')?'user.png':userName($uid,'photo'); ?>
<!---->
<!-- <img src="images/--><?php ////echo $picture1 ?><!--" alt="alt.png" class="rounded-circle mr-1" width="180" height="200"/>-->
<!-- <br/><br/>-->
<!-- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#uploadpicture">Upload New Photo</button>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div class="col-md-9">
<!-- <div class="card bg-white "> -->
<div class="card-body">
<br/>
<div class="row">
<div class="col-md-6">
<label for="name">First Name: </label>
<h6><?php echo ucwords(userName($uid,'firstname')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Last Name: </label>
<h6><?php echo ucwords(userName($uid,'lastname')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">User Name: </label>
<h6><?php echo ucwords(userName($uid,'user')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Email: </label>
<h6><?php echo userName($uid,'email') ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Phone Number: </label>
<h6><?php echo userName($uid,'phone') ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Residential Address: </label>
<h6><?php echo ucwords(userName($uid,'address')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Sex: </label>
<h6><?php echo ucwords(userName($uid,'sex')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Date Of Birth: </label>
<h6><?php echo userName($uid,'dob') ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Office Address: </label>
<h6><?php echo ucwords(userName($uid,'officeaddress')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">City: </label>
<h6><?php echo ucwords(userName($uid,'city')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">State: </label>
<h6><?php echo ucwords(userName($uid,'state')) ?></h6>
<hr/>
</div>
<div class="col-md-12">.......Bank Details..................</div><br> <br>
<div class="col-md-6">
<label for="name">Bank: </label>
<h6><?php echo ucwords(userName($uid,'bank')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Account No: </label>
<h6><?php echo userName($uid,'accountno') ?></h6>
<hr/>
</div>
<div class="col-md-12">.......Next Of Kin..................</div><br> <br>
<div class="col-md-6">
<label for="name">Name: </label>
<h6><?php echo ucwords(userName($uid,'kinname')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Address: </label>
<h6><?php echo ucwords(userName($uid,'kinaddress')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Phone Number: </label>
<h6><?php echo ucwords(userName($uid,'kinphone')) ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Referral Link: </label>
<h6>https://covisclubinternational.com/signup.php?ref=<?php echo userName($uid,'user') ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Serial Number: </label>
<h6><?php echo userName($uid,'sn') ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Sponsor: </label>
<h6><?php echo $covis->keyToId(userName($uid,'sponsor'),'user') ?></h6>
<hr/>
</div>
<div class="col-md-6">
<label for="name">Upline: </label>
<h6><?php echo $covis->keyToId(userName($uid,'a1'),'user') ?></h6>
<hr/>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#editprofile">Edit Profile</button>
</div>
<hr/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- /.tab-pane -->
<!-- /.tab-content -->
<!-- /.card-body -->
<!-- /.nav-tabs-custom -->
<!-- /.col -->
<!-- /.content -->
<!-- /.content-wrapper -->
<?php include('foot.php'); ?>
<form method="post">
<div class="modal animated bounceInUp small-modal" id="editprofile" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="mySmallModalLabel">Edit Profile</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-2">Firstname: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="firstname" value="<?php echo userName($uid,'firstname') ?>" placeholder="Firstname" disabled/>
</div>
<div class="col-md-2">Lastname: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="lastname" value="<?php echo userName($uid,'lastname') ?>" placeholder="Lastname" disabled/>
</div>
<div class="col-md-2">Email: </div>
<div class="col-md-10 form-group">
<input type="email" class="form-control" name="email" value="<?php echo userName($uid,'email') ?>" placeholder="Email" disabled/>
</div>
<div class="col-md-2">phone: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="phone" value="<?php echo userName($uid,'phone') ?>" placeholder="Phone Number" disabled/>
</div>
<div class="col-md-2">Residential Address: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="address" value="<?php echo userName($uid,'address') ?>" placeholder="Residential Address"/>
</div>
<div class="col-md-2">Sex: </div>
<div class="col-md-10 form-group">
<?php $selected = (userName($uid,'sex') == 'm')?'selected':''; ?>
<?php $selected2 = (userName($uid,'sex') == 'f')?'selected':''; ?>
<select name="sex" class="form-control">
<option value="Male" <?php echo $selected ?> >Male</option>
<option value="Female" <?php echo $selected2 ?> >Female</option>
</select>
</div>
<div class="col-md-2">Date OF Birth: </div>
<div class="col-md-10 form-group">
<input type="date" class="form-control" name="dob" value="<?php echo userName($uid,'dob') ?>" placeholder="Date Of Birth"/>
</div>
<div class="col-md-2">Office Address: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="officeaddress" value="<?php echo userName($uid,'officeaddress') ?>" placeholder="Office Address"/>
</div>
<div class="col-md-2">City: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="city" value="<?php echo userName($uid,'city') ?>" placeholder="City"/>
</div>
<div class="col-md-2">State: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="state" value="<?php echo userName($uid,'state') ?>" placeholder="State"/>
</div> <br>
<div class="col-md-12"> Next Of Kin
<hr>
</div>
<div class="col-md-2">Name: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="kinname" value="<?php echo userName($uid,'kinname') ?>" placeholder="Name"/>
</div>
<div class="col-md-2">Address: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="kinaddress" value="<?php echo userName($uid,'kinaddress') ?>" placeholder="Address"/>
</div>
<div class="col-md-2">Phone Number: </div>
<div class="col-md-10 form-group">
<input type="number" class="form-control" name="kinphone" value="<?php echo userName($uid,'kinphone') ?>" placeholder="Phone Number"/>
</div><br>
<?php if(userName($uid,'accountno') == ''){ ?>
<div class="col-md-12 center"> Bank Details
<hr>
</div>
<div class="col-md-2">Bank Name: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="bank" value="<?php echo userName($uid,'bank') ?>" placeholder="Bank Name"/>
</div>
<div class="col-md-2">Account No: </div>
<div class="col-md-10 form-group">
<input type="text" class="form-control" name="accountno" value="<?php echo userName($uid,'accountno') ?>" placeholder="Account Number"/>
</div>
<?php } ?>
<input type="hidden" name="id" value="<?php echo $uid ?>"/>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" name="EditProfile">Edit Profile</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</form>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<form method="post" enctype="multipart/form-data">
<div class="modal animated bounceInUp small-modal" id="uploadpicture" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="mySmallModalLabel">Upload Picture</h4>
<?php echo userName($uid) ?>
</div>
<div class="modal-body">
<input type="hidden" name="firstname" value="<?php echo userName($uid,'firstname') ?>"/>
<input type="file" name="photo" id="input-file-now-custom-1" class="dropify" data-default-file="images/<?php echo userName($uid,'photo') ?>" />
</div>
<input type="hidden" name="id" value="<?php echo $uid ?>"/>
<div class="modal-footer">
<button type="submit" class="btn btn-primary" name="UploadPicture">Upload Picture</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</form>
<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="../plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="../plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="../plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="../dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- DataTables -->
<script src="../plugins/datatables/jquery.dataTables.min.js"></script>
<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="../plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="../plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<!-- page script -->
<script>
$(function () {
$("#example1").DataTable({
"responsive": true,
"autoWidth": false,
});
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false,
"responsive": true,
});
});
</script>
</body>
</html>