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
All
Classes
Namespaces
Files
Functions
Variables
Pages
find.php
Go to the documentation of this file.
1
<?php
2
/* @var $this SitesViewController */
3
4
$this->
breadcrumbs
=array(
5
'Resources'
,
6
);
7
echo CHtml::tag(
'div'
, array(
8
'class'
=>
'gr-r-form-btn'
,
9
'onClick'
=>
'toggleUrlsForm()'
10
),
11
'Extended resources search'
);
12
$this->renderPartial(
'_form'
, array(
13
'siteId'
=> (!isset($params[
'siteId'
])) ?
''
: $params[
'siteId'
],
14
'status'
=> (!isset($params[
'status'
])) ?
''
: $params[
'status'
],
15
'resourceURL'
=> (!isset($params[
'resourceURL'
])) ?
''
: $params[
'resourceURL'
],
16
'resourceId'
=> (!isset($params[
'resourceId'
])) ?
''
: $params[
'resourceId'
],
17
'contentType'
=> (!isset($params[
'contentType'
])) ?
''
: $params[
'contentType'
],
18
'tcDateFrom'
=> (!isset($params[
'tcDateFrom'
])) ?
''
: $params[
'tcDateFrom'
],
19
'tcDateTo'
=> (!isset($params[
'tcDateTo'
])) ?
''
: $params[
'tcDateTo'
],
20
'tcTimeFrom'
=> (!isset($params[
'tcTimeFrom'
])) ?
''
: $params[
'tcTimeFrom'
],
21
'tcTimeTo'
=> (!isset($params[
'tcTimeTo'
])) ?
''
: $params[
'tcTimeTo'
],
22
'limit'
=> (!isset($params[
'limit'
])) ?
'10'
: $params[
'limit'
],
23
'httpCode'
=> (!isset($params[
'httpCode'
])) ?
''
: $params[
'httpCode'
],
24
'state'
=> (!isset($params[
'state'
])) ?
''
: $params[
'state'
],
25
'depthFrom'
=> (!isset($params[
'depthFrom'
])) ?
''
: $params[
'depthFrom'
],
26
'depthTo'
=> (!isset($params[
'depthTo'
])) ?
''
: $params[
'depthTo'
],
27
'type'
=> (!isset($params[
'type'
])) ?
''
: $params[
'type'
],
28
'cDateFrom'
=> (!isset($params[
'tcDateFrom'
])) ?
''
: $params[
'cDateFrom'
],
29
'cDateTo'
=> (!isset($params[
'tcDateTo'
])) ?
''
: $params[
'cDateTo'
],
30
'cTimeFrom'
=> (!isset($params[
'tcTimeFrom'
])) ?
''
: $params[
'cTimeFrom'
],
31
'cTimeTo'
=> (!isset($params[
'tcTimeTo'
])) ?
''
: $params[
'cTimeTo'
],
32
'pDateFrom'
=> (!isset($params[
'tcDateFrom'
])) ?
''
: $params[
'pDateFrom'
],
33
'pDateTo'
=> (!isset($params[
'tcDateTo'
])) ?
''
: $params[
'pDateTo'
],
34
'pTimeFrom'
=> (!isset($params[
'tcTimeFrom'
])) ?
''
: $params[
'pTimeFrom'
],
35
'pTimeTo'
=> (!isset($params[
'tcTimeTo'
])) ?
''
: $params[
'pTimeTo'
],
36
'parentUrl'
=> (!isset($params[
'parentUrl'
])) ?
''
: $params[
'parentUrl'
],
37
'errorMask'
=> (!isset($params[
'errorMask'
])) ?
''
: $params[
'errorMask'
],
38
'onlyRoot'
=> (!isset($params[
'onlyRoot'
])) ?
false
: $params[
'onlyRoot'
],
39
'tagsMask'
=> (!isset($params[
'tagsMask'
])) ?
''
: $params[
'tagsMask'
],
40
'tagsCount'
=> (!isset($params[
'tagsCount'
])) ?
''
: $params[
'tagsCount'
],
41
'sortBy'
=> (!isset($params[
'sortBy'
])) ?
'UDate'
: $params[
'sortBy'
],
42
'sortDirection'
=> (!isset($params[
'sortDirection'
])) ?
'DESC'
: $params[
'sortDirection'
],
43
'page'
=> (!isset($params[
'page'
])) ?
'1'
: $params[
'pN'
],
44
'hidden'
=>
'hidden'
,
45
'position'
=>
'pos-abs'
,
46
'btn'
=>
''
,
47
)
48
);
49
if
($params[
'pN'
] !=
'0'
) {
50
echo CHtml::tag(
'div'
, array(
51
'class'
=>
'filter_form_pagination'
,
52
));
53
if
(isset($itemsProvider->rawData[0])) {
54
echo CHtml::tag(
'div'
, array(
55
'class'
=>
'next_page'
,
56
'id'
=>
'NextPageURLsButton'
57
),
58
CHtml::encode(
'MORE>>'
)
59
);
60
}
61
62
if
($params[
'pN'
] !=
'1'
) {
63
echo CHtml::tag(
'div'
, array(
64
'class'
=>
'prev_page'
,
65
'id'
=>
'PrevPageURLsButton'
66
),
67
CHtml::encode(
'<<BACK'
)
68
);
69
}
70
echo CHtml::closeTag(
'div'
);
71
}
72
$dates
=
'\'
73
<div
class
= "slideList">
74
<table class=
"url-dates"
>
75
<tr
class
= "even">
76
<td class =
"lefted"
>Creation date</td>
77
<td>\
'.$data["CDate"].\'</td>
78
</tr>
79
<tr class = "odd">
80
<td class = "lefted">Touch date</td>
81
<td>\'.$data["tcDate"].\'</td>
82
</tr>
83
<tr class = "even">
84
<td class = "lefted">Update date</td>
85
<td>\'.$data["UDate"].\'</td>
86
</tr>
87
<tr class = "odd">
88
<td class = "lefted">Last modified</td>
89
<td>\'.$data["lastModified"].\'</td>
90
</tr>
91
<tr class = "even">
92
<td class = "lefted">Publication date</td>
93
<td>\'.$data["pDate"].\'</td>
94
</tr>
95
</table>
96
</div>\''
;
97
$this->widget(
'zii.widgets.grid.CGridView'
, array(
98
'id'
=>
'itemGrid'
,
99
'summaryText'
=>
''
,
100
'dataProvider'
=> $itemsProvider,
101
'enablePagination'
=>
true
,
102
'htmlOptions'
=>array(
'class'
=>
'gr-s-sl-main'
),
103
'emptyText'
=>
'<img src="/images/oops.png"><h4>Oops! Nothing found... Please, try again!</h4>'
,
104
'columns'
=> array(
105
array(
106
'name'
=>
'nn'
,
107
'header'
=>
'#'
,
108
'value'
=>
'$row+1'
,
109
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
110
),
111
array(
112
'name'
=>
'Id'
,
113
'value'
=>
'$data["urlMd5"]'
,
114
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
115
),
116
array(
117
'name'
=>
'URL'
,
118
'value'
=>
'"<a class = \"ext\" target = \"_blank\" href = \"{$data["url"]}\">{$data["url"]}</a>"'
,
119
'type'
=>
'raw'
,
120
'htmlOptions'
=>array(
'class'
=>
'lefted word-wrp'
),
121
),
122
array(
123
'name'
=>
'Status'
,
124
'value'
=>
'$data["status_str"]'
,
125
'htmlOptions'
=>array(
'class'
=>
'lefted'
),
126
),
127
array(
128
'name'
=>
'Crawled'
,
129
'value'
=>
'$data["crawled"]'
,
130
'htmlOptions'
=>array(
'class'
=>
'righted'
),
131
),
132
array(
133
'name'
=>
'Processed'
,
134
'value'
=>
'$data["processed"]'
,
135
'htmlOptions'
=>array(
'class'
=>
'righted'
),
136
),
137
array(
138
'name'
=>
'Error mask'
,
139
'value'
=>
'$data["errorMask"]'
,
140
'htmlOptions'
=>array(
'class'
=>
'righted'
),
141
),
142
array(
143
'name'
=>
'Size'
,
144
'value'
=>
'$data["size"]'
,
145
'htmlOptions'
=>array(
'class'
=>
'righted'
),
146
),
147
array(
148
'name'
=>
'Total time'
,
149
'value'
=>
'$data["totalTime"]'
,
150
'htmlOptions'
=>array(
'class'
=>
'righted'
),
151
),
152
array(
153
'name'
=>
'Tags count'
,
154
'value'
=>
'$data["tagsCount"]'
,
155
'htmlOptions'
=>array(
'class'
=>
'righted'
),
156
),
157
array(
158
'name'
=>
'Tags mask'
,
159
'value'
=>
'$data["tagsMask"]'
,
160
'htmlOptions'
=>array(
'class'
=>
'righted'
),
161
),
162
array(
163
'name'
=>
'Dates'
,
164
'value'
=>
$dates
,
165
'htmlOptions'
=>array(
'class'
=>
'centred hide-switch'
),
166
'type'
=>
'raw'
,
167
),
168
array(
169
'class'
=>
'CButtonColumn'
,
170
'template'
=>
'<div class = "bttn-block">{View}{Cleanup}{recrawl}{reprocess}{Download}{Delete}</div>'
,
171
'htmlOptions'
=> array(
'class'
=>
'bttn-clmn'
),
172
'buttons'
=>array(
173
'View'
=> array(
174
'label'
=>
'V'
,
175
'url'
=>
'Yii::app()->createUrl("UrlsView/findSingle?urlId=".$data["urlMd5"])'
,
176
'options'
=>array(
177
'class'
=>
'act-btn'
,
178
'title'
=>
'View/Edit'
,
179
'target'
=>
'_blank'
,
180
),
181
),
182
'Cleanup'
=> array(
183
'label'
=>
'C'
,
184
'url'
=>
'Yii::app()->createUrl("UrlCleanup/index", array(
185
"siteId"=>$data["siteId"],
186
"url"=>$data["url"],
187
"urlType"=>$data["type"],
188
))'
,
189
'options'
=>array(
190
'class'
=>
'act-btn'
,
191
'title'
=>
'Cleanup'
,
192
'ajax'
=> array(
193
'type'
=>
'post'
,
194
'url'
=>
'js:$(this).attr("href")'
,
195
'success'
=>
'js:function(data) {
196
$("#cleanup-dialog").remove();
197
$("body").append(data);
198
}'
199
),
200
),
201
),
202
'recrawl'
=> array(
203
'label'
=>
'Rc'
,
204
'url'
=>
'Yii::app()->createUrl("UrlRecrawl/index", array(
205
"siteId"=>$data["siteId"],
206
"url"=>$data["url"],
207
"urlType"=>$data["type"],
208
))'
,
209
'options'
=>array(
210
'class'
=>
'act-btn'
,
211
'title'
=>
'Re-crawl'
,
212
'ajax'
=> array(
213
'type'
=>
'post'
,
214
'url'
=>
'js:$(this).attr("href")'
,
215
'success'
=>
'js:function(data) {
216
$("#recrawl-dialog").remove();
217
$("body").append(data);
218
}'
219
),
220
),
221
),
222
'reprocess'
=> array(
223
'label'
=>
'Rp'
,
224
'url'
=>
'Yii::app()->createUrl("UrlReprocess/index", array(
225
"siteId"=>$data["siteId"],
226
"urlMd5"=>$data["urlMd5"],
227
))'
,
228
'options'
=>array(
229
'class'
=>
'act-btn'
,
230
'title'
=>
'Re-process'
,
231
'ajax'
=> array(
232
'type'
=>
'post'
,
233
'url'
=>
'js:$(this).attr("href")'
,
234
'success'
=>
'js:function(data) {
235
$("#recrawl-dialog").remove();
236
$("body").append(data);
237
}'
238
),
239
),
240
),
241
'Download'
=> array(
242
'label'
=>
'Dw'
,
243
'url'
=>
'Yii::app()->createUrl("ResourceDownload/index", array(
244
"siteId"=>$data["siteId"],
245
"url"=>$data["url"],
246
"urlMd5"=>$data["urlMd5"],
247
))'
,
248
'options'
=>array(
249
'class'
=>
'act-btn'
,
250
'title'
=>
'Download'
,
251
'ajax'
=> array(
252
'type'
=>
'post'
,
253
'url'
=>
'js:$(this).attr("href")'
,
254
'success'
=>
'js:function(data) {
255
$("#dw-dialog").remove();
256
$("body").append(data);
257
}'
258
),
259
),
260
),
261
'Delete'
=> array(
262
'label'
=>
'D'
,
263
'url'
=>
'Yii::app()->createUrl("UrlDelete/index", array(
264
"siteId"=>$data["siteId"],
265
"urlMd5"=>$data["urlMd5"],
266
"urlType"=>$data["type"],
267
))'
,
268
'options'
=>array(
269
'class'
=>
'act-btn'
,
270
'title'
=>
'Delete'
,
271
'ajax'
=> array(
272
'type'
=>
'post'
,
273
'url'
=>
'js:$(this).attr("href")'
,
274
'success'
=>
'js:function(data) {
275
$("#delete-dialog").remove();
276
$("body").append(data);
277
}'
278
),
279
),
280
),
281
),
282
),
283
),
284
)
285
);
286
app
protected
views
urlsView
find.php
Generated on Tue Jun 30 2015 20:12:37 for HCE Project DC service web UI by
1.8.1.2