Code Duplication    Length = 7-7 lines in 2 locations

class/APCal.php 1 location

@@ 1401-1407 (lines=7) @@
1398
1399
            // ǯ�������(2001��2020 �Ȥ���)
1400
            $year_options = '';
1401
            for ($y = 2001; $y <= 2020; ++$y) {
1402
                if ($y == $year) {
1403
                    $year_options .= "\t\t\t<option value='$y' selected>" . sprintf(strip_tags(_APCAL_FMT_YEAR), $y) . "</option>\n";
1404
                } else {
1405
                    $year_options .= "\t\t\t<option value='$y'>" . sprintf(strip_tags(_APCAL_FMT_YEAR), $y) . "</option>\n";
1406
                }
1407
            }
1408
            $ret['YEAR_OPTIONS'] = $year_options;
1409
1410
            // ��������

class/APCal_xoops.php 1 location

@@ 796-802 (lines=7) @@
793
794
            // ǯ�������(2001��2020 �Ȥ���)
795
            $year_options = '';
796
            for ($y = 2001; $y <= 2020; ++$y) {
797
                if ($y == $this->year) {
798
                    $year_options .= "\t\t\t<option value='$y' selected>" . sprintf(strip_tags(_APCAL_FMT_YEAR), $y) . "</option>\n";
799
                } else {
800
                    $year_options .= "\t\t\t<option value='$y'>" . sprintf(strip_tags(_APCAL_FMT_YEAR), $y) . "</option>\n";
801
                }
802
            }
803
804
            // ��������
805
            $month_options = '';