$Second = new Calendar_Second($_POST['y'], $_POST['m'], $_POST['d'], $_POST['h'], $_POST['i'], $_POST['s']); ?> <p><b>Set the alarm clock</p></p> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="post"> Year: <input type="text" name="y" value="<?php echo $_POST['y']; ?> " size="4"> Month:<select name="m"> <?php $selection = array($Month); $Year->build($selection); while ($Child =& $Year->fetch()) { if ($Child->isSelected()) { echo "<option value=\"" . $Child->thisMonth() . "\" selected>" . $Child->thisMonth() . "\n"; } else { echo "<option value=\"" . $Child->thisMonth() . "\">" . $Child->thisMonth() . "\n"; } } ?> </select> Day:<select name="d"> <?php $selection = array($Day); $Month->build($selection); while ($Child =& $Month->fetch()) { if ($Child->isSelected()) { echo "<option value=\"" . $Child->thisDay() . "\" selected>" . $Child->thisDay() . "\n";
"><<</a> </div> <div id="week_type"> <a href="?year=<?php echo $Year->thisYear(); ?> &week_type=n_in_year">Weeks by Year</a> : <a href="?year=<?php echo $Year->thisYear(); ?> &week_type=n_in_month">Weeks by Month</a> </div> </caption> <?php $i = 0; while ($Month = $Year->fetch()) { switch ($i) { case 0: echo "<tr>\n"; break; case 3: case 6: case 9: echo "</tr>\n<tr>\n"; break; case 12: echo "</tr>\n"; break; } echo "<td>\n<table class=\"month\">\n"; echo '<caption class="month">' . date('F', $Month->thisMonth(TRUE)) . '</caption>';