@@ 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 |
@@ 103-115 (lines=13) @@ | ||
100 | // $sform->addElement($editor, false); |
|
101 | ||
102 | $optionsTrayNote = new XoopsFormElementTray(_AM_XOOPSTUBE_IPAGE_CHEADING, '<br>'); |
|
103 | if (class_exists('XoopsFormEditor')) { |
|
104 | $options['name'] = 'indexheader'; |
|
105 | $options['value'] = $indexheader; |
|
106 | $options['rows'] = 5; |
|
107 | $options['cols'] = '100%'; |
|
108 | $options['width'] = '100%'; |
|
109 | $options['height'] = '200px'; |
|
110 | $editor = new XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
111 | $optionsTrayNote->addElement($editor); |
|
112 | } else { |
|
113 | $editor = new XoopsFormDhtmlTextArea('', 'indexheader', $item->getVar('indexheader', 'e'), '100%', '100%'); |
|
114 | $optionsTrayNote->addElement($editor); |
|
115 | } |
|
116 | ||
117 | $sform->addElement($optionsTrayNote, false); |
|
118 |
@@ 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 |
@@ 290-302 (lines=13) @@ | ||
287 | // $sform -> addElement( $editor, true ); |
|
288 | ||
289 | $optionsTrayNote = new XoopsFormElementTray(_MD_XOOPSTUBE_DESCRIPTIONC, '<br>'); |
|
290 | if (class_exists('XoopsFormEditor')) { |
|
291 | $options['name'] = 'descriptionb'; |
|
292 | $options['value'] = $descriptionb; |
|
293 | $options['rows'] = 5; |
|
294 | $options['cols'] = '100%'; |
|
295 | $options['width'] = '100%'; |
|
296 | $options['height'] = '200px'; |
|
297 | $editor = new XoopsFormEditor('', $GLOBALS['xoopsModuleConfig']['form_optionsuser'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
298 | $optionsTrayNote->addElement($editor); |
|
299 | } else { |
|
300 | $editor = new XoopsFormDhtmlTextArea('', 'descriptionb', $item->getVar('descriptionb', 'e'), '100%', '100%'); |
|
301 | $optionsTrayNote->addElement($editor); |
|
302 | } |
|
303 | ||
304 | $sform->addElement($optionsTrayNote, false); |
|
305 |