Code Duplication    Length = 7-7 lines in 2 locations

checkout.php 1 location

@@ 337-343 (lines=7) @@
334
        }
335
        $sform->addElement(new XoopsFormText(_OLEDRION_CITY, 'cmd_town', 50, 255, $commande->getVar('cmd_town', 'e')), true);
336
        // By voltan
337
        if (Oledrion_utils::getModuleOption('checkout_country')) {
338
            $countriesList = new XoopsFormSelect(_OLEDRION_COUNTRY, 'cmd_country', $commande->getVar('cmd_country', ' e'));
339
            $countriesList->addOptionArray($countries);
340
            $sform->addElement($countriesList, true);
341
        } else {
342
            $sform->addElement(new XoopsFormHidden('cmd_country', OLEDRION_DEFAULT_COUNTRY));
343
        }
344
        $sform->addElement(new XoopsFormText(_OLEDRION_CP, 'cmd_zip', 15, 30, $commande->getVar('cmd_zip', 'e')), true);
345
        $sform->addElement(new XoopsFormText(_OLEDRION_MOBILE, 'cmd_mobile', 15, 50, $commande->getVar('cmd_mobile', 'e')), true);
346
        $sform->addElement(new XoopsFormText(_OLEDRION_PHONE, 'cmd_telephone', 15, 50, $commande->getVar('cmd_telephone', 'e')), true);

include/product_search_form.php 1 location

@@ 71-77 (lines=7) @@
68
}
69
70
//
71
if (Oledrion_utils::getModuleOption('search_stocks')) {
72
    $stockselect = new XoopsFormSelect(_OLEDRION_QUANTITYS, 'product_stock', 1);
73
    $stockselect->addOption(1, _OLEDRION_QUANTITYALL);
74
    $stockselect->addOption(2, _OLEDRION_QUANTITY1);
75
    $stockselect->addOption(0, _OLEDRION_QUANTITY2);
76
    $sform->addElement($stockselect, false);
77
}
78
79
//
80
if (Oledrion_utils::getModuleOption('search_property1') && Oledrion_utils::getModuleOption('product_property1')) {