<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<style type="text/css">
<!--
 h1, h2, h3, h4, h5, h6 {
font-family: "Times New Roman", Times, serif;
}
body {
font-family: "Times New Roman", Times, serif;
size:12px;
}
</style>

<body bgcolor="#FFFFFF">
<?php

// If included from a page that lets the user pick an academic year
// (e.g. the class bulletin page's "année" selector), honor that choice.
if (isset($annee) && $annee === '24-25') {
    $academicYear = '2024-2025';
} else {
    $currentYear = (int)date('Y');
    $currentMonth = (int)date('n');
    // Academic year starts in September (month 9)
    // If we are Jan-Aug, academic year is (currentYear-1)-(currentYear)
    // If we are Sep-Dec, academic year is (currentYear)-(currentYear+1)
    if ($currentMonth >= 9) {
        $yearStart = $currentYear;
        $yearEnd   = $currentYear + 1;
    } else {
        $yearStart = $currentYear - 1;
        $yearEnd   = $currentYear;
    }
    $academicYear = $yearStart . '-' . $yearEnd; // e.g. "2025-2026"
}
	echo '<div ><table width="100%" border="0">
  <tr>
    <td colspan="4" ><h4 align="left">SOEURS BASILIENNES CHOUERITES<br />
      COLLEGE SAINT JOSEPH - MINIARA</h4></td>
  </tr>
  <tr >
    <td colspan="5" align="center">RELEVE DES NOTES  <br />
                                    <b>'. $academicYear.'</b></td></tr>
  </tr>
  
</table></div>';


?>
</body>
</html>