4deb21dca479ec4eeac3a583f3dbb6975a236476
[atutor.git] / mods / ccnet / index.php
1 <?php\r
2 /*\r
3 This is the main ATutor ccnet module page. It allows users to access\r
4 the UofT CCNet installation through courses that have CCNet enabled\r
5 */\r
6 define('AT_INCLUDE_PATH', '../../include/');\r
7 require (AT_INCLUDE_PATH.'vitals.inc.php');\r
8 \r
9 require (AT_INCLUDE_PATH.'header.inc.php');\r
10 ?>\r
11 \r
12 <?php if (!$_config['ccnet']): ?>\r
13         <?php $msg->printInfos('CCNET_URL_ADD_REQUIRED'); ?>\r
14 <?php else: ?>\r
15         <div class="input-form">\r
16                 <div class="row">\r
17                         <p><?php echo _AT('ccnet_text'); ?></p>\r
18                 </div>\r
19 \r
20                 <div class="row buttons">\r
21                         <form action="" method="get">\r
22                                 <input type="submit" name="submit" value="<?php echo _AT('ccnet_open'); ?>" onclick="window.open('<?php echo $_config['ccnet']; ?>','mywindow','width=800,height=600,scrollbars=yes, resizable=yes'); return false;" />\r
23                         </form>\r
24                 </div>\r
25         </div>\r
26 <?php endif; ?>\r
27 \r
28 <?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>