?> </span> </div> </div> <div class="form-group <?php if (form_error('status')) { echo 'has-error'; } ?> "> <label for="password" class="col-md-2 control-label">Status</label> <div class="col-md-9"> <select class="form-control" name="status"> <?php $listStatus = Muser::getStatusUser(); foreach ($listStatus as $key => $value) { if ($status == $key) { echo "<option selected value='{$key}'>{$value}</option>"; } else { echo "<option value='{$key}'>{$value}</option>"; } } ?> </select> <span class="error"><?php echo form_error('status'); ?> </span> </div> </div>
?> </td> <td><?php echo $user['username']; ?> </td> <td><?php echo $user['fullname']; ?> </td> <td><?php echo $user['level_name']; ?> </td> <td><?php echo Muser::getStatusUser($user['status']); ?> </td> <td><?php echo $user['created_at']; ?> </td> <td> <a href="<?php echo base_url() . 'admin/user/edit/' . $user['id']; ?> "> <i class="fa fa-pencil-square-o"></i> </a> <a class="delete" id="delete<?php echo $user['id'];