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 AccountTypesLimitsController */
3 /* @var $model AccountTypesLimits */
4 
5 $this->breadcrumbs = array(
6  Yii::t('app', 'Accounts') => array('//account/account'),
7  Yii::t('app', 'Account Types Limits') => array('index'),
8  Yii::t('app', 'Manage'),
9 );
10 
11 $this->menu = array(
12  array('label' => Yii::t('app', 'List AccountTypesLimits'), 'url' => array('index')),
13  array('label' => Yii::t('app', 'Create AccountTypesLimits'), '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-limits-grid').yiiGridView('update', {
23  data: $(this).serialize()
24  });
25  return false;
26 });
27 ");
28 ?>
29 
30 <h1><?php echo Yii::t('app', 'Manage Account Types Limits') ?></h1>
31 
32 <p>
33 <?php echo Yii::t('app', '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(Yii::t('app', '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-limits-grid',
46  'dataProvider' => $model->search(),
47  'filter' => $model,
48  'columns' => array(
49  //'AccountTypeId',
50  array(
51  'name' => 'AccountTypeId',
52  'value' => '$data->AccountTypes->Type',
53  ),
54  'LimitsKey',
55  'LimitsList',
56  array(
57  'class' => 'CButtonColumn',
58  'template' => '{view}{update}{delete}',
59  'buttons' => array(
60  'delete' => array(
61  'visible' => 'GRI::buttonByType($data->AccountTypes->Type)',
62  ),
63  ),
64  ),
65  ),
66 )); ?>