Code Duplication    Length = 10-11 lines in 3 locations

blocks/oledrion_cart.php 1 location

@@ 64-74 (lines=11) @@
61
 * @param $options
62
 * @return string
63
 */
64
function b_oledrion_cart_edit($options)
65
{
66
    global $xoopsConfig;
67
    include XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php';
68
    $form = '';
69
    $form .= "<table border='0'>";
70
    $form .= '<tr><td>' . _MB_OLEDRION_MAX_ITEMS . "</td><td><input type='text' name='options[]' id='options' value='" . $options[0] . "'></td></tr>";
71
    $form .= '</table>';
72
73
    return $form;
74
}
75

blocks/oledrion_my_lists.php 1 location

@@ 64-73 (lines=10) @@
61
 * @param  array $options [0] = Nombre maximum de listes à voir
62
 * @return array
63
 */
64
function b_oledrion_my_lists_edit($options)
65
{
66
    include XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php';
67
    $form = '';
68
    $form .= "<table border='0'>";
69
    $form .= '<tr><td>' . _MB_OLEDRION_LISTS_COUNT . "</td><td><input type='text' name='options[]' id='options' value='" . (int)$options[0] . "'></td></tr>";
70
    $form .= '</table>';
71
72
    return $form;
73
}
74
75
/**
76
 * Bloc à la volée

blocks/oledrion_recentlysold.php 1 location

@@ 55-64 (lines=10) @@
52
 * @param  array $options [0] = Nombre maximum de produits à voir
53
 * @return string
54
 */
55
function b_oledrion_recentlysold_edit($options)
56
{
57
    require XOOPS_ROOT_PATH . '/modules/oledrion/include/common.php';
58
    $form = '';
59
    $form .= "<table border='0'>";
60
    $form .= '<tr><td>' . _MB_OLEDRION_PRODUCTS_CNT . "</td><td><input type='text' name='options[]' id='options' value='" . $options[0] . "'></td></tr>";
61
    $form .= '</table>';
62
63
    return $form;
64
}
65
66
/**
67
 * Bloc à la volée