当前位置: 首页>>代码示例>>PHP>>正文


PHP theme::table_row方法代码示例

本文整理汇总了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();
开发者ID:ProjectOrangeBox,项目名称:cms-banner,代码行数:31,代码来源:index.php

示例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();
开发者ID:kverawat,项目名称:flexi-cart-1,代码行数:23,代码来源:index.php

示例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>&nbsp;';
     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> ';
 }
开发者ID:dmyers2004,项目名称:theme-orange,代码行数:31,代码来源:index.php

示例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();
开发者ID:ProjectOrangeBox,项目名称:login-success,代码行数:22,代码来源:index.php


注:本文中的theme::table_row方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。