Ejemplo n.º 1
0
function generateYear($year_value)
{
    echo "<div id=\"cal_container\">";
    echo "    <h2 class=\"year\">";
    echo $year_value;
    echo "    </h2>";
    for ($month = 1; $month <= 12; $month++) {
        generateMonth($month, $year_value);
    }
}
Ejemplo n.º 2
0
            <option value="2015">2015</option>
            <option value="2016">2016</option>
            <option value="2017">2017</option>
        </select>
        <input type="submit"/>
    </form>
    <article>
        <header>
            <h1>
                <?php 
if (!is_null($year)) {
    echo $year;
}
?>
            </h1>
        </header>
        <section>
            <?php 
$i = 1;
if (!is_null($year)) {
    for ($i = 1; $i <= 12; $i++) {
        echo formatMonth(generateMonth($i, intval($year)), $i);
    }
}
?>
        </section>
    </article>
</main>
</body>
</html>