@@ -111,55 +111,55 @@ |
||
111 | 111 | foreach ($proposed_answers as $proposed_answer) { |
112 | 112 | if ($faqObj->status() == _SF_STATUS_NEW_ANSWER) { |
113 | 113 | $merge = "<a href='faq.php?op=merge&faqid=" |
114 | - . $faqObj->faqid() |
|
115 | - . '&answerid=' |
|
116 | - . $proposed_answer->answerid() |
|
117 | - . "'><img src='" |
|
118 | - . XOOPS_URL |
|
119 | - . '/modules/' |
|
120 | - . $xoopsModule->dirname() |
|
121 | - . "/assets/images/icon/merge.gif' title='" |
|
122 | - . _AM_SF_FAQ_MERGE |
|
123 | - . "' alt='" |
|
124 | - . _AM_SF_FAQ_MERGE |
|
125 | - . "' /></a> "; |
|
114 | + . $faqObj->faqid() |
|
115 | + . '&answerid=' |
|
116 | + . $proposed_answer->answerid() |
|
117 | + . "'><img src='" |
|
118 | + . XOOPS_URL |
|
119 | + . '/modules/' |
|
120 | + . $xoopsModule->dirname() |
|
121 | + . "/assets/images/icon/merge.gif' title='" |
|
122 | + . _AM_SF_FAQ_MERGE |
|
123 | + . "' alt='" |
|
124 | + . _AM_SF_FAQ_MERGE |
|
125 | + . "' /></a> "; |
|
126 | 126 | $approve = "<a href='answer.php?op=selectanswer&faqid=" |
127 | - . $faqid |
|
128 | - . '&answerid=' |
|
129 | - . $proposed_answer->answerid() |
|
130 | - . "'><img src='" |
|
131 | - . $pathIcon16 |
|
132 | - . '/on.png' |
|
133 | - . "' title='" |
|
134 | - . _AM_SF_FAQ_APPROVE_NEW_ANSWER |
|
135 | - . "' alt='" |
|
136 | - . _AM_SF_APPROVESUB |
|
137 | - . "' /></a>"; |
|
127 | + . $faqid |
|
128 | + . '&answerid=' |
|
129 | + . $proposed_answer->answerid() |
|
130 | + . "'><img src='" |
|
131 | + . $pathIcon16 |
|
132 | + . '/on.png' |
|
133 | + . "' title='" |
|
134 | + . _AM_SF_FAQ_APPROVE_NEW_ANSWER |
|
135 | + . "' alt='" |
|
136 | + . _AM_SF_APPROVESUB |
|
137 | + . "' /></a>"; |
|
138 | 138 | } |
139 | 139 | $modify = "<a href='faq.php?op=mod&faqid=" |
140 | - . $faqObj->faqid() |
|
141 | - . '&answerid=' |
|
142 | - . $proposed_answer->answerid() |
|
143 | - . "'><img src='" |
|
144 | - . $pathIcon16 |
|
145 | - . '/edit.png' |
|
146 | - . "' title='" |
|
147 | - . _AM_SF_FAQ_REVIEW |
|
148 | - . "' alt='" |
|
149 | - . _AM_SF_FAQ_REVIEW |
|
150 | - . "' /></a> "; |
|
140 | + . $faqObj->faqid() |
|
141 | + . '&answerid=' |
|
142 | + . $proposed_answer->answerid() |
|
143 | + . "'><img src='" |
|
144 | + . $pathIcon16 |
|
145 | + . '/edit.png' |
|
146 | + . "' title='" |
|
147 | + . _AM_SF_FAQ_REVIEW |
|
148 | + . "' alt='" |
|
149 | + . _AM_SF_FAQ_REVIEW |
|
150 | + . "' /></a> "; |
|
151 | 151 | $delete = "<a href='answer.php?op=del&faqid=" |
152 | - . $faqObj->faqid() |
|
153 | - . '&answerid=' |
|
154 | - . $proposed_answer->answerid() |
|
155 | - . "'><img src='" |
|
156 | - . $pathIcon16 |
|
157 | - . '/delete.png' |
|
158 | - . "' title='" |
|
159 | - . _AM_SF_DELETESUBM |
|
160 | - . "' alt='" |
|
161 | - . _AM_SF_DELETESUBM |
|
162 | - . "' /></a>"; |
|
152 | + . $faqObj->faqid() |
|
153 | + . '&answerid=' |
|
154 | + . $proposed_answer->answerid() |
|
155 | + . "'><img src='" |
|
156 | + . $pathIcon16 |
|
157 | + . '/delete.png' |
|
158 | + . "' title='" |
|
159 | + . _AM_SF_DELETESUBM |
|
160 | + . "' alt='" |
|
161 | + . _AM_SF_DELETESUBM |
|
162 | + . "' /></a>"; |
|
163 | 163 | echo '<tr>'; |
164 | 164 | echo "<td class='head' align='center'>" . $proposed_answer->answerid() . '</td>'; |
165 | 165 | echo "<td class='even' align='left'>" . $proposed_answer->answer() . '</td>'; |
@@ -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) { |
@@ -57,8 +57,8 @@ |
||
57 | 57 | extract($arrQ, EXTR_PREFIX_ALL, 'q'); |
58 | 58 | |
59 | 59 | echo " <qandaentry ID=\"q$q_faqid\" Revision=\"$q_datesub\" Condition=\"$q_html $q_smiley $q_xcodes\" XrefLabel=\"$q_modulelink $q_contextpage\" Vendor=\"" |
60 | - . getUserFullName($q_uid) |
|
61 | - . "\">\r\n"; |
|
60 | + . getUserFullName($q_uid) |
|
61 | + . "\">\r\n"; |
|
62 | 62 | echo " <question>\r\n"; |
63 | 63 | echo ' <para>' . encodeText($q_question) . "</para>\r\n"; |
64 | 64 | if (!empty($q_howdoi)) { |
@@ -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 |
@@ -192,16 +192,16 @@ discard block |
||
192 | 192 | |
193 | 193 | $ret = '<h4>' . $this->getTitle() . '</h4>' . $this->_permDesc . '<br>'; |
194 | 194 | $ret .= "<form name='" |
195 | - . $this->getName() |
|
196 | - . "' id='" |
|
197 | - . $this->getName() |
|
198 | - . "' action='" |
|
199 | - . $this->getAction() |
|
200 | - . "' method='" |
|
201 | - . $this->getMethod() |
|
202 | - . "'" |
|
203 | - . $this->getExtra() |
|
204 | - . ">\n<table width='100%' class='outer' cellspacing='1'>\n"; |
|
195 | + . $this->getName() |
|
196 | + . "' id='" |
|
197 | + . $this->getName() |
|
198 | + . "' action='" |
|
199 | + . $this->getAction() |
|
200 | + . "' method='" |
|
201 | + . $this->getMethod() |
|
202 | + . "'" |
|
203 | + . $this->getExtra() |
|
204 | + . ">\n<table width='100%' class='outer' cellspacing='1'>\n"; |
|
205 | 205 | $elements =& $this->getElements(); |
206 | 206 | foreach (array_keys($elements) as $i) { |
207 | 207 | if (!is_object($elements[$i])) { |
@@ -369,19 +369,19 @@ discard block |
||
369 | 369 | private function renderOptionTree(&$tree, $option, $prefix, $parentIds = array()) |
370 | 370 | { |
371 | 371 | $tree .= $prefix |
372 | - . '<input type="checkbox" name="' |
|
373 | - . $this->getName() |
|
374 | - . '[groups][' |
|
375 | - . $this->_groupId |
|
376 | - . '][' |
|
377 | - . $option['id'] |
|
378 | - . ']" id="' |
|
379 | - . $this->getName() |
|
380 | - . '[groups][' |
|
381 | - . $this->_groupId |
|
382 | - . '][' |
|
383 | - . $option['id'] |
|
384 | - . ']" onclick="'; |
|
372 | + . '<input type="checkbox" name="' |
|
373 | + . $this->getName() |
|
374 | + . '[groups][' |
|
375 | + . $this->_groupId |
|
376 | + . '][' |
|
377 | + . $option['id'] |
|
378 | + . ']" id="' |
|
379 | + . $this->getName() |
|
380 | + . '[groups][' |
|
381 | + . $this->_groupId |
|
382 | + . '][' |
|
383 | + . $option['id'] |
|
384 | + . ']" onclick="'; |
|
385 | 385 | // If there are parent elements, add javascript that will |
386 | 386 | // make them selecteded when this element is checked to make |
387 | 387 | // sure permissions to parent items are added as well. |
@@ -402,20 +402,20 @@ discard block |
||
402 | 402 | $tree .= ' checked'; |
403 | 403 | } |
404 | 404 | $tree .= ' />' |
405 | - . $option['name'] |
|
406 | - . '<input type="hidden" name="' |
|
407 | - . $this->getName() |
|
408 | - . '[parents][' |
|
409 | - . $option['id'] |
|
410 | - . ']" value="' |
|
411 | - . implode(':', $parentIds) |
|
412 | - . '" /><input type="hidden" name="' |
|
413 | - . $this->getName() |
|
414 | - . '[itemname][' |
|
415 | - . $option['id'] |
|
416 | - . ']" value="' |
|
417 | - . htmlspecialchars($option['name']) |
|
418 | - . "\" /><br>\n"; |
|
405 | + . $option['name'] |
|
406 | + . '<input type="hidden" name="' |
|
407 | + . $this->getName() |
|
408 | + . '[parents][' |
|
409 | + . $option['id'] |
|
410 | + . ']" value="' |
|
411 | + . implode(':', $parentIds) |
|
412 | + . '" /><input type="hidden" name="' |
|
413 | + . $this->getName() |
|
414 | + . '[itemname][' |
|
415 | + . $option['id'] |
|
416 | + . ']" value="' |
|
417 | + . htmlspecialchars($option['name']) |
|
418 | + . "\" /><br>\n"; |
|
419 | 419 | if (isset($option['children'])) { |
420 | 420 | foreach ($option['children'] as $child) { |
421 | 421 | array_push($parentIds, $option['id']); |
@@ -284,11 +284,11 @@ discard block |
||
284 | 284 | $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
285 | 285 | xoops_cp_header(); |
286 | 286 | xoops_confirm(array( |
287 | - 'op' => 'del', |
|
288 | - 'faqid' => $faqObj->faqid(), |
|
289 | - 'confirm' => 1, |
|
290 | - 'name' => $faqObj->question() |
|
291 | - ), 'question.php', _AM_SF_DELETETHISQUESTION . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
287 | + 'op' => 'del', |
|
288 | + 'faqid' => $faqObj->faqid(), |
|
289 | + 'confirm' => 1, |
|
290 | + 'name' => $faqObj->question() |
|
291 | + ), 'question.php', _AM_SF_DELETETHISQUESTION . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
292 | 292 | xoops_cp_footer(); |
293 | 293 | } |
294 | 294 | |
@@ -338,25 +338,25 @@ discard block |
||
338 | 338 | $categoryObj = $allCats[$faqsObj[$i]->categoryid()]; |
339 | 339 | |
340 | 340 | $modify = "<a href='question.php?op=mod&faqid=" |
341 | - . $faqsObj[$i]->faqid() |
|
342 | - . "'><img src='" |
|
343 | - . $pathIcon16 |
|
344 | - . '/edit.png' |
|
345 | - . "' title='" |
|
346 | - . _AM_SF_EDITART |
|
347 | - . "' alt='" |
|
348 | - . _AM_SF_EDITART |
|
349 | - . "'></a>"; |
|
341 | + . $faqsObj[$i]->faqid() |
|
342 | + . "'><img src='" |
|
343 | + . $pathIcon16 |
|
344 | + . '/edit.png' |
|
345 | + . "' title='" |
|
346 | + . _AM_SF_EDITART |
|
347 | + . "' alt='" |
|
348 | + . _AM_SF_EDITART |
|
349 | + . "'></a>"; |
|
350 | 350 | $delete = "<a href='question.php?op=del&faqid=" |
351 | - . $faqsObj[$i]->faqid() |
|
352 | - . "'><img src='" |
|
353 | - . $pathIcon16 |
|
354 | - . '/delete.png' |
|
355 | - . "' title='" |
|
356 | - . _AM_SF_DELETEART |
|
357 | - . "' alt='" |
|
358 | - . _AM_SF_DELETEART |
|
359 | - . "'></a>"; |
|
351 | + . $faqsObj[$i]->faqid() |
|
352 | + . "'><img src='" |
|
353 | + . $pathIcon16 |
|
354 | + . '/delete.png' |
|
355 | + . "' title='" |
|
356 | + . _AM_SF_DELETEART |
|
357 | + . "' alt='" |
|
358 | + . _AM_SF_DELETEART |
|
359 | + . "'></a>"; |
|
360 | 360 | |
361 | 361 | $requester = sf_getLinkedUnameFromId($faqsObj[$i]->uid(), $smartModuleConfig['userealname']); |
362 | 362 | |
@@ -364,14 +364,14 @@ discard block |
||
364 | 364 | echo "<td class='head' align='center'>" . $faqsObj[$i]->faqid() . '</td>'; |
365 | 365 | echo "<td class='even' align='left'>" . $categoryObj->name() . '</td>'; |
366 | 366 | echo "<td class='even' align='left'><a href='" |
367 | - . XOOPS_URL |
|
368 | - . '/modules/' |
|
369 | - . $xoopsModule->dirname() |
|
370 | - . '/answer.php?faqid=' |
|
371 | - . $faqsObj[$i]->faqid() |
|
372 | - . "'>" |
|
373 | - . $faqsObj[$i]->question(100) |
|
374 | - . '</a></td>'; |
|
367 | + . XOOPS_URL |
|
368 | + . '/modules/' |
|
369 | + . $xoopsModule->dirname() |
|
370 | + . '/answer.php?faqid=' |
|
371 | + . $faqsObj[$i]->faqid() |
|
372 | + . "'>" |
|
373 | + . $faqsObj[$i]->question(100) |
|
374 | + . '</a></td>'; |
|
375 | 375 | |
376 | 376 | echo "<td class='even' align='center'>" . $requester . '</td>'; |
377 | 377 |
@@ -19,12 +19,12 @@ |
||
19 | 19 | |
20 | 20 | $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32); |
21 | 21 | echo "<div class='adminfooter'>\n" |
22 | - . " <div style='text-align: center;'>\n" |
|
23 | - . " <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
24 | - . " </div>\n" |
|
25 | - . ' ' |
|
26 | - . _AM_MODULEADMIN_ADMIN_FOOTER |
|
27 | - . "\n" |
|
28 | - . '</div>'; |
|
22 | + . " <div style='text-align: center;'>\n" |
|
23 | + . " <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" |
|
24 | + . " </div>\n" |
|
25 | + . ' ' |
|
26 | + . _AM_MODULEADMIN_ADMIN_FOOTER |
|
27 | + . "\n" |
|
28 | + . '</div>'; |
|
29 | 29 | |
30 | 30 | xoops_cp_footer(); |
@@ -549,11 +549,11 @@ |
||
549 | 549 | $faqid = isset($_GET['faqid']) ? (int)$_GET['faqid'] : 0; |
550 | 550 | xoops_cp_header(); |
551 | 551 | xoops_confirm(array( |
552 | - 'op' => 'del', |
|
553 | - 'faqid' => $faqObj->faqid(), |
|
554 | - 'confirm' => 1, |
|
555 | - 'name' => $faqObj->question() |
|
556 | - ), 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
552 | + 'op' => 'del', |
|
553 | + 'faqid' => $faqObj->faqid(), |
|
554 | + 'confirm' => 1, |
|
555 | + 'name' => $faqObj->question() |
|
556 | + ), 'faq.php', _AM_SF_DELETETHISARTICLE . " <br>'" . $faqObj->question() . "'. <br> <br>", _AM_SF_DELETE); |
|
557 | 557 | xoops_cp_footer(); |
558 | 558 | } |
559 | 559 |
@@ -82,15 +82,15 @@ |
||
82 | 82 | |
83 | 83 | $xoopsTpl->assign('xcodes', $faqObj->getVar('xcodes')); |
84 | 84 | $xoopsTpl->assign('mail_link', 'mailto:?subject=' |
85 | - . sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']) |
|
86 | - . '&body=' |
|
87 | - . sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']) |
|
88 | - . ': ' |
|
89 | - . XOOPS_URL |
|
90 | - . '/modules/' |
|
91 | - . $xoopsModule->dirname() |
|
92 | - . '/faq.php?faqid=' |
|
93 | - . $faqObj->getVar('faqid')); |
|
85 | + . sprintf(_MD_SF_INTARTICLE, $xoopsConfig['sitename']) |
|
86 | + . '&body=' |
|
87 | + . sprintf(_MD_SF_INTARTFOUND, $xoopsConfig['sitename']) |
|
88 | + . ': ' |
|
89 | + . XOOPS_URL |
|
90 | + . '/modules/' |
|
91 | + . $xoopsModule->dirname() |
|
92 | + . '/faq.php?faqid=' |
|
93 | + . $faqObj->getVar('faqid')); |
|
94 | 94 | $xoopsTpl->assign('lang_printerpage', _MD_SF_PRINTERFRIENDLY); |
95 | 95 | $xoopsTpl->assign('lang_sendstory', _MD_SF_SENDSTORY); |
96 | 96 | $xoopsTpl->assign('faqid', $faqObj->getVar('faqid')); |