| @@ 115-120 (lines=6) @@ | ||
| 112 | $helper = Helper::getInstance(); |
|
| 113 | $module = $helper->getModule(); |
|
| 114 | ||
| 115 | if (Utility::checkVerXoops($module, '2.5.9')) { |
|
| 116 | $mytree_select = $mytree->makeSelectElement('pid', 'title', '--', $this->getVar('pid'), true, 0, '', _AM_INSTRUCTION_PCATC); |
|
| 117 | $form->addElement($mytree_select); |
|
| 118 | } else { |
|
| 119 | $form->addElement(new \XoopsFormLabel(_AM_INSTRUCTION_PCATC, $mytree->makeSelBox('pid', 'title', '--', $this->getVar('pid'), true))); |
|
| 120 | } |
|
| 121 | ||
| 122 | // Вес |
|
| 123 | $form->addElement(new \XoopsFormText(_AM_INSTRUCTION_WEIGHTC, 'weight', 5, 5, $this->getVar('weight')), true); |
|
| @@ 84-89 (lines=6) @@ | ||
| 81 | $helper = Helper::getInstance(); |
|
| 82 | $module = $helper->getModule(); |
|
| 83 | ||
| 84 | if (Utility::checkVerXoops($module, '2.5.9')) { |
|
| 85 | $mytree_select = $mytree->makeSelectElement('cid', 'title', '--', $this->getVar('cid'), true, 0, '', _AM_INSTRUCTION_CATC); |
|
| 86 | $form->addElement($mytree_select); |
|
| 87 | } else { |
|
| 88 | $form->addElement(new \XoopsFormLabel(_AM_INSTRUCTION_CATC, $mytree->makeSelBox('cid', 'title', '--', $this->getVar('cid'), true))); |
|
| 89 | } |
|
| 90 | ||
| 91 | // Описание |
|
| 92 | $form->addElement(Utility::getWysiwygForm(_AM_INSTRUCTION_DESCRIPTIONC, 'description', $this->getVar('description', 'e')), true); |
|
| @@ 99-104 (lines=6) @@ | ||
| 96 | $helper = Helper::getInstance(); |
|
| 97 | $module = $helper->getModule(); |
|
| 98 | ||
| 99 | if (Utility::checkVerXoops($module, '2.5.9')) { |
|
| 100 | $mytree_select = $mytree->makeSelectElement('pid', 'title', '--', $this->getVar('pid'), true, 0, '', _AM_INSTRUCTION_PPAGEC); |
|
| 101 | $form->addElement($mytree_select); |
|
| 102 | } else { |
|
| 103 | $form->addElement(new \XoopsFormLabel(_AM_INSTRUCTION_PPAGEC, $mytree->makeSelBox('pid', 'title', '--', $this->getVar('pid'), true))); |
|
| 104 | } |
|
| 105 | ||
| 106 | // Вес |
|
| 107 | $form->addElement(new \XoopsFormText(_AM_INSTRUCTION_WEIGHTC, 'weight', 5, 5, $this->getVar('weight')), true); |
|