2014-05-19 10:16:43 +02:00
|
|
|
<?php
|
2014-05-28 11:02:52 +02:00
|
|
|
/* @var $this ProgramController */
|
|
|
|
/* @var $model Program */
|
2014-05-19 10:16:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
$this->breadcrumbs=array(
|
2014-05-28 11:02:52 +02:00
|
|
|
'Programs'=>array('index'),
|
2014-05-19 10:16:43 +02:00
|
|
|
'Manage',
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->menu=array(
|
2014-05-28 11:02:52 +02:00
|
|
|
array('label'=>'List Program', 'url'=>array('index')),
|
|
|
|
array('label'=>'Create Program', 'url'=>array('create')),
|
2014-05-19 10:16:43 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
Yii::app()->clientScript->registerScript('search', "
|
|
|
|
$('.search-button').click(function(){
|
|
|
|
$('.search-form').toggle();
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
$('.search-form form').submit(function(){
|
2014-05-28 11:02:52 +02:00
|
|
|
$('#program-grid').yiiGridView('update', {
|
2014-05-19 10:16:43 +02:00
|
|
|
data: $(this).serialize()
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2014-05-28 11:02:52 +02:00
|
|
|
<h1>Manage Program</h1>
|
2014-05-19 10:16:43 +02:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<?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 -->
|
2014-05-19 17:50:42 +02:00
|
|
|
<br><br>
|
2014-05-19 10:16:43 +02:00
|
|
|
<?php $this->widget('bootstrap.widgets.TbGridView',array(
|
|
|
|
'type' => TbHtml::GRID_TYPE_BORDERED,
|
2014-05-28 11:02:52 +02:00
|
|
|
'id'=>'program-grid',
|
2014-05-19 10:16:43 +02:00
|
|
|
'dataProvider'=>$model->search(),
|
|
|
|
'filter'=>$model,
|
|
|
|
'columns'=>array(
|
|
|
|
'ID',
|
|
|
|
'Name',
|
|
|
|
'Downloads',
|
|
|
|
'Kategorie',
|
|
|
|
'Sterne',
|
|
|
|
'enabled',
|
|
|
|
/*
|
|
|
|
'visible',
|
|
|
|
'Language',
|
|
|
|
'Description',
|
|
|
|
'add_date',
|
|
|
|
'download_url',
|
|
|
|
'viewable_code',
|
|
|
|
'sourceforge_url',
|
|
|
|
'homepage_url',
|
|
|
|
'github_url',
|
|
|
|
'uses_absCanv',
|
|
|
|
'update_identifier',
|
|
|
|
'highscore_gid',
|
|
|
|
*/
|
|
|
|
array(
|
|
|
|
'class'=>'bootstrap.widgets.TbButtonColumn',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)); ?>
|