@@ 105-110 (lines=6) @@ | ||
102 | } |
|
103 | $module = $moduleHelper->getModule(); |
|
104 | ||
105 | if (InstructionUtility::checkVerXoops($module, '2.5.9')) { |
|
106 | $mytree_select = $mytree->makeSelectElement('pid', 'title', '--', $this->getVar('pid'), true, 0, '', _AM_INSTRUCTION_PCATC); |
|
107 | $form->addElement($mytree_select); |
|
108 | } else { |
|
109 | $form->addElement(new XoopsFormLabel(_AM_INSTRUCTION_PCATC, $mytree->makeSelBox('pid', 'title', '--', $this->getVar('pid'), true))); |
|
110 | } |
|
111 | ||
112 | // Вес |
|
113 | $form->addElement(new XoopsFormText(_AM_INSTRUCTION_WEIGHTC, 'weight', 5, 5, $this->getVar('weight')), true); |
@@ 81-86 (lines=6) @@ | ||
78 | } |
|
79 | $module = $moduleHelper->getModule(); |
|
80 | ||
81 | if (InstructionUtility::checkVerXoops($module, '2.5.9')) { |
|
82 | $mytree_select = $mytree->makeSelectElement('cid', 'title', '--', $this->getVar('cid'), true, 0, '', _AM_INSTRUCTION_CATC); |
|
83 | $form->addElement($mytree_select); |
|
84 | } else { |
|
85 | $form->addElement(new XoopsFormLabel(_AM_INSTRUCTION_CATC, $mytree->makeSelBox('cid', 'title', '--', $this->getVar('cid'), true))); |
|
86 | } |
|
87 | ||
88 | // Описание |
|
89 | $form->addElement(InstructionUtility::getWysiwygForm(_AM_INSTRUCTION_DESCRIPTIONC, 'description', $this->getVar('description', 'e')), true); |
@@ 95-100 (lines=6) @@ | ||
92 | } |
|
93 | $module = $moduleHelper->getModule(); |
|
94 | ||
95 | if (InstructionUtility::checkVerXoops($module, '2.5.9')) { |
|
96 | $mytree_select = $mytree->makeSelectElement('pid', 'title', '--', $this->getVar('pid'), true, 0, '', _AM_INSTRUCTION_PPAGEC); |
|
97 | $form->addElement($mytree_select); |
|
98 | } else { |
|
99 | $form->addElement(new XoopsFormLabel(_AM_INSTRUCTION_PPAGEC, $mytree->makeSelBox('pid', 'title', '--', $this->getVar('pid'), true))); |
|
100 | } |
|
101 | ||
102 | // Вес |
|
103 | $form->addElement(new XoopsFormText(_AM_INSTRUCTION_WEIGHTC, 'weight', 5, 5, $this->getVar('weight')), true); |