'; echo '
'; echo '' . date('d M', strtotime($r['creation'])) . ''; echo $r['title'] . ''; // pinned? if ($r['sticky'] >= $current) echo ' Pinned'; echo '
'; echo $image_bit; echo $r['content']; if ($r['lastedit'] != '0000-00-00 00:00:00') echo '
Last edited: ' . date('Y-m-d G:i:s', strtotime($r['lastedit'])) . '
'; echo $attach_bit; echo fb($fbimage); echo '
'; // echo ''; // echo ''; } function fb($fbimage) { global $r; $fbsummary = urlencode(strip_tags($r['content'])); $fbtitle=urlencode($r['title']); $fburl=urlencode('https://new.dbs.edu.hk/f_b.php?id=' . $r['dataid']); $fbimage=urlencode($fbimage); // $fbshare = '
'; $fbshare = '
'; return $fbshare; } function checkAttach($id, $color) { global $r, $_GET; $attach_bit = ''; $attach_counter = 0; unset($attachment); $dir = '/datafiles/attachment/' . $id; if (file_exists(getcwd() . $dir)) { $handle = opendir(getcwd() . $dir); if ($handle) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file != "error_log") { $attachment[$attach_counter] = $file; $attach_counter++; } } closedir($handle); } } if (@sizeof($attachment) != 0) { $attach_bit = ''; for ($q = 0; $q < sizeof($attachment); $q++) { if ($attach_bit == '') { if ($r['typeid'] == 1) $attach_bit .= '
'; $attach_bit .= 'Attachment: '; } // $attach_bit .= '' . $attachment[$q] . ''; // if (isset($_GET['a'])) $attach_bit .= '' . $attachment[$q] . ''; if (isset($_GET['a'])) $attach_bit .= '' . $attachment[$q] . ''; else $attach_bit .= '' . $attachment[$q] . ''; if ($q != sizeof($attachment) - 1) $attach_bit .= ' '; } } return $attach_bit; } function checkImage($id) { global $fbimage; $image_bit = ''; $folder = '/datafiles/image/' . $id; if (file_exists(getcwd() . $folder)) { $handle = opendir(getcwd() . $folder); if ($handle) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && $file != "error_log") { // $image_bit = '

'; $image_bit = '

'; $fbimage = 'https://new.dbs.edu.hk' . $folder . '/' . $file; } } closedir($handle); } } else { // $image_bit = '

'; $image_bit = '

'; $fbimage = 'https://new.dbs.edu.hk/dbsfblogo.png'; } return $image_bit; } // house colors $colors = array("", "#009639", "#FFD100", "#A4C8E1", "#10069F", "#C8102E", "#703F2A", "#87189D", "#FF8200"); function houseColor() { global $color, $colors, $colorIndex; if ($colorIndex >= 8) $colorIndex = 0; $colorIndex++; $color = $colors[$colorIndex]; } ?> Diocesan Boys' School
  • DBS
    News & CircularsCalendarSchool ProfileJob OpeningsSitemapContact UsPrimary Division
  • Academics
    HKDSE CurriculumIBSubjects OfferedClass StructureExaminations & AssessmentsAcademic Support
  • Admission / 入學
    G7 Admission Interview Instructional VideoProspectus 2025Virtual Admissions TalkHKDSE G12 (S6) Repeaters AdmissionLatest NewsG7 (F1) AdmissionG8 (F2) to G11 (F5) AdmissionIB AdmissionAdmission EventsFee Remission SchemeScholarships SchemeSchool FeeWelfareSummer School – G7 Bridging CourseProspectusSchool HistoryNewspaper ClippingDownload Area最新消息中一級入學申請中二至中五級入學申請國際文憑課程入學申請入學活動學費學費減免計劃學生福利暑期學校 — 中一銜接課程學校簡介學校歷史剪報下載表格
  • Students
    Boarding SchoolCentre for Further Studies and CareersGreen School Action GroupDisciplineInter-School SportsSchool LibrarySky GardenSocial WorkerSpeech Festival (Eng)Welfare
Previous Next