?> >воскресенье</option> </select><br> <input type="submit" name="submitted" value="submit"/> </form> <?php if ($_GET["calendar_from"]) { calendar('fields', 'from'); } if ($_GET["calendar_to"]) { calendar('fields', 'to'); } if ($_GET["submitted"]) { $range = new Range($_GET['from'], $_GET['to']); if (!$range->get_validation_logs()) { echo "\n\t\t<table class='table table-hover'><thead><td><div>Список дат:</div></td></thead>"; $list = $range->create_list($_GET['week']); for ($i = 0; $i < count($list); $i++) { $list[$i] = explode("-", $list[$i]); $newlist[$i] = $list[$i][0] . "." . $list[$i][1] . "." . $list[$i][2] . ' ' . $list[$i][3]; echo "<tr><td>{$newlist[$i]}</td></tr>"; } echo "</table>"; } } ?> </body> </html>