function printCalendars() { global $client; $this->presenter->putCalendarListTitle(); foreach (getCalendarList($client)['items'] as $calendar) { $this->presenter->putCalendarListElement($calendar); } }
function printCalendars() { global $client; putCalendarListTitle(); foreach (getCalendarList($client)['items'] as $calendar) { putCalendarListElement($calendar); } }
function printCalendars($client) { putTitle('These are your calendars:'); foreach (getCalendarList($client)['items'] as $calendar) { putLink('?showThisCalendar=' . htmlentities($calendar['id']), $calendar['summary']); print '<br>'; } }
include_once "ini.dbstring.php"; include_once "ini.functions.php"; sec_session_start(); include_once "mod.calendar.php"; include_once "mod.attendance.php"; include_once "mod.admin.php"; include_once "mod.login.php"; include_once "ctrl.checklogin.php"; include_once "ctrl.calendar.php"; include_once "ctrl.attendance.php"; include_once "ctrl.admin.php"; // check user role and authentication checkSession($_SESSION['sess_user_role']); checkLogin("admin", $_SESSION['sess_user_role']); // get calendarlist $clist = getCalendarList($db); ?> <html lang="en"> <head> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Kinntai system</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="<?php echo CSS; ?> /import.css" rel="stylesheet" type="text/css"/> <link href="<?php echo CSS; ?> /datepickr.css" rel="stylesheet" type="text/css"/>
function getCalendars() { return getCalendarList($this->client)['items']; }