Example #1
0
            <div class="place">Røros, Sør-Trøndelag</div>
        </div>
        <div class="prop_right">
            <h3>Holiday home Røros</h3>

            <p>The property features views of the sea and is 23 km from Røros.</p>
        </div>
        <div class="prop_booking">
            <form>
                <input type="hidden" name="property_id" id="property_id" value="1">
                Check-in:
                <?php 
require_once "exercise4.inc.php";
// initialize selects with today's date
year_select("year", date("Y"));
month_select("month", date("m"));
day_select("day", date("d"));
?>
                Nights:
                <?php 
days_select("days");
?>
            </form>
        </div>
    </div>

    <div id="availability">
        <h1>Availability</h1>
        <div class="framed" id="avail_details"></div>
    </div>
Example #2
0
    exit;
}
// Display planner chart
echo "<h2>{$strMonthView}</h2>";
$nextyear = $year;
if ($month < 12) {
    $nextmonth = $month + 1;
} else {
    $nextmonth = 1;
    $nextyear = $year + 1;
}
$prevyear = $year;
if ($month > 1) {
    $prevmonth = $month - 1;
} else {
    $prevmonth = 12;
    $prevyear = $year - 1;
}
$plugin_calendar = plugin_do('holiday_chart_cal');
echo month_select($month, $year, $gidurl);
echo "<p align='center'><a href='{$_SERVER['PHP_SELF']}?month={$prevmonth}&amp;";
echo "year={$prevyear}{$gidurl}' title='Previous Month'>&lt;</a> ";
echo ldate('F Y', mktime(0, 0, 0, $month, 1, $year));
echo " <a href='{$_SERVER['PHP_SELF']}?month={$nextmonth}&amp;year={$nextyear}{$gidurl}' ";
echo "title='Next Month'>&gt;</a></p>";
// echo draw_chart('month', $year, $month, $day, '', $user);
$numgroups = group_selector($groupid, "display={$display}&amp;year={$year}&amp;month={$month}&amp;day={$day}");
if ($groupid == 'all') {
    $groupid = '';
}
echo draw_chart('month', $year, $month, $day, $groupid, $user);