本文整理匯總了PHP中theme::table_end方法的典型用法代碼示例。如果您正苦於以下問題:PHP theme::table_end方法的具體用法?PHP theme::table_end怎麽用?PHP theme::table_end使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類theme
的用法示例。
在下文中一共展示了theme::table_end方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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();