コード例 #1
0
ファイル: mycalendar.php プロジェクト: razagilani/srrs
    Auth::print_login_msg();
}
$t = new Template(translate('My Calendar'));
// Print HTML headers
$t->printHTMLHeader();
// Print welcome box
$t->printWelcome();
// Begin main table
$t->startMain();
$t->startNavLinkTable();
$t->showNavLinksTable(Auth::isAdmin());
$t->endNavLinkTable();
$t->splitTable();
$type = isset($_GET['view']) ? $_GET['view'] : MYCALENDARTYPE_DAY;
$calendar = new MyCalendar(Auth::getCurrentID(), $type, get_calendar_actual_date());
$calendar->print_calendar();
// End main table
$t->endMain();
$timer->stop();
$timer->print_comment();
// Print HTML footer
$t->printHTMLFooter();
/**
* Sets the 'actualDate' field of the MyCalendar object
* @param none
* @return datestamp of the viewed date
*/
function get_calendar_actual_date()
{
    if (isset($_GET['date'])) {
        $date_split = explode('-', $_GET['date']);