@@ -169,32 +169,32 @@ |
||
169 | 169 | $buttons = array('edit', 'delete'); |
170 | 170 | |
171 | 171 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
172 | - . ' <thead>' |
|
173 | - . ' <tr class="xoopsCenter">' |
|
174 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ORDER . '</th>' |
|
175 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ID . '</th>' |
|
176 | - . ' <th class="txtleft">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
177 | - . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
178 | - . ' </tr>' |
|
179 | - . ' </thead>' |
|
180 | - . ' <tbody>'; |
|
172 | + . ' <thead>' |
|
173 | + . ' <tr class="xoopsCenter">' |
|
174 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ORDER . '</th>' |
|
175 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CATEGORY_ID . '</th>' |
|
176 | + . ' <th class="txtleft">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
177 | + . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
178 | + . ' </tr>' |
|
179 | + . ' </thead>' |
|
180 | + . ' <tbody>'; |
|
181 | 181 | if ($objects['count'] > 0) { |
182 | 182 | /** @var XoopsObject $object */ |
183 | 183 | foreach ($objects['list'] as $object) { |
184 | 184 | $ret .= ' <tr class="xoopsCenter">' |
185 | - . ' <td class="even txtcenter">' . $object->getVar('category_order') . '</td>' |
|
186 | - . ' <td class="even txtcenter">' . $object->getVar('category_id') . '</td>' |
|
187 | - . ' <td class="even txtleft">' . $object->getVar('category_title') . '</td>' |
|
188 | - . ' <td class="even txtcenter">'; |
|
185 | + . ' <td class="even txtcenter">' . $object->getVar('category_order') . '</td>' |
|
186 | + . ' <td class="even txtcenter">' . $object->getVar('category_id') . '</td>' |
|
187 | + . ' <td class="even txtleft">' . $object->getVar('category_title') . '</td>' |
|
188 | + . ' <td class="even txtcenter">'; |
|
189 | 189 | $ret .= XoopsfaqUtility::renderIconLinks($buttons, 'category_id', $object->getVar('category_id')); |
190 | 190 | $ret .= ' </td>' |
191 | - . ' </tr>'; |
|
191 | + . ' </tr>'; |
|
192 | 192 | } |
193 | 193 | } else { |
194 | 194 | $ret .= ' <tr class="txtcenter"><td colspan="4" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
195 | 195 | } |
196 | 196 | $ret .= ' </tbody>' |
197 | - . '</table>'; |
|
197 | + . '</table>'; |
|
198 | 198 | return $ret; |
199 | 199 | } |
200 | 200 |
@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | */ |
31 | 31 | class XoopsfaqContents extends XoopsObject |
32 | 32 | { |
33 | - /** |
|
34 | - * @var string contains this modules directory name |
|
35 | - */ |
|
33 | + /** |
|
34 | + * @var string contains this modules directory name |
|
35 | + */ |
|
36 | 36 | protected $dirname; |
37 | 37 | |
38 | 38 | /** |
@@ -131,11 +131,11 @@ discard block |
||
131 | 131 | if (class_exists('XoopsFormEditor')) { |
132 | 132 | // $editorConfigs = array('editor' => $GLOBALS['xoopsConfig']['general_editor'], |
133 | 133 | $editorConfigs = array('editor' => $xfHelper->getConfig('use_wysiwyg', 'dhtmltextarea'), |
134 | - 'rows' => 25, |
|
135 | - 'cols' => '100%', |
|
134 | + 'rows' => 25, |
|
135 | + 'cols' => '100%', |
|
136 | 136 | 'width' => '100%', |
137 | - 'height' => '600px', |
|
138 | - 'name' => 'contents_contents', |
|
137 | + 'height' => '600px', |
|
138 | + 'name' => 'contents_contents', |
|
139 | 139 | 'value' => $this->getVar('contents_contents', 'e') |
140 | 140 | ); |
141 | 141 | $contents_contents = new XoopsFormEditor('', 'contents_contents', $editorConfigs); |
@@ -351,18 +351,18 @@ discard block |
||
351 | 351 | $buttons = array('edit', 'delete'); |
352 | 352 | |
353 | 353 | $ret = '<table class="outer width100 bnone pad3 marg5">' |
354 | - . ' <thead>' |
|
355 | - . ' <tr class="center">' |
|
356 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ID . '</th>' |
|
357 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ACTIVE . '</th>' |
|
358 | - . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_WEIGHT . '</th>' |
|
359 | - . ' <th class="left">' . _AM_XOOPSFAQ_CONTENTS_TITLE . '</th>' |
|
360 | - . ' <th class="left">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
361 | - . ' <th>' . _AM_XOOPSFAQ_CONTENTS_PUBLISH . '</th>' |
|
362 | - . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
363 | - . ' </tr>' |
|
364 | - . ' </thead>' |
|
365 | - . ' <tbody>'; |
|
354 | + . ' <thead>' |
|
355 | + . ' <tr class="center">' |
|
356 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ID . '</th>' |
|
357 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_ACTIVE . '</th>' |
|
358 | + . ' <th class="width5">' . _AM_XOOPSFAQ_CONTENTS_WEIGHT . '</th>' |
|
359 | + . ' <th class="left">' . _AM_XOOPSFAQ_CONTENTS_TITLE . '</th>' |
|
360 | + . ' <th class="left">' . _AM_XOOPSFAQ_CATEGORY_TITLE . '</th>' |
|
361 | + . ' <th>' . _AM_XOOPSFAQ_CONTENTS_PUBLISH . '</th>' |
|
362 | + . ' <th class="width20">' . _AM_XOOPSFAQ_ACTIONS . '</th>' |
|
363 | + . ' </tr>' |
|
364 | + . ' </thead>' |
|
365 | + . ' <tbody>'; |
|
366 | 366 | if ($objects['count'] > 0) { |
367 | 367 | $tdClass = 0; |
368 | 368 | /** @var \XoopsfaqContents $object */ |
@@ -373,22 +373,22 @@ discard block |
||
373 | 373 | ++$tdClass; |
374 | 374 | $dispClass = ($tdClass % 1) ? 'even' : 'odd'; |
375 | 375 | $ret .= ' <tr class="center middle">' |
376 | - . ' <td class="' . $dispClass . '">' . $object->getVar('contents_id') . '</td>' |
|
377 | - . ' <td class="' . $dispClass . '">' . $object->getActiveIcon() . '</td>' |
|
378 | - . ' <td class="' . $dispClass . '">' . $object->getVar('contents_weight') . '</td>' |
|
379 | - . ' <td class="' . $dispClass . ' left">' . $thisContentTitle . '</td>' |
|
380 | - . ' <td class="' . $dispClass . ' left">' . $thisCatTitle . '</td>' |
|
381 | - . ' <td class="' . $dispClass . '">' . $object->getPublished(_SHORTDATESTRING) . '</td>' |
|
382 | - . ' <td class="' . $dispClass . '">'; |
|
376 | + . ' <td class="' . $dispClass . '">' . $object->getVar('contents_id') . '</td>' |
|
377 | + . ' <td class="' . $dispClass . '">' . $object->getActiveIcon() . '</td>' |
|
378 | + . ' <td class="' . $dispClass . '">' . $object->getVar('contents_weight') . '</td>' |
|
379 | + . ' <td class="' . $dispClass . ' left">' . $thisContentTitle . '</td>' |
|
380 | + . ' <td class="' . $dispClass . ' left">' . $thisCatTitle . '</td>' |
|
381 | + . ' <td class="' . $dispClass . '">' . $object->getPublished(_SHORTDATESTRING) . '</td>' |
|
382 | + . ' <td class="' . $dispClass . '">'; |
|
383 | 383 | $ret .= XoopsfaqUtility::renderIconLinks($buttons, 'contents_id', $object->getVar('contents_id')) |
384 | - . '</td>' |
|
385 | - . ' </tr>'; |
|
384 | + . '</td>' |
|
385 | + . ' </tr>'; |
|
386 | 386 | } |
387 | 387 | } else { |
388 | 388 | $ret .= ' <tr class="center"><td colspan="7" class="even">' . _AM_XOOPSFAQ_NOLISTING . '</td></tr>'; |
389 | 389 | } |
390 | 390 | $ret .= ' </tbody>' |
391 | - . '</table>'; |
|
391 | + . '</table>'; |
|
392 | 392 | return $ret; |
393 | 393 | } |
394 | 394 |