<div> <strong>Id: </strong><?php o::e($record->id); ?> </div> <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>
theme::header_button('Built in', $controller_path . '/list-all', 'file'); theme::header_end(); theme::table_empty($records['records']); theme::table_tabs($records['records']); theme::table_tabs_start(); foreach ($records['records'] as $tab => $tab_records) { theme::table_tab_pane_start($tab); theme::table_start(['Name', 'Value', 'Managed' => 'text-center', 'Actions' => 'text-center']); /* show them in the order they where entered */ uasort($tab_records, function ($a, $b) { return $a->id > $b->id ? 1 : -1; }); foreach ($tab_records as $record) { theme::table_start_tr(); echo !$record->enabled ? '<i class="text-muted">' : ''; o::e($record->name); echo !$record->enabled ? '</i>' : ''; theme::table_row(); echo theme::format_value($record->value, 128); theme::table_row('larger text-center'); echo theme::enum_icon((int) $record->managed); 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 settings')) { 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); }
<?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();
echo $errors . '<br>'; echo 'This needs to be fixed in order for packages to be dynamically loaded.'; echo '</div>'; } theme::table_start(['Name', 'Type' => 'text-center', 'Description', 'Version' => 'text-center', 'Actions' => 'text-center'], [], $records); //k($records); foreach ($records as $name => $record) { /* Name */ theme::table_start_tr(); o::html($record['www_name']); /* type */ theme::table_row('text-center'); echo '<span class="label label-' . $type_map[$record['composer']['orange']['type']] . '">' . $record['composer']['orange']['type'] . '</span>'; /* Description */ theme::table_row(); o::e($record['composer']['description']); echo ' <a href="' . $controller_path . '/details/' . $record['url_name'] . '"><i class="text-info fa fa-info-circle"></i></a> '; /* Version */ theme::table_row('text-center'); /* show upgrade version and up arrow? */ if ($record['composer']['orange']['version'] == $record['database']['migration_version']) { echo '<span class="label label-primary">' . $record['database']['migration_version'] . '</span>'; } else { echo '<span class="label label-info">' . $record['composer']['orange']['version'] . '</span> '; echo '<span class="label label-primary">' . $record['database']['migration_version'] . '</span>'; } /* Actions */ theme::table_row('text-center'); echo '<nobr>'; /* show install */ if ($record['buttons']['error']) {
theme::table_tabs($records['records'], ['human' => true]); theme::table_tabs_start(); asort($records['records']); foreach ($records['records'] as $tab => $tab_records) { theme::table_tab_pane_start($tab); theme::table_start(['Name', 'Description', 'Key', 'Actions' => 'text-center']); uasort($tab_records, function ($a, $b) { return $a->name > $b->name ? 1 : -1; }); foreach ($tab_records as $record) { theme::table_start_tr(); o::e($record->name); theme::table_row(); o::e($record->description); theme::table_row(); o::e($record->key); 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::table_tab_pane_end(); } theme::table_tabs_end(); theme::return_to_top();
<?php theme::header_start('Manage Order Statues'); theme::header_button_new(); theme::header_end(); theme::table_start(['Name', 'On New' => 'txt-ac', 'On Update' => 'txt-ac', 'Cancel' => 'txt-ac', 'Actions' => 'txt-ac'], null, $records); foreach ($records as $record) { $record->id = $record->ord_status_id; theme::table_start_tr(); o::e($record->ord_status_description); theme::table_row('txt-ac larger'); theme::enum_icon($record->ord_status_save_default); theme::table_row('txt-ac larger'); theme::enum_icon($record->ord_status_resave_default); theme::table_row('txt-ac larger'); theme::enum_icon($record->ord_status_cancelled); theme::table_row('actions txt-ac'); theme::table_action('edit', $this->controller_path . '/edit/' . $record->ord_status_id); o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->ord_status_id); theme::table_end_tr(); } theme::table_end(); theme::return_to_top();
<?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('Manage Zones'); theme::header_button_new(); theme::header_end(); theme::table_start(['Name', 'Description', 'Active' => 'txt-ac', 'Actions' => 'txt-ac'], null, $records); foreach ($records as $record) { $record->id = $record->lzone_id; theme::table_start_tr(); o::e($record->lzone_name); theme::table_row(); o::shorten($record->lzone_description); theme::table_row('txt-ac larger'); theme::enum_icon($record->lzone_status); theme::table_row('actions txt-ac'); theme::table_action('edit', $this->controller_path . '/edit/' . $record->lzone_id); o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->lzone_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();
<?php theme::header_start('Manage Currencies', 'Manage your stores currency.'); theme::header_button_new(); theme::header_end(); theme::table_start(['Name', 'Exchange Rate', 'Symbol' => 'text-center', 'Suffix' => 'text-center', 'Thousand' => 'text-center', 'Decimal' => 'text-center', 'Status' => 'text-center', 'Actions' => 'text-center'], null, $records); foreach ($records as $record) { theme::table_start_tr(); o::e($record->curr_name); theme::table_row(); o::shorten($record->curr_exchange_rate); theme::table_row('text-center'); o::shorten($record->curr_symbol); theme::table_row('text-center larger'); theme::enum_icon($record->curr_symbol_suffix); theme::table_row('text-center'); o::shorten($record->curr_thousand_separator); theme::table_row('text-center'); o::shorten($record->curr_decimal_separator); theme::table_row('text-center larger'); theme::enum_icon($record->curr_status); theme::table_row('actions text-center'); theme::table_action('edit', $this->controller_path . '/edit/' . $record->curr_id); o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->curr_id); theme::table_end_tr(); } theme::table_end(); theme::return_to_top();