@@ -110,18 +110,18 @@ |
||
110 | 110 | foreach ($proposed_answers as $proposed_answer) { |
111 | 111 | if ($faqObj->status() == _SF_STATUS_NEW_ANSWER) { |
112 | 112 | $merge = "<a href='faq.php?op=merge&faqid=" |
113 | - . $faqObj->faqid() |
|
114 | - . '&answerid=' |
|
115 | - . $proposed_answer->answerid() |
|
116 | - . "'><img src='" |
|
117 | - . XOOPS_URL |
|
118 | - . '/modules/' |
|
119 | - . $xoopsModule->dirname() |
|
120 | - . "/assets/images/icon/merge.gif' title='" |
|
121 | - . _AM_SF_FAQ_MERGE |
|
122 | - . "' alt='" |
|
123 | - . _AM_SF_FAQ_MERGE |
|
124 | - . "'></a> "; |
|
113 | + . $faqObj->faqid() |
|
114 | + . '&answerid=' |
|
115 | + . $proposed_answer->answerid() |
|
116 | + . "'><img src='" |
|
117 | + . XOOPS_URL |
|
118 | + . '/modules/' |
|
119 | + . $xoopsModule->dirname() |
|
120 | + . "/assets/images/icon/merge.gif' title='" |
|
121 | + . _AM_SF_FAQ_MERGE |
|
122 | + . "' alt='" |
|
123 | + . _AM_SF_FAQ_MERGE |
|
124 | + . "'></a> "; |
|
125 | 125 | $approve = "<a href='answer.php?op=selectanswer&faqid=" . $faqid . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/on.png' . "' title='" . _AM_SF_FAQ_APPROVE_NEW_ANSWER . "' alt='" . _AM_SF_APPROVESUB . "'></a>"; |
126 | 126 | } |
127 | 127 | $modify = "<a href='faq.php?op=mod&faqid=" . $faqObj->faqid() . '&answerid=' . $proposed_answer->answerid() . "'><img src='" . $pathIcon16 . '/edit.png' . "' title='" . _AM_SF_FAQ_REVIEW . "' alt='" . _AM_SF_FAQ_REVIEW . "'></a> "; |
@@ -171,22 +171,22 @@ discard block |
||
171 | 171 | </td> |
172 | 172 | <td class='$class' align='center' nowrap='nowrap'> |
173 | 173 | <input type='radio' name='side[$bid]' value='" |
174 | - . XOOPS_SIDEBLOCK_LEFT |
|
175 | - . "'$ssel0>-<input type='radio' name='side[$bid]' value='" |
|
176 | - . XOOPS_CENTERBLOCK_LEFT |
|
177 | - . "'$ssel2><input type='radio' name='side[$bid]' value='" |
|
178 | - . XOOPS_CENTERBLOCK_CENTER |
|
179 | - . "'$ssel3><input type='radio' name='side[$bid]' value='" |
|
180 | - . XOOPS_CENTERBLOCK_RIGHT |
|
181 | - . "'$ssel4>-<input type='radio' name='side[$bid]' value='" |
|
182 | - . XOOPS_SIDEBLOCK_RIGHT |
|
183 | - . "'$ssel1> |
|
174 | + . XOOPS_SIDEBLOCK_LEFT |
|
175 | + . "'$ssel0>-<input type='radio' name='side[$bid]' value='" |
|
176 | + . XOOPS_CENTERBLOCK_LEFT |
|
177 | + . "'$ssel2><input type='radio' name='side[$bid]' value='" |
|
178 | + . XOOPS_CENTERBLOCK_CENTER |
|
179 | + . "'$ssel3><input type='radio' name='side[$bid]' value='" |
|
180 | + . XOOPS_CENTERBLOCK_RIGHT |
|
181 | + . "'$ssel4>-<input type='radio' name='side[$bid]' value='" |
|
182 | + . XOOPS_SIDEBLOCK_RIGHT |
|
183 | + . "'$ssel1> |
|
184 | 184 | <br> |
185 | 185 | <br> |
186 | 186 | <input type='radio' name='side[$bid]' value='-1'$sseln> |
187 | 187 | " |
188 | - . _NONE |
|
189 | - . " |
|
188 | + . _NONE |
|
189 | + . " |
|
190 | 190 | </td> |
191 | 191 | <td class='$class' align='center'> |
192 | 192 | <input type='text' name=weight[$bid] value='$weight' size='5' maxlength='5' style='text-align:right;'> |
@@ -203,8 +203,8 @@ discard block |
||
203 | 203 | </td> |
204 | 204 | <td class='$class' align='center'> |
205 | 205 | <a href='admin.php?fct=blocksadmin&op=edit&bid=$bid'>" |
206 | - . _EDIT |
|
207 | - . "</a> |
|
206 | + . _EDIT |
|
207 | + . "</a> |
|
208 | 208 | <input type='hidden' name='bid[$bid]' value='$bid'> |
209 | 209 | </td> |
210 | 210 | </tr>\n"; |
@@ -237,14 +237,14 @@ discard block |
||
237 | 237 | } |
238 | 238 | |
239 | 239 | $form = new MyXoopsGroupPermForm('', 1, 'block_read', "<img id='bottomtableicon' src=" |
240 | - . XOOPS_URL |
|
241 | - . '/modules/' |
|
242 | - . $xoopsModule->dirname() |
|
243 | - . "/assets/images/icon/close12.gif alt=''></a> " |
|
244 | - . _AM_SF_GROUPS |
|
245 | - . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
246 | - . _AM_SF_GROUPSINFO |
|
247 | - . '</span>'); |
|
240 | + . XOOPS_URL |
|
241 | + . '/modules/' |
|
242 | + . $xoopsModule->dirname() |
|
243 | + . "/assets/images/icon/close12.gif alt=''></a> " |
|
244 | + . _AM_SF_GROUPS |
|
245 | + . "</h3><div id='bottomtable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
246 | + . _AM_SF_GROUPSINFO |
|
247 | + . '</span>'); |
|
248 | 248 | $form->addAppendix('module_admin', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACTIVERIGHTS); |
249 | 249 | $form->addAppendix('module_read', $xoopsModule->mid(), $xoopsModule->name() . ' ' . _AM_ACCESSRIGHTS); |
250 | 250 | foreach ($item_list as $item_id => $item_name) { |
@@ -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']) |
|
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']) |
|
395 | + . "\"><br>\n"; |
|
396 | 396 | if (isset($option['children'])) { |
397 | 397 | foreach ($option['children'] as $child) { |
398 | 398 | array_push($parentIds, $option['id']); |
@@ -59,14 +59,14 @@ |
||
59 | 59 | echo $form_view->render(); |
60 | 60 | } else { |
61 | 61 | echo "<img id='toptableicon' src=" |
62 | - . XOOPS_URL |
|
63 | - . '/modules/' |
|
64 | - . $xoopsModule->dirname() |
|
65 | - . "/assets/images/icon/close12.gif alt=''></a> " |
|
66 | - . _AM_SF_PERMISSIONSVIEWMAN |
|
67 | - . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
68 | - . _AM_SF_NOPERMSSET |
|
69 | - . '</span>'; |
|
62 | + . XOOPS_URL |
|
63 | + . '/modules/' |
|
64 | + . $xoopsModule->dirname() |
|
65 | + . "/assets/images/icon/close12.gif alt=''></a> " |
|
66 | + . _AM_SF_PERMISSIONSVIEWMAN |
|
67 | + . "</h3><div id='toptable'><span style=\"color: #567; margin: 3px 0 0 0; font-size: small; display: block; \">" |
|
68 | + . _AM_SF_NOPERMSSET |
|
69 | + . '</span>'; |
|
70 | 70 | } |
71 | 71 | echo '</div>'; |
72 | 72 |
@@ -70,18 +70,18 @@ |
||
70 | 70 | $myblock->setVar('title', $myts->stripSlashesGPC($btitle)); |
71 | 71 | $myblock->setVar('content', $myts->stripSlashesGPC($bcontent)); |
72 | 72 | $dummyhtml = '<html><head><meta http-equiv="content-type" content="text/html; charset=' |
73 | - . _CHARSET |
|
74 | - . '"><meta http-equiv="content-language" content="' |
|
75 | - . _LANGCODE |
|
76 | - . '"><title>' |
|
77 | - . $xoopsConfig['sitename'] |
|
78 | - . '</title><link rel="stylesheet" type="text/css" media="all" href="' |
|
79 | - . getcss($xoopsConfig['theme_set']) |
|
80 | - . '"></head><body><table><tr><th>' |
|
81 | - . $myblock->getVar('title') |
|
82 | - . '</th></tr><tr><td>' |
|
83 | - . $myblock->getContent('S', $bctype) |
|
84 | - . '</td></tr></table></body></html>'; |
|
73 | + . _CHARSET |
|
74 | + . '"><meta http-equiv="content-language" content="' |
|
75 | + . _LANGCODE |
|
76 | + . '"><title>' |
|
77 | + . $xoopsConfig['sitename'] |
|
78 | + . '</title><link rel="stylesheet" type="text/css" media="all" href="' |
|
79 | + . getcss($xoopsConfig['theme_set']) |
|
80 | + . '"></head><body><table><tr><th>' |
|
81 | + . $myblock->getVar('title') |
|
82 | + . '</th></tr><tr><td>' |
|
83 | + . $myblock->getContent('S', $bctype) |
|
84 | + . '</td></tr></table></body></html>'; |
|
85 | 85 | |
86 | 86 | $dummyfile = '_dummyfile_' . time() . '.html'; |
87 | 87 | $fp = fopen(XOOPS_CACHE_PATH . '/' . $dummyfile, 'w'); |
@@ -116,13 +116,13 @@ |
||
116 | 116 | // Language constants |
117 | 117 | $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
118 | 118 | $xoopsTpl->assign([ |
119 | - 'lang_on' => _MD_SF_ON, |
|
120 | - 'lang_postedby' => _MD_SF_POSTEDBY, |
|
121 | - 'lang_total' => $totalQnasOnPage, |
|
122 | - 'lang_faq' => _MD_SF_FAQ, |
|
123 | - 'lang_datesub' => _MD_SF_DATESUB, |
|
124 | - 'lang_hits' => _MD_SF_HITS |
|
125 | - ]); |
|
119 | + 'lang_on' => _MD_SF_ON, |
|
120 | + 'lang_postedby' => _MD_SF_POSTEDBY, |
|
121 | + 'lang_total' => $totalQnasOnPage, |
|
122 | + 'lang_faq' => _MD_SF_FAQ, |
|
123 | + 'lang_datesub' => _MD_SF_DATESUB, |
|
124 | + 'lang_hits' => _MD_SF_HITS |
|
125 | + ]); |
|
126 | 126 | |
127 | 127 | $moduleName =& $myts->displayTarea($xoopsModule->getVar('name')); |
128 | 128 | $xoopsTpl->assign('lang_mainhead', sprintf(_MD_SF_OPEN_WELCOME, $xoopsConfig['sitename'])); |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | $sql = sprintf( |
337 | 337 | 'INSERT INTO %s (categoryid, parentid, name, description, total, weight, created) VALUES (NULL, %u, %s, %s, %u, %u, %u)', |
338 | 338 | $this->db->prefix('smartfaq_categories'), |
339 | - $parentid, |
|
339 | + $parentid, |
|
340 | 340 | $this->db->quoteString($name), |
341 | 341 | $this->db->quoteString($description), |
342 | 342 | $total, |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | 'UPDATE %s SET parentid = %u, name = %s, description = %s, total = %s, weight = %u, created = %u WHERE categoryid = %u', |
349 | 349 | $this->db->prefix('smartfaq_categories'), |
350 | 350 | $parentid, |
351 | - $this->db->quoteString($name), |
|
351 | + $this->db->quoteString($name), |
|
352 | 352 | $this->db->quoteString($description), |
353 | 353 | $total, |
354 | 354 | $weight, |
@@ -769,7 +769,7 @@ discard block |
||
769 | 769 | if ($faq->isNew()) { |
770 | 770 | $sql = sprintf( |
771 | 771 | '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)', |
772 | - $this->db->prefix('smartfaq_faq'), |
|
772 | + $this->db->prefix('smartfaq_faq'), |
|
773 | 773 | $categoryid, |
774 | 774 | $this->db->quoteString($question), |
775 | 775 | $this->db->quoteString($howdoi), |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | $cancomment, |
786 | 786 | $comments, |
787 | 787 | $notifypub, |
788 | - $this->db->quoteString($modulelink), |
|
788 | + $this->db->quoteString($modulelink), |
|
789 | 789 | $this->db->quoteString($contextpage), |
790 | 790 | $exacturl, |
791 | 791 | $partialview |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | } else { |
794 | 794 | $sql = sprintf( |
795 | 795 | 'UPDATE "%s" SET categoryid = "%u", question = "%s", howdoi = "%s", diduno = "%s", uid = "%u", datesub = "%u", `status` = "%u", counter = "%u", weight = "%u", html = "%u", smiley = "%u", xcodes = "%u", cancomment = "%u", comments = "%u", notifypub = "%u", modulelink = "%s", contextpage = "%s", exacturl = "%u", partialview = "%u" WHERE faqid = "%u"', |
796 | - $this->db->prefix('smartfaq_faq'), |
|
796 | + $this->db->prefix('smartfaq_faq'), |
|
797 | 797 | $categoryid, |
798 | 798 | $this->db->quoteString($question), |
799 | 799 | $this->db->quoteString($howdoi), |
@@ -809,7 +809,7 @@ discard block |
||
809 | 809 | $cancomment, |
810 | 810 | $comments, |
811 | 811 | $notifypub, |
812 | - $this->db->quoteString($modulelink), |
|
812 | + $this->db->quoteString($modulelink), |
|
813 | 813 | $this->db->quoteString($contextpage), |
814 | 814 | $exacturl, |
815 | 815 | $partialview, |
@@ -15,12 +15,12 @@ |
||
15 | 15 | $xoopsTpl->assign('isAdmin', $isAdmin); |
16 | 16 | |
17 | 17 | $xoopsTpl->assign([ |
18 | - 'lang_on' => _MD_SF_ON, |
|
19 | - 'lang_postedby' => _MD_SF_POSTEDBY, |
|
20 | - 'lang_faq' => _MD_SF_QUESTION, |
|
21 | - 'lang_datesub' => _MD_SF_DATESUB, |
|
22 | - 'lang_hits' => _MD_SF_HITS |
|
23 | - ]); |
|
18 | + 'lang_on' => _MD_SF_ON, |
|
19 | + 'lang_postedby' => _MD_SF_POSTEDBY, |
|
20 | + 'lang_faq' => _MD_SF_QUESTION, |
|
21 | + 'lang_datesub' => _MD_SF_DATESUB, |
|
22 | + 'lang_hits' => _MD_SF_HITS |
|
23 | + ]); |
|
24 | 24 | $xoopsTpl->assign('sectionname', $myts->displayTarea($xoopsModule->getVar('name'))); |
25 | 25 | |
26 | 26 | $xoopsTpl->assign('modulename', $xoopsModule->dirname()); |