本文整理汇总了PHP中theme::enum_icon方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::enum_icon方法的具体用法?PHP theme::enum_icon怎么用?PHP theme::enum_icon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme
的用法示例。
在下文中一共展示了theme::enum_icon方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
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();
theme::return_to_top();
示例2: foreach
<?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();
示例3: foreach
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);
}
theme::table_end_tr();
}
theme::table_end();
theme::table_tab_pane_end();
}
示例4: foreach
<?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();
示例5: strtolower
<?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();
示例6: 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();
示例7: foreach
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);
}
theme::table_row('actions text-center');
o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->register_key);
theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();