@@ -379,20 +379,20 @@ |
||
379 | 379 | $tree .= ' checked'; |
380 | 380 | } |
381 | 381 | $tree .= '>' |
382 | - . $option['name'] |
|
383 | - . '<input type="hidden" name="' |
|
384 | - . $this->getName() |
|
385 | - . '[parents][' |
|
386 | - . $option['id'] |
|
387 | - . ']" value="' |
|
388 | - . implode(':', $parentIds) |
|
389 | - . '"><input type="hidden" name="' |
|
390 | - . $this->getName() |
|
391 | - . '[itemname][' |
|
392 | - . $option['id'] |
|
393 | - . ']" value="' |
|
394 | - . htmlspecialchars($option['name'], ENT_QUOTES) |
|
395 | - . "\"><br>\n"; |
|
382 | + . $option['name'] |
|
383 | + . '<input type="hidden" name="' |
|
384 | + . $this->getName() |
|
385 | + . '[parents][' |
|
386 | + . $option['id'] |
|
387 | + . ']" value="' |
|
388 | + . implode(':', $parentIds) |
|
389 | + . '"><input type="hidden" name="' |
|
390 | + . $this->getName() |
|
391 | + . '[itemname][' |
|
392 | + . $option['id'] |
|
393 | + . ']" value="' |
|
394 | + . htmlspecialchars($option['name'], ENT_QUOTES) |
|
395 | + . "\"><br>\n"; |
|
396 | 396 | if (isset($option['children'])) { |
397 | 397 | foreach ($option['children'] as $child) { |
398 | 398 | array_push($parentIds, $option['id']); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $sql = sprintf( |
93 | 93 | 'INSERT INTO `%s` (parentid, name, description, total, weight, created) VALUES (%u, %s, %s, %u, %u, %u)', |
94 | 94 | $this->db->prefix('smartfaq_categories'), |
95 | - $parentid, |
|
95 | + $parentid, |
|
96 | 96 | $this->db->quoteString($name), |
97 | 97 | $this->db->quoteString($description), |
98 | 98 | $total, |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | 'UPDATE `%s` SET parentid = %u, name = %s, description = %s, total = %s, weight = %u, created = %u WHERE categoryid = %u', |
105 | 105 | $this->db->prefix('smartfaq_categories'), |
106 | 106 | $parentid, |
107 | - $this->db->quoteString($name), |
|
107 | + $this->db->quoteString($name), |
|
108 | 108 | $this->db->quoteString($description), |
109 | 109 | $total, |
110 | 110 | $weight, |
@@ -174,22 +174,22 @@ discard block |
||
174 | 174 | </td> |
175 | 175 | <td class='$class' align='center' nowrap='nowrap'> |
176 | 176 | <input type='radio' name='side[$bid]' value='" |
177 | - . Constants::XOOPS_SIDEBLOCK_LEFT |
|
178 | - . "'$ssel0>-<input type='radio' name='side[$bid]' value='" |
|
179 | - . Constants::XOOPS_CENTERBLOCK_LEFT |
|
180 | - . "'$ssel2><input type='radio' name='side[$bid]' value='" |
|
181 | - . Constants::XOOPS_CENTERBLOCK_CENTER |
|
182 | - . "'$ssel3><input type='radio' name='side[$bid]' value='" |
|
183 | - . Constants::XOOPS_CENTERBLOCK_RIGHT |
|
184 | - . "'$ssel4>-<input type='radio' name='side[$bid]' value='" |
|
185 | - . Constants::XOOPS_SIDEBLOCK_RIGHT |
|
186 | - . "'$ssel1> |
|
177 | + . Constants::XOOPS_SIDEBLOCK_LEFT |
|
178 | + . "'$ssel0>-<input type='radio' name='side[$bid]' value='" |
|
179 | + . Constants::XOOPS_CENTERBLOCK_LEFT |
|
180 | + . "'$ssel2><input type='radio' name='side[$bid]' value='" |
|
181 | + . Constants::XOOPS_CENTERBLOCK_CENTER |
|
182 | + . "'$ssel3><input type='radio' name='side[$bid]' value='" |
|
183 | + . Constants::XOOPS_CENTERBLOCK_RIGHT |
|
184 | + . "'$ssel4>-<input type='radio' name='side[$bid]' value='" |
|
185 | + . Constants::XOOPS_SIDEBLOCK_RIGHT |
|
186 | + . "'$ssel1> |
|
187 | 187 | <br> |
188 | 188 | <br> |
189 | 189 | <input type='radio' name='side[$bid]' value='-1'$sseln> |
190 | 190 | " |
191 | - . _NONE |
|
192 | - . " |
|
191 | + . _NONE |
|
192 | + . " |
|
193 | 193 | </td> |
194 | 194 | <td class='$class' align='center'> |
195 | 195 | <input type='text' name=weight[$bid] value='$weight' size='5' maxlength='5' style='text-align:right;'> |
@@ -206,8 +206,8 @@ discard block |
||
206 | 206 | </td> |
207 | 207 | <td class='$class' align='center'> |
208 | 208 | <a href='admin.php?fct=blocksadmin&op=edit&bid=$bid'>" |
209 | - . _EDIT |
|
210 | - . "</a> |
|
209 | + . _EDIT |
|
210 | + . "</a> |
|
211 | 211 | <input type='hidden' name='bid[$bid]' value='$bid'> |
212 | 212 | </td> |
213 | 213 | </tr>\n"; |
@@ -240,14 +240,14 @@ discard block |
||
240 | 240 | } |
241 | 241 | |
242 | 242 | $form = new GroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src=" |
243 | - . XOOPS_URL |
|
244 | - . '/modules/' |
|
245 | - . $xoopsModule->dirname() |
|
246 | - . "/assets/images/icon/close12.gif alt=''></a> " |
|
247 | - . _AM_SF_GROUPS |
|
248 | - . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
249 | - . _AM_SF_GROUPSINFO |
|
250 | - . '</span>'); |
|
243 | + . XOOPS_URL |
|
244 | + . '/modules/' |
|
245 | + . $xoopsModule->dirname() |
|
246 | + . "/assets/images/icon/close12.gif alt=''></a> " |
|
247 | + . _AM_SF_GROUPS |
|
248 | + . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
249 | + . _AM_SF_GROUPSINFO |
|
250 | + . '</span>'); |
|
251 | 251 | $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS); |
252 | 252 | $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS); |
253 | 253 | foreach ($item_list as $item_id => $item_name) { |
@@ -94,7 +94,7 @@ |
||
94 | 94 | if ($faq->isNew()) { |
95 | 95 | $sql = sprintf( |
96 | 96 | 'INSERT INTO `%s` (faqid, categoryid, question, howdoi, diduno, uid, datesub, status, counter, weight, html, smiley, xcodes, cancomment, comments, notifypub, modulelink, contextpage, exacturl, partialview) VALUES (NULL, %u, %s, %s, %s, %u, %u, %u, %u, %u, %u, %u, %u, %u, %u, %u, %s, %s, %u, %u)', |
97 | - $this->db->prefix('smartfaq_faq'), |
|
97 | + $this->db->prefix('smartfaq_faq'), |
|
98 | 98 | $categoryid, |
99 | 99 | $this->db->quoteString($question), |
100 | 100 | $this->db->quoteString($howdoi), |
@@ -52,18 +52,18 @@ discard block |
||
52 | 52 | |
53 | 53 | echo '<tr>'; |
54 | 54 | echo "<td class='even' align='lefet'>" |
55 | - . $spaces |
|
56 | - . "<a href='" |
|
57 | - . XOOPS_URL |
|
58 | - . '/modules/' |
|
59 | - . $xoopsModule->dirname() |
|
60 | - . '/category.php?categoryid=' |
|
61 | - . $categoryObj->categoryid() |
|
62 | - . "'><img src='" |
|
63 | - . XOOPS_URL |
|
64 | - . "/modules/smartfaq/assets/images/icon/subcat.gif' alt=''> " |
|
65 | - . $categoryObj->name() |
|
66 | - . '</a></td>'; |
|
55 | + . $spaces |
|
56 | + . "<a href='" |
|
57 | + . XOOPS_URL |
|
58 | + . '/modules/' |
|
59 | + . $xoopsModule->dirname() |
|
60 | + . '/category.php?categoryid=' |
|
61 | + . $categoryObj->categoryid() |
|
62 | + . "'><img src='" |
|
63 | + . XOOPS_URL |
|
64 | + . "/modules/smartfaq/assets/images/icon/subcat.gif' alt=''> " |
|
65 | + . $categoryObj->name() |
|
66 | + . '</a></td>'; |
|
67 | 67 | echo "<td class='even' align='left'>" . $description . '</td>'; |
68 | 68 | echo "<td class='even' align='center'>" . $categoryObj->weight() . '</td>'; |
69 | 69 | echo "<td class='even' align='center'> $modify $delete </td>"; |
@@ -323,11 +323,11 @@ discard block |
||
323 | 323 | $categoryid = \Xmf\Request::getInt('categoryid', 0, 'GET'); |
324 | 324 | xoops_cp_header(); |
325 | 325 | xoops_confirm([ |
326 | - 'op' => 'del', |
|
327 | - 'categoryid' => $categoryObj->categoryid(), |
|
328 | - 'confirm' => 1, |
|
329 | - 'name' => $categoryObj->name() |
|
330 | - ], 'category.php', _AM_SF_DELETECOL . " '" . $categoryObj->name() . "'. <br> <br>" . _AM_SF_DELETE_CAT_CONFIRM, _AM_SF_DELETE); |
|
326 | + 'op' => 'del', |
|
327 | + 'categoryid' => $categoryObj->categoryid(), |
|
328 | + 'confirm' => 1, |
|
329 | + 'name' => $categoryObj->name() |
|
330 | + ], 'category.php', _AM_SF_DELETECOL . " '" . $categoryObj->name() . "'. <br> <br>" . _AM_SF_DELETE_CAT_CONFIRM, _AM_SF_DELETE); |
|
331 | 331 | xoops_cp_footer(); |
332 | 332 | } |
333 | 333 | exit(); |
@@ -293,11 +293,11 @@ |
||
293 | 293 | $faqid = \Xmf\Request::getInt('faqid', 0, 'GET'); |
294 | 294 | xoops_cp_header(); |
295 | 295 | xoops_confirm([ |
296 | - 'op' => 'del', |
|
297 | - 'faqid' => $faqObj->faqid(), |
|
298 | - 'confirm' => 1, |
|
299 | - 'name' => $faqObj->question() |
|
300 | - ], 'question.php', _AM_SF_DELETETHISQUESTION . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
296 | + 'op' => 'del', |
|
297 | + 'faqid' => $faqObj->faqid(), |
|
298 | + 'confirm' => 1, |
|
299 | + 'name' => $faqObj->question() |
|
300 | + ], 'question.php', _AM_SF_DELETETHISQUESTION . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
301 | 301 | xoops_cp_footer(); |
302 | 302 | } |
303 | 303 |