HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
AjaxController.php
Go to the documentation of this file.
1 <?php
2 
4 {
5  public function actionGetFilterItem($n, $nn)
6  {
7  $command = new SitesView;
8  $userId = Yii::app()->user->id;
9  $filters = $command->getFilters($userId, $nn);
10  $item = $filters->rawData[$n];
11  $dict = new Dictionary;
12  $d = $dict->getDescriptions();
13  unset($dict);
14  echo "<table class = 'items'>
15  <thead>
16  <tr>
17  <th class = 'itemGrid_c0 centred'>Field</th>
18  <th class = 'itemGrid_c1 centred'>Value</th>
19  <th class = 'itemGrid_c2 centred'>Description</th>
20  </tr>
21  </thead>
22  <tbody>
23  <tr class = 'odd'>
24  <td class = 'lefted'>Pattern</td>
25  <td class = 'lefted'>" . $item["pattern"] . "</td>
26  <td class = 'hint'>{$d['SITES']['fPattern']}</td>
27  </tr>
28  <tr class = 'even'>
29  <td class = 'lefted'>State</td>
30  <td class = 'righted'>" . $item["state"] . "</td>
31  <td class = 'hint'>{$d['SITES']['fState']}</td>
32  </tr>
33  <tr class = 'odd'>
34  <td class = 'lefted'>Action</td>
35  <td class = 'righted'>" . $item["action"] . "</td>
36  <td class = 'hint'>{$d['SITES']['fAction']}</td>
37  </tr>
38  <tr class = 'even'>
39  <td class = 'lefted'>Stage</td>
40  <td class = 'righted'>" . $item["stage"] . "</td>
41  <td class = 'hint'>{$d['SITES']['fStage']}</td>
42  </tr>
43  <tr class = 'odd'>
44  <td class = 'lefted'>Operation code</td>
45  <td class = 'righted'>" . $item["opCode"] . "</td>
46  <td class = 'hint'>{$d['SITES']['fOperationCode']}</td>
47  </tr>
48  <tr class = 'even'>
49  <td class = 'lefted'>Subject</td>
50  <td class = 'righted'>" . $item["subject"] . "</td>
51  <td class = 'hint'>{$d['SITES']['fSubject']}</td>
52  </tr>
53  <tr class = 'odd'>
54  <td class = 'lefted'>Group ID</td>
55  <td class = 'righted'>" . $item["groupId"] . "</td>
56  <td class = 'hint'>{$d['SITES']['fGroupId']}</td>
57  </tr>
58  <tr class = 'even'>
59  <td class = 'lefted'>Mode</td>
60  <td class = 'righted'>" . $item["mode"] . "</td>
61  <td class = 'hint'>{$d['SITES']['fMode']}</td>
62  </tr>
63  <tr class = 'odd'>
64  <td class = 'lefted'>cDate</td>
65  <td class = 'lefted'>" . $item["cDate"] . "</td>
66  </tr>
67  <tr class = 'even'>
68  <td class = 'lefted'>uDate</td>
69  <td class = 'lefted'>" . $item["uDate"] . "</td>
70  </tr>
71  </tbody>
72  </table>";
73  }
74 
75  public function actionCleanLog()
76  {
77  $logPath = (Yii::app()->getBasePath() . '/runtime');
78  $log = fopen($logPath . '/logger.log', 'w');
79  }
80 
81  public function actionAddFilter()
82  {
83  $this->renderPartial('_addFilter', array(
84  ));
85  }
86  public function actionAddProperty()
87  {
88  $this->renderPartial('_addProperty', array(
89  ));
90  }
91  public function actionAddNewProperty()
92  {
93  $this->renderPartial('_addPropertyDialog', array(
94  ));
95  }
96  public function actionTMaskModal()
97  {
98  $this->renderPartial('_genTMaskModal', array(
99  ));
100  }
101 }