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


PHP theme::header_button方法代码示例

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


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

示例1:

<?php

theme::header_start('Menubar', 'manage menubars using the list view.');
Plugin_search_sort::field();
theme::header_button('Back', $controller_path, 'reply');
theme::header_end();
theme::table_start(['Text', 'URL', 'Access', 'Parent', 'Active' => 'text-center', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    o::e($record->text);
    theme::table_row();
    o::e($record->url);
    theme::table_row();
    o::smart_model('o_access', $record->access_id, 'key');
    theme::table_row();
    o::smart_model('o_menubar', $record->parent_id, 'text');
    theme::table_row('text-center larger');
    theme::enum_icon($record->active);
    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 menubar')) {
        theme::table_action('pencil-square', $this->controller_path . '/edit/' . $record->id . '/advanced');
    }
    if ($record->is_deletable) {
        o_dialog::confirm_a_delete($this->controller_path . '/delete/' . $record->id);
    }
    theme::table_end_tr();
}
theme::table_end();
开发者ID:dmyers2004,项目名称:theme-orange,代码行数:31,代码来源:list.php

示例2:

<?php

theme::form_start($title);
theme::header_start('Log file "' . $title . '"');
theme::header_button('back');
theme::header_end();
echo '<pre>' . $record->content . '</pre>';
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:log-file-viewer,代码行数:8,代码来源:details.php

示例3: 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

示例4:

<?php

theme::header_start('PHPInfo');
theme::header_button('Configs', ['href' => $controller_path, 'icon' => 'cog']);
theme::header_end();
echo '<style>#phpinfo thead{background-color:white}</style>';
echo $html;
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:config-viewer,代码行数:8,代码来源:phpinfo.php

示例5: str_replace

<?php

theme::header_start('Log Files', 'File based log files in "..' . str_replace(ROOTPATH, '', setting('config.log_path') . '".'));
Plugin_search_sort::field();
if (has_access('log_file_viewer::delete logs')) {
    theme::header_button('Delete All', ['href' => $controller_path . '/delete', 'icon' => 'trash']);
}
theme::header_end();
theme::table_start(['Filename', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row('actions text-center');
    theme::table_action('eye', $controller_path . '/details/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:log-file-viewer,代码行数:18,代码来源:index.php

示例6:

<?php

$options = ['/admin/configure/export-config/folder/production' => 'production', '/admin/configure/export-config/folder/testing' => 'testing', '/admin/configure/export-config/folder/development' => 'development'];
/* has the environment already been added? */
if (!isset($options[ENVIRONMENT])) {
    $options['/admin/configure/export-config/folder/environment'] = ENVIRONMENT;
    /* current environment */
}
theme::header_start('Setting Groups', 'export settings to a file system level config file');
Plugin_search_sort::field();
//theme::header_button('Export All','/admin/configure/export-config/all','download');
theme::header_button_dropdown('Export', $options, ['icon' => 'download']);
theme::header_button('back', ['href' => '/admin/configure/setting', 'icon' => 'reply']);
theme::header_end();
theme::table_start(['Settings', 'Total Settings' => 'text-center', 'Actions' => 'text-center'], [], $records);
//kd($records);
foreach ($records as $name => $record) {
    theme::table_start_tr();
    theme::e($name);
    theme::table_row('text-center');
    theme::e(count($record));
    theme::table_row('actions text-center');
    theme::table_action('eye', $this->controller_path . '/export/' . bin2hex($name));
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:export_config,代码行数:27,代码来源:index.php

示例7:

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

示例8:

<?php

theme::header_start('Lock Access', 'protect the following records form accidental import updates.');
Plugin_search_sort::field();
theme::header_button('back', ['href' => $controller_path]);
theme::header_end();
theme::table_start(['Group', 'Name', 'Description', 'Locked' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->group);
    theme::table_row();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->description);
    theme::table_row('text-center');
    $checked = $record->is_locked ? 'checked' : '';
    echo '<input type="checkbox" value="1" class="select" data-id="' . $record->id . '" data-m="4" ' . $checked . '>';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:orange-export-import,代码行数:21,代码来源:access.php

示例9: 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

示例10:

<?php

theme::header_start('Security Violations', 'View security violations.');
Plugin_search_sort::field();
if (count($records) > 0) {
    theme::header_button('90 Days+', ['href' => $controller_path . '/flush/90', 'icon' => 'trash', 'class' => 'js-confirm', 'data-h4' => 'Security Violations', 'data-p' => 'Do you want to delete security violations greater then 90 days']);
    theme::header_button('30 Days+', ['href' => $controller_path . '/flush/30', 'icon' => 'trash', 'class' => 'js-confirm', 'data-h4' => 'Security Violations', 'data-p' => 'Do you want to delete security violations greater then 30 days?']);
    theme::header_button('All', ['href' => $controller_path . '/clear', 'icon' => 'trash', 'class' => 'js-confirm', 'data-h4' => 'Security Violations', 'data-p' => 'Do you want to delete all security violations?']);
}
theme::header_end();
theme::table_start(['Date', 'Type', 'Route', 'Username', 'Actions' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::date($record->created_on);
    theme::table_row();
    theme::e($record->type);
    theme::table_row();
    theme::e($record->route);
    theme::table_row();
    theme::e($record->username);
    theme::table_row('actions text-center');
    theme::table_action('list-ul', $this->controller_path . '/view/' . $record->id);
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
开发者ID:ProjectOrangeBox,项目名称:security-violations,代码行数:26,代码来源:index.php

示例11: explode

<?php

theme::header_start('Configs', 'View configuration for autoload and routes');
theme::header_button('phpinfo', ['href' => $controller_path . '/phpinfo', 'icon' => 'info-circle']);
theme::header_end();
$constants = explode(',', 'APPPATH,BASEPATH,CI_VERSION,DEBUG,ENVIRONMENT,FCPATH,LOG_THRESHOLD,ORANGEPATH,ORANGE_VERSION,WWW,ROOTPATH,ROOTPATHS,SELF,SYSDIR,VIEWPATH');
config_theme::start('Misc');
foreach ($constants as $c) {
    config_theme::row($c, constant($c));
}
config_theme::row('Base URL', base_url());
config_theme::row('Site URL', site_url());
config_theme::row('Index Page', index_page());
config_theme::row('Date', date('l jS \\of F Y h:i:s A'));
config_theme::end();
config_theme::start('Paths');
foreach (setting('paths') as $key => $value) {
    config_theme::row($key, $value);
}
config_theme::end();
config_theme::start('Autoload');
foreach ($autoload as $key => $value) {
    config_theme::header($key);
    foreach ($autoload[$key] as $key2 => $value2) {
        config_theme::row(str_replace(ROOTPATH . '/', '', $value2));
    }
}
config_theme::end();
config_theme::start('Routes');
foreach ($routes as $key => $value) {
    config_theme::row($key, $value);
开发者ID:ProjectOrangeBox,项目名称:config-viewer,代码行数:31,代码来源:index.php

示例12:

<?php

theme::header_start($controller_titles);
theme::header_button('Back', $controller_path . '/list-all', 'reply');
theme::header_end();
echo '<div class="panel panel-primary"><div class="panel-heading"><h3 class="panel-title">Merged (File + Database)</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'merged');
echo '</div></div>';
echo '<div class="panel panel-success"><div class="panel-heading"><h3 class="panel-title">Database Settings</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'db');
echo '</div></div>';
echo '<div class="panel panel-info"><div class="panel-heading"><h3 class="panel-title">Environment ../config/' . ENVIRONMENT . '/' . $which . '.php</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'env');
echo '</div></div>';
echo '<div class="panel panel-info"><div class="panel-heading"><h3 class="panel-title">Application ../config/' . $which . '.php</h3></div><div class="panel-body" style="padding: 0">';
settingController::looper($all, 'file');
echo '</div></div>';
theme::return_to_top();
开发者ID:dmyers2004,项目名称:theme-orange,代码行数:18,代码来源:group.php

示例13: ci

<?php

ci()->event->register('view.admin.configure.setting.header.button', function (&$page) {
    theme::header_button('Export', ['href' => '/admin/configure/export-config', 'icon' => 'download']);
});
开发者ID:ProjectOrangeBox,项目名称:export_config,代码行数:5,代码来源:onload.php

示例14: bin2hex

<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start('Raw Config for "' . $filename . '"');
theme::header_button('back', ['href' => $controller_path]);
theme::header_button('Download', ['icon' => 'download', 'href' => $controller_path . '/download/' . bin2hex($filename)]);
theme::header_end();
echo '<pre>' . htmlentities($array) . '</pre>';
theme::form_end();
开发者ID:ProjectOrangeBox,项目名称:export_config,代码行数:9,代码来源:export.php

示例15:

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


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