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


PHP theme::header_start方法代码示例

本文整理汇总了PHP中theme::header_start方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::header_start方法的具体用法?PHP theme::header_start怎么用?PHP theme::header_start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在theme的用法示例。


在下文中一共展示了theme::header_start方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

<?php

theme::header_start('Cached Files', 'manage file based cache.');
Plugin_search_sort::field();
o_dialog::confirm_button($controller_path . '/clear', 'All', 'trash', 'Cached Files', 'Do you want to delete all cached files?', ['redirect' => 'true']);
theme::header_end();
if ($current_cache != 'file') {
    echo '<div class="alert alert-danger" role="alert">The framework is reporting your cache is set to "' . $current_cache . '". Please check your configuration.</div>';
} else {
    theme::table_start(['Name', 'Size' => 'text-center', 'Created', 'Expires', 'Actions' => 'text-center'], [], $records);
    foreach ($records as $record) {
        $record = (object) $record;
        theme::table_start_tr();
        theme::e($record->name);
        theme::table_row('text-center');
        theme::e(byte_format($record->size));
        $total_bytes += $record->size;
        theme::table_row();
        theme::e(date('m/d/y g:ia', $record->date));
        theme::table_row();
        theme::e(date('m/d/y g:ia', $record->date + $ttl_txt));
        theme::table_row('actions text-center');
        o_dialog::confirm_a_delete($this->controller_path . '/delete/' . urlencode($record->name));
        theme::table_end_tr();
    }
    theme::table_end();
    theme::return_to_top();
    echo '<p><strong>Total Size <span class="badge">' . byte_format($total_bytes) . '</span></strong></p>';
    echo '<p><strong>Time to live <span class="badge">~' . seconds2human($ttl_txt) . '</span></strong></p>';
}
开发者ID:ProjectOrangeBox,项目名称:cache-file,代码行数:30,代码来源:index.php

示例2: uasort

<?php

$config = ENVIRONMENT ? 'Config "' . ENVIRONMENT . '"' : '';
theme::header_start('Settings', 'Manage application wide settings. ' . $config);
theme::header_button_new();
theme::header_button('Built in', $controller_path . '/list-all', 'file');
theme::header_end();
theme::table_empty($records['records']);
theme::table_tabs($records['records']);
theme::table_tabs_start();
foreach ($records['records'] as $tab => $tab_records) {
    theme::table_tab_pane_start($tab);
    theme::table_start(['Name', 'Value', 'Managed' => 'text-center', 'Actions' => 'text-center']);
    /* show them in the order they where entered */
    uasort($tab_records, function ($a, $b) {
        return $a->id > $b->id ? 1 : -1;
    });
    foreach ($tab_records as $record) {
        theme::table_start_tr();
        echo !$record->enabled ? '<i class="text-muted">' : '';
        o::e($record->name);
        echo !$record->enabled ? '</i>' : '';
        theme::table_row();
        echo theme::format_value($record->value, 128);
        theme::table_row('larger text-center');
        echo theme::enum_icon((int) $record->managed);
        theme::table_row('actions text-center');
        if ($record->is_editable) {
            theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
        }
        if (has_access('orange::advanced settings')) {
开发者ID:galdiolo,项目名称:theme-orange,代码行数:31,代码来源:index.php

示例3:

<?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

示例4:

<?php

theme::header_start('Manage Captures', 'Manage form captures.');
Plugin_search_sort::field();
theme::header_end();
theme::table_start(['Submmited On', 'URL', 'Form Name', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->created_on);
    theme::table_row();
    theme::e($record->url);
    theme::table_row();
    theme::e($record->form_name);
    theme::table_row('actions text-center');
    theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:capture,代码行数:20,代码来源:index.php

示例5:

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_end();
o::hr(0, 12);
theme::start_form_section('Group', true, 3);
$sorted = o::smart_model_list('o_access_model', 'group', 'group');
asort($sorted);
plugin_combobox::show('group', $record->group, $sorted);
theme::end_form_section();
theme::start_form_section('Access', true, 3);
o::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Description', 6);
o::text('description', $record->description);
theme::end_form_section();
o::view_event($controller_path, 'form.footer');
o::hr(0, 12);
theme::footer_start();
theme::footer_cancel_button($controller_path);
theme::footer_submit_button();
theme::footer_required();
theme::footer_end();
theme::form_end();
开发者ID:dmyers2004,项目名称:theme-orange,代码行数:25,代码来源:form.php

示例6:

<?php

theme::header_start('Manage ' . $controller_titles, 'Manage all ' . $controller_titles . '.');
Plugin_search_sort::field();
if (has_access('cropper::add cropper')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['name', 'width', 'height', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->width * $record->exportzoom);
    theme::table_row();
    theme::e($record->height * $record->exportzoom);
    theme::table_row('actions text-center');
    theme::table_action('crop', $this->controller_path . '/crop/' . $record->id);
    if (has_access('cropper::add cropper')) {
        theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    }
    if (has_access('cropper::delete cropper')) {
        o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    }
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:cropper,代码行数:28,代码来源:index.php

示例7:

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start('View Security Violations');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Entry Date');
theme::static_text($record->created_on);
theme::end_form_section();
theme::start_form_section('type');
theme::static_text($record->type);
theme::end_form_section();
theme::start_form_section('Route');
theme::static_text($record->route);
theme::end_form_section();
theme::start_form_section('Username');
theme::static_text($record->username);
theme::end_form_section();
theme::start_form_section('User');
theme::static_text($record->user);
theme::end_form_section();
theme::start_form_section('Session');
theme::static_text($record->session);
theme::end_form_section();
theme::start_form_section('Extra');
theme::static_text($record->extra);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_button('Done');
theme::footer_end();
开发者ID:ProjectOrangeBox,项目名称:security-violations,代码行数:31,代码来源:view.php

示例8:

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Email Template');
theme::header_button('cancel');
theme::header_end();
//kd($record);
theme::hr(0, 12);
theme::start_form_section('Key', true);
Plugin_locked_field::show('key', $record->key, ['has_access' => 'email template::change key']);
theme::end_form_section();
echo '<ul class="nav nav-tabs js-tabs">
    <li class="active"><a href="#general_tab" data-toggle="tab">General</a></li>
    <li><a href="#plain-tab" data-toggle="tab">Plain</a></li>
    <li><a href="#html-plain" data-toggle="tab">HTML</a></li>
    <li><a href="#variables-plain" data-toggle="tab">Snippets & Paths</a></li>
  </ul><br>';
?>
<div class="tab-content">
	<div class="tab-pane active" id="general_tab">
		<?php 
theme::start_form_section('Subject Line', true);
theme::text('subject', $record->subject);
theme::end_form_section();
theme::start_form_section('Description');
theme::text('description', $record->description);
theme::end_form_section();
theme::start_form_section('Active From');
Plugin_datetimepicker::dt('active_from', $record->active_from);
theme::end_form_section();
theme::start_form_section('Active To');
开发者ID:ProjectOrangeBox,项目名称:email-templates,代码行数:31,代码来源:form.php

示例9:

<?php

theme::header_start('Packages');
Plugin_search_sort::field();
if (has_access('package::refresh')) {
    theme::header_button('Refresh', $controller_path . '/flush', 'refresh');
}
o::view_event($controller_path, 'header.buttons');
theme::header_end();
echo '<small style="padding: 0 0 5px;display: block;">Version requirements are managed by composer. *Orange Packages</small>';
/* display errors */
if ($errors) {
    echo '<div class="alert alert-danger" role="alert">';
    echo '<b>We have a problem!</b><br>';
    echo $errors . '<br>';
    echo 'This needs to be fixed in order for packages to be dynamically loaded.';
    echo '</div>';
}
theme::table_start(['Name', 'Type' => 'text-center', 'Description', 'Version' => 'text-center', 'Actions' => 'text-center'], [], $records);
//k($records);
foreach ($records as $name => $record) {
    /* Name */
    theme::table_start_tr();
    o::html($record['www_name']);
    /* type */
    theme::table_row('text-center');
    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> ';
开发者ID:dmyers2004,项目名称:theme-orange,代码行数:31,代码来源:index.php

示例10: empty

<?php

theme::form_start($controller_path . '/nav', null, ['data-validate' => false]);
theme::header_start('Export Menus');
Plugin_search_sort::field();
theme::header_button('Export File', ['icon' => 'upload', 'action' => 'js-post']);
theme::header_button('back');
theme::header_end();
theme::table_start(['Name', 'Value', 'Export' => 'text-center'], [], $records);
$parent_id = '';
foreach ($records as $record) {
    if ($parent_id != $record->parent_id) {
        echo '<tr><td colspan="4"><strong>Parent: ';
        ob_start();
        theme::smart_model('o_menubar', $record->parent_id, 'text');
        $text = ob_get_contents();
        ob_end_clean();
        echo empty($text) ? 'Root Level' : $text;
        echo '</strong></td></tr>';
        $parent_id = $record->parent_id;
    }
    theme::table_start_tr();
    theme::e($record->text);
    theme::table_row();
    theme::e($record->url);
    theme::table_row('actions text-center');
    echo '<input type="checkbox" name="export[]" value="' . $record->id . '">';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:orange-export-import,代码行数:31,代码来源:nav.php

示例11:

<?php

theme::header_start('Dropdowns', 'Mange dropdowns.');
Plugin_search_sort::field();
if (has_access('dropdowns::manage')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Name', 'Internal', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->internal);
    theme::table_row('actions text-center');
    if (has_access('dropdowns::manage')) {
        theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    }
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:dropdowns,代码行数:22,代码来源:index.php

示例12:

<?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

示例13: function

<?php

theme::header_start('Menubar', 'manage menubars.');
theme::header_button('List View', $controller_path . '/list', 'list');
theme::header_button_new();
theme::header_end();
?>
<div class="row">
	<div class="col-md-6">
		<div class="dd">
			<?php 
echo $tree;
?>
		</div>
	</div>
	<div class="col-md-6">
		<div id="menu-fixed-panel" class="panel panel-default">
			<div id="menu-record" class="panel-body subview">
			</div>
		</div>
	</div>
</div>
<script>
var o_dialog = (o_dialog) || {};

o_dialog.menubar_hander = function(data) {
	if (data.err == false) {
		$("#node_"+$(o_dialog.that,'a').data('id')).remove();
		$("#menu-record").html("");
	}
	
开发者ID:dmyers2004,项目名称:theme-orange,代码行数:30,代码来源:index.php

示例14: strtolower

<?php

theme::header_start($controller_titles, 'Manage ' . strtolower($controller_titles) . '.');
Plugin_search_sort::field();
if (has_access('Content::Add Pages')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Title', 'Internal', 'Is Visible' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->title);
    theme::table_row();
    theme::shorten($record->internal);
    theme::table_row('text-center');
    theme::enum_icon($record->is_visible);
    theme::table_row('actions text-center');
    if ($record->is_editable) {
        theme::table_action('edit', $this->controller_path . '/edit/' . $record->id);
    }
    if ($record->is_deletable && has_access('Pages::Delete Pages')) {
        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-content,代码行数:27,代码来源:index.php

示例15:

<?php

theme::header_start('People', 'mange people\'s bios.');
Plugin_search_sort::field();
if (has_access('templates::add')) {
    theme::header_button('new');
}
theme::header_end();
theme::table_start(['Title', 'Position', 'Weight' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->title);
    theme::table_row();
    theme::e($record->position);
    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-people,代码行数:27,代码来源:index.php


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