HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
HCE Project DC service web UI
Bootstrap Colorpicker 2.0
Overview
CKEditor 4 Changelog
Software License Agreement
ChangeLog
Installing instructions
widgets
yii2-debug
Todo List
Deprecated List
Namespaces
Classes
Files
File List
app
protected
commands
components
config
controllers
extensions
helpers
models
modules
runtime
tests
vendor
views
ajax
app
layouts
resourceDownload
site
siteCleanup
siteDelete
siteNew
siteRecrawl
sitesView
__datesAreaEdit.php
__descriptionEdit.php
__filtersAreaEdit.php
__integrityCheckFail.php
__integrityCheckModal.php
__integrityCheckOk.php
__limitsAreaEdit.php
__otherEdit.php
__propsAreaEdit.php
__statsAreaEdit.php
__urlsAreaEdit.php
_filterForm.php
_siteFields.php
_siteFieldsEdit.php
badRequest.php
filter.php
find.php
findSingle.php
findTest.php
index.php
siteFields.php
system
urlCleanup
urlDelete
urlRecrawl
urlReprocess
urlsView
yiic.php
themes
index.php
File Members
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
_siteFields.php
Go to the documentation of this file.
1
<?php
2
/* @var $this SitesViewController */
3
4
?>
5
<?php
6
echo CHtml::tag(
'div'
, array(
7
'class'
=>
'gr-s-fv-nameTag'
8
),
9
'<b>Status</b>'
);
10
$this->widget(
'zii.widgets.grid.CGridView'
, array(
11
'id'
=>
'itemGrid'
,
12
'summaryText'
=>
''
,
13
'dataProvider'
=> $itemsProvider,
14
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-statsLeft'
),
15
'columns'
=> array(
16
array(
17
'name'
=>
'SITE ID: '
.$itemsProvider->rawData[0][
'id'
],
18
'type'
=>
'raw'
,
19
'value'
=>
'$data["description"]'
,
20
'htmlOptions'
=>array(
'class'
=>
'centred'
),
21
),
22
)
23
));
24
$this->widget(
'zii.widgets.grid.CGridView'
, array(
25
'id'
=>
'itemGrid'
,
26
'summaryText'
=>
''
,
27
'dataProvider'
=> $itemsProvider,
28
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-statsRight'
),
29
'columns'
=> array(
30
array(
31
'name'
=>
'State'
,
32
'value'
=>
'$data["state_str"]'
,
33
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
34
),
35
array(
36
'name'
=>
'Fetch type'
,
37
'value'
=>
'$data["fetchType_str"]'
,
38
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
39
),
40
array(
41
'name'
=>
'URL type'
,
42
'value'
=>
'$data["urlType_str"]'
,
43
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
44
),
45
array(
46
'name'
=>
'User data (ID/login/name)'
,
47
'value'
=>
'$data["userData"]'
,
48
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
49
),
50
array(
51
'name'
=>
'Move URLs'
,
52
'value'
=>
'$data["moveURLs"]'
,
53
'htmlOptions'
=>array(
'class'
=>
'righted'
),
54
),
55
)
56
));
57
echo CHtml::tag(
'div'
, array(
58
'class'
=>
'gr-s-fv-nameTag'
59
),
60
'<b>Dates</b>'
);
61
$this->widget(
'zii.widgets.grid.CGridView'
, array(
62
'id'
=>
'itemGrid'
,
63
'summaryText'
=>
''
,
64
'dataProvider'
=> $itemsProvider,
65
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-dates'
),
66
'columns'
=> array(
67
array(
68
'name'
=>
'Creation date'
,
69
'value'
=>
'$data["cDate"]'
,
70
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
71
),
72
array(
73
'name'
=>
'Crawling touch date'
,
74
'value'
=>
'$data["tcDate"]'
,
75
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
76
),
77
array(
78
'name'
=>
'Processing touch date'
,
79
'value'
=>
'$data["tcDateProcess"]'
,
80
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
81
),
82
array(
83
'name'
=>
'Update date'
,
84
'value'
=>
'$data["uDate"]'
,
85
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
86
),
87
array(
88
'name'
=>
'Re-crawl date'
,
89
'value'
=>
'$data["recrawlDate"]'
,
90
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
91
),
92
array(
93
'name'
=>
'Re-crawl period, minutes'
,
94
'value'
=>
'$data["recrawlPeriod"]'
,
95
'htmlOptions'
=>array(
'class'
=>
'righted'
),
96
),
97
)
98
));
99
echo CHtml::tag(
'div'
, array(
100
'class'
=>
'gr-s-fv-nameTag'
101
),
102
'<b>Counters</b>'
);
103
$this->widget(
'zii.widgets.grid.CGridView'
, array(
104
'id'
=>
'itemGrid'
,
105
'summaryText'
=>
''
,
106
'dataProvider'
=> $itemsProvider,
107
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-countersLeft'
),
108
'columns'
=> array(
109
array(
110
'name'
=>
'Collected URLs'
,
111
'value'
=>
'$data["collectedURLs"]'
,
112
'htmlOptions'
=>array(
'class'
=>
'righted'
),
113
),
114
array(
115
'name'
=>
'New URLs'
,
116
'value'
=>
'$data["newURLs"]'
,
117
'htmlOptions'
=>array(
'class'
=>
'righted'
),
118
),
119
array(
120
'name'
=>
'Resources'
,
121
'value'
=>
'$data["resources"]'
,
122
'htmlOptions'
=>array(
'class'
=>
'righted'
),
123
),
124
array(
125
'name'
=>
'Contents'
,
126
'value'
=>
'$data["contents"]'
,
127
'htmlOptions'
=>array(
'class'
=>
'righted'
),
128
),
129
array(
130
'name'
=>
'Deleted URLs'
,
131
'value'
=>
'$data["deletedURLs"]'
,
132
'htmlOptions'
=>array(
'class'
=>
'righted'
),
133
),
134
)
135
));
136
$this->widget(
'zii.widgets.grid.CGridView'
, array(
137
'id'
=>
'itemGrid'
,
138
'summaryText'
=>
''
,
139
'dataProvider'
=> $itemsProvider,
140
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-countersRight'
),
141
'columns'
=> array(
142
array(
143
'name'
=>
'Iterations'
,
144
'value'
=>
'$data["iterations"]'
,
145
'htmlOptions'
=>array(
'class'
=>
'righted'
),
146
),
147
array(
148
'name'
=>
'Errors'
,
149
'value'
=>
'$data["errors"]'
,
150
'htmlOptions'
=>array(
'class'
=>
'righted'
),
151
),
152
array(
153
'name'
=>
'Average speed'
,
154
'value'
=>
'$data["avgSpeed"]'
,
155
'htmlOptions'
=>array(
'class'
=>
'righted'
),
156
),
157
array(
158
'name'
=>
'Size'
,
159
'value'
=>
'$data["size"]'
,
160
'htmlOptions'
=>array(
'class'
=>
'righted'
),
161
),
162
)
163
));
164
?>
165
<?php
166
$this->widget(
'zii.widgets.grid.CGridView'
, array(
167
'id'
=>
'itemGrid'
,
168
'summaryText'
=>
''
,
169
'dataProvider'
=> $errorsProvider,
170
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-errors'
),
171
'emptyText'
=>
'<h5>No errors!</h5>'
,
172
'columns'
=> array(
173
array(
174
'name'
=>
'Error types'
,
175
'value'
=>
'$data["errorType"]'
,
176
'htmlOptions'
=>array(
177
'class'
=>
'lefted'
,
178
)
179
),
180
),
181
));
182
$this->widget(
'zii.widgets.grid.CGridView'
, array(
183
'id'
=>
'itemGrid'
,
184
'summaryText'
=>
''
,
185
'dataProvider'
=> $itemsProvider,
186
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-urls'
),
187
'columns'
=> array(
188
array(
189
'name'
=>
'Root URLs'
,
190
'type'
=>
'raw'
,
191
'value'
=>
'CHtml::tag("div",array("class"=>"scrollable lefted"),$data["urls_act"])'
,
192
'htmlOptions'
=>array(
193
'class'
=>
''
,
194
)
195
),
196
)
197
));
198
$this->widget(
'zii.widgets.grid.CGridView'
, array(
199
'id'
=>
'itemGrid'
,
200
'summaryText'
=>
''
,
201
'dataProvider'
=> $limitsProvider,
202
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-limits'
),
203
'columns'
=> array(
204
array(
205
'name'
=>
'Limit'
,
206
'value'
=>
'$data["limit_name"]'
,
207
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
208
),
209
array(
210
'name'
=>
'Value'
,
211
'value'
=>
'$data["limit_value"]'
,
212
'htmlOptions'
=>array(
'class'
=>
'righted'
),
213
)
214
)
215
));
216
?>
217
<?php
218
echo CHtml::tag(
'div'
, array(
219
'class'
=>
'gr-s-fv-nameTag'
220
),
221
'<b>Filters</b>'
);
222
$this->widget(
'zii.widgets.grid.CGridView'
, array(
223
'id'
=>
'itemGrid'
,
224
'summaryText'
=>
''
,
225
'dataProvider'
=> $filtersProvider,
226
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-filters'
),
227
'emptyText'
=>
'<h5>No filters found...</h5>'
,
228
'columns'
=> array(
229
array(
230
'name'
=>
'Pattern'
,
231
'value'
=>
'$data["pattern"]'
,
232
'htmlOptions'
=> array(
233
'class'
=>
'lefted'
,
234
'onClick'
=>
''
235
),
236
),
237
array(
238
'name'
=>
'Action'
,
239
'value'
=>
'$data["action"]'
,
240
'htmlOptions'
=>array(
241
'class'
=>
'righted'
,
242
'onClick'
=>
''
,
243
),
244
),
245
array(
246
'name'
=>
'Operation code'
,
247
'value'
=>
'$data["opCode"]'
,
248
'htmlOptions'
=>array(
249
'class'
=>
'righted'
,
250
'onClick'
=>
''
,
251
),
252
),
253
array(
254
'name'
=>
'Stage'
,
255
'value'
=>
'$data["stage"]'
,
256
'htmlOptions'
=>array(
257
'class'
=>
'righted'
,
258
'onClick'
=>
''
,
259
),
260
),
261
array(
262
'name'
=>
'State'
,
263
'value'
=>
'$data["state"]'
,
264
'htmlOptions'
=>array(
265
'class'
=>
'righted'
,
266
'onClick'
=>
''
,
267
),
268
),
269
array(
270
'name'
=>
'Mode'
,
271
'value'
=>
'$data["mode"]'
,
272
'htmlOptions'
=>array(
273
'class'
=>
'righted'
,
274
'onClick'
=>
''
275
),
276
),
277
array(
278
'name'
=>
'Group ID'
,
279
'value'
=>
'$data["groupId"]'
,
280
'htmlOptions'
=>array(
281
'class'
=>
'righted'
,
282
'onClick'
=>
''
,
283
),
284
),
285
array(
286
'name'
=>
'Subject'
,
287
'value'
=>
'$data["subject"]'
,
288
'htmlOptions'
=>array(
289
'class'
=>
'lefted'
,
290
'onClick'
=>
''
,
291
),
292
),
293
array(
294
'name'
=>
'cDate'
,
295
'value'
=>
'$data["cDate"]'
,
296
'htmlOptions'
=>array(
297
'class'
=>
'lefted'
,
298
'onClick'
=>
''
,
299
),
300
),
301
array(
302
'name'
=>
'uDate'
,
303
'value'
=>
'$data["uDate"]'
,
304
'htmlOptions'
=>array(
305
'class'
=>
'lefted'
,
306
'onClick'
=>
''
,
307
),
308
),
309
array(
310
'class'
=>
'CButtonColumn'
,
311
'template'
=>
'{View}'
,
312
'buttons'
=>array(
313
'View'
=> array(
314
'label'
=>
'Details'
,
315
'url'
=>
'Yii::app()->createUrl("ajax/getFilterItem", array("n"=>$data["n"],"nn"=>$data["nn"]))'
,
316
'options'
=> array(
317
'class'
=>
'act-btn'
,
318
'title'
=>
'Show detailed info'
,
319
'ajax'
=> array(
320
'type'
=>
'get'
,
321
'url'
=>
'js:$(this).attr("href")'
,
322
'success'
=>
'js:function(data) {
323
$("#filter_item_modal").dialog("open");
324
$("#filter_item_modal").dialog("option", "width", 1000);
325
$("#filter_item_modal").html(data);
326
$("#filter_item_modal").dialog("option", "position", "center");
327
}'
328
)),
329
),
330
),
331
),
332
)
333
));
334
echo CHtml::tag(
'div'
, array(
335
'class'
=>
'gr-s-fv-nameTag'
336
),
337
'<b>Properties</b>'
);
338
$this->widget(
'zii.widgets.grid.CGridView'
, array(
339
'id'
=>
'itemGrid'
,
340
'summaryText'
=>
''
,
341
'dataProvider'
=> $propsProvider,
342
'htmlOptions'
=>array(
'class'
=>
'gr-s-fv-props'
),
343
'emptyText'
=>
'<h5>No properties found...</h5>'
,
344
'columns'
=> array(
345
array(
346
'name'
=>
'Name'
,
347
'value'
=>
'$data["name"]'
,
348
),
349
array(
350
'name'
=>
'cDate'
,
351
'type'
=>
'html'
,
352
'value'
=>
'$data["cDate"]'
,
353
'htmlOptions'
=> array(
'class'
=>
'lefted'
),
354
),
355
array(
356
'name'
=>
'uDate'
,
357
'type'
=>
'html'
,
358
'value'
=>
'$data["uDate"]'
,
359
'htmlOptions'
=> array(
'class'
=>
'lefted'
),
360
),
361
array(
362
'name'
=>
'Value'
,
363
'type'
=>
'html'
,
364
'value'
=>
'CHtml::encode($data["value"])'
,
365
'htmlOptions'
=> array(
'class'
=>
'gr-s-fv-props-val'
),
366
),
367
)
368
));
369
$this->beginWidget(
'zii.widgets.jui.CJuiDialog'
,array(
370
'id'
=>
'filter_item_modal'
,
371
'options'
=> array(
372
'title'
=>
'View filter item'
,
373
'autoOpen'
=>
false
,
374
'resizable'
=>
true
,
375
),
376
));
377
$this->endWidget(
'zii.widgets.jui.CJuiDialog'
);
378
?>
app
protected
views
sitesView
_siteFields.php
Generated on Tue Jun 30 2015 20:12:37 for HCE Project DC service web UI by
1.8.1.2