Code Duplication    Length = 5-6 lines in 6 locations

admin/customer.php 2 locations

@@ 68-73 (lines=6) @@
65
*/
66
67
        // Display Page Navigation
68
        if ($customerTempRows > $customerPaginationLimit) {
69
            require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
70
71
            $pagenav = new XoopsPageNav($customerTempRows, $customerPaginationLimit, $start, 'start', 'op=list' . '&sort=' . $sort . '&order=' . $order . '');
72
            $GLOBALS['xoopsTpl']->assign('pagenav', null === $pagenav ? $pagenav->renderNav() : '');
73
        }
74
75
        $GLOBALS['xoopsTpl']->assign('customerRows', $customerTempRows);
76
        $customerArray = array();
@@ 135-139 (lines=5) @@
132
            }
133
            unset($customerTempArray);
134
            // Display Navigation
135
            if ($customerCount > $customerPaginationLimit) {
136
                require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
137
                $pagenav = new XoopsPageNav($customerCount, $customerPaginationLimit, $start, 'start', 'op=list' . '&sort=' . $sort . '&order=' . $order . '');
138
                $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
139
            }
140
141
            //                     echo "<td class='center width5'>
142

admin/equipment.php 2 locations

@@ 68-73 (lines=6) @@
65
*/
66
67
        // Display Page Navigation
68
        if ($equipmentTempRows > $equipmentPaginationLimit) {
69
            require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
70
71
            $pagenav = new XoopsPageNav($equipmentTempRows, $equipmentPaginationLimit, $start, 'start', 'op=list' . '&sort=' . $sort . '&order=' . $order . '');
72
            $GLOBALS['xoopsTpl']->assign('pagenav', null === $pagenav ? $pagenav->renderNav() : '');
73
        }
74
75
        $GLOBALS['xoopsTpl']->assign('equipmentRows', $equipmentTempRows);
76
        $equipmentArray = array();
@@ 131-135 (lines=5) @@
128
            }
129
            unset($equipmentTempArray);
130
            // Display Navigation
131
            if ($equipmentCount > $equipmentPaginationLimit) {
132
                require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
133
                $pagenav = new XoopsPageNav($equipmentCount, $equipmentPaginationLimit, $start, 'start', 'op=list' . '&sort=' . $sort . '&order=' . $order . '');
134
                $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
135
            }
136
137
            //                     echo "<td class='center width5'>
138

admin/rentals.php 2 locations

@@ 69-74 (lines=6) @@
66
*/
67
68
        // Display Page Navigation
69
        if ($rentalsTempRows > $rentalsPaginationLimit) {
70
            require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
71
72
            $pagenav = new XoopsPageNav($rentalsTempRows, $rentalsPaginationLimit, $start, 'start', 'op=list' . '&sort=' . $sort . '&order=' . $order . '');
73
            $GLOBALS['xoopsTpl']->assign('pagenav', null === $pagenav ? $pagenav->renderNav() : '');
74
        }
75
76
        $GLOBALS['xoopsTpl']->assign('rentalsRows', $rentalsTempRows);
77
        $rentalsArray = array();
@@ 136-140 (lines=5) @@
133
            }
134
            unset($rentalsTempArray);
135
            // Display Navigation
136
            if ($rentalsCount > $rentalsPaginationLimit) {
137
                require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
138
                $pagenav = new XoopsPageNav($rentalsCount, $rentalsPaginationLimit, $start, 'start', 'op=list' . '&sort=' . $sort . '&order=' . $order . '');
139
                $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
140
            }
141
142
            //                     echo "<td class='center width5'>
143