本文整理汇总了PHP中BsHtml::pageHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP BsHtml::pageHeader方法的具体用法?PHP BsHtml::pageHeader怎么用?PHP BsHtml::pageHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BsHtml
的用法示例。
在下文中一共展示了BsHtml::pageHeader方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
/* @var $this PeriodController */
/* @var $dataProvider CActiveDataProvider */
?>
<?php
$this->breadcrumbs = array('Periods');
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Period', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Period', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('Periods');
$this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
示例2: foreach
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.errorbars.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.fillbetween.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.image.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.navigate.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.pie.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.resize.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.selection.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.stack.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.symbol.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.threshold.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.time.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/surveyQuickAnalytics.js', CClientScript::POS_END);
?>
<?php
echo BsHtml::pageHeader('Быстрая аналитика по опросу', $model->title);
foreach ($model->groups as $i => $group) {
?>
<?php
foreach ($group->questions as $i => $question) {
?>
<?php
$chart = QuestionToChartAdapter::getChart($question);
if ($chart == "") {
continue;
}
?>
<div id="question-<?php
echo $question->qid;
?>
">
示例3: array
<?php
/* @var $this SkillController */
/* @var $model Skill */
?>
<?php
$this->breadcrumbs = array('Skills' => array('admin'), $model->title => array('view', 'id' => $model->id_skill), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Skill', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Skill', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'View Skill', 'url' => array('view', 'id' => $model->id_skill)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Skill', 'url' => array('admin')));
?>
<div class="box box-primary">
<div class="box-header">
<?php
echo BsHtml::pageHeader('Update', 'Skill ' . $model->id_skill);
?>
</div>
<?php
$this->renderPartial('_form', array('model' => $model));
?>
</div>
示例4: array
<?php
/* @var $this PortfolioController */
/* @var $model Portfolio */
?>
<?php
$this->breadcrumbs = array('Portfolios' => array('admin'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Portfolio', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Portfolio', 'url' => array('admin')));
?>
<div class="box box-primary">
<div class="box-header">
<?php
echo BsHtml::pageHeader('Create', 'Portfolio');
?>
</div>
<?php
$this->renderPartial('_form', array('model' => $model));
?>
</div>
示例5: array
<?php
/* @var $this EvaluacionController */
/* @var $model Evaluacion */
?>
<?php
$this->breadcrumbs = array('Evaluacions' => array('index'), $model->EVA_ID);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Evaluacion', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Evaluacion', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Evaluacion', 'url' => array('update', 'id' => $model->EVA_ID)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Evaluacion', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->EVA_ID), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Evaluacion', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('View', 'Evaluacion ' . $model->EVA_ID);
?>
<?php
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('EVA_ID', 'TRA_ID', 'EMP_ID', 'MOD_ID', 'EVA_NOTA', 'EVA_FECHA', 'EVA_INICIO')));
示例6: array
<?php
/* @var $this EmpresaController */
/* @var $model Empresa */
?>
<?php
$this->breadcrumbs = array('Empresas' => array('index'), $model->emp_rut);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Empresa', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Empresa', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Empresa', 'url' => array('update', 'id' => $model->emp_rut)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Empresa', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->emp_rut), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Empresa', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('View', 'Empresa ' . $model->emp_rut);
?>
<?php
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('emp_rut', 'tem_id', 'are_id', 'emp_nombre', 'emp_direccion', 'emp_fono', 'emp_email', 'emp_fecha_creacion', 'emp_desabilitado')));
示例7: array
<?php
/* @var $this UserController */
/* @var $model User */
$this->breadcrumbs = array('Users' => array('index'), 'Manage');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List User', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create User', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#user-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>
<?php
echo BsHtml::pageHeader('Manage', 'Users');
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php
echo BsHtml::button('Advanced search', array('class' => 'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH, 'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#');
?>
</h3>
</div>
<div class="panel-body">
<p>
You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b>
<></b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>
<div class="search-form" style="display:none">
<?php
$this->renderPartial('_search', array('model' => $model));
?>
</div>
示例8: array
<?php
/* @var $this EmpresaController */
/* @var $model Empresa */
$this->breadcrumbs = array('Empresas' => array('index'), 'Manage');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Empresa', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Empresa', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#empresa-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>
<?php
echo BsHtml::pageHeader('Manage', 'Empresas');
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php
echo BsHtml::button('Advanced search', array('class' => 'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH, 'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#');
?>
</h3>
</div>
<div class="panel-body">
<p>
You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b>
<></b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>
<div class="search-form" style="display:none">
<?php
$this->renderPartial('_search', array('model' => $model));
?>
</div>
示例9: array
<?php
/* @var $this ActivosFijosController */
/* @var $model ActivosFijos */
?>
<?php
$this->breadcrumbs = array('Activos Fijos' => array('index'), $model->id => array('view', 'id' => $model->id), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'Listar Activos Fijos', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Activos Fijos', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'Ver Activos Fijos', 'url' => array('view', 'id' => $model->id)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Administrar Activos Fijos', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('Editar', 'Activos Fijos ' . $model->id);
$this->renderPartial('_form', array('model' => $model));
示例10: array
<?php
/* @var $this Controller */
$this->beginContent('//layouts/main');
?>
<div class="container">
<div id="flashes">
<?php
$this->renderPartial('//layouts/_flash_messages');
?>
</div>
<div class="row">
<div class="col-lg-12">
<?php
echo BsHtml::pageHeader($this->page_heading, $this->page_heading_subtext);
?>
</div>
<div id="content" class="col-lg-9">
<?php
echo $content;
?>
</div><!-- content -->
<div id="sidebar" class="col-lg-3">
<?php
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY));
$this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked')));
$this->endWidget();
?>
</div><!-- sidebar -->
</div>
</div>
示例11: array
<?php
/* @var $this EmpresaController */
/* @var $model Empresa */
?>
<?php
$this->breadcrumbs = array('Teléfono' => array('admin'), $model->emp_rut, 'Modificar');
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Empresa', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Administrar Empresa', 'url' => array('admin')));
?>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<?php
echo BsHtml::pageHeader('Modificar', 'Teléfono ' . $model->tel_numero);
$this->renderPartial('_form', array('model' => $model));
?>
</div>
</div>
示例12: array
<?php
/* @var $this EvaluacionController */
/* @var $model Evaluacion */
$this->breadcrumbs = array('Administrar');
if (!Yii::app()->user->isGuest) {
if (Yii::app()->user->name != 'view') {
$this->menu = array(array('label' => 'Informe Excel', 'url' => array('excel')));
}
if (Yii::app()->user->name == 'users') {
$empresa = "Empresa" . " " . $model->emp_nombre . " / " . $model->emp_rut;
} else {
if (Yii::app()->user->name == 'view') {
$empresa = "Usuario" . " " . $model->usu_nombre . " / " . $model->usu_rut;
} else {
$empresa = null;
}
}
}
?>
<?php
echo BsHtml::pageHeader('Administrar', 'Evaluaciones' . " " . $empresa);
?>
<?php
$this->widget('bootstrap.widgets.BsGridView', array('id' => 'pregunta-grid', 'dataProvider' => $model->search(), 'type' => array(BsHtml::GRID_TYPE_STRIPED, BsHtml::GRID_TYPE_BORDERED), 'filter' => $model, 'columns' => array(array('name' => 'emp_rut', 'value' => '$data->emp_rut', 'visible' => Yii::app()->user->name != 'users'), array('name' => 'emp_nombre', 'value' => '$data->emp_nombre', 'visible' => Yii::app()->user->name != 'users', 'filter' => false), array('name' => 'tev_id', 'value' => 'TipoEvaluacion::model()->findByPk($data->tev_id)->tev_nombre'), array('name' => 'tel_numero', 'value' => '$data->tel_numero'), array('name' => 'usu_rut', 'value' => '$data->usu_rut', 'visible' => Yii::app()->user->name != 'view'), array('name' => 'eva_fecha', 'value' => '$data->eva_fecha'), array('name' => 'eva_numero', 'value' => '$data->eva_numero'), array('value' => array($this, 'renderButtons')))));
示例13: array
<?php
/* @var $this EvaluacionController */
/* @var $model Evaluacion */
?>
<?php
$this->breadcrumbs = array('Evaluacions' => array('index'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Evaluacion', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Evaluacion', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('Create', 'Evaluacion');
?>
<?php
$this->renderPartial('_form', array('model' => $model));
示例14:
<?php
/* @var $this Controller */
$this->beginContent('//layouts/main');
?>
<div class="container">
<div id="flashes">
<?php
$this->renderPartial('//layouts/_flash_messages');
?>
</div>
<div id="content" class="clearfix">
<?php
echo $this->page_heading ? BsHtml::pageHeader($this->page_heading, $this->page_heading_subtext) : '';
?>
<?php
echo $content;
?>
</div><!-- content -->
</div>
<?php
$this->endContent();
示例15: array
<?php
/* @var $this PostController */
/* @var $model Post */
?>
<?php
$this->breadcrumbs = array('Posts' => array('index'), $model->title);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'Listar Post', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Post', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Editar Post', 'url' => array('update', 'id' => $model->id)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Borrar Post', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Administrar Post', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('Ver', 'Post ' . $model->id);
?>
<?php
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('id', 'title', 'content', 'tags', 'status', 'create_time', 'update_time', 'author_id')));