예제 #1
0
<?php

theme::header_start('Successful Logins', 'View successful logins');
Plugin_search_sort::field();
if (count($records) > 0) {
    o_dialog::confirm_button($controller_path . '/flush/90', '90 Days+', 'trash', 'Successful Logins', 'Do you want to delete successful logins greater then 90 days', ['redirect' => 'true']);
    o_dialog::confirm_button($controller_path . '/flush/30', '30 Days+', 'trash', 'Successful Logins', 'Do you want to delete successful logins greater then 30 days?', ['redirect' => 'true']);
    o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Successful Logins', 'Do you want to delete all successful logins?', ['redirect' => 'true']);
}
theme::header_end();
theme::table_start(['On', 'By', 'Email'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::date($record->created_on);
    theme::table_row();
    theme::smart_model('o_user_model', $record->created_by, 'username');
    theme::table_row();
    theme::e($record->email);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
<?php

theme::form_start($controller_path . '/role', null, ['data-validate' => false]);
theme::header_start('Export Roles');
Plugin_search_sort::field();
theme::header_button('Export File', ['icon' => 'upload', 'action' => 'js-post']);
theme::header_button('back');
theme::header_end();
theme::table_start(['Name', 'Description', 'Export' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->description);
    theme::table_row('actions text-center');
    echo '<input type="checkbox" name="export[]" value="' . $record->id . '">';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
theme::form_end();
예제 #3
0
<?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();
예제 #4
0
<?php

theme::header_start('Log Files', 'File based log files in "..' . str_replace(ROOTPATH, '', setting('config.log_path') . '".'));
Plugin_search_sort::field();
if (has_access('log_file_viewer::delete logs')) {
    theme::header_button('Delete All', ['href' => $controller_path . '/delete', 'icon' => 'trash']);
}
theme::header_end();
theme::table_start(['Filename', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row('actions text-center');
    theme::table_action('eye', $controller_path . '/details/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #5
0
<?php

theme::header_start('Access', 'manage access attached to roles.');
theme::header_button_new();
theme::header_end();
theme::table_empty($records['records']);
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();
예제 #6
0
<?php

theme::header_start('Manage ' . $controller_titles, 'Manage all ' . $controller_titles . '. <span id="servertime"></span>');
Plugin_search_sort::field();
theme::header_button('new');
theme::header_end();
theme::table_start(['Enabled' => 'text-center', 'Description', 'When', 'URL', 'Keep' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr('', 'text-center');
    theme::enum_icon($record->is_enabled);
    theme::table_row();
    theme::e($record->description);
    theme::table_row();
    $time = trim($record->minute . ' ' . $record->hour . ' ' . $record->day_of_month . ' ' . $record->month . ' ' . $record->day_of_week);
    try {
        $cron = Cron\CronExpression::factory($time);
        echo 'Previous: ' . $cron->getPreviousRunDate()->format("F j, Y, g:i a") . '<br>Next: ' . $cron->getNextRunDate()->format("F j, Y, g:i a");
    } catch (Exception $e) {
        echo '<span class="text-danger">Invalid trigger ' . $time . '</span>';
    }
    theme::table_row();
    theme::e($record->url);
    theme::table_row('text-center');
    theme::e($record->keep);
    theme::table_row('actions text-center');
    theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_action('eye', $this->controller_path . '/view/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
예제 #7
0
<?php

theme::header_start('People', 'mange people\'s bios.');
Plugin_search_sort::field();
if (has_access('templates::add')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Title', 'Position', 'Weight' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->title);
    theme::table_row();
    theme::e($record->position);
    theme::table_row('text-center');
    theme::e($record->weight);
    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_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #8
0
Plugin_search_sort::field();
if (has_access('package::refresh')) {
    theme::header_button('Refresh', $controller_path . '/flush', 'refresh');
}
o::view_event($controller_path, 'header.buttons');
theme::header_end();
echo '<small style="padding: 0 0 5px;display: block;">Version requirements are managed by composer. *Orange Packages</small>';
/* display errors */
if ($errors) {
    echo '<div class="alert alert-danger" role="alert">';
    echo '<b>We have a problem!</b><br>';
    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'], ['tbody_class' => 'searchable', 'class' => 'sortable'], $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? */
<?php

theme::form_start($controller_path . '/role-access', null, ['data-validate' => false]);
theme::header_start('Export Users');
Plugin_search_sort::field();
theme::header_button('Export File', ['icon' => 'upload', 'action' => 'js-post']);
theme::header_button('back');
theme::header_end();
theme::table_start(['Username', 'Email', 'Export' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->username);
    theme::table_row();
    theme::e($record->email);
    theme::table_row('actions text-center');
    echo '<input type="checkbox" name="export[]" value="' . $record->id . '">';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
theme::form_end();
예제 #10
0
<?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('Lock Settings', 'protect the following records form accidental import updates.');
Plugin_search_sort::field();
theme::header_button('back', ['href' => $controller_path]);
theme::header_end();
theme::table_start(['Group', 'Name', 'Value', 'Locked' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->group);
    theme::table_row();
    theme::e($record->name);
    theme::table_row();
    theme::shorten($record->value, 64);
    //theme::smart_model('o_access',$record->access_id,'key');
    theme::table_row('text-center');
    $checked = $record->is_locked ? 'checked' : '';
    echo '<input type="checkbox" value="1" class="select" data-id="' . $record->id . '" data-m="0" ' . $checked . '>';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #12
0
<?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'], ['tbody_class' => 'searchable', 'class' => 'sortable']);
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();
예제 #13
0
<?php

theme::header_start('File Based Sets', 'Only config files which use the $config format are displayed.');
theme::header_button('Back', $controller_path, 'reply');
theme::header_end();
theme::table_start(['Name']);
foreach ($records as $record) {
    theme::table_start_tr();
    echo '<a href="' . $controller_path . '/group/' . $record->name . '"><i class="fa fa-tachometer"></i> ' . $record->name . '</a>';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #14
0
<?php

theme::header_start('Lockouts', 'Login Max Attempts <span class="badge badge-info">' . $attempts . '</span> Login Attempts Expire After <span class="badge badge-info">' . seconds2human($expire) . '</span>');
Plugin_search_sort::field();
if (count($records) > 0) {
    o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Login Attempts', 'Do you want to remove all login attempts?', ['redirect' => 'true']);
}
theme::header_end();
theme::table_start(['IP Address', 'Login', 'Time', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->ip_address);
    theme::table_row();
    theme::e($record->login);
    theme::table_row();
    theme::date($record->time);
    theme::table_row('actions text-center');
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #15
0
<?php

theme::header_start('Lighting Q', 'Currently waiting records');
theme::header_end();
theme::table_start(['Que Time', 'Note', 'Status' => 'text-center', 'Status Time', 'Actions' => 'text-center'], null, $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::date($record->que_time);
    theme::table_row();
    theme::e($record->note);
    theme::table_row('text-center');
    theme::e($record->status);
    theme::table_row();
    theme::date($record->status_time);
    theme::table_row('actions text-center');
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
<?php

theme::header_start('Lock Access', 'protect the following records form accidental import updates.');
Plugin_search_sort::field();
theme::header_button('back', ['href' => $controller_path]);
theme::header_end();
theme::table_start(['Group', 'Name', 'Description', 'Locked' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->group);
    theme::table_row();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->description);
    theme::table_row('text-center');
    $checked = $record->is_locked ? 'checked' : '';
    echo '<input type="checkbox" value="1" class="select" data-id="' . $record->id . '" data-m="4" ' . $checked . '>';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #17
0
<?php

theme::header_start('Cache', 'Manage "' . $current_cache . '" cache.');
Plugin_search_sort::field();
o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Cached Entries', 'Do you want to delete all cached entries?', ['redirect' => 'true']);
theme::header_end();
theme::table_start(['Name', 'Size' => 'text-center', 'Created', 'Expires', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    $record = (object) $record;
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row('text-center');
    theme::e(byte_format($record->size));
    $total_bytes += $record->size;
    theme::table_row();
    theme::e(date('m/d/y g:ia', $record->date));
    theme::table_row();
    theme::e(date('m/d/y g:ia', $record->date + $ttl_txt));
    theme::table_row('actions text-center');
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . urlencode($record->name));
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
if ($total_bytes > 0) {
    echo '<p><strong>Total Size <span class="badge">' . byte_format($total_bytes) . '</span></strong></p>';
}
if ($ttl_txt > 0) {
    echo '<p><strong>Time to live <span class="badge">~' . seconds2human($ttl_txt) . '</span></strong></p>';
}
예제 #18
0
<?php

theme::header_start($controller_titles, 'Manage ' . strtolower($controller_titles) . '.');
Plugin_search_sort::field();
if (has_access('Content::Add Pages')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Title', 'Internal', 'Is Visible' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->title);
    theme::table_row();
    theme::shorten($record->internal);
    theme::table_row('text-center');
    theme::enum_icon($record->is_visible);
    theme::table_row('actions text-center');
    if ($record->is_editable) {
        theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    }
    if ($record->is_deletable && has_access('Pages::Delete Pages')) {
        o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    }
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #19
0
<?php

theme::header_start($controller_titles, 'manage random bits of text.');
Plugin_search_sort::field();
if (has_access('Snippets::Add Snippets')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Name', 'Value', 'Note', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row();
    theme::shorten($record->value);
    theme::table_row();
    theme::shorten($record->note);
    theme::table_row('actions text-center');
    if ($record->is_editable && has_access('Snippets::Edit Snippets')) {
        theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    }
    if ($record->is_deletable && has_access('Snippets::Delete Snippets')) {
        o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    }
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #20
0
<?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();
예제 #21
0
<?php

theme::header_start($controller_titles);
theme::header_button('new');
theme::header_end();
theme::table_start(['Name', 'Age' => 'text-center', 'Actions' => 'text-center'], null, $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row('text-center');
    theme::e($record->age);
    theme::table_row('actions text-center');
    theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #22
0
<?php

theme::form_start($controller_path . '/nav', null, ['data-validate' => false]);
theme::header_start('Export Menus');
Plugin_search_sort::field();
theme::header_button('Export File', ['icon' => 'upload', 'action' => 'js-post']);
theme::header_button('back');
theme::header_end();
theme::table_start(['Name', 'Value', 'Export' => 'text-center'], [], $records);
$parent_id = '';
foreach ($records as $record) {
    if ($parent_id != $record->parent_id) {
        echo '<tr><td colspan="4"><strong>Parent: ';
        ob_start();
        theme::smart_model('o_menubar', $record->parent_id, 'text');
        $text = ob_get_contents();
        ob_end_clean();
        echo empty($text) ? 'Root Level' : $text;
        echo '</strong></td></tr>';
        $parent_id = $record->parent_id;
    }
    theme::table_start_tr();
    theme::e($record->text);
    theme::table_row();
    theme::e($record->url);
    theme::table_row('actions text-center');
    echo '<input type="checkbox" name="export[]" value="' . $record->id . '">';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #23
0
<?php

theme::header_start('Manage ' . $controller_titles, 'Manage all ' . $controller_titles . '.');
Plugin_search_sort::field();
if (has_access('cropper::add cropper')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['name', 'width', 'height', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->width * $record->exportzoom);
    theme::table_row();
    theme::e($record->height * $record->exportzoom);
    theme::table_row('actions text-center');
    theme::table_action('crop', $this->controller_path . '/crop/' . $record->id);
    if (has_access('cropper::add cropper')) {
        theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    }
    if (has_access('cropper::delete cropper')) {
        o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    }
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #24
0
<?php

theme::header_start('Dropdowns', 'Mange dropdowns.');
Plugin_search_sort::field();
if (has_access('dropdowns::manage')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Name', 'Internal', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->internal);
    theme::table_row('actions text-center');
    if (has_access('dropdowns::manage')) {
        theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    }
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #25
0
<?php

theme::header_start('Manage Captures', 'Manage form captures.');
Plugin_search_sort::field();
theme::header_end();
theme::table_start(['Submmited On', 'URL', 'Form Name', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->created_on);
    theme::table_row();
    theme::e($record->url);
    theme::table_row();
    theme::e($record->form_name);
    theme::table_row('actions text-center');
    theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #26
0
<?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'], ['tbody_class' => 'searchable', 'class' => 'sortable']);
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();
예제 #27
0
<?php

$config = ENVIRONMENT ? 'Config "' . ENVIRONMENT . '"' : '';
theme::header_start('Settings', 'Manage application wide settings. ' . $config);
theme::header_button_new();
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')) {
예제 #28
0
Plugin_search_sort::field();
if (has_access('package::refresh')) {
    theme::header_button('Refresh', $controller_path . '/flush', 'refresh');
}
o::view_event($controller_path, 'header.buttons');
theme::header_end();
echo '<small style="padding: 0 0 5px;display: block;">Version requirements are managed by composer. *Orange Packages</small>';
/* display errors */
if ($errors) {
    echo '<div class="alert alert-danger" role="alert">';
    echo '<b>We have a problem!</b><br>';
    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? */
예제 #29
0
<?php

theme::header_start('Banners', 'mange banners.');
Plugin_search_sort::field();
if (has_access('templates::add')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Title', 'Starts After', 'End After', 'Points To', 'Weight' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $key => $record) {
    theme::table_start_tr();
    theme::e($record->title);
    theme::table_row();
    theme::date($record->start_on);
    theme::table_row();
    theme::date($record->end_on);
    theme::table_row();
    theme::e($record->url);
    theme::table_row('text-center');
    theme::e($record->weight);
    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_end_tr();
}
theme::table_end();
theme::return_to_top();
예제 #30
0
<?php

theme::header_start('Security Violations', 'View security violations.');
Plugin_search_sort::field();
if (count($records) > 0) {
    theme::header_button('90 Days+', ['href' => $controller_path . '/flush/90', 'icon' => 'trash', 'class' => 'js-confirm', 'data-h4' => 'Security Violations', 'data-p' => 'Do you want to delete security violations greater then 90 days']);
    theme::header_button('30 Days+', ['href' => $controller_path . '/flush/30', 'icon' => 'trash', 'class' => 'js-confirm', 'data-h4' => 'Security Violations', 'data-p' => 'Do you want to delete security violations greater then 30 days?']);
    theme::header_button('All', ['href' => $controller_path . '/clear', 'icon' => 'trash', 'class' => 'js-confirm', 'data-h4' => 'Security Violations', 'data-p' => 'Do you want to delete all security violations?']);
}
theme::header_end();
theme::table_start(['Date', 'Type', 'Route', 'Username', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::date($record->created_on);
    theme::table_row();
    theme::e($record->type);
    theme::table_row();
    theme::e($record->route);
    theme::table_row();
    theme::e($record->username);
    theme::table_row('actions text-center');
    theme::table_action('list-ul', $this->controller_path . '/view/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();