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