c1ffd9679eb88513e6d38718070763f5381266cc
[atutor.git] / mods / google_calendar / index.php
1 <?php\r
2 define('AT_INCLUDE_PATH', '../../include/');\r
3 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
4 \r
5 require (AT_INCLUDE_PATH.'header.inc.php');\r
6 require('get_google_user.php');\r
7 \r
8 ?>\r
9 <div>\r
10 <p><a href="<?php echo $_SERVER['PHP_SELF'] ?>#setup"><?php echo _AT('google_setup'); ?></a></p>\r
11 </div>\r
12 \r
13 <div id="google_calendar" style="margin-left:2em;">\r
14 \r
15 <?php\r
16 \r
17 if($private_html != ''){\r
18 ?>\r
19         <iframe src="<?php echo $calendar_html; ?>" style="border: 0" width="95%" height="480" frameborder="0" scrolling="no"></iframe>\r
20 \r
21 <?php }else{ ?>\r
22 \r
23         <iframe src="http://www.google.com/calendar/embed?src=<?php echo $my_email_address; ?>&ctz=<?php echo $timezone; ?>" style="border: 0" width="95%" height="480" frameborder="0" scrolling="no"></iframe> \r
24 \r
25 \r
26 <?php } ?>\r
27 \r
28 </div>\r
29 <a name="setup"></a>\r
30 <h3><?php echo _AT('google_setup'); ?></h3>\r
31         <div class="box">\r
32         <?php echo _AT('google_howto'); ?>\r
33         </div>\r
34 \r
35 <h4><?php echo _AT('google_private_calendar_prefs'); ?></h4>\r
36 <?php \r
37 \r
38 require('google_prefs.php'); \r
39 \r
40 require (AT_INCLUDE_PATH.'footer.inc.php'); ?>