當前位置: 首頁>>代碼示例>>PHP>>正文


PHP theme::e方法代碼示例

本文整理匯總了PHP中theme::e方法的典型用法代碼示例。如果您正苦於以下問題:PHP theme::e方法的具體用法?PHP theme::e怎麽用?PHP theme::e使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在theme的用法示例。


在下文中一共展示了theme::e方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: foreach

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();
theme::return_to_top();
開發者ID:ProjectOrangeBox,項目名稱:scheduler,代碼行數:30,代碼來源:index.php

示例2: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:lighting-q,代碼行數:20,代碼來源:index.php

示例3: foreach

<?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>';
}
開發者ID:ProjectOrangeBox,項目名稱:cache-viewer,代碼行數:30,代碼來源:index.php

示例4: foreach

<?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();
    theme::e($record->curr_name);
    theme::table_row();
    theme::shorten($record->curr_exchange_rate);
    theme::table_row('text-center');
    theme::shorten($record->curr_symbol);
    theme::table_row('text-center');
    theme::enum_icon($record->curr_symbol_suffix);
    theme::table_row('text-center');
    theme::shorten($record->curr_thousand_separator);
    theme::table_row('text-center');
    theme::shorten($record->curr_decimal_separator);
    theme::table_row('text-center');
    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();
開發者ID:ProjectOrangeBox,項目名稱:flexi-cart,代碼行數:28,代碼來源:index.php

示例5: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:dropdowns,代碼行數:22,代碼來源:index.php

示例6: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:cropper,代碼行數:28,代碼來源:index.php

示例7: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:orange-export-import,代碼行數:21,代碼來源:role.php

示例8: seconds2human

<?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();
開發者ID:ProjectOrangeBox,項目名稱:lockout,代碼行數:22,代碼來源:index.php

示例9: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:security-violations,代碼行數:26,代碼來源:index.php

示例10: foreach

<?php

theme::header_start('Auto Logins', 'View saved auto logins.');
Plugin_search_sort::field();
if (count($records) > 0) {
    o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Auto Logins', 'Do you want to remove all saved auto logins?');
}
theme::header_end();
theme::table_start(['Key Id', 'User Id', 'User Agent', 'Last IP', 'Last Login', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->key_id);
    theme::table_row();
    theme::e($record->user_id);
    theme::table_row();
    theme::e($record->user_agent);
    theme::table_row();
    theme::e($record->last_ip);
    theme::table_row();
    theme::date($record->last_login);
    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();
開發者ID:ProjectOrangeBox,項目名稱:auto-logins,代碼行數:26,代碼來源:index.php

示例11: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:export_config,代碼行數:27,代碼來源:index.php

示例12: foreach

<?php

theme::header_start('Logs For ' . $parent_record->description);
Plugin_search_sort::field();
theme::header_button('back', ['href' => $controller_path]);
theme::header_end();
theme::table_start(['Date', 'Length' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::date($record->created_on);
    theme::table_row('text-center');
    theme::e(strlen($record->output));
    theme::table_row('actions text-center');
    theme::table_action('eye', $this->controller_path . '/log/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
開發者ID:ProjectOrangeBox,項目名稱:scheduler,代碼行數:18,代碼來源:view.php

示例13: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:orange-juicer,代碼行數:18,代碼來源:index.php

示例14: foreach

<?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();
開發者ID:ProjectOrangeBox,項目名稱:orange-export-import,代碼行數:21,代碼來源:user.php

示例15: str_replace

<?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();
開發者ID:ProjectOrangeBox,項目名稱:log-file-viewer,代碼行數:18,代碼來源:index.php


注:本文中的theme::e方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。