pageHeader() public static method

Generates a pager header.
public static pageHeader ( string $heading, string $subtext, array $htmlOptions = [] ) : string
$heading string the heading text.
$subtext string the subtext.
$htmlOptions array additional HTML attributes.
return string the generated pager header.
Ejemplo n.º 1
0
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 -->
Ejemplo n.º 2
0
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(),
Ejemplo n.º 3
0
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('auth-assignment-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1></h1>
<?php echo TbHtml::pageHeader('', 'Manage Auth Assignments'); ?>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<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'=>'auth-assignment-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		//'id',
		'itemname',
Ejemplo n.º 4
0
<?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)); ?>
Ejemplo n.º 5
0
)); ?></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' => '#');
Ejemplo n.º 6
0
<?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]))));
Ejemplo n.º 7
0
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#eams-facts-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php echo TbHtml::pageHeader('', 'Manage Eams Facts'); ?>
    <?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 -->

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'eams-facts-grid',
    'dataProvider' => $model->search(),
    'filter' => $model,
    'columns' => array(
Ejemplo n.º 8
0
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(
Ejemplo n.º 9
0
<?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)); ?>
Ejemplo n.º 10
0
<?php
/* @var $this EacFactsController */
/* @var $model EacFacts */
?>

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

$this->menu=array(
	array('label'=>'List EacFacts', 'url'=>array('index')),
	array('label'=>'Create EacFacts', 'url'=>array('create')),
	array('label'=>'View EacFacts', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage EacFacts', 'url'=>array('admin')),
);
?>
    <?php echo TbHtml::pageHeader('', 'Update Common Market' . $model->id); ?>
<?php $this->renderPartial('_form', array('model'=>$model)); ?>
Ejemplo n.º 11
0
<?php

$this->breadcrumbs = array(
    'Groups' => array('roles'),
    $model->name => array('view', 'id' => $model->name),
    'Update',
);
?>

<?php

if ($model->type == 2) {
    echo TbHtml::pageHeader('', 'Update Group:-' . $model->name);
}
else{
   echo TbHtml::pageHeader('', 'Update Action:-' . $model->name); 
}
?>

<?php echo $this->renderPartial('_form', array('model' => $model)); ?>
Ejemplo n.º 12
0
<?php
/* @var $this EacStatusLogController */
/* @var $model EacStatusLog */
?>

<?php
$this->breadcrumbs=array(
	'Eac Status Logs'=>array('index'),
	'Create',
);

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

<?php echo TbHtml::pageHeader('','Status Update'); ?>
<div class="well" style="background-color:#F9F9F9;color:#56AD56;">	
	<p><strong>Decision Description:</strong><br /><span style="color:#777777;"><?php echo $decision->description?></span></p>
	<p><strong>Decision Reference:</strong><?php echo $decision->decision_reference?></p>
</div>

<?php $this->renderPartial('_form', array('model'=>$model)); ?>
Ejemplo n.º 13
0
<?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>
Ejemplo n.º 14
0
/* @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 
Ejemplo n.º 15
0
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#indicator-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

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

<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 -->
Ejemplo n.º 16
0
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#eams-framework-type-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php echo TbHtml::pageHeader('', 'Manage Eams Framework Types'); ?>
<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 -->
Ejemplo n.º 17
0
<?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')); ?>
Ejemplo n.º 18
0
 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');
 }
Ejemplo n.º 19
0
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#meac-office-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

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

    <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button btn')); ?>&nbsp;
<?php echo CHtml::link('Add New', $this->createUrl('/meacOffice/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' => 'meac-office-grid',
    'dataProvider' => $model->search(),
Ejemplo n.º 20
0
<?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',
	),
Ejemplo n.º 21
0
/* @var $this IndicatorUnitController */
/* @var $model IndicatorUnit */
?>

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

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

<?php $this->widget('zii.widgets.CDetailView',array(
    'htmlOptions' => array(
        'class' => 'table table-striped table-condensed table-hover',
    ),
    'data'=>$model,
    'attributes'=>array(
		'id',
		'unit',
		'abbrev',
	),
)); ?>
Ejemplo n.º 22
0
<?php
/* @var $this MdaController */
/* @var $model Mda */
?>

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

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

<?php $this->renderPartial('_form', array('model'=>$model)); ?>
Ejemplo n.º 23
0
<?php
      $this->breadcrumbs = array(
        'Actions' => array('admin'),
        $model->name,
    );
?>

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

<?php echo CHtml::link('Create Action',$this->createUrl('createAction'),array('class'=>'btn btn-success')); ?>
<br/><br/>
<div class="search-form" style="display:none">

</div><!-- search-form -->

<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'respondent-grid',
	'dataProvider'=>$model->search(),
	   'columns' => array(
        array(
            'header' => '#',
            'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
        ),
        'name',
        //'type',
        'description',
        //'bizrule',
        //'data',
        array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
            'template' => '{view}{update}',
Ejemplo n.º 24
0
<?php
/* @var $this MeacOfficeController */
/* @var $model MeacOffice */
?>

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

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

<?php $this->renderPartial('_form', array('model'=>$model)); ?>
Ejemplo n.º 25
0
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#eac-facts-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<?php echo TbHtml::pageHeader('', 'Common Market'); ?>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn')); ?>&nbsp;
<?php echo TbHtml::link('Export to Excel',$this->createUrl('//export/exportCommonMarket'),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' => 'eac-facts-grid',
Ejemplo n.º 26
0
<?php
/* @var $this MeacOfficeController */
/* @var $model MeacOffice */
?>

<?php
$this->breadcrumbs=array(
	'Meac Offices'=>array('admin'),
	'Create',
);

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

<?php echo TbHtml::pageHeader('','Create MEAC Office'); ?>

<?php $this->renderPartial('_form', array('model'=>$model)); ?>
Ejemplo n.º 27
0
<?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));
Ejemplo n.º 28
0
/* @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',
Ejemplo n.º 29
0
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#eac-decision-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<div>
<?php echo TbHtml::pageHeader('', 'Manage EAC Decisions'); ?>
<div class="form-actions"> 
    <?php echo CHtml::link('Toggle Search', '#', array('class' => 'search-button btn', 'style' => 'float:right')); ?>
</div>
<div class="search-form" style="display:block">
    <?php
    $this->renderPartial('_decisions_filter', array(
        'model' => $model,
    ));
    ?>
</div><!-- search-form -->

<?php
 echo TbHtml::buttonDropdown('Export Data To', array(
    array('label' => 'HTML', 'url' => $this->createUrl('eacDecision/admin',array('format'=>'html'))),
    array('label' => 'PDF', 'url' => $this->createUrl('eacDecision/admin',array('format'=>'pdf'))),
Ejemplo n.º 30
0
<?php
/* @var $this PageController */
/* @var $model Page */
?>

<?php
$this->breadcrumbs=array(
	'Pages'=>array('index'),
	$model->name=>array('view','id'=>$model->id),
	'Update',
);

$this->menu=array(
	array('label'=>'List Page', 'url'=>array('index')),
	array('label'=>'Create Page', 'url'=>array('create')),
	array('label'=>'View Page', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage Page', 'url'=>array('admin')),
);
?>

<?php echo TbHtml::pageHeader('','Update Page #'.$model->name); ?>

<?php $this->renderPartial('_form', array('model'=>$model)); ?>