Fixed bug #12872: Use "strong" instead of "b": typo3/sysext/
[Packages/TYPO3.CMS.git] / typo3 / sysext / wizard_crpages / class.tx_wizardcrpages_webfunc_2.php
index 30d5c52..25bddb1 100755 (executable)
@@ -128,23 +128,35 @@ class tx_wizardcrpages_webfunc_2 extends t3lib_extobjbase {
 
                                        $tce->start($data,array());
                                        $tce->process_datamap();
-                                       t3lib_BEfunc::getSetUpdateSignal('updatePageTree');
+                                       t3lib_BEfunc::setUpdateSignal('updatePageTree');
+                                       
+                                       $flashMessage = t3lib_div::makeInstance(
+                                               't3lib_FlashMessage',
+                                               '',
+                                               $GLOBALS['LANG']->getLL('wiz_newPages_create')
+                                       );                                      
                                } else {
-                                       $theCode.=$GLOBALS['TBE_TEMPLATE']->rfw($LANG->getLL('wiz_newPages_noCreate').'<br /><br />');
+                                       $flashMessage = t3lib_div::makeInstance(
+                                               't3lib_FlashMessage',
+                                               '',
+                                               $GLOBALS['LANG']->getLL('wiz_newPages_noCreate'),
+                                               t3lib_FlashMessage::ERROR
+                                       );
                                }
+                               
+                               $theCode.= $flashMessage->render();
 
                                        // Display result:
                                $menuItems = $sys_pages->getMenu($this->pObj->id,'*','sorting','',0);
-                               reset($menuItems);
                                $lines=array();
-                               while(list(,$rec)=each($menuItems))     {
+                               foreach ($menuItems as $rec) {
                                        t3lib_BEfunc::workspaceOL('pages',$rec);
                                        if (is_array($rec))     {
                                                $lines[]= '<nobr>'.t3lib_iconWorks::getIconImage('pages',$rec,$GLOBALS['BACK_PATH'],'align="top" '.t3lib_BEfunc::titleAttribForPages($rec)).
                                                        htmlspecialchars(t3lib_div::fixed_lgd_cs($rec['title'],$GLOBALS['BE_USER']->uc['titleLen'])).'</nobr>';
                                        }
                                }
-                               $theCode.= '<b>'.$LANG->getLL('wiz_newPages_currentMenu').':</b><br /><br />'.implode('<br />',$lines);
+                               $theCode.= '<strong>'.$LANG->getLL('wiz_newPages_currentMenu').':</strong><br /><br />'.implode('<br />',$lines);
                        } else {
                                        // Create loremIpsum code:
                                if (t3lib_extMgm::isLoaded('lorem_ipsum'))      {
@@ -152,17 +164,17 @@ class tx_wizardcrpages_webfunc_2 extends t3lib_extobjbase {
                                }
                                        // 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) .
+                                               ':</label><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).
+                               $theCode.= '<strong>'.$LANG->getLL('wiz_newPages').':</strong><br /><br />'.implode('<br />',$lines).
                                '<br /><br />
                                <input type="checkbox" name="createInListEnd" id="createInListEnd" value="1" /> <label for="createInListEnd">'.$LANG->getLL('wiz_newPages_listEnd').'</label><br />
                                <input type="checkbox" name="hidePages" id="hidePages" value="1" /> <label for="hidePages">'.$LANG->getLL('wiz_newPages_hidePages').'</label><br /><br />
-                               <input type="submit" name="create" value="'.$LANG->getLL('wiz_newPages_lCreate').'" onclick="return confirm('.$GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->getLL('wiz_newPages_lCreate_msg1')).')"> <input type="reset" value="'.$LANG->getLL('wiz_newPages_lReset').'" /><br />';
+                               <input type="submit" name="create" value="' . $LANG->getLL('wiz_newPages_lCreate') . '" onclick="return confirm(' . $GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->getLL('wiz_newPages_lCreate_msg1')) . ')" /><input type="reset" value="' . $LANG->getLL('wiz_newPages_lReset') . '" /><br />';
                        }
                } else {
                        $theCode.=$GLOBALS['TBE_TEMPLATE']->rfw($LANG->getLL('wiz_newPages_errorMsg1'));