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