Ejemplo n.º 1
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();
Ejemplo n.º 2
0
<?php

theme::form_start($title);
theme::header_start('Log file "' . $title . '"');
theme::header_button('back');
theme::header_end();
echo '<pre>' . $record->content . '</pre>';
theme::return_to_top();
Ejemplo n.º 3
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')) {
Ejemplo n.º 4
0
<?php

theme::header_start('PHPInfo');
theme::header_button('Configs', ['href' => $controller_path, 'icon' => 'cog']);
theme::header_end();
echo '<style>#phpinfo thead{background-color:white}</style>';
echo $html;
theme::return_to_top();
Ejemplo n.º 5
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();
Ejemplo n.º 6
0
<?php

$options = ['/admin/configure/export-config/folder/production' => 'production', '/admin/configure/export-config/folder/testing' => 'testing', '/admin/configure/export-config/folder/development' => 'development'];
/* has the environment already been added? */
if (!isset($options[ENVIRONMENT])) {
    $options['/admin/configure/export-config/folder/environment'] = ENVIRONMENT;
    /* current environment */
}
theme::header_start('Setting Groups', 'export settings to a file system level config file');
Plugin_search_sort::field();
//theme::header_button('Export All','/admin/configure/export-config/all','download');
theme::header_button_dropdown('Export', $options, ['icon' => 'download']);
theme::header_button('back', ['href' => '/admin/configure/setting', 'icon' => 'reply']);
theme::header_end();
theme::table_start(['Settings', 'Total Settings' => 'text-center', 'Actions' => 'text-center'], [], $records);
//kd($records);
foreach ($records as $name => $record) {
    theme::table_start_tr();
    theme::e($name);
    theme::table_row('text-center');
    theme::e(count($record));
    theme::table_row('actions text-center');
    theme::table_action('eye', $this->controller_path . '/export/' . bin2hex($name));
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
Ejemplo n.º 7
0
<?php

theme::header_start('Packages');
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> ';
<?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();
Ejemplo n.º 9
0
<?php

theme::header_start('Menubar', 'manage menubars.');
theme::header_button('List View', $controller_path . '/list', 'list');
theme::header_button_new();
theme::header_end();
?>
<div class="row">
	<div class="col-md-6">
		<div class="dd">
			<?php 
echo $tree;
?>
		</div>
	</div>
	<div class="col-md-6">
		<div id="menu-fixed-panel" class="panel panel-default">
			<div id="menu-record" class="panel-body subview">
			</div>
		</div>
	</div>
</div>
<script>
var o_dialog = (o_dialog) || {};

o_dialog.menubar_hander = function(data) {
	if (data.err == false) {
		$("#node_"+$(o_dialog.that,'a').data('id')).remove();
		$("#menu-record").html("");
	}
	
Ejemplo n.º 10
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();
Ejemplo n.º 11
0
<?php

theme::header_start('Configs', 'View configuration for autoload and routes');
theme::header_button('phpinfo', ['href' => $controller_path . '/phpinfo', 'icon' => 'info-circle']);
theme::header_end();
$constants = explode(',', 'APPPATH,BASEPATH,CI_VERSION,DEBUG,ENVIRONMENT,FCPATH,LOG_THRESHOLD,ORANGEPATH,ORANGE_VERSION,WWW,ROOTPATH,ROOTPATHS,SELF,SYSDIR,VIEWPATH');
config_theme::start('Misc');
foreach ($constants as $c) {
    config_theme::row($c, constant($c));
}
config_theme::row('Base URL', base_url());
config_theme::row('Site URL', site_url());
config_theme::row('Index Page', index_page());
config_theme::row('Date', date('l jS \\of F Y h:i:s A'));
config_theme::end();
config_theme::start('Paths');
foreach (setting('paths') as $key => $value) {
    config_theme::row($key, $value);
}
config_theme::end();
config_theme::start('Autoload');
foreach ($autoload as $key => $value) {
    config_theme::header($key);
    foreach ($autoload[$key] as $key2 => $value2) {
        config_theme::row(str_replace(ROOTPATH . '/', '', $value2));
    }
}
config_theme::end();
config_theme::start('Routes');
foreach ($routes as $key => $value) {
    config_theme::row($key, $value);
Ejemplo n.º 12
0
<?php

theme::header_start($controller_titles);
theme::header_button('Back', $controller_path . '/list-all', 'reply');
theme::header_end();
echo '<div class="panel panel-primary"><div class="panel-heading"><h3 class="panel-title">Merged (File + Database)</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'merged');
echo '</div></div>';
echo '<div class="panel panel-success"><div class="panel-heading"><h3 class="panel-title">Database Settings</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'db');
echo '</div></div>';
echo '<div class="panel panel-info"><div class="panel-heading"><h3 class="panel-title">Environment ../config/' . ENVIRONMENT . '/' . $which . '.php</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'env');
echo '</div></div>';
echo '<div class="panel panel-info"><div class="panel-heading"><h3 class="panel-title">Application ../config/' . $which . '.php</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'file');
echo '</div></div>';
theme::return_to_top();
Ejemplo n.º 13
0
<?php

ci()->event->register('view.admin.configure.setting.header.button', function (&$page) {
    theme::header_button('Export', ['href' => '/admin/configure/export-config', 'icon' => 'download']);
});
Ejemplo n.º 14
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start('Raw Config for "' . $filename . '"');
theme::header_button('back', ['href' => $controller_path]);
theme::header_button('Download', ['icon' => 'download', 'href' => $controller_path . '/download/' . bin2hex($filename)]);
theme::header_end();
echo '<pre>' . htmlentities($array) . '</pre>';
theme::form_end();
Ejemplo n.º 15
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();
Ejemplo n.º 16
0
theme::start_form_section('Plain Body', $plain_required);
theme::textarea('plain', $record->plain, ['class' => 'span8 code-textarea', 'rows' => 25]);
theme::end_form_section('This will be auto generated from the html if not provided.');
?>
	</div>

	<div class="tab-pane" id="html-plain">
		<?php 
theme::start_form_section('HTML Body', $html_required);
theme::textarea('html', $record->html, ['class' => 'span8 code-textarea', 'rows' => 25]);
theme::end_form_section();
theme::start_form_section('&nbsp;');
theme::header_button('Preview HTML', ['icon' => 'eye', 'data-preview' => $controller_path . '/preview']);
if ($has_file_manager) {
    echo theme::spacer();
    theme::header_button('Manage Assets', ['icon' => 'file', 'onclick' => 'javascript:open_file_manager(\'emails\');"']);
}
theme::end_form_section();
?>
	</div>

	<div class="tab-pane" id="variables-plain">
		<table class="table table-striped table-bordered">
<?php 
foreach ($variables as $key => $name) {
    ?>
			<tr>
				<td>{{<?php 
    echo $key;
    ?>
}}</td>
Ejemplo n.º 17
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start($controller_title);
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::hidden('sort', $record->sort);
theme::hidden('parent_id', $record->parent_id);
theme::start_form_section('Name', true, 6);
theme::text('name', $record->name);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
Ejemplo n.º 18
0
<?php

theme::header_start('Registrations', 'currently ' . $currently);
Plugin_search_sort::field();
theme::header_button('Completed', ['href' => $controller_path, 'icon' => 'trash']);
theme::header_button('Expired', ['href' => $controller_path, 'icon' => 'trash']);
theme::header_end();
theme::table_start(['Created', 'Expires', 'Username', 'Email', 'Expired' => 'text-center', 'Complete' => 'text-center', 'Activate' => 'text-center', 'Resend Email' => 'text-center', 'Delete' => 'text-center'], [], $records);
//kd($records);
foreach ($records as $record) {
    $user = json_decode($record->json);
    theme::table_start_tr();
    theme::date($record->created_on);
    theme::table_row();
    theme::date($record->timeout);
    theme::table_row();
    theme::e($user->username);
    theme::table_row();
    theme::e($user->email);
    theme::table_row('text-center');
    theme::enum_icon($record->expired);
    theme::table_row('text-center');
    theme::enum_icon($record->complete);
    theme::table_row('actions text-center');
    if (!$record->complete) {
        theme::table_action('user-plus', $this->controller_path . '/activate/' . $record->register_key);
    }
    theme::table_row('actions text-center');
    if (!$record->complete) {
        theme::table_action('envelope-o', $this->controller_path . '/resend-activation/' . $record->register_key);
    }