Last active
December 10, 2015 00:38
-
-
Save alber70g/4352239 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->breadcrumbs = array( | |
$model->label(2) => array('index'), | |
Yii::t('app', 'Manage'), | |
); | |
$this->menu = array( | |
array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url' => array('index')), | |
array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')), | |
); | |
Yii::app()->clientScript->registerScript('search', " | |
$('.search-button').click(function(){ | |
$('.search-form').toggle(); | |
return false; | |
}); | |
$('.search-form form').submit(function(){ | |
$.fn.yiiGridView.update('persoon-grid', { | |
data: $(this).serialize() | |
}); | |
return false; | |
}); | |
"); | |
?> | |
<h1><?php echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2)); ?></h1> | |
<?php | |
$this->widget('zii.widgets.grid.CGridView', array( | |
'id' => 'persoon-grid', | |
'dataProvider' => $model->search(), | |
'filter' => $model, | |
'columns' => array( | |
'Voornaam', | |
'Tussenvoegsel', | |
'Naam', | |
'Email', | |
/* | |
'Telefoon', | |
'Mobiel', | |
'Straat', | |
'Nummer', | |
'Toevoeging', | |
'Postcode', | |
'Plaats', | |
'Geboortedatum', | |
'Beschrijving', | |
array( | |
'name'=>'idHuisgroep', | |
'value'=>'GxHtml::valueEx($data->idHuisgroep0)', | |
'filter'=>GxHtml::listDataEx(Huisgroep::model()->findAllAttributes(null, true)), | |
), | |
array( | |
'name'=>'idLidsoort', | |
'value'=>'GxHtml::valueEx($data->idLidsoort0)', | |
'filter'=>GxHtml::listDataEx(Lidsoort::model()->findAllAttributes(null, true)), | |
), | |
*/ | |
array( | |
'class' => 'CButtonColumn', | |
), | |
), | |
)); | |
?> | |
<h1>Advanced Search</h1> | |
<p> | |
You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done. | |
</p> | |
<?php echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button')); ?> | |
<div class="search-form"> | |
<?php | |
$this->renderPartial('_search', array( | |
'model' => $model, | |
)); | |
?> | |
</div><!-- search-form --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment