profile.php 4.18 KB

<div class="content-wrapper">
 <!-- Content Header (Page header) -->
 <section class="content-header">
  <h1>
   Edit Profile 
 </h1>
     <!--  <ol class="breadcrumb">
         <li><a href="<?php echo base_url(); ?>welcome"><i class="fa fa-user"></i>Home</a></li>
         <li><a href="#">Your Details</a></li>
         <li class="active">Edit Profile</li>
       </ol> -->
     </section>
     <!-- Main content -->
     <section class="content">
      <div class="row">
       <!-- left column -->
       <div class="col-md-12">
        <?php
        if($this->session->flashdata('message')) {
         $message = $this->session->flashdata('message');
         ?>
         <div class="alert alert-<?php echo $message['class']; ?>">
           <button class="close" data-dismiss="alert" type="button">×</button>
           <?php echo $message['message']; ?>
         </div>
         <?php
       }
       ?>
     </div>
     <div class="col-md-6">
      <!-- general form elements -->
      <div class="box">
       <div class="box-header">
        <h3 class="box-title">Personal Details</h3>
      </div>
      <!-- /.box-header -->
      <!-- form start -->

      <div class="box-body">
        <div class="col-md-7">
         <form role="form" action="<?php echo base_url('User/EditProfile');?>" method="post" data-parsley-validate="" class="validate" enctype="multipart/form-data">
           <div class="form-group has-feedback" hidden>
            <input type="text" name="id" value="<?php echo $data['id'];?>">
          </div>
         <div class="form-group has-feedback">
          <label for="exampleInputEmail1">username</label>
          <input type="text" class="form-control required" name="username" value="<?php echo $data['username']; ?>" id="username"  placeholder="Enter Username"  required="" class="form-control" >
          <span class="glyphicon  form-control-feedback"></span>
        </div>

        <div class="form-group">
          <label for="file">Display Image</label>
          <input type="file" id="image" name="file"  >
          <img src="<?php echo base_url().$data['profile_picture'];?>" width="70px" height="70px" alt="Picture Not Found" />
          <span class="glyphicon  form-control-feedback"></span>
        </div>
        <div class="box-footer">
          <button type="submit" class="btn btn-info">Update</button>
        </div>
      </form>
    </div>



  </div>
</div>
<!-- /.box -->
</div>
<div class="col-md-6">
 <div class="box">
   <div class="box-header">
    <h3 class="box-title">Change Password</h3>
  </div>
  <!-- /.box-header -->
  <!-- form start -->

  <div class="box-body">


   <div class="col-md-7">
     <form role="form" action="<?php echo base_url('User/ChangePassword');?>" method="post" data-parsley-validate="" class="validate" enctype="multipart/form-data">
       <div class="form-group has-feedback" hidden>
        <input type="text" name="id" value="<?php echo $data['id'];?>">
      </div>
      <div class="form-group has-feedback">
        <label for="exampleInputEmail1">Current Password</label>
        <input type="password" class="form-control required" name="password_c" id="password_c"  placeholder="Enter Your Current Password" data-parsley-required="true">
        <span class="glyphicon  form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <label for="exampleInputEmail1">New Password</label>
        <input type="password" class="form-control required" name="password_n" id="password_n"  placeholder="Enter New Password" data-parsley-required="true">
        <span class="glyphicon  form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <label for="exampleInputEmail1">Confirm New Password</label>
        <input type="password" class="form-control required" name="password_cn" id="password_cn"  placeholder="Confirm New Password" data-parsley-required="true">
        <span class="glyphicon  form-control-feedback"></span>
      </div>
      <div class="box-footer">
       <button type="submit" name="update" class="btn btn-info">Update</button>
     </div>
   </form>
 </div>

</div>
<!-- /.box-body -->

</div>
<!-- /.box -->
</div>
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>