+++ /dev/null
-<?php\r
-/*\r
-This is the ATutor CMAP module page. It allows an admin user\r
-to set or edit the URL for the CMAP installation for ATutor.\r
-\r
-*/\r
-define('AT_INCLUDE_PATH', '../../include/');\r
-require (AT_INCLUDE_PATH.'vitals.inc.php');\r
-\r
-\r
-if (isset($_POST['submit'])) {\r
- $_POST['uri'] = trim($_POST['uri']);\r
-\r
- if (!$_POST['uri']){\r
- $msg->addError('CMAPURL_ADD_EMPTY');\r
- }\r
- \r
- if (!$msg->containsErrors()) {\r
- $_POST['uri'] = $addslashes($_POST['uri']);\r
- $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('cmap', '$_POST[uri]')";\r
- mysql_query($sql, $db);\r
- $msg->addFeedback('CMAPURL_ADD_SAVED');\r
-\r
- header('Location: '.$_SERVER['PHP_SELF']);\r
- exit;\r
- }\r
-}\r
-\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-\r
-?>\r
-\r
-<?php if ($_config['cmap']): ?>\r
- <div class="input-form">\r
- <div class="row">\r
- <p><?php echo _AT('cmap_admin_text'); ?></p>\r
- </div>\r
-\r
- </div>\r
-<?php else: ?>\r
- <div class="input-form">\r
- <div class="row">\r
- <p><?php echo _AT('cmap_missing_url'); ?></p>\r
- </div>\r
- </div>\r
-<?php endif; ?>\r
-\r
-<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">\r
- <div class="input-form">\r
- <div class="row">\r
- <p><label for="uri"><?php echo _AT('cmap_location'); ?></label></p>\r
- \r
- <input type="text" name="uri" value="<?php echo $_config['cmap']; ?>" id="uri" size="80" style="min-width: 95%;" />\r
- </div>\r
-\r
- <div class="row buttons">\r
- <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" />\r
- </div>\r
- </div>\r
-</form>\r
-<?php if ($_config['cmap']): ?>\r
-\r
-<div class="input-form">\r
-| <a href="<?php echo $_SERVER['PHP_SELF']; ?>" onclick="window.open('<?php echo $_config['cmap']; ?>','cmapwin','width=800,height=720,scrollbars=yes, resizable=yes'); return false"><?php echo _AT('cmap_own_window'); ?></a> \r
-| <a href="<?php echo $_SERVER['PHP_SELF']; ?>" onclick="window.open('http://cmap.ihmc.us/Support/Help/','cmapwin','width=800,height=720,scrollbars=yes, resizable=yes'); return false"><?php echo _AT('cmap_help_window'); ?></a> \r
-| <br /><br />\r
-</div>\r
-<iframe name="cmap" id="cmap" title="ePresence" scrolling="yes" src="<?php echo $_config['cmap']; ?>" height="800" width="90%" align="center" style="border:thin white solid; align:center;"></iframe>\r
-<?php else: ?>\r
- <div class="row">\r
- <p><?php echo _AT('cmap_missing_url'); ?></p>\r
- </div>\r
-\r
-<?php endif; ?>\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file