| @@ 151-157 (lines=7) @@ | ||
| 148 | $sform->addElement(new XoopsFormHidden('cat_cid', $item->getVar('cat_cid'))); |
|
| 149 | $sform->addElement(new XoopsFormText(_AM_OLEDRION_CATEG_TITLE, 'cat_title', 50, 255, $item->getVar('cat_title', 'e')), true); |
|
| 150 | ||
| 151 | if (OledrionUtility::checkVerXoops($module, '2.5.9')) { |
|
| 152 | $select_categ = $mytree->makeSelectElement('cat_pid', 'cat_title', '--', $item->getVar('cat_pid'), true, 0, '', _AM_OLEDRION_PARENT_CATEG); |
|
| 153 | $sform->addElement($select_categ); |
|
| 154 | } else { |
|
| 155 | $select_categ = $mytree->makeSelBox('cat_pid', 'cat_title', '-', $item->getVar('cat_pid'), true); |
|
| 156 | $sform->addElement(new XoopsFormLabel(_AM_OLEDRION_PARENT_CATEG, $select_categ), false); |
|
| 157 | } |
|
| 158 | ||
| 159 | if ($action === 'edit' && $item->pictureExists()) { |
|
| 160 | $pictureTray = new XoopsFormElementTray(_AM_OLEDRION_CURRENT_PICTURE, '<br>'); |
|
| @@ 111-117 (lines=7) @@ | ||
| 108 | $location_pid = $h_oledrion_location->getAllPid(new Oledrion_parameters()); |
|
| 109 | $mytree = new XoopsObjectTree($location_pid, 'location_id', 'location_pid'); |
|
| 110 | ||
| 111 | if (OledrionUtility::checkVerXoops($module, '2.5.9')) { |
|
| 112 | $select_pid = $mytree->makeSelectElement('location_pid', 'location_title', '--', $item->getVar('location_pid'), true, 0, '', _AM_OLEDRION_LOCATION_PID); |
|
| 113 | $form->addElement($select_pid); |
|
| 114 | } else { |
|
| 115 | $select_pid = $mytree->makeSelBox('location_pid', 'location_title', '-', $item->getVar('location_pid'), true); |
|
| 116 | $sform->addElement(new XoopsFormLabel(_AM_OLEDRION_LOCATION_PID, $select_pid), false); |
|
| 117 | } |
|
| 118 | $product_type = new XoopsFormSelect(_AM_OLEDRION_LOCATION_TYPE, 'location_type', $item->getVar('location_type')); |
|
| 119 | $product_type->addOption('location', _AM_OLEDRION_LOCATION_LOCATION); |
|
| 120 | $product_type->addOption('parent', _AM_OLEDRION_LOCATION_PARENT); |
|
| @@ 427-433 (lines=7) @@ | ||
| 424 | $vendorsSelect->addOptionArray($vendorsForDisplay); |
|
| 425 | $sform->addElement($vendorsSelect, true); |
|
| 426 | ||
| 427 | if (OledrionUtility::checkVerXoops($module, '2.5.9')) { |
|
| 428 | $select_categ = $mytree->makeSelectElement('product_cid', 'cat_title', '-', $item->getVar('product_cid'), true, 0, '', _AM_OLEDRION_CATEG_HLP); |
|
| 429 | $form->addElement($select_categ); |
|
| 430 | } else { |
|
| 431 | $select_categ = $mytree->makeSelBox('product_cid', 'cat_title', '-', $item->getVar('product_cid')); |
|
| 432 | $sform->addElement(new XoopsFormLabel(_AM_OLEDRION_CATEG_HLP, $select_categ), true); |
|
| 433 | } |
|
| 434 | // B.R. New |
|
| 435 | $sform->addElement(new XoopsFormRadioYN(_OLEDRION_SKIP_PACKING, 'skip_packing', $item->getVar('skip_packing')), true); |
|
| 436 | $sform->addElement(new XoopsFormRadioYN(_OLEDRION_SKIP_LOCATION, 'skip_location', $item->getVar('skip_location')), true); |
|