Code Duplication    Length = 7-7 lines in 4 locations

admin/admission.php 1 location

@@ 178-184 (lines=7) @@
175
include XOOPS_ROOT_PATH . '/class/pagenav.php';
176
$nav      = new XoopsPageNav($numrows, $num, $pos, 'pos', "cid=$cid&tz=$tz&num=$num&txt=" . urlencode($txt));
177
$nav_html = $nav->renderNav(10);
178
if ($numrows <= 0) {
179
    $nav_num_info = _NONE;
180
} elseif ($pos + $num > $numrows) {
181
    $nav_num_info = ($pos + 1) . "-$numrows/$numrows";
182
} else {
183
    $nav_num_info = ($pos + 1) . '-' . ($pos + $num) . '/' . $numrows;
184
}
185
186
// �ᥤ�������
187
xoops_cp_header();

admin/events.php 1 location

@@ 259-265 (lines=7) @@
256
include XOOPS_ROOT_PATH . '/class/pagenav.php';
257
$nav      = new XoopsPageNav($numrows, $num, $pos, 'pos', "cid=$cid&amp;tz=$tz&amp;num=$num&amp;pf=$pf&amp;txt=" . urlencode($txt));
258
$nav_html = $nav->renderNav(10);
259
if ($numrows <= 0) {
260
    $nav_num_info = _NONE;
261
} elseif ($pos + $num > $numrows) {
262
    $nav_num_info = ($pos + 1) . "-$numrows/$numrows";
263
} else {
264
    $nav_num_info = ($pos + 1) . '-' . ($pos + $num) . '/' . $numrows;
265
}
266
267
// メイン出力部
268
xoops_cp_header();

admin/icalendar_import.php 1 location

@@ 181-187 (lines=7) @@
178
include XOOPS_ROOT_PATH . '/class/pagenav.php';
179
$nav      = new XoopsPageNav($numrows, $num, $pos, 'pos', "tz=$tz&amp;num=$num");
180
$nav_html = $nav->renderNav(10);
181
if ($numrows <= 0) {
182
    $nav_num_info = _NONE;
183
} elseif ($pos + $num > $numrows) {
184
    $nav_num_info = ($pos + 1) . "-$numrows/$numrows";
185
} else {
186
    $nav_num_info = ($pos + 1) . '-' . ($pos + $num) . '/' . $numrows;
187
}
188
189
// �ᥤ�������
190
xoops_cp_header();

class/APCal_xoops.php 1 location

@@ 839-845 (lines=7) @@
836
            require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
837
            $nav      = new XoopsPageNav($num_rows, $num, $pos, 'pos', "smode=List&amp;cid=$this->now_cid&amp;num=$num&amp;order=$order&amp;op=$op&amp;caldate=$this->caldate");
838
            $nav_html = $nav->renderNav(5);
839
            if ($num_rows <= 0) {
840
                $nav_num_info = _NONE;
841
            } elseif ($pos + $num > $num_rows) {
842
                $nav_num_info = ($pos + 1) . "-$num_rows/$num_rows";
843
            } else {
844
                $nav_num_info = ($pos + 1) . '-' . ($pos + $num) . '/' . $num_rows;
845
            }
846
847
            // �����ѿ��Υ�������
848
            $tpl->assign(array(