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