Code Duplication    Length = 7-7 lines in 2 locations

checkout.php 1 location

@@ 370-376 (lines=7) @@
367
        }
368
        $sform->addElement(new XoopsFormText(_OLEDRION_CITY, 'cmd_town', 50, 255, $commande->getVar('cmd_town', 'e')), true);
369
        // By voltan
370
        if (OledrionUtility::getModuleOption('checkout_country')) {
371
            $countriesList = new XoopsFormSelect(_OLEDRION_COUNTRY, 'cmd_country', $commande->getVar('cmd_country', ' e'));
372
            $countriesList->addOptionArray($countries);
373
            $sform->addElement($countriesList, true);
374
        } else {
375
            $sform->addElement(new XoopsFormHidden('cmd_country', OLEDRION_DEFAULT_COUNTRY));
376
        }
377
        $sform->addElement(new XoopsFormText(_OLEDRION_CP, 'cmd_zip', 15, 30, $commande->getVar('cmd_zip', 'e')), true);
378
        // B.R. $sform->addElement(new XoopsFormText(_OLEDRION_MOBILE, 'cmd_mobile', 15, 50, $commande->getVar('cmd_mobile', 'e')), true);
379
        // B.R. $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 (OledrionUtility::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 (OledrionUtility::getModuleOption('search_property1') && OledrionUtility::getModuleOption('product_property1')) {