| @@ 129-141 (lines=13) @@ | ||
| 126 | // $sform->addElement($editor, false); |
|
| 127 | ||
| 128 | $optionsTrayNote = new XoopsFormElementTray(_AM_XOOPSTUBE_FCATEGORY_DESCRIPTION, '<br>'); |
|
| 129 | if (class_exists('XoopsFormEditor')) { |
|
| 130 | $options['name'] = 'description'; |
|
| 131 | $options['value'] = $description; |
|
| 132 | $options['rows'] = 5; |
|
| 133 | $options['cols'] = '100%'; |
|
| 134 | $options['width'] = '100%'; |
|
| 135 | $options['height'] = '200px'; |
|
| 136 | $editor = new XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
| 137 | $optionsTrayNote->addElement($editor); |
|
| 138 | } else { |
|
| 139 | $editor = new XoopsFormDhtmlTextArea('', 'description', $item->getVar('description', 'e'), '100%', '100%'); |
|
| 140 | $optionsTrayNote->addElement($editor); |
|
| 141 | } |
|
| 142 | ||
| 143 | $sform->addElement($optionsTrayNote, false); |
|
| 144 | ||
| @@ 168-180 (lines=13) @@ | ||
| 165 | // $sform -> addElement( $editor, false ); |
|
| 166 | ||
| 167 | $optionsTrayNote = new XoopsFormElementTray(_AM_XOOPSTUBE_VIDEO_DESCRIPTION, '<br>'); |
|
| 168 | if (class_exists('XoopsFormEditor')) { |
|
| 169 | $options['name'] = 'descriptionb'; |
|
| 170 | $options['value'] = $descriptionb; |
|
| 171 | $options['rows'] = 5; |
|
| 172 | $options['cols'] = '100%'; |
|
| 173 | $options['width'] = '100%'; |
|
| 174 | $options['height'] = '200px'; |
|
| 175 | $descriptionb = new XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_options'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
| 176 | $optionsTrayNote->addElement($descriptionb); |
|
| 177 | } else { |
|
| 178 | $descriptionb = new XoopsFormDhtmlTextArea('', 'descriptionb', $item->getVar('descriptionb', 'e'), '100%', '100%'); |
|
| 179 | $optionsTrayNote->addElement($descriptionb); |
|
| 180 | } |
|
| 181 | ||
| 182 | $sform->addElement($optionsTrayNote, false); |
|
| 183 | ||
| @@ 107-119 (lines=13) @@ | ||
| 104 | // $sform->addElement($editor, false); |
|
| 105 | ||
| 106 | $optionsTrayNote = new XoopsFormElementTray(_AM_XOOPSTUBE_IPAGE_CHEADING, '<br>'); |
|
| 107 | if (class_exists('XoopsFormEditor')) { |
|
| 108 | $options['name'] = 'indexheader'; |
|
| 109 | $options['value'] = $indexheader; |
|
| 110 | $options['rows'] = 5; |
|
| 111 | $options['cols'] = '100%'; |
|
| 112 | $options['width'] = '100%'; |
|
| 113 | $options['height'] = '200px'; |
|
| 114 | $editor = new XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
| 115 | $optionsTrayNote->addElement($editor); |
|
| 116 | } else { |
|
| 117 | $editor = new XoopsFormDhtmlTextArea('', 'indexheader', $item->getVar('indexheader', 'e'), '100%', '100%'); |
|
| 118 | $optionsTrayNote->addElement($editor); |
|
| 119 | } |
|
| 120 | ||
| 121 | $sform->addElement($optionsTrayNote, false); |
|
| 122 | ||
| @@ 295-307 (lines=13) @@ | ||
| 292 | // $sform -> addElement( $editor, true ); |
|
| 293 | ||
| 294 | $optionsTrayNote = new XoopsFormElementTray(_MD_XOOPSTUBE_DESCRIPTIONC, '<br>'); |
|
| 295 | if (class_exists('XoopsFormEditor')) { |
|
| 296 | $options['name'] = 'descriptionb'; |
|
| 297 | $options['value'] = $descriptionb; |
|
| 298 | $options['rows'] = 5; |
|
| 299 | $options['cols'] = '100%'; |
|
| 300 | $options['width'] = '100%'; |
|
| 301 | $options['height'] = '200px'; |
|
| 302 | $editor = new XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
| 303 | $optionsTrayNote->addElement($editor); |
|
| 304 | } else { |
|
| 305 | $editor = new XoopsFormDhtmlTextArea('', 'descriptionb', $item->getVar('descriptionb', 'e'), '100%', '100%'); |
|
| 306 | $optionsTrayNote->addElement($editor); |
|
| 307 | } |
|
| 308 | ||
| 309 | $sform->addElement($optionsTrayNote, false); |
|
| 310 | ||