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 CustomerController */
3 /* @var $model PersonalInfo */
4 
5 $this->breadcrumbs=array(
6  'Customers'=>array('index'),
7  'Manage Customers',
8 );
9 
10 $this->menu=array(
11  array('label'=>'<i class="icon-th-list"></i> List Customers', 'url'=>array('index')),
12  array('label'=>'<i class="icon-plus-sign"></i> Create Customer', 'url'=>array('create')),
13 );
14 
15 Yii::app()->clientScript->registerScript('search', "
16 $('.search-button').click(function(){
17  $('.search-form').toggle();
18  return false;
19 });
20 $('.search-form form').submit(function(){
21  $.fn.yiiGridView.update('personal-info-grid', {
22  data: $(this).serialize()
23  });
24  return false;
25 });
26 ");
27 ?>
28 
29 <div class="page-header">
30  <h1>Manage Customers</h1>
31 </div>
32 
33 <p>
34 You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
35 or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
36 </p>
37 
38 <?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
39 <div class="search-form" style="display:none">
40 <?php $this->renderPartial('_search',array(
41  'model'=>$model,
42 )); ?>
43 </div><!-- search-form -->
44 
45 <?php $this->widget('zii.widgets.grid.CGridView', array(
46  'id'=>'personal-info-grid',
47  'itemsCssClass'=>'table table-striped table-bordered table-hover',
48  'dataProvider'=>$model->search(),
49  'filter'=>$model,
50  'columns'=>array(
51 
52  'first_name',
53  'last_name',
54 
55 
56  'status',
57  /*
58  'dob',
59  'gender',
60  'nationality',
61  'ethnic_race',
62  'phone_home',
63  'phone_work',
64  'pesonal_info_id',
65  'phone_mobile',
66  'fax',
67  'email_primary',
68  'email_secondary',
69  'address_1',
70  'address_2',
71  'address_3',
72  'country',
73  'gender',
74  'marital_status',
75  'dob',
76  'date_joined',
77  'date_left',
78  'middle_name',
79  'national_id',
80  'passport_number',
81  'drivers_license',
82  'other_id',
83  'other_id_2',
84  'nationality',
85  'ethnic_race',
86  'smoker',
87  'status',
88  */
89  array(
90  'class'=>'CButtonColumn',
91  ),
92  ),
93 )); ?>