HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
admin.php
Go to the documentation of this file.
1 <?php
2 /* @var $this AccountTypesController */
3 /* @var $model AccountTypes */
4 
5 $this->breadcrumbs = array(
6  Yii::t('app', 'Accounts') => array('//account/account'),
7  Yii::t('app', 'Account Types') => array('index'),
8  Yii::t('app', 'Manage'),
9 );
10 
11 $this->menu = array(
12  array('label' => Yii::t('app', 'List AccountTypes'), 'url' => array('index')),
13  array('label' => Yii::t('app', 'Create AccountTypes'), 'url' => array('create')),
14 );
15 
16 Yii::app()->clientScript->registerScript('search', "
17 $('.search-button').click(function(){
18  $('.search-form').toggle();
19  return false;
20 });
21 $('.search-form form').submit(function(){
22  $('#account-types-grid').yiiGridView('update', {
23  data: $(this).serialize()
24  });
25  return false;
26 });
27 ");
28 ?>
29 
30 <h1>Manage Account Types</h1>
31 
32 <p>
33 You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
34 or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
35 </p>
36 
37 <?php echo CHtml::link('Advanced Search', '#', array('class' => 'search-button')); ?>
38 <div class="search-form" style="display:none">
39 <?php $this->renderPartial('_search', array(
40  'model' => $model,
41 )); ?>
42 </div><!-- search-form -->
43 
44 <?php $this->widget('zii.widgets.grid.CGridView', array(
45  'id' => 'account-types-grid',
46  'dataProvider' => $model->search(),
47  'filter' => $model,
48  'columns' => array(
49  'Id',
50  'Type',
51  array(
52  'class' => 'CButtonColumn',
53  'template' => '{view}{update}{delete}',
54  'buttons' => array(
55  'delete' => array(
56  'visible' => 'GRI::buttonByType($data->Type)',
57  ),
58  'update' => array(
59  'visible' => 'GRI::buttonByType($data->Type)',
60  ),
61  ),
62  ),
63  ),
64 )); ?>