|
@@ -282,7 +282,7 @@ discard block |
|
|
block discarded – undo |
|
282
|
282
|
* @return string icon |
|
283
|
283
|
*/ |
|
284
|
284
|
protected function getIconForState($state) { |
|
285
|
|
- switch($state) { |
|
|
285
|
+ switch ($state) { |
|
286
|
286
|
case 'running': |
|
287
|
287
|
$icon = 'bullet_orange'; |
|
288
|
288
|
$title = $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.running'); |
|
@@ -315,7 +315,7 @@ discard block |
|
|
block discarded – undo |
|
315
|
315
|
* @return string |
|
316
|
316
|
*/ |
|
317
|
317
|
protected function getRefreshLink() { |
|
318
|
|
- return '<input onclick="window.location=\'' . \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_info') . '&SET[crawlaction]=multiprocess&id=' . $this->pageId . '\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'arrow_refresh.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.refresh') . '" />'; |
|
|
318
|
+ return '<input onclick="window.location=\''.\TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_info').'&SET[crawlaction]=multiprocess&id='.$this->pageId.'\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'arrow_refresh.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.refresh').'" />'; |
|
319
|
319
|
} |
|
320
|
320
|
|
|
321
|
321
|
/** |
|
@@ -334,9 +334,9 @@ discard block |
|
|
block discarded – undo |
|
334
|
334
|
*/ |
|
335
|
335
|
protected function getEnableDisableLink() { |
|
336
|
336
|
if ($this->getIsCrawlerEnabled()) { |
|
337
|
|
- return '<input onclick="window.location+=\'&action=stopCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'control_stop_blue.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.disablecrawling') . '" />'; |
|
|
337
|
+ return '<input onclick="window.location+=\'&action=stopCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'control_stop_blue.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.disablecrawling').'" />'; |
|
338
|
338
|
} else { |
|
339
|
|
- return '<input onclick="window.location+=\'&action=resumeCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'control_play.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.enablecrawling') . '" />'; |
|
|
339
|
+ return '<input onclick="window.location+=\'&action=resumeCrawling\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'control_play.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.enablecrawling').'" />'; |
|
340
|
340
|
} |
|
341
|
341
|
} |
|
342
|
342
|
|
|
@@ -348,9 +348,9 @@ discard block |
|
|
block discarded – undo |
|
348
|
348
|
*/ |
|
349
|
349
|
protected function getModeLink() { |
|
350
|
350
|
if ($this->getMode() == 'detail') { |
|
351
|
|
- return '<input onclick="window.location+=\'&SET[processListMode]=simple\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'arrow_in.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.running') . '" />'; |
|
|
351
|
+ return '<input onclick="window.location+=\'&SET[processListMode]=simple\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'arrow_in.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.running').'" />'; |
|
352
|
352
|
} elseif ($this->getMode() == 'simple') { |
|
353
|
|
- return '<input onclick="window.location+=\'&SET[processListMode]=detail\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'arrow_out.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.all') . '" />'; |
|
|
353
|
+ return '<input onclick="window.location+=\'&SET[processListMode]=detail\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'arrow_out.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.show.all').'" />'; |
|
354
|
354
|
} |
|
355
|
355
|
} |
|
356
|
356
|
|
|
@@ -362,7 +362,7 @@ discard block |
|
|
block discarded – undo |
|
362
|
362
|
*/ |
|
363
|
363
|
protected function getAddLink() { |
|
364
|
364
|
if ($this->getActiveProcessCount() < $this->getMaxActiveProcessCount() && $this->getIsCrawlerEnabled()) { |
|
365
|
|
- return '<input onclick="window.location+=\'&action=addProcess\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\'' . $this->getIconPath() . 'add.png' . '\'); background-repeat: no-repeat;" value="' . $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.add') . '" />'; |
|
|
365
|
+ return '<input onclick="window.location+=\'&action=addProcess\';" type="button" style="padding:4px 4px 4px 20px; background-position: 3px 3px; background-image: url(\''.$this->getIconPath().'add.png'.'\'); background-repeat: no-repeat;" value="'.$this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.add').'" />'; |
|
366
|
366
|
} else { |
|
367
|
367
|
return ''; |
|
368
|
368
|
} |
|
@@ -383,11 +383,11 @@ discard block |
|
|
block discarded – undo |
|
383
|
383
|
* @param string $icon |
|
384
|
384
|
* @return string html tag for icon |
|
385
|
385
|
*/ |
|
386
|
|
- protected function getIcon($icon, $title='') { |
|
|
386
|
+ protected function getIcon($icon, $title = '') { |
|
387
|
387
|
if (!empty($title)) { |
|
388
|
388
|
$title = ' title="'.$title.'"'; |
|
389
|
389
|
} |
|
390
|
|
- return '<img src="'.$this->getIconPath().$icon.'.png" ' . $title . ' />'; |
|
|
390
|
+ return '<img src="'.$this->getIconPath().$icon.'.png" '.$title.' />'; |
|
391
|
391
|
} |
|
392
|
392
|
|
|
393
|
393
|
/** |