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