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


PHP TbHtml::pageHeader方法代码示例

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


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

示例1: operator

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#indicator-data-source-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php echo TbHtml::pageHeader('', 'Manage Indicator Data Sources'); ?>
<p>
    You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
        &lt;&gt;</b>
    or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

    <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button btn')); ?><br><br/>
<div class="search-form" style="display:none">
    <?php
    $this->renderPartial('_search', array(
        'model' => $model,
    ));
    ?>
</div><!-- search-form -->
开发者ID:robertgunze,项目名称:eams,代码行数:29,代码来源:admin.php

示例2: array

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#mda-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php echo TbHtml::pageHeader('', 'Manage MDAs'); ?>

    <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button btn')); ?>&nbsp;
    <?php echo CHtml::link('Add New', $this->createUrl('/mda/create'), array('class' => 'btn btn-success')); ?><br><br/>
<div class="search-form" style="display:none">
    <?php
    $this->renderPartial('_search', array(
        'model' => $model,
    ));
    ?>
</div><!-- search-form -->

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'mda-grid',
    'dataProvider' => $model->search(),
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:admin.php

示例3: array

<?php
/* @var $this IndicatorDataSourceController */
/* @var $model IndicatorDataSource */
?>

<?php
$this->breadcrumbs=array(
	'Indicator Data Sources'=>array('admin'),
	'Create',
);

$this->menu=array(
	array('label'=>'List IndicatorDataSource', 'url'=>array('index')),
	array('label'=>'Manage IndicatorDataSource', 'url'=>array('admin')),
);
?>

<?php echo TbHtml::pageHeader('', 'Create Indicator Data Source'); ?>

<?php $this->renderPartial('_form', array('model'=>$model)); ?>
开发者ID:robertgunze,项目名称:eams,代码行数:20,代码来源:create.php

示例4: array

)); ?></pre>

	<h4>Using a view</h4>

	<p><?php 
echo TbHtml::labelTb('Head up!', array('style' => TbHtml::STYLE_INFO));
?>
 You can also use a view instead of a string as content by passing the path or alias to that view as the content attribute.</p>

	<hr class="bs-docs-separator">

	<h2>Page header</h2>

	<div class="bs-docs-example">
		<?php 
echo TbHtml::pageHeader('Example page header', 'Subtext for header');
?>
	</div>

	<pre class="prettyprint linenums">
&lt;?php TbHtml::pageHeader('Example page header', 'Subtext for header'); ?></pre>

</section>


<!-- Thumbnails
	================================================== -->
<section id="thumbnails">

	<?php 
$thumbnail = array('image' => 'holder.js/260x180', 'url' => '#');
开发者ID:yii-twbs,项目名称:yiistrap-docs,代码行数:31,代码来源:components.php

示例5: array

<?php

/* @var $this UsersController */
/* @var $model User */
$this->breadcrumbs = array('Users' => array('index'), $model->id);
$this->menu = array(array('label' => 'Управління'), array('label' => 'Список користувачів', 'url' => array('index')), array('label' => 'Створити нового', 'url' => array('create')), array('label' => 'Редагувати дані', 'url' => array('update', 'id' => $model->id)));
if (Yii::app()->user->checkAccess(User::ROLE_ADMIN)) {
    $adminMenu = array(TbHtml::menuDivider(), array('label' => 'Адмінистративна частина'), array('label' => 'Видалити користувача', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Ви впевнені?')));
    $this->menu = array_merge($this->menu, $adminMenu);
}
?>

<?php 
echo TbHtml::pageHeader('Користувач "' . $model->first_name . ' ' . $model->last_name . '"', '');
?>

<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('type' => 'bordered condensed', 'data' => $model, 'attributes' => array('username', 'email', array('name' => 'signin_time', 'value' => Yii::app()->dateFormatter->formatDateTime($model->signin_time, "long")), array('name' => 'last_login', 'value' => Yii::app()->dateFormatter->formatDateTime($model->last_login, "long")), array('name' => 'role', 'value' => $model->roles[$model->role]), array('name' => 'status', 'value' => $model->statusTypes[$model->status]))));
开发者ID:asopin,项目名称:portal,代码行数:18,代码来源:view.php

示例6:

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#eams-files-import-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php echo TbHtml::pageHeader('', 'Manage Files From EAMS Central'); ?>

<?php //echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'eams-files-import-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		//'id',
		array(
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:admin.php

示例7: array

<?php
/* @var $this EamsFactsController */
/* @var $model EamsFacts */
?>

<?php
$this->breadcrumbs=array(
	'Eams Facts'=>array('admin'),
	'Update',
);

$this->menu=array(
	array('label'=>'List EamsFacts', 'url'=>array('index')),
	array('label'=>'Create EamsFacts', 'url'=>array('create')),
	array('label'=>'View EamsFacts', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage EamsFacts', 'url'=>array('admin')),
);
?>
    <?php echo TbHtml::pageHeader('', 'Update Eams Facts'.$model->id); ?>

<?php $this->renderPartial('_form', array('model'=>$model)); ?>
开发者ID:robertgunze,项目名称:eams,代码行数:21,代码来源:update.php

示例8:

<?php echo TbHtml::pageHeader('', 'EAC Outcomes for Tanzania'); ?>

<table>
    <thead>
        <tr>
            <th>EAC Outcomes for Tanzania</th>
            <th>Indicators</th>
            <th>5 years Target</th>
            <th>Baseline</th>
            <th colspan="4">Annual Performance</th>
            <th>Achievement</th>
            <th>Comments</th>
        </tr>
        <tr>
            <th></th>
            <th></th>
            <th>2013-2018</th>
            <th>Status 2014</th>
            <th>2014/15</th>
            <th>2015/16</th>
            <th>2016/17</th>
            <th>2017/18</th>
            <th>Percentage(%)</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
     <td></td>
     <td></td>
     <td></td>
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:eac_outcomes.php

示例9: array

/* @var $this ProfilesController
 * @var $model CvList
 * @var $vacanciesDataProvider CDataProvider
 * @var $this CController
 * @var $statuses CvStatuses[]
 * @var $status CvStatuses
 */
?>

<?php 
$this->breadcrumbs = array('Cv Lists' => array('index'), $model->id);
$this->menu = array(array('label' => 'Меню'), array('label' => 'Список претендентів', 'url' => array('index')), array('label' => 'Додати анкету', 'url' => array('create')), TbHtml::menuDivider(), array('label' => 'Адмінистративна частина'), array('label' => 'Видалити анкету', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Ви впевнені, що бажаєте видатили цю анкету?'), 'visible' => Yii::app()->user->checkAccess(User::ROLE_ADMIN)));
?>

<?php 
echo TbHtml::pageHeader('Анкета "' . $model->firstLastName . '"', '');
if (!$model->recruiter_id) {
    Yii::app()->user->setFlash(TbHtml::ALERT_COLOR_WARNING, '<h4>Увага</h4> Для продовження роботи з кандидатом, вкажіть себе в полі &laquo;Рекрутер&raquo;');
}
$this->widget('bootstrap.widgets.TbAlert', array('block' => true));
?>

<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'cvstatus-form', 'enableClientValidation' => true, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'clientOptions' => array('validateOnSubmit' => true)));
/* @var $form CActiveForm*/
?>
    <?php 
echo $form->dropDownList($model, 'status', $model->statusTypes, array('span' => 5));
?>
&nbsp;
    <?php 
开发者ID:jerichozis,项目名称:portal,代码行数:31,代码来源:view.php

示例10: role

<?php
$this->breadcrumbs=array(
	'Groups'=>array('roles'),
        'View'=>array('roles'),
	'Assign',
);
?>

<?php echo TbHtml::pageHeader('', 'Add role(s) to the user  '."({$model->username})"); ?>

<div class="well">
<?php if(Yii::app()->user->hasFlash('success')):?>
<div class="alert alert-success">
      <?php echo Yii::app()->user->getFlash('success');?>
</div>
      <?php endif;?>

<?php if(Yii::app()->user->hasFlash('info')):?>
<div class="alert alert-info">
      <?php echo Yii::app()->user->getFlash('info');?>
</div>
<?php endif;?>
    
    
<?php if(Yii::app()->user->hasFlash('failure')):?>
<div class="alert alert-error">
      <?php echo Yii::app()->user->getFlash('failure');?>
</div>
<?php endif;?>

<?php echo CHtml::beginForm('', 'POST', array('id' => 'auth-id-form')); ?>
开发者ID:robertgunze,项目名称:eams,代码行数:31,代码来源:_roles_batch.php

示例11: testPageHeader

 public function testPageHeader()
 {
     $I = $this->codeGuy;
     $html = TbHtml::pageHeader('Heading text', 'Subtext', array('class' => 'header', 'headerOptions' => array('class' => 'heading'), 'subtextOptions' => array('class' => 'subtext')));
     $header = $I->createNode($html, 'div.page-header');
     $I->seeNodeCssClass($header, 'header');
     $h1 = $header->filter('h1');
     $I->seeNodeCssClass($h1, 'heading');
     $I->seeNodeText($h1, 'Heading text');
     $small = $h1->filter('small');
     $I->seeNodeCssClass($small, 'subtext');
     $I->seeNodeText($small, 'Subtext');
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:13,代码来源:TbHtmlTest.php

示例12: array

<?php
$this->breadcrumbs=array(
	'Eams Facts'=>array('admin'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List EamsFacts', 'url'=>array('index')),
	array('label'=>'Create EamsFacts', 'url'=>array('create')),
	array('label'=>'Update EamsFacts', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete EamsFacts', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage EamsFacts', 'url'=>array('admin')),
);
?>
<?php echo TbHtml::pageHeader('', 'View Eams Facts'.$model->id); ?>

<?php $this->widget('zii.widgets.CDetailView',array(
    'htmlOptions' => array(
        'class' => 'table table-striped table-condensed table-hover',
    ),
    'data'=>$model,
    'attributes'=>array(
		'id',
		'framework_ind_id',
		'time_id',
		'data_ref_date',
		'indicator_value',
		'created_by',
		'timestamp',
	),
开发者ID:robertgunze,项目名称:eams,代码行数:30,代码来源:view.php

示例13: array

<?php

/* @var $this UsersController */
/* @var $model User */
$this->breadcrumbs = array('Users' => array('index'), 'Create');
$this->menu = array(array('label' => 'Управління'), array('label' => 'Список користувачів', 'url' => array('index')));
?>

<?php 
echo TbHtml::pageHeader('Створити користувача', '');
?>

<?php 
$this->renderPartial('_form', array('model' => $model));
开发者ID:asopin,项目名称:portal,代码行数:14,代码来源:create.php

示例14: array

/* @var $model EamsFramework */

$this->layout = '//layouts/column1';
$this->breadcrumbs = array(
    'Eams Frameworks' => array('admin'),
    'Manage',
);

$this->menu = array(
    array('label' => 'List EamsFramework', 'url' => array('index')),
    array('label' => 'Create EamsFramework', 'url' => array('create')),
);

?>

<?php echo TbHtml::pageHeader('', 'Manage EAC Outcomes'); ?>
<?php echo CHtml::link('Add New EAC Outcome', $this->createUrl('create'), array('class' => 'btn btn-success')); ?>
<br><br/>

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'eams-framework-grid',
    'type' => TbHtml::GRID_TYPE_BORDERED,
    'dataProvider' => $dataProvider,
    'columns' => array(
        array(
            'header' => '#',
            'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
        ),
        array(
            'type' => 'html',
开发者ID:robertgunze,项目名称:eams,代码行数:31,代码来源:eac_outcomes_admin.php


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