@@ 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); |
@@ 89-94 (lines=6) @@ | ||
86 | $helper = Helper::getInstance(); |
|
87 | $module = $helper->getModule(); |
|
88 | ||
89 | if (Utility::checkVerXoops($module, '2.5.9')) { |
|
90 | $mytree_select = $mytree->makeSelectElement('cid', 'title', '--', $this->getVar('cid'), true, 0, '', _AM_INSTRUCTION_CATC); |
|
91 | $form->addElement($mytree_select); |
|
92 | } else { |
|
93 | $form->addElement(new \XoopsFormLabel(_AM_INSTRUCTION_CATC, $mytree->makeSelBox('cid', 'title', '--', $this->getVar('cid'), true))); |
|
94 | } |
|
95 | ||
96 | // Описание |
|
97 | $form->addElement(Utility::getWysiwygForm(_AM_INSTRUCTION_DESCRIPTIONC, 'description', $this->getVar('description', 'e')), true); |
@@ 104-109 (lines=6) @@ | ||
101 | $helper = Helper::getInstance(); |
|
102 | $module = $helper->getModule(); |
|
103 | ||
104 | if (Utility::checkVerXoops($module, '2.5.9')) { |
|
105 | $mytree_select = $mytree->makeSelectElement('pid', 'title', '--', $this->getVar('pid'), true, 0, '', _AM_INSTRUCTION_PPAGEC); |
|
106 | $form->addElement($mytree_select); |
|
107 | } else { |
|
108 | $form->addElement(new \XoopsFormLabel(_AM_INSTRUCTION_PPAGEC, $mytree->makeSelBox('pid', 'title', '--', $this->getVar('pid'), true))); |
|
109 | } |
|
110 | ||
111 | // Вес |
|
112 | $form->addElement(new \XoopsFormText(_AM_INSTRUCTION_WEIGHTC, 'weight', 5, 5, $this->getVar('weight')), true); |