<section id="main"> <div class="container-fluid"> <div class="page-header page-header-block"> <div class="row-fluid"> <div class="col-xs-7"> <h4 class="title"> <span class="fa fa-ellipsis-h fa-fw"></span> <?php echo isset($setting->key) ? key_label($setting->key) : lang('New Field'); ?> </h4> </div> <div class="col-xs-5"> <div class="btn-group pull-right"> <a href="<?php _u('admin/settings'); ?> " class="btn btn-default btn-sm"> <i class="fa fa-arrow-circle-left"></i> </a> <button type="button" class="btn btn-primary btn-sm click-submit" data-form="#saveSetting"> <i class="fa fa-save"></i> </button> </div> <div class="clearfix"></div> </div> </div> <div class="clearfix"></div> </div>
<?php foreach ($roles as $role) { ?> <th class="text-center"></th> <?php } ?> </tr> <?php foreach ($task as $method) { ?> <tr> <td> <?php echo key_label($method); ?> </td> <?php foreach ($roles as $role) { ?> <td class="text-center"> <strong> <?php echo form_checkbox($controller . '[' . $method . '][' . $role->id . ']', true, check_permission($controller, $method, $role->id)); ?> </strong> </td> <?php
/** * Register User (Save User) * * @return Redirect */ public function register() { $post = $this->input->post(); if ($this->_validateRegister() == FALSE) { AZ::redirectError('account', validation_errors()); return false; } $user = array('username' => $post['username'], 'password' => $this->user->hash_password($post['password']), 'email' => $post['email'], 'name' => key_label($post['username']), 'status' => 1, 'gid' => 4, 'registerd' => date("Y-m-d H:i:s")); if ($this->db->insert('users', $user)) { $this->user->authenicate($post['username'], $post['password']); AZ::redirectSuccess('account', __('Register Thanks', true)); } else { AZ::redirectError('account', __('Error occured', true)); } }
echo $group->id; ?> " class="panel-collapse collapse"> <div class="panel-body"> <?php $configurations = get_settings($group->id); foreach ($configurations as $configuration) { ?> <div class="field-row row-fluid"> <div class="col-md-4"> <label for="<?php echo $configuration->key; ?> "> <?php echo key_label($configuration->key); ?> </label> </div> <div class="col-md-8"> <div class="row-fluid"> <div class="col-xs-10 p0"> <?php echo setting_field_render($configuration->id); ?> </div>