3 This is the main ATutor webcalendar module page. It allows users to access
\r
4 the course and personal calendars through courses that have the calendar enabled
\r
6 global $webcalendar_url_db;
\r
7 define('AT_INCLUDE_PATH', '../../include/');
\r
8 require (AT_INCLUDE_PATH.'vitals.inc.php');
\r
11 //$_custom_css = $_base_path . 'mods/calendar/module.css';
\r
14 //Check to see if the url to webcalendar exists in the db
\r
15 $sql = 'SELECT * from '.TABLE_PREFIX.'config WHERE name="webcalendar"';
\r
16 $result = mysql_query($sql, $db);
\r
18 while($row = mysql_fetch_array($result)){
\r
19 $webcalendar_url_db = $row[1];
\r
22 require (AT_INCLUDE_PATH.'header.inc.php');
\r
24 $sql="SELECT password FROM ".TABLE_PREFIX."members WHERE login='$_SESSION[login]'";
\r
25 $result = mysql_query($sql, $db);
\r
26 while($row = mysql_fetch_array($result)){
\r
30 <p><a href="<?php echo $_SERVER['PHP_SELF']; ?>" onclick="window.open('<?php echo $webcalendar_url_db; ?>index.php','calendarwin','width=800,height=720,scrollbars=yes, resizable=yes'); return false"><?php echo _AT('calendar_own_window'); ?></a></p>
\r
33 if($webcalendar_url_db == ''){
\r
34 $msg->addInfo('WEBCALENDAR_URL_ADD_REQUIRED');
\r
37 <iframe name="calendar" id="calendar" title="WebCalendar" scrolling="yes" src="<?php echo $webcalendar_url_db; ?>index.php" height="800" width="90%" align="center" style="border:thin white solid; align:center;"></iframe>
\r
41 require (AT_INCLUDE_PATH.'footer.inc.php'); ?>