Project

General

Profile

Bug #21294 ยป wizard-labels.patch

Administrator Admin, 2009-10-17 14:47

View differences:

typo3/sysext/wizard_crpages/class.tx_wizardcrpages_webfunc_2.php (Arbeitskopie)
}
// Display create form
$lines = array();
for ($a=0;$a<9;$a++) {
$lines[] = $LANG->getLL('wiz_newPages_page').' '.($a+1).
': <input type="text" name="data[pages][NEW'.$a.'][title]"'.$this->pObj->doc->formWidth(35).' />'.
(is_object($loremIpsumObj) ? '<a href="#" onclick="'.htmlspecialchars($loremIpsumObj->getHeaderTitleJS('document.forms[0][\'data[pages][NEW'.$a.'][title]\'].value', 'title')).'">'.$loremIpsumObj->getIcon('',$this->pObj->doc->backPath).'</a>' : '');
for ($a=0; $a < 9; $a++) {
$lines[] = '<label for="page_new_' . $a . '"> ' . $LANG->getLL('wiz_newPages_page') .' '. ($a+1) .
': <input type="text" id="page_new_' . $a . '" name="data[pages][NEW' . $a . '][title]"' . $this->pObj->doc->formWidth(35) . ' />'.
(is_object($loremIpsumObj) ? '<a href="#" onclick="' . htmlspecialchars($loremIpsumObj->getHeaderTitleJS('document.forms[0][\'data[pages][NEW' . $a . '][title]\'].value', 'title')).'">' . $loremIpsumObj->getIcon('', $this->pObj->doc->backPath) . '</a>' : '');
}
$theCode.= '<b>'.$LANG->getLL('wiz_newPages').':</b><br /><br />'.implode('<br />',$lines).
    (1-1/1)