2 /****************************************************************/
\r
4 /****************************************************************/
\r
5 /* Copyright (c) 2002-2010 */
\r
6 /* Inclusive Design Institute */
\r
7 /* http://atutor.ca */
\r
9 /* This program is free software. You can redistribute it and/or*/
\r
10 /* modify it under the terms of the GNU General Public License */
\r
11 /* as published by the Free Software Foundation. */
\r
12 /****************************************************************/
\r
14 $page = 'translate';
\r
15 $_user_location = 'public';
\r
16 $page_title = 'ATutor: LCMS: Translation';
\r
18 define('AT_INCLUDE_PATH', '../../../include/');
\r
19 require(AT_INCLUDE_PATH.'vitals.inc.php');
\r
21 if (!$_REQUEST['f']) {
\r
22 $_REQUEST['f'] = 'en';
\r
25 if (!defined('AT_DEVEL_TRANSLATE') || !AT_DEVEL_TRANSLATE) { exit; }
\r
27 $_INCLUDE_PATH = AT_INCLUDE_PATH;
\r
28 $_TABLE_PREFIX = TABLE_PREFIX;
\r
29 $_TABLE_SUFFIX = '';
\r
31 $_SESSION['language'] = $_SESSION['lang'];
\r
34 global $_user_location;
\r
39 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
\r
42 <title>ATutor Translator Site</title>
\r
43 <link rel="stylesheet" href="<?php echo AT_BASE_HREF; ?>include/style_popup.css" type="text/css" />
\r
44 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
\r
45 <base href="<?php echo AT_BASE_HREF; ?>" />
\r
52 echo '<div align="right"><a href="javascript:window.close()">' . _AT('close_window') . '</a></div>';
\r
53 echo '<h3>ATutor Translator Site</h3>';
\r
55 $variables = array('_template','_msgs','_module');
\r
57 $atutor_test = '<a href="'.$_base_path.'" title="Open ATutor in a new window" target="new">';
\r
59 $_SESSION['status'] = 2;
\r
60 $_USER_ADMIN = $_SESSION['status'];
\r
62 $sql = "SELECT english_name, char_set FROM ".TABLE_PREFIX."languages WHERE language_code = '$_SESSION[language]'";
\r
63 $result = mysql_query($sql, $db);
\r
64 $row = mysql_fetch_assoc($result);
\r
69 <table border="0" cellspacing="0" cellpadding="2" style="border: 1px solid #cccccc;" >
\r
71 <td bgcolor="#eeeeee" nowrap="nowrap"><h5 class="heading2">Translate</h5></td>
\r
72 <td style="font-size:small; border-left: 1px solid #cccccc;">
\r
73 From <strong>English - iso-8859-1</strong> to <strong> <?php echo $row['english_name'] . ' - ' . $row['char_set']; ?> </strong>
\r
80 <?php require_once('translator.php'); ?>
\r