@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | // Просмотре без кэша |
77 | 77 | $ret .= ' <a href="' . XOOPS_URL . '/modules/' . INST_DIRNAME . '/page.php?id=' . $pageid . '&nocache=1"><img src="../assets/images/icons/16/database_black.png" alt="' . _AM_INSTR_DISPLAY_NOCACHE . '" title="' . _AM_INSTR_DISPLAY_NOCACHE . '" /></a> '; |
78 | 78 | // Добавить подстраницу |
79 | - $ret .= ' <a href="instr.php?op=editpage&instrid=' . $instrid . '&pid=' . $pageid . '"><img src="'. $pathIcon16 . '/add.png" alt="' . _AM_INSTRUCTION_ADDSUBPAGE . '" title="' . _AM_INSTRUCTION_ADDSUBPAGE . '" /></a> '; |
|
79 | + $ret .= ' <a href="instr.php?op=editpage&instrid=' . $instrid . '&pid=' . $pageid . '"><img src="' . $pathIcon16 . '/add.png" alt="' . _AM_INSTRUCTION_ADDSUBPAGE . '" title="' . _AM_INSTRUCTION_ADDSUBPAGE . '" /></a> '; |
|
80 | 80 | |
81 | 81 | if ($pagestatus) { |
82 | 82 | $ret .= ' <img src="../assets/images/icons/16/lock.png" alt="' . _AM_INSTRUCTION_LOCK . '" title="' . _AM_INSTRUCTION_LOCK . '"> '; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $ret .= ' <img src="../assets/images/icons/16/lock_open.png" alt="' . _AM_INSTRUCTION_UNLOCK . '" title="' . _AM_INSTRUCTION_UNLOCK . '"> '; |
85 | 85 | } |
86 | 86 | |
87 | - $ret .= ' <a href="instr.php?op=editpage&pageid=' . $pageid . '"><img src="'. $pathIcon16 . '/edit.png" alt="' . _AM_INSTRUCTION_EDIT . '" title="' . _AM_INSTRUCTION_EDIT . '"></a> ' . $act_del . ' |
|
87 | + $ret .= ' <a href="instr.php?op=editpage&pageid=' . $pageid . '"><img src="' . $pathIcon16 . '/edit.png" alt="' . _AM_INSTRUCTION_EDIT . '" title="' . _AM_INSTRUCTION_EDIT . '"></a> ' . $act_del . ' |
|
88 | 88 | </td> |
89 | 89 | </tr>'; |
90 | 90 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $prefix_curr .= $prefix_orig; |
93 | 93 | } |
94 | 94 | |
95 | - if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) { |
|
95 | + if (isset($this->tree[$key]['child']) && ! empty($this->tree[$key]['child'])) { |
|
96 | 96 | foreach ($this->tree[$key]['child'] as $childkey) { |
97 | 97 | $this->_makePagesAdminOptions($childkey, $ret, $prefix_orig, $objInsinstr, $class, $prefix_curr); |
98 | 98 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $this->_makePagesAdminOptions($key, $ret, $prefix, $objInsinstr); |
123 | 123 | |
124 | 124 | $ret .= '<tr class="foot"> |
125 | - <td><a href="instr.php?op=editpage&instrid=' . $objInsinstr->getVar('instrid') . '"><img src="'. $pathIcon16 . '/add.png" alt="' . _AM_INSTRUCTION_ADDPAGE . '" title="' . _AM_INSTRUCTION_ADDPAGE . '"></a></td> |
|
125 | + <td><a href="instr.php?op=editpage&instrid=' . $objInsinstr->getVar('instrid') . '"><img src="' . $pathIcon16 . '/add.png" alt="' . _AM_INSTRUCTION_ADDPAGE . '" title="' . _AM_INSTRUCTION_ADDPAGE . '"></a></td> |
|
126 | 126 | <td colspan="2"> |
127 | 127 | <input type="hidden" name="instrid" value="' . $objInsinstr->getVar('instrid') . '" /> |
128 | 128 | <input type="hidden" name="op" value="updpage" /> |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function _makeCatsAdminOptions($key, &$ret, $prefix_orig, $cidinstrids = [], &$class = 'odd', $prefix_curr = '') |
151 | 151 | { |
152 | - $pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16); |
|
152 | + $pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16); |
|
153 | 153 | if ($key > 0) { |
154 | 154 | |
155 | 155 | // |
@@ -172,15 +172,15 @@ discard block |
||
172 | 172 | $num_instrs = isset($cidinstrids[$catid]) ? $cidinstrids[$catid] : 0; |
173 | 173 | |
174 | 174 | // Действие - удаление |
175 | - $act_del = (($num_instrs > 0) || ($num_childs > 0)) ? '<img src="'. $pathIcon16 . '/delete.png" alt="' . _AM_INSTR_NODELCAT . '" title="' . _AM_INSTR_NODELCAT . '" />' : '<a href="cat.php?op=delcat&cid=' |
|
175 | + $act_del = (($num_instrs > 0) || ($num_childs > 0)) ? '<img src="' . $pathIcon16 . '/delete.png" alt="' . _AM_INSTR_NODELCAT . '" title="' . _AM_INSTR_NODELCAT . '" />' : '<a href="cat.php?op=delcat&cid=' |
|
176 | 176 | . $catid |
177 | - . '"><img src="'. $pathIcon16 . '/delete.png" alt="' |
|
177 | + . '"><img src="' . $pathIcon16 . '/delete.png" alt="' |
|
178 | 178 | . _AM_INSTRUCTION_DEL |
179 | 179 | . '" title="' |
180 | 180 | . _AM_INSTRUCTION_DEL |
181 | 181 | . '" /></a>'; |
182 | 182 | // Действие - просмотр |
183 | - $act_view = ($num_instrs > 0) ? '<a href="instr.php?cid=' . $catid . '"><img src="'. $pathIcon16 . '/view.png" alt="' . _AM_INSTR_VIEWINSTR . '" title="' . _AM_INSTR_VIEWINSTR . '" /></a>' : '<img src="../assets/images/icons/16/document_protect.png" alt="' |
|
183 | + $act_view = ($num_instrs > 0) ? '<a href="instr.php?cid=' . $catid . '"><img src="' . $pathIcon16 . '/view.png" alt="' . _AM_INSTR_VIEWINSTR . '" title="' . _AM_INSTR_VIEWINSTR . '" /></a>' : '<img src="../assets/images/icons/16/document_protect.png" alt="' |
|
184 | 184 | . _AM_INSTR_NOVIEWINSTR |
185 | 185 | . '" title="' |
186 | 186 | . _AM_INSTR_NOVIEWINSTR |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | <td align="center" width="100">' . $num_instrs . '</td> |
193 | 193 | <td align="center" width="150"> |
194 | 194 | ' . $act_view . ' |
195 | - <a href="cat.php?op=editcat&cid=' . $catid . '"><img src="'. $pathIcon16 . '/edit.png" alt="' . _AM_INSTRUCTION_EDIT . '" title="' . _AM_INSTRUCTION_EDIT . '"></a> |
|
195 | + <a href="cat.php?op=editcat&cid=' . $catid . '"><img src="' . $pathIcon16 . '/edit.png" alt="' . _AM_INSTRUCTION_EDIT . '" title="' . _AM_INSTRUCTION_EDIT . '"></a> |
|
196 | 196 | ' . $act_del . ' |
197 | 197 | </td> |
198 | 198 | </tr>'; |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | $prefix_curr .= $prefix_orig; |
202 | 202 | } |
203 | 203 | |
204 | - if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) { |
|
204 | + if (isset($this->tree[$key]['child']) && ! empty($this->tree[$key]['child'])) { |
|
205 | 205 | foreach ($this->tree[$key]['child'] as $childkey) { |
206 | 206 | $this->_makeCatsAdminOptions($childkey, $ret, $prefix_orig, $cidinstrids, $class, $prefix_curr); |
207 | 207 | } |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | } |
332 | 332 | |
333 | 333 | // Рекурсия |
334 | - if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) { |
|
334 | + if (isset($this->tree[$key]['child']) && ! empty($this->tree[$key]['child'])) { |
|
335 | 335 | foreach ($this->tree[$key]['child'] as $childkey) { |
336 | 336 | $this->_makePagesUserTree($childkey, $ret, $currpageid, $lastpageids, $level); |
337 | 337 | } |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | } |
401 | 401 | |
402 | 402 | // Рекурсия |
403 | - if (isset($this->tree[$key]['child']) && !empty($this->tree[$key]['child'])) { |
|
403 | + if (isset($this->tree[$key]['child']) && ! empty($this->tree[$key]['child'])) { |
|
404 | 404 | foreach ($this->tree[$key]['child'] as $childkey) { |
405 | 405 | $this->_makePagesUserCalc($childkey, $currpageid, $prevpages, $nextpages, $lastpageids, $level); |
406 | 406 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | // Права на просмотр инструкции |
61 | 61 | $categories = Xoopsmodules\instruction\Utility::getItemIds(); |
62 | -if (!in_array($objInsinstr->getVar('cid'), $categories)) { |
|
62 | +if ( ! in_array($objInsinstr->getVar('cid'), $categories)) { |
|
63 | 63 | redirect_header(XOOPS_URL . '/modules/' . $moduleDirName . '/', 3, _NOPERM); |
64 | 64 | exit(); |
65 | 65 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | . $moduleDirName |
96 | 96 | . '/admin/instr.php?op=editpage&pageid=' |
97 | 97 | . $pages['pageid'] |
98 | - . '"><img style="width:16px;" src="'. $pathModIcon16 . '/assets/images/icons/16/edit.png" alt=' |
|
98 | + . '"><img style="width:16px;" src="' . $pathModIcon16 . '/assets/images/icons/16/edit.png" alt=' |
|
99 | 99 | . _EDIT |
100 | 100 | . ' title=' |
101 | 101 | . _EDIT |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $pages['adminlink'] = ' '; |
115 | 115 | // Если можно редактировать |
116 | 116 | if ($gpermHandler->checkRight($moduleDirName . '_edit', $objInsinstr->getVar('cid'), $groups, $GLOBALS['xoopsModule']->getVar('mid'))) { |
117 | - $pages['adminlink'] .= '<a href="' . XOOPS_URL . '/modules/' . $moduleDirName . '/submit.php?op=editpage&pageid=' . $pages['pageid'] . '"><img style="width:16px;" src="'. $pathIcon16 . '/edit.png" alt=' . _EDIT . ' title=' . _EDIT . '></a>'; |
|
117 | + $pages['adminlink'] .= '<a href="' . XOOPS_URL . '/modules/' . $moduleDirName . '/submit.php?op=editpage&pageid=' . $pages['pageid'] . '"><img style="width:16px;" src="' . $pathIcon16 . '/edit.png" alt=' . _EDIT . ' title=' . _EDIT . '></a>'; |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | $pages['adminlink'] .= ' '; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | // Права на просмотр инструкции |
43 | 43 | $categories = Xoopsmodules\instruction\Utility::getItemIds(); |
44 | -if (!in_array($objInsinstr->getVar('cid'), $categories)) { |
|
44 | +if ( ! in_array($objInsinstr->getVar('cid'), $categories)) { |
|
45 | 45 | redirect_header(XOOPS_URL . '/modules/' . $moduleDirName . '/', 3, _NOPERM); |
46 | 46 | exit(); |
47 | 47 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | . $moduleDirName |
63 | 63 | . '/admin/instr.php?op=editinstr&instrid=' |
64 | 64 | . $instrid |
65 | - . '"><img style="width:16px;" src="'. $pathIcon16 . '/edit.png" alt=' |
|
65 | + . '"><img style="width:16px;" src="' . $pathIcon16 . '/edit.png" alt=' |
|
66 | 66 | . _EDIT |
67 | 67 | . ' title=' |
68 | 68 | . _EDIT |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | . $moduleDirName |
73 | 73 | . '/admin/instr.php?op=delinstr&instrid=' |
74 | 74 | . $instrid |
75 | - . '"><img style="width:16px;" src="'. $pathIcon16 . '/delete.png" alt=' |
|
75 | + . '"><img style="width:16px;" src="' . $pathIcon16 . '/delete.png" alt=' |
|
76 | 76 | . _DELETE |
77 | 77 | . ' title=' |
78 | 78 | . _DELETE |