<br> <div> <strong>Text: </strong><?php o::e($record->text); ?> </div> <br> <div> <strong>URL: </strong><?php o::e(rtrim($record->url, '/#')); ?> </div> <br> <div> <strong>Access: </strong><?php o::smart_model('o_access', $record->access_id, 'key'); ?> </div> <br> <div> <strong>Enabled: </strong><?php o::enum($record->active, 'Inactive|Active'); ?> </div> <br> <div> <?php if ($record->is_deletable) { ?> <?php
<?php theme::header_start('Menubar', 'manage menubars using the list view.'); Plugin_search_sort::field(); theme::header_button('Back', $controller_path, 'reply'); theme::header_end(); theme::table_start(['Text', 'URL', 'Access', 'Parent', 'Active' => 'text-center', 'Actions' => 'text-center'], [], $records); foreach ($records as $record) { theme::table_start_tr(); o::e($record->text); theme::table_row(); o::e($record->url); theme::table_row(); o::smart_model('o_access', $record->access_id, 'key'); theme::table_row(); o::smart_model('o_menubar', $record->parent_id, 'text'); theme::table_row('text-center larger'); theme::enum_icon($record->active); theme::table_row('actions text-center'); if ($record->is_editable) { theme::table_action('edit', $this->controller_path . '/edit/' . $record->id); } if (has_access('orange::advanced menubar')) { theme::table_action('pencil-square', $this->controller_path . '/edit/' . $record->id . '/advanced'); } if ($record->is_deletable) { o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id); } theme::table_end_tr(); } theme::table_end();
</td> </tr> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Roles with this Access</h3> </div> <div class="panel-body" style="padding:0"> <table class="table" style="margin:0"> <tr> <td title="1"><a href="/admin/users/role/details/1"><?php o::smart_model('o_role', 1, 'name'); ?> </a></td> </tr> <?php foreach ($roles as $key => $record) { ?> <tr> <td title="<?php echo $record->id; ?> "><a href="/admin/users/role/details/<?php echo $record->id; ?> "><?php
<?php /* on delete assigned to this role */ $role_name = o::smart_model('o_role_model', setting('auth', 'Default Role Id'), 'name', true); theme::header_start('Roles', 'manage user roles.'); Plugin_search_sort::field(); theme::header_button_new(); theme::header_end(); theme::table_start(['Name', 'Description', 'Actions' => 'text-center'], [], $records); foreach ($records as $record) { theme::table_start_tr(); o::e($record->name); theme::table_row(); o::e($record->description); theme::table_row('actions text-center'); if ($record->is_editable) { theme::table_action('edit', $this->controller_path . '/edit/' . $record->id); } if ($record->is_deletable) { o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id, ['data' => ['append' => '<br>This will reassign all users with this role to the "' . $role_name . '" role.']]); } theme::table_action('list-ul', $this->controller_path . '/details/' . $record->id); theme::table_end_tr(); } theme::table_end(); theme::return_to_top();
<?php theme::header_start('Users', 'manage users'); Plugin_search_sort::field(); theme::header_button_new(); theme::header_end(); theme::table_start(['Name', 'Email', 'Role', 'Active' => 'text-center', 'Actions' => 'text-center'], [], $records); foreach ($records as $record) { theme::table_start_tr(); o::e($record->username); theme::table_row(); o::e($record->email); theme::table_row(); echo '<a href="/admin/users/role/details/' . $record->role_id . '">'; o::smart_model('o_role', $record->role_id, 'name'); echo '</a>'; theme::table_row('text-center larger'); theme::enum_icon($record->is_active); theme::table_row('actions text-center'); if ($record->is_editable) { theme::table_action('edit', $this->controller_path . '/edit/' . $record->id); } if ($record->is_deletable) { o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id); } theme::table_action('list-ul', $this->controller_path . '/details/' . $record->id); theme::table_end_tr(); } theme::table_end(); theme::return_to_top();