@@ -1,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * CBB, XOOPS forum module |
|
| 4 | - * |
|
| 5 | - * @copyright The XOOPS Project http://xoops.sf.net |
|
| 6 | - * @license http://www.fsf.org/copyleft/gpl.html GNU public license |
|
| 7 | - * @author Taiwen Jiang (phppp or D.J.) <[email protected]> |
|
| 8 | - * @since 4.00 |
|
| 9 | - * @version $Id $ |
|
| 10 | - * @package module::newbb |
|
| 11 | - */ |
|
| 3 | + * CBB, XOOPS forum module |
|
| 4 | + * |
|
| 5 | + * @copyright The XOOPS Project http://xoops.sf.net |
|
| 6 | + * @license http://www.fsf.org/copyleft/gpl.html GNU public license |
|
| 7 | + * @author Taiwen Jiang (phppp or D.J.) <[email protected]> |
|
| 8 | + * @since 4.00 |
|
| 9 | + * @version $Id $ |
|
| 10 | + * @package module::newbb |
|
| 11 | + */ |
|
| 12 | 12 | |
| 13 | 13 | // defined("XOOPS_ROOT_PATH") || exit("XOOPS root path not defined"); |
| 14 | 14 | |
@@ -21,9 +21,9 @@ |
||
| 21 | 21 | $faqsObj = $faq_handler->getRandomFaq('diduno', array(_SF_STATUS_PUBLISHED, _SF_STATUS_NEW_ANSWER)); |
| 22 | 22 | |
| 23 | 23 | if ($faqsObj) { |
| 24 | - $block['content'] = $faqsObj->diduno(); |
|
| 25 | - $block['id'] = $faqsObj->faqid(); |
|
| 26 | - $block['lang_answer'] = _MB_SF_MOREDETAILS; |
|
| 24 | + $block['content'] = $faqsObj->diduno(); |
|
| 25 | + $block['id'] = $faqsObj->faqid(); |
|
| 26 | + $block['lang_answer'] = _MB_SF_MOREDETAILS; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | return $block; |
@@ -21,9 +21,9 @@ |
||
| 21 | 21 | $faqsObj = $faq_handler->getRandomFaq('howdoi', array(_SF_STATUS_PUBLISHED, _SF_STATUS_NEW_ANSWER)); |
| 22 | 22 | |
| 23 | 23 | if ($faqsObj) { |
| 24 | - $block['content'] = $faqsObj->howdoi(); |
|
| 25 | - $block['id'] = $faqsObj->faqid(); |
|
| 26 | - $block['lang_answer'] = _MB_SF_ANSWERHERE; |
|
| 24 | + $block['content'] = $faqsObj->howdoi(); |
|
| 25 | + $block['id'] = $faqsObj->faqid(); |
|
| 26 | + $block['lang_answer'] = _MB_SF_ANSWERHERE; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | return $block; |
@@ -21,9 +21,9 @@ |
||
| 21 | 21 | $faqsObj = $faq_handler->getRandomFaq('question', array(_SF_STATUS_PUBLISHED, _SF_STATUS_NEW_ANSWER)); |
| 22 | 22 | |
| 23 | 23 | if ($faqsObj) { |
| 24 | - $block['content'] = $faqsObj->question(); |
|
| 25 | - $block['id'] = $faqsObj->faqid(); |
|
| 26 | - $block['lang_answer'] = _MB_SF_ANSWERHERE; |
|
| 24 | + $block['content'] = $faqsObj->question(); |
|
| 25 | + $block['id'] = $faqsObj->faqid(); |
|
| 26 | + $block['lang_answer'] = _MB_SF_ANSWERHERE; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | return $block; |
@@ -195,19 +195,19 @@ |
||
| 195 | 195 | |
| 196 | 196 | |
| 197 | 197 | $editorTray = new XoopsFormElementTray(_AM_SF_ANSWER_FAQ, '<br />'); |
| 198 | - if (class_exists('XoopsFormEditor')) { |
|
| 199 | - $options['name'] = 'answer'; |
|
| 200 | - $options['value'] = $theanswer; |
|
| 201 | - $options['rows'] = 5; |
|
| 202 | - $options['cols'] = '100%'; |
|
| 203 | - $options['width'] = '100%'; |
|
| 204 | - $options['height'] = '200px'; |
|
| 205 | - $answerEditor = new XoopsFormEditor('', $xoopsModuleConfig['form_editorOptions'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
| 206 | - $editorTray->addElement($answerEditor,true ); |
|
| 207 | - } else { |
|
| 208 | - $answerEditor = new XoopsFormDhtmlTextArea(_AM_SF_ANSWER_FAQ, 'answer', $theanswer, '100%', '100%'); |
|
| 209 | - $editorTray->addElement($answerEditor,true ); |
|
| 210 | - } |
|
| 198 | + if (class_exists('XoopsFormEditor')) { |
|
| 199 | + $options['name'] = 'answer'; |
|
| 200 | + $options['value'] = $theanswer; |
|
| 201 | + $options['rows'] = 5; |
|
| 202 | + $options['cols'] = '100%'; |
|
| 203 | + $options['width'] = '100%'; |
|
| 204 | + $options['height'] = '200px'; |
|
| 205 | + $answerEditor = new XoopsFormEditor('', $xoopsModuleConfig['form_editorOptions'], $options, $nohtml = false, $onfailure = 'textarea'); |
|
| 206 | + $editorTray->addElement($answerEditor,true ); |
|
| 207 | + } else { |
|
| 208 | + $answerEditor = new XoopsFormDhtmlTextArea(_AM_SF_ANSWER_FAQ, 'answer', $theanswer, '100%', '100%'); |
|
| 209 | + $editorTray->addElement($answerEditor,true ); |
|
| 210 | + } |
|
| 211 | 211 | |
| 212 | 212 | $sform->addElement($editorTray); |
| 213 | 213 | |
@@ -201,7 +201,7 @@ |
||
| 201 | 201 | exit(); |
| 202 | 202 | } |
| 203 | 203 | } else { |
| 204 | - $uid = $xoopsUser->uid(); |
|
| 204 | + $uid = $xoopsUser->uid(); |
|
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | $faqid = (isset($_POST['faqid']))? intval($_POST['faqid']) : -1; |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | $sform->display(); |
| 100 | 100 | unset($hidden); |
| 101 | 101 | } else { |
| 102 | - echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_SF_IMPORT_NO_MODULE . "</span>"; |
|
| 102 | + echo "<span style=\"color: #567; margin: 3px 0 12px 0; font-weight: bold; font-size: small; display: block; \">" . _AM_SF_IMPORT_NO_MODULE . "</span>"; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | // End of collapsable bar |