HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
__limitsAreaEdit.php
Go to the documentation of this file.
1 <?php $urls = str_replace('<br>', "\n", $itemsProvider->rawData[0]["urls"]);?>
2 <table>
3  <tr>
4  <td>URL type</td>
5  <td><?= CHtml::dropDownList('urlType', '', array(
6  '0' => 'Regular',
7  '1' => 'Single'
8  ),
9  array(
10  'options' => array(
11  $itemsProvider->rawData[0]["urlType"] => Array(
12  'selected' => 'selected'
13  )
14  )
15  )
16  )?>
17  </td>
18  <td class="lefted hint"><?=$descr['urlType']?></td>
19  </tr>
20  <tr>
21  <td>Fetch type</td>
22  <td><?= CHtml::dropDownList('fetchType', '', array(
23  '1' => 'Static',
24  '2' => 'Dynamic',
25  '3' => 'External'
26  ),
27  array(
28  'options' => array(
29  $itemsProvider->rawData[0]["fetchType"] => Array(
30  'selected' => 'selected'
31  )
32  )
33  )
34  )?>
35  </td>
36  <td class="lefted hint"><?=$descr['fetchType']?></td>
37  <?php
38  foreach ($limitsProvider->rawData as $item){
39  if (($item["limit_name_f"]!=='processingDelay') && ($item["limit_name_f"]!=='maxResources')){
40  echo '<tr><td>';
41  echo $item["limit_name"];
42  echo '</td><td>';
43  echo CHtml::textField($item["limit_name_f"], $item["limit_value"], array('class'=>'input-small righted', 'placeholder'=>''));
44  echo "</td><td class='lefted hint'>";
45  echo $descr[$item["limit_name_f"]];
46  echo '</td></tr>';
47  }
48  }
49  ?>
50  </tr>
51  <tr>
52  <td>Re-crawl period</td>
53  <td><?= CHtml::textField('recrawlPeriod', $itemsProvider->rawData[0]["recrawlPeriod"], array(
54  'class' => 'input-small righted',
55  'placeholder' => ''
56  )) ?>
57  </td>
58  <td class="lefted hint"><?=$descr['recrawlPeriod']?></td>
59  </tr>
60  <tr>
61  <td>Re-crawl date</td>
62  <!--td><?=CHtml::textField('recrawlDate', '', array('class'=>'input-big', 'placeholder'=>''))?></td-->
63  <td><input type = "date" class = 'input-mid' name = 'recrawlDate[date]'> <input type = "time" class = 'input-mid' name = 'recrawlDate[time]' placeholder = '00:00:00'></td>
64  <td class="lefted hint"><?=$descr['recrawlDate']?></td>
65  </tr>
66  <tr>
67  <td>
68  Root URLs
69 
70  </td>
71  <td>
72  <?=CHtml::ajaxButton('Root URLs integrity check', '/SitesView/integrityCheck', array(
73  'type'=>'POST',
74  'data'=>'id='.$itemsProvider->rawData[0]["id"],
75  'success'=>"function(data) {
76  $('.loader').remove();
77  $('#page').append(data);
78  }"
79  ),
80  array(
81  'class' => 'btn btn-default'
82  )
83  );?>
84  <br><?=CHtml::textArea('rootUrls', $urls, array('class'=>'edit textarea-url'))?>
85  </td>
86  <td class="lefted hint"><?=$descr['rootUrls']?></td>
87  </tr>
88 </table>