當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。