<?php
/**
 * @package     ARTIO Booking
 * @subpackage  views
 * @copyright   Copyright (C) 2010 ARTIO s.r.o.. All rights reserved.
 * @author      ARTIO s.r.o., http://www.artio.net
 * @license     GNU/GPL http://www.gnu.org/copyleft/gpl.html
 * @link        http://www.artio.net Official website
 */

defined('_JEXEC') or die();

?>
<div class="calculate">
    <div class="calendar">
        <div class="month">
            <strong><?php echo $this->showPeriodMonth() ?></strong>
            <div class="week">
                <?php while ($this->hasNextPeriodDay()): ?>
                <?php if ($this->hasNextPeriodMonth()): ?>
                <div class="break"></div>
            </div>
        </div>
        <div class="month">
            <strong><?php echo $this->showPeriodMonth() ?></strong>
            <div class="week">
                <?php endif ?>
                <?php if ($this->hasNextPeriodWeek()): ?>
                <div class="break"></div>
            </div>
            <div class="week">
                <?php endif ?>
                <span class="day<?php if ($this->isPeriod()) { ?> period<?php } ?><?php if ($this->isConflict()) { ?> conflict<?php } ?>"><?php echo $this->showPeriodDay() ?></span>
                <?php $this->nextPeriodDay() ?>
                <?php endwhile ?>
                <div class="break"></div>
            </div>
        </div>
    </div>
</div>