|
4 | 4 | $email = $userInfo->email; |
5 | 5 | $mobile = $userInfo->mobile; |
6 | 6 | $roleId = $userInfo->roleId; |
| 7 | +$role = $userInfo->role; |
7 | 8 | ?> |
8 | 9 |
|
9 | 10 | <div class="content-wrapper"> |
|
19 | 20 |
|
20 | 21 | <div class="row"> |
21 | 22 | <!-- left column --> |
22 | | - <div class="col-md-8"> |
| 23 | + <div class="col-md-3"> |
23 | 24 | <!-- general form elements --> |
24 | | - |
| 25 | + |
| 26 | + |
| 27 | + <div class="box box-primary"> |
| 28 | + <div class="box-body box-profile"> |
| 29 | + <img class="img-responsive img-circle" src="<?php echo base_url(); ?>assets/dist/img/avatar.png" alt="User profile picture"> |
| 30 | + <h3 class="profile-username text-center"><?= $name ?></h3> |
| 31 | + |
| 32 | + <p class="text-muted text-center"><?= $role ?></p> |
| 33 | + |
| 34 | + <ul class="list-group list-group-unbordered"> |
| 35 | + <li class="list-group-item"> |
| 36 | + <b>Email</b> <a class="pull-right"><?= $email ?></a> |
| 37 | + </li> |
| 38 | + <li class="list-group-item"> |
| 39 | + <b>Mobile</b> <a class="pull-right"><?= $mobile ?></a> |
| 40 | + </li> |
| 41 | + </ul> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + |
| 45 | + </div> |
| 46 | + |
| 47 | + <div class="col-md-4"> |
25 | 48 | <div class="box box-primary"> |
26 | 49 | <div class="box-header"> |
27 | | - <h3 class="box-title">User Details</h3> |
| 50 | + <h3 class="box-title">You can modify your details</h3> |
28 | 51 | </div><!-- /.box-header --> |
29 | | - <!-- form start --> |
30 | | - |
31 | | - <form role="form" action="<?php echo base_url() ?>profile" method="post" id="editUser" role="form"> |
| 52 | + <!-- form start --> |
| 53 | + <form role="form" action="<?php echo base_url() ?>profileUpdate" method="post" id="editProfile" role="form"> |
32 | 54 | <div class="box-body"> |
33 | 55 | <div class="row"> |
34 | | - <div class="col-md-6"> |
| 56 | + <div class="col-md-12"> |
35 | 57 | <div class="form-group"> |
36 | 58 | <label for="fname">Full Name</label> |
37 | | - <input type="text" class="form-control" id="fname" placeholder="Full Name" name="fname" value="<?php echo $name; ?>" maxlength="128" /> |
38 | | - </div> |
39 | | - |
40 | | - </div> |
41 | | - <div class="col-md-6"> |
42 | | - <div class="form-group"> |
43 | | - <label for="email">Email address : </label> |
44 | | - <h5><?php echo $email; ?></h5> |
| 59 | + <input type="text" class="form-control" id="fname" name="fname" placeholder="<?php echo $name; ?>" maxlength="128" /> |
45 | 60 | </div> |
46 | 61 | </div> |
47 | 62 | </div> |
48 | 63 | <div class="row"> |
49 | | - <div class="col-md-6"> |
| 64 | + <div class="col-md-12"> |
50 | 65 | <div class="form-group"> |
51 | 66 | <label for="mobile">Mobile Number</label> |
52 | | - <input type="text" class="form-control" id="mobile" placeholder="Mobile Number" name="mobile" value="<?php echo $mobile; ?>" maxlength="10"> |
| 67 | + <input type="text" class="form-control" id="mobile" name="mobile" placeholder="<?php echo $mobile; ?>" maxlength="10"> |
53 | 68 | </div> |
54 | 69 | </div> |
55 | | - <div class="col-md-6"> |
56 | | - <div class="form-group"> |
57 | | - <label for="role">Role</label> |
58 | | - </div> |
59 | | - </div> |
60 | 70 | </div> |
61 | 71 | </div><!-- /.box-body --> |
62 | 72 |
|
|
0 commit comments