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