2 namespace TYPO3\CMS\Backend\RecordList;
179 if (isset(
$GLOBALS[
'BE_USER']->uc[
'titleLen']) &&
$GLOBALS[
'BE_USER']->uc[
'titleLen'] > 0) {
180 $this->fixedL =
$GLOBALS[
'BE_USER']->uc[
'titleLen'];
194 $route = $router->match($routePath);
196 $this->thisScript = (string)$uriBuilder->buildUriFromRoute($route->getOption(
'_identifier'));
198 $this->thisScript = BackendUtility::getModuleUrl($moduleName);
209 return strpos($this->thisScript,
'?') ===
false ? $this->thisScript .
'?' : $this->thisScript .
'&';
225 public function addElement($h, $icon, $data, $rowParams =
'', $_ =
'', $_2 =
'', $colType =
'td')
227 $colType = ($colType ===
'th') ?
'th' :
'td';
228 $noWrap = $this->no_noWrap ?
'' :
' nowrap="nowrap"';
230 $parent = isset($data[
'parent']) ? (int)$data[
'parent'] : 0;
232 <!-- Element, begin: -->
233 <tr ' . $rowParams .
' data-uid="' . (int)$data[
'uid'] .
'" data-l10nparent="' . $parent .
'">';
235 if ($this->showIcon) {
237 <' . $colType .
' nowrap="nowrap" class="col-icon">';
241 for ($a = 0; $a < $h; $a++) {
250 $out .=
'</' . $colType .
'>
261 if ($colType ===
'td' && array_key_exists(
'__label', $data)) {
262 $fields[0] =
'__label';
265 foreach ($fields as $vKey) {
266 if (isset($data[$vKey])) {
268 $cssClass = $this->addElement_tdCssClass[$lastKey];
269 if ($this->oddColumnsCssClass && $ccount % 2 == 0) {
270 $cssClass = implode(
' ', array($this->addElement_tdCssClass[$lastKey], $this->oddColumnsCssClass));
273 <' . $colType . $noWrap .
' class="' . $cssClass .
'"' . $colsp . $this->addElement_tdParams[$lastKey] .
'>' . $data[$lastKey] .
'</' . $colType .
'>';
285 $colsp =
' colspan="' . $c .
'"';
291 $cssClass = $this->addElement_tdCssClass[$lastKey];
292 if ($this->oddColumnsCssClass) {
293 $cssClass = implode(
' ', array($this->addElement_tdCssClass[$lastKey], $this->oddColumnsCssClass));
296 <' . $colType . $noWrap .
' class="' . $cssClass .
'"' . $colsp . $this->addElement_tdParams[$lastKey] .
'>' . $data[$lastKey] .
'</' . $colType .
'>';
323 if ($this->eCounter >= $this->firstElementNumber && $this->eCounter < $this->firstElementNumber + $this->iLimit) {
324 if ($this->firstElementNumber && $this->eCounter == $this->firstElementNumber) {
327 $titleCol = $this->fieldArray[0];
328 $theData[$titleCol] = $this->
fwd_rwd_HTML(
'fwd', $this->eCounter, $table);
329 $code = $this->
addElement(1,
'', $theData,
'class="fwd_rwd_nav"');
331 return array(1, $code);
333 if ($this->eCounter == $this->firstElementNumber + $this->iLimit) {
336 $titleCol = $this->fieldArray[0];
337 $theData[$titleCol] = $this->
fwd_rwd_HTML(
'rwd', $this->eCounter, $table);
338 $code = $this->
addElement(1,
'', $theData,
'class="fwd_rwd_nav"');
340 return array(0, $code);
356 $tParam = $table ?
'&table=' . rawurlencode($table) :
'';
360 $content =
'<a href="' . htmlspecialchars($href) .
'">' . $this->iconFactory->getIcon(
'actions-move-up',
Icon::SIZE_SMALL)->render() .
'</a> <i>[1 - ' . $pointer .
']</i>';
363 $href = $this->
listURL() .
'&pointer=' . $pointer . $tParam;
364 $content =
'<a href="' . htmlspecialchars($href) .
'">' . $this->iconFactory->getIcon(
'actions-move-down',
Icon::SIZE_SMALL)->render() .
'</a> <i>[' . ($pointer + 1) .
' - ' . $this->totalItems .
']</i>';
390 function checkOffCB(listOfCBnames, link) { //
391 var checkBoxes, flag, i;
392 var checkBoxes = listOfCBnames.split(",");
393 if (link.rel === "") {
394 link.rel = "allChecked";
400 for (i = 0; i < checkBoxes.length; i++) {
401 setcbValue(checkBoxes[i], flag);
405 function cbValue(CBname) { //
406 var CBfullName = "CBC["+CBname+"]";
407 return (document.dblistForm[CBfullName] && document.dblistForm[CBfullName].checked ? 1 : 0);
410 function setcbValue(CBname,flag) { //
411 CBfullName = "CBC["+CBname+"]";
412 if(document.dblistForm[CBfullName]) {
413 document.dblistForm[CBfullName].checked = flag ? "on" : 0;
429 $this->languageIconTitles = $this->
getTranslateTools()->getSystemLanguages($this->
id);
439 public function languageFlag($sys_language_uid, $addAsAdditionalText =
true)
442 $title = htmlspecialchars($this->languageIconTitles[$sys_language_uid][
'title']);
443 if ($this->languageIconTitles[$sys_language_uid][
'flagIcon']) {
444 $out .=
'<span title="' . $title .
'">' . $this->iconFactory->getIcon($this->languageIconTitles[$sys_language_uid][
'flagIcon'],
Icon::SIZE_SMALL)->render() .
'</span>';
445 if (!$addAsAdditionalText) {
461 if (!isset($this->translateTools)) {
480 $htmlCode =
'<a href="#"';
481 if ($launchViewParameter !==
'') {
482 $htmlCode .=
' onclick="' . htmlspecialchars((
'top.launchView(' . $launchViewParameter .
'); return false;')) .
'"';
484 $htmlCode .=
' title="' . htmlspecialchars($this->
getLanguageService()->sl(
'LLL:EXT:backend/Resources/Private/Language/locallang.xlf:show_references') .
' (' . $references .
')') .
'">';
485 $htmlCode .= $references;