HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
_form.php
Go to the documentation of this file.
1 <form action = "/UrlsView/find" method = "get" class = "filter_form_res_TEST <?=$position?>" id = "urls-form" <?=$hidden?> >
2 
3  <div class="md-content" >
4  <h3>Extended resources search <input type="button" class="md-close-button" onclick="toggleUrlsForm()" value="×" <?=$btn?>></h3>
5  <table>
6  <tr>
7  <td class = "righted">Status:</td>
8  <td><?=CHtml::dropDownList("form[status]", $status, array(
9  '' => 'Any',
10  '0' => 'Undefined',
11  '1' => 'New',
12  '2' => 'Selected for crawling',
13  '3' => 'Crawling',
14  '4' => 'Crawled',
15  '5' => 'Selected to process',
16  '6' => 'Processing',
17  '7' => 'Processed',
18  '8' => 'Selected for crawling (for incremental)'
19  ),
20  array(
21  'options' => array(
22  $status => Array(
23  'selected' => 'selected'
24  )
25  ),
26  'class'=>'list-et',
27  )
28  )?></td>
29  <td class = "righted">HTTP Code:</td>
30  <td><?=CHtml::textField("form[httpCode]", $httpCode, array('class'=>'text-et numeric', 'placeholder'=>'HTTP code', 'disabled' => false))?></td>
31  </tr>
32  <tr>
33  <td class = "righted">State:</td>
34  <td><?=CHtml::dropDownList('form[state]', $state, array('0' => 'Enabled', '1' => 'Disabled',), array('class' => 'list-et'));?></td>
35 
36 
37 
38  <td class = "righted">Depth:</td>
39  <td>From <?=CHtml::textField("form[depthFrom]", $depthFrom, array('class'=>'input-short numeric', 'placeholder'=>'', 'disabled' => false))?> to
40  <?=CHtml::textField("form[depthTo]", $depthTo, array('class'=>'input-short numeric', 'placeholder'=>'', 'disabled' => false))?>
41  </td>
42  </tr>
43  <tr>
44  <td class = "righted">Type:</td>
45  <td><?=CHtml::dropDownList('form[type]', $type, array('0' => 'Regular', '1' => 'Single'), array('class' => 'list-et'));?></td>
46 
47 
48 
49  <td class = "righted">Touch date from:</td>
50  <td><?=Chtml::dateField('form[tcDateFrom]',$tcDateFrom, array('class' => 'fDate',));?><?=CHtml::timeField('form[tcTimeFrom]', $tcTimeFrom, array('class' => 'fTime'));?></td>
51  </tr>
52  <tr>
53  <td class = "righted">Site ID:*</td>
54  <td><?=CHtml::textField("form[siteId]", $siteId, array('class'=>'text-et', 'placeholder'=>'Site ID (Site Md5)', 'required'=>'true'))?></td>
55 
56 
57 
58  <td class = "righted">to:</td>
59  <td><?=Chtml::dateField('form[tcDateTo]', $tcDateTo, array('class' => 'fDate',));?><?=CHtml::timeField('form[tcTimeTo]', $tcTimeTo, array('class' => 'fTime'));?></td>
60  </tr>
61  <tr>
62  <td class = "righted">Resource ID:</td>
63  <td><?=CHtml::textField("form[resourceId]", $resourceId, array('class'=>'text-et', 'placeholder'=>'Resource ID (URL Md5)', 'disabled' => false))?></td>
64 
65 
66 
67  <td class = "righted">Creation date from:</td>
68  <td><?=Chtml::dateField('form[cDateFrom]', $cDateFrom, array('class' => 'fDate',));?><?=CHtml::timeField('form[cTimeFrom]', $cTimeFrom, array('class' => 'fTime'));?></td>
69  </tr>
70  <tr>
71  <td class = "righted">Resource URL:</td>
72  <td><?=CHtml::textField("form[resourceURL]", $resourceURL, array('class'=>'text-et', 'placeholder'=>'URL or its part', 'disabled' => false))?></td>
73 
74 
75 
76  <td class = "righted">to:</td>
77  <td><?=Chtml::dateField('form[cDateTo]', $cDateTo, array('class' => 'fDate',));?><?=CHtml::timeField('form[cTimeTo]', $cTimeTo, array('class' => 'fTime'));?></td>
78  </tr>
79  <tr>
80  <td class = "righted">Parent URL:</td>
81  <td><?=CHtml::textField("form[parentUrl]", $parentUrl, array('class'=>'text-et', 'placeholder'=>'Parent URL', 'disabled' => false))?></td>
82 
83 
84 
85  <td class = "righted">Publication date from:</td>
86  <td><?=Chtml::dateField('form[pDateFrom]', $pDateFrom, array('class' => 'fDate',));?><?=CHtml::timeField('form[pTimeFrom]', $pTimeFrom, array('class' => 'fTime'));?></td>
87  </tr>
88  <tr>
89  <td class = "righted">Content type:</td>
90  <td><?=CHtml::textField("form[contentType]", $contentType, array('class'=>'text-et', 'placeholder'=>'Content type', 'disabled' => false))?></td>
91 
92 
93 
94  <td class = "righted">to:</td>
95  <td><?=Chtml::dateField('form[pDateTo]', $pDateTo, array('class' => 'fDate',));?><?=CHtml::timeField('form[pTimeTo]', $pTimeTo, array('class' => 'fTime'));?></td>
96  </tr>
97  <tr>
98  <td class = "righted">Error mask</td>
99  <td><?=CHtml::textField('form[errorMask]', $errorMask, array('class' => 'text-et numeric mask', 'placeholder'=>'Error mask'));?><input class="md-trigger et-inside-bttn" data-modal="create-error-mask" type="button" value="+"></td>
100 
101 
102 
103  <td class = "righted">Only root URLs:</td>
104  <td><?=CHtml::checkBox('form[onlyRoot]', $onlyRoot, array('class'=>'checkbox-big'))?></td>
105  </tr>
106 
107  <tr>
108  <td class = "righted">Tags mask:</td>
109  <td><?=CHtml::textField("form[tagsMask]", $tagsMask, array('class'=>'text-et numeric mask', 'placeholder'=>'Tags mask', 'disabled' => false))?><input class="md-trigger et-inside-bttn" data-modal="create-tags-mask" type="button" value="+"></td>
110  <td class = "righted">Sort by:</td>
111  <td><?=CHtml::dropDownList("form[sortBy]", '', array(
112  'CDate' => 'Creation date',
113  'UDate' => 'Update date',
114  'TcDate' => 'Touch date',
115  'Crawled' => 'Crawled',
116  'Processed' => 'Processed',
117  'CrawlingTime' => 'Crawling time',
118  'ProcessingTime' => 'Processing time',
119  'TotalTime' => 'Total time',
120  'Size' => 'Size',
121  'Freq' => 'Frequency',
122  'Depth' => 'Depth',
123  'LastModified' => 'Last modified',
124  'TagsCount' => 'Tags count',
125  'PDate' => 'Publication date',
126  ),
127  array(
128  'options' => array(
129  $sortBy=> array(
130  'selected' => 'selected'
131  )
132  ),
133  'id'=>'sortBy',
134  'class'=>'fDate'
135  )
136  )
137  ?>
138  <?=CHtml::dropDownList("form[sortDirection]", '', array(
139  'ASC' => 'ASC',
140  'DESC' => 'DESC',
141  ),
142  array(
143  'options' => array(
144  $sortDirection=> Array(
145  'selected' => 'selected'
146  ),
147  ),
148  'id'=>'sortDirection',
149  'class'=>'fTime'
150  )
151  )
152  ?>
153  </td>
154  </tr>
155 
156  <tr>
157  <td class = "righted">Tags count:</td>
158  <td><?=CHtml::textField("form[tagsCount]", $tagsCount, array('class'=>'text-et numeric ', 'placeholder'=>'Tags count', 'disabled' => false))?></td>
159  </tr>
160  <tr>
161  <td colspan = "4" class = "centred">Items per page: <?=CHtml::dropDownList("form[limit]", $limit, array(
162  '10' => '10',
163  '20' => '20',
164  '30' => '30',
165  '40' => '40',
166  '50' => '50',
167  '60' => '60',
168  '70' => '70',
169  '80' => '80',
170  '90' => '90',
171  '100' => '100',
172  ),
173  array(
174  'options' => array(
175  $limit => Array(
176  'selected' => 'selected'
177  )
178  ),
179  'id'=>'limit'
180  )
181  )
182  ?></td>
183  </tr>
184  <tr>
185  <td colspan = "4"><?=CHtml::submitButton('Submit', array('id'=>'submit-res'))?></td>
186  </tr>
187  </table>
188  <?php
189  if ($page != '0') {
190  echo CHtml::hiddenField('form[pN]', $page);
191  } else {
192  echo CHtml::hiddenField('form[pN]', '1');
193  }
194  ?>
195  </div>
196 </form>
197 <div class="md-modal md-effect-9" id="create-tags-mask">
198  <div class="md-content">
199  <h3>Tags:</h3>
200  <table>
201  <tr>
202  <td style="padding-left: 5em">
203  <?php
204  echo CHtml::checkBoxList('ltagsToMask', '', array(
205  '0' => 'media',
206  '1' => 'publication date',
207  '2' => 'content_encoded',
208  '3' => 'title',
209  '4' => 'link',
210  '5' => 'description',
211  '6' => 'UPDATED_PARSED',
212  '7' => 'creation date',
213  '8' => 'author',
214  '9' => 'guid (rss)',
215  '10' => 'keywords',
216  '11' => 'media thumbnail',
217  ),
218  array(
219  'container' => 'div',
220  'template' => '{input} - {label}',
221  'class' => 'checkbox-big',
222  ));
223  ?>
224  </td>
225  <td style="padding-left: 5em">
226  <?php
227  echo CHtml::checkBoxList('rtagsToMask', '', array(
228  '12' => 'enclosure (rss)',
229  '13' => 'media (rss)',
230  '14' => 'google search',
231  '15' => 'google search total',
232  '16' => 'html lang',
233  '17' => 'parent rss',
234  '18' => 'parent rss urlmd5',
235  '19' => 'summary detail',
236  '20' => 'summary',
237  '21' => 'comments',
238  '22' => 'tags (rss)',
239  '23' => 'updated',
240  ),
241  array(
242  'container' => 'div',
243  'template' => '{input} - {label}',
244  'class' => 'checkbox-big',
245  ));
246  ?>
247  </td>
248  </tr>
249  </table>
250  <div class="md-buttons">
251  <button id="genTMask">Create Mask</button>
252  <button class="md-close" id="cancel-genTMask">Cancel</button>
253  </div>
254  </div>
255 </div>
256 <div class="md-modal md-effect-9" id="create-error-mask">
257  <div class="md-content">
258  <h3>Errors:</h3>
259  <table>
260  <tr>
261  <td style="padding-left: 5em">
262  <?php
263  echo CHtml::checkBoxList('lerrorsToMask', '', array(
264  '0' => 'Wrong URL',
265  '1' => 'Timeout',
266  '2' => 'HTTP error',
267  '3' => 'Empty content',
268  '4' => 'Wrong MIME type',
269  '5' => 'Connection error',
270  '6' => 'Code page convert error',
271  '7' => 'Bad redirection',
272  '8' => 'Size error',
273  '9' => 'Authorization error',
274  '10' => 'File operation error',
275  '11' => 'Robots.txt rule not matched',
276  '12' => 'HTML_PARSE_ERROR',
277  '13' => 'BAD_ENCODING',
278  ),
279  array(
280  'container' => 'div',
281  'template' => '{input} - {label}',
282  'class' => 'checkbox-big',
283  ));
284  ?>
285  </td>
286  <td style="padding-left: 5em">
287  <?php
288  echo CHtml::checkBoxList('rerrorsToMask', '', array(
289  '14' => 'SITE_MAX_ERRORS',
290  '15' => 'SITE_MAX_RESOURCES',
291  '16' => 'MIME_NOT_WRITE',
292  '17' => 'MAX_ALLOW_HTTP_REDIRECTS',
293  '18' => 'MAX_ALLOW_HTML_REDIRECTS',
294  '19' => 'HTML_STRUCTURE',
295  '20' => 'DTD_INVALID',
296  '21' => 'CONTENT_TYPE',
297  '32' => 'MASK_SITE_MAX_ERRORS',
298  '33' => 'MASK_SITE_MAX_RESOURCES',
299  '34' => 'MASK_SITE_UNSUPPORTED_CONTENT_TYPE',
300  '35' => 'MASK_URL_ENCODING_ERROR',
301  '36' => 'MASK_SCRAPER_ERROR',
302  '37' => 'MASK_MISSED_RAW_CONTENT_ON_DISK',
303  ),
304  array(
305  'container' => 'div',
306  'template' => '{input} - {label}',
307  'class' => 'checkbox-big',
308  ));
309  ?>
310  </td>
311  </tr>
312  </table>
313  <div class="md-buttons">
314  <button id="genEMask">Create Mask</button>
315  <button class="md-close" id="cancel-genEMask">Cancel</button>
316  </div>
317  </div>
318 </div>
319 
320 
321 
322 <div class="md-overlay"></div>
323 <script src="/js/modals/classie.js"></script>
324 <script src="/js/modals/modalEffects.js"></script>
325 <script>
326  var polyfilter_scriptpath = '/js/modals/';
327 </script>
328 <script src="/js/modals/cssParser.js"></script>