Example #1
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();
Example #2
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();
Example #3
0
 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>&nbsp;';
     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']) {
     $content = '';
     if (count($record['is_required_by']) > 0) {
         $content .= '<b>Required By</b><br>' . implode('<br>', $record['is_required_by']) . '<br>';
     }
     if (count($record['package_not_available']) > 0) {
         $content .= '<b>Not Available</b><br>' . implode('<br>', $record['package_not_available']) . '<br>';
     }
     if (count($record['package_not_active']) > 0) {
         $content .= '<b>Not Active</b><br>' . implode('<br>', $record['package_not_active']) . '<br>';
     }
     echo ' <button type="button" class="btn btn-xs btn-info" tabindex="0" data-html="true" data-placement="left" role="button" data-toggle="popover" data-trigger="focus" title="<b>Requirements</b>" data-content="' . $content . '"><i class="fa fa-info-circle"></i></button> ';
 }
Example #4
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();