<th scope="col"> </th>
<th scope="col"><?php echo _AT('name_in_language'); ?></th>
<th scope="col"><?php echo _AT('name_in_english'); ?></th>
- <th scope="col"><?php echo _AT('code'); ?></th>
+ <th scope="col"><?php echo _AT('lang_code'); ?></th>
<th scope="col"><?php echo _AT('charset'); ?></th>
</tr>
</thead>
<input type="hidden" name="import" value="1" />
<div class="input-form" style="width:60%">
<div class="row">
- <label for="code"><?php echo _AT('code'); ?></label><br />
+ <label for="code"><?php echo _AT('lang_code'); ?></label><br />
<input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
</div>
<div class="input-form" style="width:60%">
<div class="row">
- <label for="code"><?php echo _AT('code'); ?></label><br />
+ <label for="code"><?php echo _AT('lang_code'); ?></label><br />
<input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
</div>
$_REQUEST['f'] = 'en';\r
}\r
\r
-if (AT_DEVEL_TRANSLATE != 1) { exit; }\r
-//if (!isset($_SESSION['translate'])) { exit; }\r
-//define variables to be used\r
+if (!defined('AT_DEVEL_TRANSLATE') || !AT_DEVEL_TRANSLATE) { exit; }\r
\r
$_INCLUDE_PATH = AT_INCLUDE_PATH;\r
$_TABLE_PREFIX = TABLE_PREFIX;\r
</li>\r
<br />\r
\r
-<?php\r
-\r
-require_once('translator.php');\r
+ <?php require_once('translator.php'); ?>\r
\r
-?>\r
</body>\r
</html>
\ No newline at end of file
/****************************************************************/
// $Id$
-if ( !isset($db) || !isset($_INCLUDE_PATH) || !isset($_SESSION['language']) ) { exit; }
+if ( !isset($db) || !defined('AT_INCLUDE_PATH') || !isset($_SESSION['language']) ) { echo 'xx'; exit; }
if ($_POST['function'] == 'edit_term') {
if ($_POST['submit2']) {
<?php
}
if ($_REQUEST['v'] && $_REQUEST['k']) {
- $sql = "SELECT * FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE term='$_REQUEST[k]' AND variable='$_REQUEST[v]' AND `language_code`='$_REQUEST[f]'";
+ $sql = "SELECT * FROM ".TABLE_PREFIX."language_text WHERE term='$_REQUEST[k]' AND variable='$_REQUEST[v]' AND `language_code`='$_REQUEST[f]'";
$result = mysql_query($sql, $db);
$row = mysql_fetch_assoc($result);
if ($row == '') {
if ($_SESSION['language'] == 'en') {
$row2 = $row;
} else {
- $sql = "SELECT text FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE term='$_REQUEST[k]' AND variable='$_REQUEST[v]' AND `language_code`='$_SESSION[language]'";
+ $sql = "SELECT text FROM ".TABLE_PREFIX."language_text WHERE term='$_REQUEST[k]' AND variable='$_REQUEST[v]' AND `language_code`='$_SESSION[language]'";
}
$result = mysql_query($sql, $db);
global $langs;
global $success_error;
global $db;
- global $_TABLE_SUFFIX;
- global $_TABLE_PREFIX;
global $_USER_ADMIN;
global $addslashes;
global $stripslashes;
<tr>
<td valign="top" align="right" nowrap="nowrap"><b>Pages:</b></td>
<td><?php
- $sql = "SELECT * FROM ".$_TABLE_PREFIX."language_pages".$_TABLE_SUFFIX." WHERE `term`='$_REQUEST[k]' ORDER BY page LIMIT 11";
+ $sql = "SELECT * FROM ".TABLE_PREFIX."language_pages WHERE `term`='$_REQUEST[k]' ORDER BY page LIMIT 11";
$result = mysql_query($sql, $db);
if (mysql_num_rows($result) > 10) {
}
echo '</li>';
- $sql0 = "SELECT DISTINCT page FROM ".$_TABLE_PREFIX."language_pages".$_TABLE_SUFFIX." ORDER BY page";
+ $sql0 = "SELECT DISTINCT page FROM ".TABLE_PREFIX."language_pages ORDER BY page";
$result0 = mysql_query($sql0, $db);
while ($row0 = mysql_fetch_assoc($result0)) {
function delete_term($variable, $term) {
- global $addslashes, $db, $_TABLE_PREFIX, $_TABLE_SUFFIX;
+ global $db;
- $sql = "DELETE FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$variable' AND term='$term'";
+ $sql = "DELETE FROM ".TABLE_PREFIX."language_text WHERE variable='$variable' AND term='$term'";
$result = mysql_query($sql, $db);
- $sql3 = "DELETE FROM ".$_TABLE_PREFIX."language_pages".$_TABLE_SUFFIX." WHERE term='$term'";
+ $sql3 = "DELETE FROM ".TABLE_PREFIX."language_pages WHERE term='$term'";
$result3 = mysql_query($sql3, $db);
unset($_REQUEST['k']);
}
function update_term($text, $context, $variable, $term) {
- global $addslashes, $db, $_TABLE_PREFIX, $_TABLE_SUFFIX;
+ global $addslashes, $db;
$term = $addslashes(trim($term));
$text = $addslashes(trim($text));
$context = $addslashes(trim($context));
if ($_SESSION['language'] == 'en') {
- $sql = "UPDATE ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." SET `text`='$text', revised_date=NOW(), context='$context' WHERE variable='$variable' AND term='$term' AND language_code='en'";
+ $sql = "UPDATE ".TABLE_PREFIX."language_text SET `text`='$text', revised_date=NOW(), context='$context' WHERE variable='$variable' AND term='$term' AND language_code='en'";
}
else {
- $sql = "REPLACE INTO ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." VALUES ('$_SESSION[language]', '$variable', '$term', '$text', NOW(), '')";
+ $sql = "REPLACE INTO ".TABLE_PREFIX."language_text VALUES ('$_SESSION[language]', '$variable', '$term', '$text', NOW(), '')";
$trans = get_html_translation_table(HTML_ENTITIES);
$trans = array_flip($trans);
}
function add_term($text, $context, $variable, $term) {
- global $addslashes, $db, $_TABLE_PREFIX, $_TABLE_SUFFIX;
+ global $addslashes, $db;
$term = $addslashes(trim($term));
$text = $addslashes(trim($text));
$context = $addslashes(trim($context));
- $sql = "INSERT INTO ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." VALUES ('en', '$variable', '$term', '$text', NOW(), '$context')";
+ $sql = "INSERT INTO ".TABLE_PREFIX."language_text VALUES ('en', '$variable', '$term', '$text', NOW(), '$context')";
$result = mysql_query($sql, $db);
if (!$result) {
}
function display_page_terms ($variable, $term1, $lang_code, $new, $updated, $page) {
- global $db, $_TABLE_PREFIX, $_TABLE_SUFFIX;
+ global $db;
echo '<li><a name="anchor1"></a>';
echo '<a href="'.$_SERVER['PHP_SELF'].'?v='.$variable.SEP.'page='.urlencode($page).SEP.'f='.$lang_code.SEP.'n='.$new.SEP.'u='.updated.'#anchor">'.$page.'</a>';
- $sql1 = "SELECT term FROM ".$_TABLE_PREFIX."language_pages".$_TABLE_SUFFIX." WHERE page='$page' ORDER BY term";
+ $sql1 = "SELECT term FROM ".TABLE_PREFIX."language_pages WHERE page='$page' ORDER BY term";
$result1 = mysql_query($sql1, $db);
$term_list = array();
while ($row1 = mysql_fetch_assoc($result1)) {
if ($_SESSION['language'] != 'en') {
- $sql = "SELECT term, revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$variable' AND `language_code`='$_SESSION[language]' AND term='$row1[term]' ORDER BY `term`";
+ $sql = "SELECT term, revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text WHERE variable='$variable' AND `language_code`='$_SESSION[language]' AND term='$row1[term]' ORDER BY `term`";
$result = mysql_query($sql, $db);
while ($row = mysql_fetch_assoc($result)) {
foreach ($term_list as $term) {
if ($_REQUEST['f'] == 'en') {
- $sql = "SELECT *, revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$_REQUEST[v]' AND language_code='en' AND term='$term'";
+ $sql = "SELECT *, revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text WHERE variable='$_REQUEST[v]' AND language_code='en' AND term='$term'";
} else {
- $sql = "SELECT * FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$_REQUEST[v]' AND language_code='$_REQUEST[f]' AND term='$term'";
+ $sql = "SELECT * FROM ".TABLE_PREFIX."language_text WHERE variable='$_REQUEST[v]' AND language_code='$_REQUEST[f]' AND term='$term'";
}
$result = mysql_query($sql, $db);
}
function display_all_terms ($variable, $term1, $lang_code, $new, $updated) {
- global $db, $_TABLE_PREFIX, $_TABLE_SUFFIX;
+ global $db;
if ($_SESSION['language'] != 'en') {
- $sql = "SELECT term, revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$variable' AND `language_code`='$_SESSION[language]' ORDER BY `term`";
+ $sql = "SELECT term, revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text WHERE variable='$variable' AND `language_code`='$_SESSION[language]' ORDER BY `term`";
$result = mysql_query($sql, $db);
$t_keys = array();
}
if ($lang_code == 'en') {
- $sql = "SELECT *, revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$variable' AND language_code='en' ORDER BY term";
+ $sql = "SELECT *, revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text WHERE variable='$variable' AND language_code='en' ORDER BY term";
} else {
- $sql = "SELECT * FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$variable' AND language_code='$lang_code' ORDER BY term";
+ $sql = "SELECT * FROM ".TABLE_PREFIX."language_text WHERE variable='$variable' AND language_code='$lang_code' ORDER BY term";
}
$result = mysql_query($sql, $db);
}
function display_unused_terms ($variable, $term1, $lang_code, $new, $updated) {
- global $db, $_TABLE_PREFIX, $_TABLE_SUFFIX;
+ global $db;
if ($_SESSION['language'] != 'en') {
- $sql = "SELECT term, revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE variable='$variable' AND `language_code`='$_SESSION[language]' ORDER BY `term`";
+ $sql = "SELECT term, revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text WHERE variable='$variable' AND `language_code`='$_SESSION[language]' ORDER BY `term`";
$result = mysql_query($sql, $db);
$t_keys = array();
}
if ($lang_code == 'en') {
- $sql = "SELECT lt.*, lt.revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." lt LEFT JOIN ".$_TABLE_PREFIX."language_pages".$_TABLE_SUFFIX." lp ON lt.term = lp.term WHERE lp.term IS NULL AND lt.variable='$variable' AND lt.language_code='en' ORDER BY lt.term";
+ $sql = "SELECT lt.*, lt.revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text lt LEFT JOIN ".TABLE_PREFIX."language_pages lp ON lt.term = lp.term WHERE lp.term IS NULL AND lt.variable='$variable' AND lt.language_code='en' ORDER BY lt.term";
} else {
- $sql = "SELECT lt.* FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." lt LEFT JOIN ".$_TABLE_PREFIX."language_pages".$_TABLE_SUFFIX." lp ON lt.term = NULL WHERE lt.variable='$variable' AND lt.language_code='$lang_code' ORDER BY lt.term";
+ $sql = "SELECT lt.* FROM ".TABLE_PREFIX."language_text lt LEFT JOIN ".TABLE_PREFIX."language_pages lp ON lt.term = NULL WHERE lt.variable='$variable' AND lt.language_code='$lang_code' ORDER BY lt.term";
}
$result = mysql_query($sql, $db);
echo '<ul>';
while ($row = mysql_fetch_assoc($result)) {
- //echo $row['r_date'].'d;flskdf;sldkf';
if ($_SESSION['language'] != 'en') {
if ($new && $updated) {
if ((!($t_keys[$row['term']] == '')) && (!(($t_keys[$row['term']] < $row['r_date']) && $t_keys[$row['term']]))) {
function display_search_terms ($variable, $term1, $lang_code, $new, $updated) {
- global $db, $_TABLE_PREFIX, $_TABLE_SUFFIX, $addslashes, $stripslashes;
+ global $db, $addslashes, $stripslashes;
$_REQUEST['search_term'] = $addslashes($_REQUEST['search_term']);
- $sql = "SELECT term, revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE (variable LIKE '%$_REQUEST[search_term]%' OR text LIKE '%$_REQUEST[search_term]%') AND (`language_code`='$_SESSION[language]' OR `language_code`='en') GROUP BY `term` ORDER BY `term`";
+ $sql = "SELECT term, revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text WHERE (variable LIKE '%$_REQUEST[search_term]%' OR text LIKE '%$_REQUEST[search_term]%') AND (`language_code`='$_SESSION[language]' OR `language_code`='en') GROUP BY `term` ORDER BY `term`";
$result = mysql_query($sql, $db);
$t_keys = array();
$t_keys[$row['term']] = $row['r_date'];
}
- $sql = "SELECT *, revised_date+0 AS r_date FROM ".$_TABLE_PREFIX."language_text".$_TABLE_SUFFIX." WHERE (variable LIKE '%$_REQUEST[search_term]%' OR text LIKE '%$_REQUEST[search_term]%') AND (language_code='en' OR language_code='$_SESSION[language]') GROUP BY `term` ORDER BY term";
+ $sql = "SELECT *, revised_date+0 AS r_date FROM ".TABLE_PREFIX."language_text WHERE (variable LIKE '%$_REQUEST[search_term]%' OR text LIKE '%$_REQUEST[search_term]%') AND (language_code='en' OR language_code='$_SESSION[language]') GROUP BY `term` ORDER BY term";
$result = mysql_query($sql, $db);
if (mysql_num_rows($result) == 0) {
echo '<form action="display.php" target="display" name="f1" method="post" onSubmit="return checkForm();">
<input type="hidden" name="set" value="1" />
<label accesskey="c" for="message"><input type="text" maxlength="200" size="50" id="message" name="message" value="" class="input" title="Alt-c" onfocus="this.className=\'input highlight\'" onblur="this.className=\'input\'" /></label>
- <input type="submit" name="submit" value="'._AT('chat_send').'" class="button" title="'._AT('chat_send').'" onfocus="this.className=\'submit highlight\'" onblur="this.className=\'submit\'" />';
+ <input type="submit" name="submit" value="'._AT('send').'" class="button" title="'._AT('send').'" onfocus="this.className=\'submit highlight\'" onblur="this.className=\'submit\'" />';
echo '</form></p>';
echo '<script language="javascript"><!--
?>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
- <td align="right"><a href="history.php?hisTopNum=<?php echo $prevNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_previous'); ?></a> | <a href="history.php?hisTopNum=<?php echo $nextNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_next'); ?></a> | <a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
+ <td align="right"><a href="history.php?hisTopNum=<?php echo $prevNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('previous'); ?></a> | <a href="history.php?hisTopNum=<?php echo $nextNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('next'); ?></a> | <a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
</tr>
</table>
<?php
?>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
- <td align="right"><a href="history.php?hisTopNum=<?php echo $prevNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_previous'); ?></a> | <a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
+ <td align="right"><a href="history.php?hisTopNum=<?php echo $prevNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('previous'); ?></a> | <a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
</tr>
</table>
<?php
?>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
- <td align="right"><a href="history.php?hisTopNum=<?php echo $nextNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_next'); ?></a> | <a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
+ <td align="right"><a href="history.php?hisTopNum=<?php echo $nextNumT; ?>" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('next'); ?></a> | <a href="chat.php" target="_top" onFocus="this.className='highlight'" onBlur="this.className=''"><?php echo _AT('chat_return'); ?></a></td>
</tr>
</table>
<?php
<tr>
<th scope="col"><a href="chat/index.php?<?php echo $orders[$order]; ?>=name"><?php echo _AT('chat_transcript');?></a></th>
<th scope="col"><?php echo _AT('status'); ?></th>
- <th scope="col"><a href="chat/index.php?<?php echo $orders[$order]; ?>=date"><?php echo _AT('chat_date'); ?></a></th>
+ <th scope="col"><a href="chat/index.php?<?php echo $orders[$order]; ?>=date"><?php echo _AT('date'); ?></a></th>
</tr>
</thead>
<?php
<tr>
<td>
<form action="display.php?set=<?php echo $now; ?>" target="display" name="f1" method="post" onsubmit="return checkForm();" />
- <input type="hidden" name="message" value="<?php echo $now; ?>" /><label accesskey="c" for="tempField"><input type="text" maxlength="200" size="40" name="tempField" id="tempField" value="" class="input" onfocus="this.className='input highlight'" onblur="this.className='input'" /></label><input type="submit" value="<?php echo _AT('chat_send'); ?>" class="button" onfocus="this.className='submit highlight'" onblur="this.className='submit'" />
+ <input type="hidden" name="message" value="<?php echo $now; ?>" /><label accesskey="c" for="tempField"><input type="text" maxlength="200" size="40" name="tempField" id="tempField" value="" class="input" onfocus="this.className='input highlight'" onblur="this.className='input'" /></label><input type="submit" value="<?php echo _AT('send'); ?>" class="button" onfocus="this.className='submit highlight'" onblur="this.className='submit'" />
</form>
</td>
</tr>
<p><b><?php echo _AT('chat_message_chime') ?></b>
<select name="bingFlag">
- <option value="0"><?php echo _AT('chat_chime_no'); ?></option>
- <option value="1" <?php echo $bFSelT; ?>><?php echo _AT('chat_chime_yes'); ?></option>
+ <option value="0"><?php echo _AT('no'); ?></option>
+ <option value="1" <?php echo $bFSelT; ?>><?php echo _AT('yes'); ?></option>
</select></p>
<p><?php echo _AT('chat_chime_help'); ?></p>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
- <td align="left"><input type="submit" value="<?php echo _AT('chat_next'); ?>" name="submit" class="submit" onFocus="this.className='submit highlight'" onBlur="this.className='submit'" />
+ <td align="left"><input type="submit" value="<?php echo _AT('next'); ?>" name="submit" class="submit" onFocus="this.className='submit highlight'" onBlur="this.className='submit'" />
<input type="submit" value="<?php echo _AT('chat_enter'); ?>" name="submit_r" class="submit" onFocus="this.className='submit highlight'" onBlur="this.className='submit'" /></td>
</tr>
</table>
<p><b><?php echo _AT('chat_newmsg_prefs'); ?></b>
<select name="onlyNewFlag">
- <option value="0"><?php echo _AT('chat_newmsg_no'); ?></option>
- <option value="1" <?php echo $oNFSelT;?>><?php echo _AT('chat_newmsg_yes'); ?></option>
+ <option value="0"><?php echo _AT('no'); ?></option>
+ <option value="1" <?php echo $oNFSelT;?>><?php echo _AT('yes'); ?></option>
</select></p>
<p><?php echo _AT('chat_message_new_help') ;?></p>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
- <td align="left"><input type="submit" value="<?php echo _AT('chat_previous'); ?>" name="submit_p" class="submit" onFocus="this.className='submit highlight'" onBlur="this.className='submit'" /> <input type="submit" value="<?php echo _AT('chat_enter'); ?>" name="submit_r" class="submit" onFocus="this.className='submit highlight'" onBlur="this.className='submit'" /></td>
+ <td align="left"><input type="submit" value="<?php echo _AT('previous'); ?>" name="submit_p" class="submit" onFocus="this.className='submit highlight'" onBlur="this.className='submit'" /> <input type="submit" value="<?php echo _AT('chat_enter'); ?>" name="submit_r" class="submit" onFocus="this.className='submit highlight'" onBlur="this.className='submit'" /></td>
</tr>
</table>
<?php if ($_GET['unlock']): ?>
<div class="row">
- <input type="radio" name="lock" value="0" id="un"><label for="un"><?php echo _AT('unlock'); ?></label>
+ <input type="radio" name="lock" value="0" id="un"><label for="un"><?php echo _AT('unlock_thread'); ?></label>
</div>
<?php endif; ?>
// $Id$
if (!defined('AT_INCLUDE_PATH')) { exit; }
-global $next_prev_links, $langEditor;
+global $next_prev_links;
global $_base_path, $_my_uri;
global $_stacks, $db;
global $system_courses;
$_template[$row['term']] = stripslashes($row['text']);
$outString = $_template[$row['term']];
if (empty($outString)) {
- if (AT_DEVEL_TRANSLATE) {
- global $langEditor;
- $langEditor->addMissingTerm($format);
- }
return ('[ '.$format.' ]');
}
$outString = $_template[$row['term']];
$rtl = 'rtl_'; /* basically the prefix to a rtl variant directory/filename. eg. rtl_tree */
}
- if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE) {
- require_once(AT_INCLUDE_PATH . 'classes/Language/LanguageEditor.class.php');
- $langEditor =& new LanguageEditor($myLang);
- }
/***** end language block ****/
/* 8. load common libraries */
\r
$this->_stacks['users_online'] = array('title_var'=>'users_online', 'file'=>AT_INCLUDE_PATH.'html/dropdowns/users_online.inc.php');\r
\r
-$this->_pages['tools/enrollment/index.php']['title_var'] = 'enrolment';\r
+$this->_pages['tools/enrollment/index.php']['title_var'] = 'enrollment';\r
$this->_pages['tools/enrollment/index.php']['parent'] = 'tools/index.php';\r
$this->_pages['tools/enrollment/index.php']['guide'] = 'instructor/?p=enrollment.php';\r
$this->_pages['tools/enrollment/index.php']['children'] = array('tools/enrollment/export_course_list.php', 'tools/enrollment/import_course_list.php', 'tools/enrollment/create_course_list.php');\r
/*******\r
* instructor Manage section:\r
*/\r
-$this->_pages['reading_list/index_instructor.php']['title_var'] = 'rl_reading_list';\r
+$this->_pages['reading_list/index_instructor.php']['title_var'] = 'reading_list';\r
$this->_pages['reading_list/index_instructor.php']['parent'] = 'tools/index.php';\r
$this->_pages['reading_list/index_instructor.php']['children'] = array('reading_list/display_resources.php');\r
$this->_pages['reading_list/index_instructor.php']['guide'] = 'instructor/?p=reading_list.php';\r
/*******\r
* student page.\r
*/\r
-$this->_pages['reading_list/index.php']['title_var'] = 'rl_reading_list';\r
+$this->_pages['reading_list/index.php']['title_var'] = 'reading_list';\r
$this->_pages['reading_list/index.php']['img'] = 'images/home-reading_list.gif';\r
\r
$this->_pages['reading_list/index.php']['children'] = array('reading_list/reading_details.php');\r
$this->_pages['packages/index.php']['children'] = array ('packages/preferences.php');\r
$this->_pages['packages/index.php']['guide'] = 'general/?p=6.2.packages.php';\r
\r
- $this->_pages['packages/preferences.php']['title_var'] = 'package_preferences';\r
+ $this->_pages['packages/preferences.php']['title_var'] = 'preferences';\r
$this->_pages['packages/preferences.php']['parent'] = 'packages/index.php';\r
\r
$this->_pages['packages/cmidata.php']['title_var'] = 'cmi_data';\r
</div>
<div class="row">
- <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('rl_author'); ?></label><br />
+ <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('author'); ?></label><br />
<input type="text" name="author" size="25" id="author" value="<?php echo htmlspecialchars($author); ?>" />
</div>
</div>
<div class="row">
- <label for="comments"><?php echo _AT('rl_comment'); ?></label><br />
+ <label for="comments"><?php echo _AT('comment'); ?></label><br />
<textarea name="comments" cols="30" rows="2" id="comments"><?php echo htmlspecialchars($comments); ?></textarea>
</div>
</div>
<div class="row">
- <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('rl_author'); ?></label><br />
+ <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('author'); ?></label><br />
<input type="text" name="author" size="25" id="author" value="<?php echo htmlspecialchars($author); ?>" />
</div>
</div>
<div class="row">
- <label for="comments"><?php echo _AT('rl_comment'); ?></label><br />
+ <label for="comments"><?php echo _AT('comment'); ?></label><br />
<textarea name="comments" cols="30" rows="2" id="comments"><?php echo htmlspecialchars($comments); ?></textarea>
</div>
</div>
<div class="row">
- <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('rl_author'); ?></label><br />
+ <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('author'); ?></label><br />
<input type="text" name="author" size="25" id="author" value="<?php echo htmlspecialchars($author); ?>" />
</div>
</div>
<div class="row">
- <label for="comments"><?php echo _AT('rl_comment'); ?></label><br />
+ <label for="comments"><?php echo _AT('comment'); ?></label><br />
<textarea name="comments" cols="30" rows="2" id="comments"><?php echo htmlspecialchars($comments); ?></textarea>
</div>
</div>
<div class="row">
- <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('rl_author'); ?></label><br />
+ <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="author"><?php echo _AT('author'); ?></label><br />
<input type="text" name="author" size="25" id="author" value="<?php echo htmlspecialchars($author); ?>" />
</div>
</div>
<div class="row">
- <label for="comments"><?php echo _AT('rl_comment'); ?></label><br />
+ <label for="comments"><?php echo _AT('comment'); ?></label><br />
<textarea name="comments" cols="30" rows="2" id="comments"><?php echo htmlspecialchars($comments); ?></textarea>
</div>
</div>
<div class="row">
- <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="url"><?php echo _AT('rl_url'); ?></label><br />
+ <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="url"><?php echo _AT('url'); ?></label><br />
<input type="text" name="url" size="50" id="url" value="<?php echo htmlspecialchars($url); ?>" />
</div>
<div class="row">
- <label for="author"><?php echo _AT('rl_author'); ?></label><br />
+ <label for="author"><?php echo _AT('author'); ?></label><br />
<input type="text" name="author" size="25" id="author" value="<?php echo htmlspecialchars($author); ?>" />
</div>
<div class="row">
- <label for="comments"><?php echo _AT('rl_comment'); ?></label><br />
+ <label for="comments"><?php echo _AT('comment'); ?></label><br />
<textarea name="comments" cols="30" rows="2" id="comments"><?php echo htmlspecialchars($comments); ?></textarea>
</div>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?>
</div>
<div class="row">
- <?php echo _AT('rl_author'). ": ". $row['author']; ?>
+ <?php echo _AT('author'). ": ". $row['author']; ?>
</div>
<div class="row">
<?php echo _AT('rl_publisher'). ": ". $row['publisher']; ?>
<?php echo _AT('rl_isbn_number'). ": ". $row['id']; ?>
</div>
<div class="row">
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</div>
<?php elseif ($row['type'] == RL_TYPE_URL): ?>
<?php echo _AT('location'). ": " ?><a href="<?php echo $row['url']?>"><?php echo $row['url']; ?></a>
</div>
<div class="row">
- <?php echo _AT('rl_author'). ": ". $row['author']; ?>
+ <?php echo _AT('author'). ": ". $row['author']; ?>
</div>
<div class="row">
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</div>
<?php elseif ($row['type'] == RL_TYPE_HANDOUT): ?>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?>
</div>
<div class="row">
- <?php echo _AT('rl_author'). ": ". $row['author']; ?>
+ <?php echo _AT('author'). ": ". $row['author']; ?>
</div>
<div class="row">
<?php echo _AT('date'). ": ". $row['date']; ?>
</div>
<div class="row">
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</div>
<?php elseif ($row['type'] == RL_TYPE_AV): ?>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?>
</div>
<div class="row">
- <?php echo _AT('rl_author'). ": ". $row['author']; ?>
+ <?php echo _AT('author'). ": ". $row['author']; ?>
</div>
<div class="row">
<?php echo _AT('date'). ": ". $row['date']; ?>
</div>
<div class="row">
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</div>
<?php elseif ($row['type'] == RL_TYPE_FILE): ?>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?>
</div>
<div class="row">
- <?php echo _AT('rl_author'). ": ". $row['author']; ?>
+ <?php echo _AT('author'). ": ". $row['author']; ?>
</div>
<div class="row">
<?php echo _AT('rl_publisher'). ": ". $row['publisher']; ?>
<?php echo _AT('rl_id'). ": ". $row['id']; ?>
</div>
<div class="row">
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</div>
<?php endif; ?>
<th> </th>
<th><?php echo _AT('type'); ?></th>
<th><?php echo _AT('title'); ?></th>
- <th><?php echo _AT('rl_author'); ?></th>
+ <th><?php echo _AT('author'); ?></th>
</tr>
</thead>
<tfoot>
<h3><?php echo _AT('rl_av_material_to_view');?></h3>
<div class="row">
- <label for="title"><?php echo _AT('rl_select_av'); ?>:</label>
+ <label for="title"><?php echo _AT('select_av'); ?>:</label>
<select name="existing" id="title">
<?php while ($row = mysql_fetch_assoc($av_result)): ?>
<option value="<?php echo $row['resource_id']; ?>"<?php if ($row['resource_id'] == $resource_id) { echo ' selected="selected"'; } ?>><?php echo htmlspecialchars($row['title']); ?></option>
if ($rowreading['required'] == 'required'){
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php
if ($rowreading['required'] == 'optional'){
echo 'checked="checked"';
}?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
}?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<?php $array_date_start = explode ('-', $rowreading['date_start'], 3); ?>
<select name="startday" id="startdate">
<?php } ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<?php $array_date_end = explode ('-', $rowreading['date_end'], 3); ?>
<select name="endday" id="enddate">
if ($rowreading['required'] == 'required'){
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php
if ($rowreading['required'] == 'optional'){
echo 'checked="checked"';
}?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
}?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<?php $array_date_start = explode ('-', $rowreading['date_start'], 3); ?>
<select name="startday" id="startdate">
<?php } ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<?php $array_date_end = explode ('-', $rowreading['date_end'], 3); ?>
<select name="endday" id="enddate">
if ($rowreading['required'] == 'required'){
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php
if ($rowreading['required'] == 'optional'){
echo 'checked="checked"';
}?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
}?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<?php $array_date_start = explode ('-', $rowreading['date_start'], 3); ?>
<select name="startday" id="startdate">
<?php } ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<?php $array_date_end = explode ('-', $rowreading['date_end'], 3); ?>
<select name="endday" id="enddate">
if ($rowreading['required'] == 'required'){
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php
if ($rowreading['required'] == 'optional'){
echo 'checked="checked"';
}?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
}?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<?php $array_date_start = explode ('-', $rowreading['date_start'], 3); ?>
<select name="startday" id="startdate">
<?php } ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<?php $array_date_end = explode ('-', $rowreading['date_end'], 3); ?>
<select name="endday" id="enddate">
if ($rowreading['required'] == 'required'){
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php
if ($rowreading['required'] == 'optional'){
echo 'checked="checked"';
}?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php echo htmlspecialchars($rowreading['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
}?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<?php $array_date_start = explode ('-', $rowreading['date_start'], 3); ?>
<select name="startday" id="startdate">
<?php } ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<?php $array_date_end = explode ('-', $rowreading['date_end'], 3); ?>
<select name="endday" id="enddate">
<th><?php echo _AT('rl_start'); ?></th>\r
<th><?php echo _AT('rl_end'); ?></th>\r
<th><?php echo _AT('title'); ?></th>\r
- <th><?php echo _AT('rl_required'); ?></th>\r
- <th><?php echo _AT('rl_comment'); ?></th>\r
+ <th><?php echo _AT('required'); ?></th>\r
+ <th><?php echo _AT('comment'); ?></th>\r
</tr>\r
</thead>\r
<tbody>\r
<th><?php echo _AT('rl_start'); ?></th>\r
<th><?php echo _AT('rl_end'); ?></th>\r
<th><?php echo _AT('title'); ?></th>\r
- <th><?php echo _AT('rl_required'); ?></th>\r
- <th><?php echo _AT('rl_comment'); ?></th>\r
+ <th><?php echo _AT('required'); ?></th>\r
+ <th><?php echo _AT('comment'); ?></th>\r
</tr>\r
</thead>\r
<tfoot>\r
<h3><?php echo _AT('rl_av_material_to_view'); ?></h3>
<div class="row">
- <label for="title"><?php echo _AT('rl_select_av'); ?>:</label>
+ <label for="title"><?php echo _AT('select_av'); ?>:</label>
<select name="existing" id="title">
<?php while ($row = mysql_fetch_assoc($av_result)): ?>
} else {
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php if (isset($_POST['readstatus']) && ($_POST['readstatus'] == 'optional')) { echo ' checked="checked"'; } ?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
<input type="radio" id="hasdate" name="hasdate" value="true" <?php if (isset($_POST['hasdate']) && ($_POST['hasdate'] == 'true')) { echo ' checked="checked"'; } ?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<select name="startday" id="startdate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<select name="endday" id="enddate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
} else {
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php if (isset($_POST['readstatus']) && ($_POST['readstatus'] == 'optional')) { echo ' checked="checked"'; } ?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
<input type="radio" id="hasdate" name="hasdate" value="true" <?php if (isset($_POST['hasdate']) && ($_POST['hasdate'] == 'true')) { echo ' checked="checked"'; } ?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<select name="startday" id="startdate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
<?php } ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<select name="endday" id="enddate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
else {
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php if (isset($_POST['readstatus']) && ($_POST['readstatus'] == 'optional')) { echo ' checked="checked"'; } ?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
<input type="radio" id="hasdate" name="hasdate" value="true" <?php if (isset($_POST['hasdate']) && ($_POST['hasdate'] == 'true')) { echo ' checked="checked"'; } ?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<select name="startday" id="startdate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<select name="endday" id="enddate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
else {
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php if (isset($_POST['readstatus']) && ($_POST['readstatus'] == 'optional')) { echo ' checked="checked"'; } ?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
<input type="radio" id="hasdate" name="hasdate" value="true" <?php if (isset($_POST['hasdate']) && ($_POST['hasdate'] == 'true')) { echo ' checked="checked"'; } ?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<select name="startday" id="startdate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<select name="endday" id="enddate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
else {
echo 'checked="checked"';
}?>/>
- <label for="required"><?php echo _AT('rl_required'); ?></label>
+ <label for="required"><?php echo _AT('required'); ?></label>
<input type="radio" name="readstatus" value="optional" id="optional" <?php if (isset($_POST['readstatus']) && ($_POST['readstatus'] == 'optional')) { echo ' checked="checked"'; } ?>/>
- <label for="optional"><?php echo _AT('rl_optional'); ?></label>
+ <label for="optional"><?php echo _AT('optional'); ?></label>
</div>
<div class="row">
- <label for="comment"><?php echo _AT('rl_comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
+ <label for="comment"><?php echo _AT('comment'); ?>:</label><input type="text" id="comment" size="75" name="comment" value="<?php if (isset($_POST['comment'])) echo $stripslashes($_POST['comment']); ?>" />
</div>
<h3><?php echo _AT('rl_read_by_date'); ?></h3>
<input type="radio" id="hasdate" name="hasdate" value="true" <?php if (isset($_POST['hasdate']) && ($_POST['hasdate'] == 'true')) { echo ' checked="checked"'; } ?>/>
<label for="hasdate"><?php echo _AT('rl_reading_date'); ?></label><br/>
- <label for="startdate"><?php echo _AT('rl_start_date'); ?>:</label>
+ <label for="startdate"><?php echo _AT('start_date'); ?>:</label>
<select name="startday" id="startdate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
</select>
- <br/><label for="enddate"><?php echo _AT('rl_end_date'); ?>:</label>
+ <br/><label for="enddate"><?php echo _AT('end_date'); ?>:</label>
<select name="endday" id="enddate">
<?php for ($i = 1; $i <= 31; $i++){ ?>
<div class="input-form">
<p><?php echo _AT('title'). ": <strong>". $row['title']. "</strong>"; ?><br/>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?><br/>
- <?php echo _AT('rl_author'). ": ". $row['author']; ?><br/>
+ <?php echo _AT('author'). ": ". $row['author']; ?><br/>
<?php echo _AT('rl_publisher'). ": ". $row['publisher']; ?><br/>
<?php echo _AT('date'). ": ". $row['date']; ?><br/>
<?php echo _AT('rl_isbn_number'). ": ". $row['id']; ?><br/>
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</p>
</div>
<?php elseif ($row['type'] == RL_TYPE_URL): ?>
<p><?php echo _AT('title'). ": <strong>". $row['title']. "</strong>"; ?><br/>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?><br/>
<?php echo _AT('location'). ": " ?><a href="<?php echo $row['url']?>"><?php echo $row['url']; ?></a><br/>
- <?php echo _AT('rl_author'). ": ". $row['author']; ?><br/>
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('author'). ": ". $row['author']; ?><br/>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</p>
</div>
<?php elseif ($row['type'] == RL_TYPE_HANDOUT): ?>
<div class="input-form">
<p><?php echo _AT('title'). ": <strong>". $row['title']. "</strong>"; ?><br/>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?><br/>
- <?php echo _AT('rl_author'). ": ". $row['author']; ?><br/>
+ <?php echo _AT('author'). ": ". $row['author']; ?><br/>
<?php echo _AT('date'). ": ". $row['date']; ?><br/>
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</p>
</div>
<?php elseif ($row['type'] == RL_TYPE_AV): ?>
<div class="input-form">
<p><?php echo _AT('title'). ": <strong>". $row['title']. "</strong>" ; ?><br/>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?><br/>
- <?php echo _AT('rl_author'). ": ". $row['author']; ?><br />
+ <?php echo _AT('author'). ": ". $row['author']; ?><br />
<?php echo _AT('date'). ": ". $row['date']; ?><br/>
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</p>
</div>
<?php elseif ($row['type'] == RL_TYPE_FILE): ?>
<div class="input-form">
<p><?php echo _AT('title'). ": <strong>". $row['title']. "</strong>"; ?><br/>
<?php echo _AT('rl_type_of_resource'). ": ". _AT($_rl_types[$row['type']]); ?><br/>
- <?php echo _AT('rl_author'). ": ". $row['author']; ?><br/>
+ <?php echo _AT('author'). ": ". $row['author']; ?><br/>
<?php echo _AT('rl_publisher'). ": ". $row['publisher']; ?><br/>
<?php echo _AT('date'). ": ". $row['date']; ?><br/>
<?php echo _AT('id'). ": ". $row['id']; ?><br/>
- <?php echo _AT('rl_comment'). ": ". $row['comments']; ?>
+ <?php echo _AT('comment'). ": ". $row['comments']; ?>
</p>
</div>
<?php endif;
<?php echo _AT('search_in'); ?><br />
<input type="radio" name="field" value="anyField" id="taf" <?php if (!isset($_GET['field']) || ($_GET['field'] == 'anyField')) { echo 'checked="checked"'; } ?> /><label for="taf"><?php echo _AT('tile_any_field'); ?></label><br />
- <input type="radio" name="field" value="title" id="tt" <?php if ($_GET['field'] == 'title') { echo 'checked="checked"'; } ?> /><label for="tt"><?php echo _AT('tile_title'); ?></label><br />
+ <input type="radio" name="field" value="title" id="tt" <?php if ($_GET['field'] == 'title') { echo 'checked="checked"'; } ?> /><label for="tt"><?php echo _AT('title'); ?></label><br />
<input type="radio" name="field" value="author" id="ta" <?php if ($_GET['field'] == 'author') { echo 'checked="checked"'; } ?> /><label for="ta"><?php echo _AT('tile_author'); ?></label><br />
<input type="radio" name="field" value="subject" id="tk" <?php if ($_GET['field'] == 'subject') { echo 'checked="checked"'; } ?> /><label for="tk"><?php echo _AT('tile_keyword'); ?></label><br />
- <input type="radio" name="field" value="description" id="td" <?php if ($_GET['field'] == 'description') { echo 'checked="checked"'; } ?> /><label for="td"><?php echo _AT('tile_description'); ?></label><br />
+ <input type="radio" name="field" value="description" id="td" <?php if ($_GET['field'] == 'description') { echo 'checked="checked"'; } ?> /><label for="td"><?php echo _AT('description'); ?></label><br />
<input type="radio" name="field" value="technicalFormat" id="tf" <?php if ($_GET['field'] == 'technicalFormat') { echo 'checked="checked"'; } ?> /><label for="tf"><?php echo _AT('tile_technical_format'); ?></label>
</div>
<th scope="col"> </th>
<th scope="col"><a href="tools/chat/index.php?<?php echo $orders[$order]; ?>=name"><?php echo _AT('chat_transcript');?></a></th>
<th scope="col"><?php echo _AT('status'); ?></th>
- <th scope="col"><a href="tools/chat/index.php?<?php echo $orders[$order]; ?>=date"><?php echo _AT('chat_date'); ?></a></th>
+ <th scope="col"><a href="tools/chat/index.php?<?php echo $orders[$order]; ?>=date"><?php echo _AT('date'); ?></a></th>
</th>
</tr>
</thead>
* ensure that addFeeback('CANCELLED') is properly cleaned up, see below
*/
$msg->addFeedback('CANCELLED');
- echo '<center><a href="'.$_SERVER['PHP_SELF'].'?reset=2">'._AT('yes_delete').'</a> | <a href="'.$_SERVER['PHP_SELF'].'">'._AT('no_cancel').'</a></center>';
+ echo '<center><a href="'.$_SERVER['PHP_SELF'].'?reset=2">'._AT('yes_delete').'</a> | <a href="'.$_SERVER['PHP_SELF'].'">'._AT('no').'</a></center>';
require(AT_INCLUDE_PATH.'footer.inc.php');
exit;
} else if($_GET['reset']==2) {
</div>
<div class="row">
- <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="course_list"><?php echo _AT('import_course_list'); ?></label><br />
+ <div class="required" title="<?php echo _AT('required_field'); ?>">*</div><label for="course_list"><?php echo _AT('list_import_course_list'); ?></label><br />
<input type="file" name="file" id="course_list" />
</div>
</div>\r
\r
<div class="row">\r
- <?php echo _AT('user_privileges'); ?><br />\r
+ <?php echo _AT('privileges'); ?><br />\r
<table width="100%" border="0" cellspacing="5" cellpadding="0" summary="">\r
<tr>\r
<?php \r
$n = '';
}
?>
- <input type="radio" id="yes" name="approved" value="1" <?php echo $y; ?>><label for="yes"><?php echo _AT('yes1'); ?></label> <input type="radio" id="no" name="approved" value="0" <?php echo $n; ?>><label for="no"><?php echo _AT('no1'); ?></label>
+ <input type="radio" id="yes" name="approved" value="1" <?php echo $y; ?>><label for="yes"><?php echo _AT('yes'); ?></label> <input type="radio" id="no" name="approved" value="0" <?php echo $n; ?>><label for="no"><?php echo _AT('no'); ?></label>
</div>
<div class="row buttons">
$y = '';\r
}\r
?>\r
- <input type="radio" id="yes" name="approved" value="1" <?php echo $y; ?> /><label for="yes"><?php echo _AT('yes1'); ?></label> <input type="radio" id="no" name="approved" value="0" <?php echo $n; ?> /><label for="no"><?php echo _AT('no1'); ?></label>\r
+ <input type="radio" id="yes" name="approved" value="1" <?php echo $y; ?> /><label for="yes"><?php echo _AT('yes'); ?></label> <input type="radio" id="no" name="approved" value="0" <?php echo $n; ?> /><label for="no"><?php echo _AT('no'); ?></label>\r
</div>\r
\r
<div class="row buttons">\r
\r
<td align="center"><?php \r
if($row['Approved']) { \r
- echo _AT('yes1'); \r
+ echo _AT('yes'); \r
} else { \r
- echo _AT('no1'); \r
+ echo _AT('no'); \r
} ?></td>\r
<td align="center"><?php echo $row['hits']; ?></td>\r
</tr>\r
$n = 'checked="checked"';
}
?>
- <input type="radio" name="format" id="formatN" value="0" <?php echo $n; ?> /><label for="formatN"><?php echo _AT('no1'); ?></label>
- <input type="radio" name="format" id="formatY" value="1" <?php echo $y; ?> /><label for="formatY"><?php echo _AT('yes1'); ?></label>
+ <input type="radio" name="format" id="formatN" value="0" <?php echo $n; ?> /><label for="formatN"><?php echo _AT('no'); ?></label>
+ <input type="radio" name="format" id="formatY" value="1" <?php echo $y; ?> /><label for="formatY"><?php echo _AT('yes'); ?></label>
</div>
<div class="row">
}
?>
- <input type="radio" name="anonymous" id="anonN" value="0" <?php echo $n; ?> /><label for="anonN"><?php echo _AT('no1'); ?></label>
- <input type="radio" name="anonymous" value="1" id="anonY" <?php echo $y; ?> /><label for="anonY"><?php echo _AT('yes1'); ?></label>
+ <input type="radio" name="anonymous" id="anonN" value="0" <?php echo $n; ?> /><label for="anonN"><?php echo _AT('no'); ?></label>
+ <input type="radio" name="anonymous" value="1" id="anonY" <?php echo $y; ?> /><label for="anonY"><?php echo _AT('yes'); ?></label>
</div>
<div class="row">
$disabled = 'disabled="disabled" ';
}
?>
- <input type="radio" name="random" id="random" value="0" checked="checked" onfocus="document.form.num.disabled=true;" /><label for="random"><?php echo _AT('no1'); ?></label>. <input type="radio" name="random" value="1" id="ry" onfocus="document.form.num.disabled=false;" <?php echo $y; ?> /><label for="ry"><?php echo _AT('yes1'); ?></label>, <input type="text" name="num" id="num" size="2" value="<?php echo $_POST['num']; ?>" <?php echo $disabled . $n; ?> /> <label for="num"><?php echo _AT('num_questions_per_test'); ?></label>
+ <input type="radio" name="random" id="random" value="0" checked="checked" onfocus="document.form.num.disabled=true;" /><label for="random"><?php echo _AT('no'); ?></label>. <input type="radio" name="random" value="1" id="ry" onfocus="document.form.num.disabled=false;" <?php echo $y; ?> /><label for="ry"><?php echo _AT('yes'); ?></label>, <input type="text" name="num" id="num" size="2" value="<?php echo $_POST['num']; ?>" <?php echo $disabled . $n; ?> /> <label for="num"><?php echo _AT('num_questions_per_test'); ?></label>
</div>
$n = 'checked="checked"';
}
?>
- <input type="radio" name="format" id="formatN" value="0" <?php echo $n; ?> /><label for="formatN"><?php echo _AT('no1'); ?></label>
- <input type="radio" name="format" id="formatY" value="1" <?php echo $y; ?> /><label for="formatY"><?php echo _AT('yes1'); ?></label>
+ <input type="radio" name="format" id="formatN" value="0" <?php echo $n; ?> /><label for="formatN"><?php echo _AT('no'); ?></label>
+ <input type="radio" name="format" id="formatY" value="1" <?php echo $y; ?> /><label for="formatY"><?php echo _AT('yes'); ?></label>
</div>
<div class="row">
$n = 'checked="checked"';
}
?>
- <input type="radio" name="anonymous" id="anonN" value="0" <?php echo $n; ?> /><label for="anonN"><?php echo _AT('no1'); ?></label>
- <input type="radio" name="anonymous" value="1" id="anonY" <?php echo $y; ?> /><label for="anonY"><?php echo _AT('yes1'); ?></label>
+ <input type="radio" name="anonymous" id="anonN" value="0" <?php echo $n; ?> /><label for="anonN"><?php echo _AT('no'); ?></label>
+ <input type="radio" name="anonymous" value="1" id="anonY" <?php echo $y; ?> /><label for="anonY"><?php echo _AT('yes'); ?></label>
</div>
<div class="row">
$disabled = 'disabled="disabled" ';
}
?>
- <input type="radio" name="random" id="random" value="0" checked="checked" onfocus="document.form.num_questions.disabled=true;" /><label for="random"><?php echo _AT('no1'); ?></label>. <input type="radio" name="random" value="1" id="ry" onfocus="document.form.num_questions.disabled=false;" <?php echo $y; ?> /><label for="ry"><?php echo _AT('yes1'); ?></label>, <input type="text" name="num_questions" id="num_questions" size="2" value="<?php echo $_POST['num_questions']; ?>" <?php echo $disabled . $n; ?> /> <label for="num_questions"><?php echo _AT('num_questions_per_test'); ?></label>
+ <input type="radio" name="random" id="random" value="0" checked="checked" onfocus="document.form.num_questions.disabled=true;" /><label for="random"><?php echo _AT('no'); ?></label>. <input type="radio" name="random" value="1" id="ry" onfocus="document.form.num_questions.disabled=false;" <?php echo $y; ?> /><label for="ry"><?php echo _AT('yes'); ?></label>, <input type="text" name="num_questions" id="num_questions" size="2" value="<?php echo $_POST['num_questions']; ?>" <?php echo $disabled . $n; ?> /> <label for="num_questions"><?php echo _AT('num_questions_per_test'); ?></label>
</div>
<div class="row">
authenticate(AT_PRIV_TESTS);\r
$_section[0][0] = _AT('tools');\r
$_section[0][1] = 'tools/';\r
-$_section[1][0] = _AT('test_manager');\r
+$_section[1][0] = _AT('tests');\r
$_section[1][1] = 'tools/tests';\r
$_section[2][0] = _AT('results');\r
\r
<?php echo _AT('search_in'); ?></label><br />
<input type="radio" name="field" value="anyField" id="taf" <?php if (!isset($_GET['field']) || ($_GET['field'] == 'anyField')) { echo 'checked="checked"'; } ?> /><label for="taf"><?php echo _AT('tile_any_field'); ?></label><br />
- <input type="radio" name="field" value="title" id="tt" <?php if ($_GET['field'] == 'title') { echo 'checked="checked"'; } ?> /><label for="tt"><?php echo _AT('tile_title'); ?></label><br />
+ <input type="radio" name="field" value="title" id="tt" <?php if ($_GET['field'] == 'title') { echo 'checked="checked"'; } ?> /><label for="tt"><?php echo _AT('title'); ?></label><br />
<input type="radio" name="field" value="author" id="ta" <?php if ($_GET['field'] == 'author') { echo 'checked="checked"'; } ?> /><label for="ta"><?php echo _AT('tile_author'); ?></label><br />
<input type="radio" name="field" value="subject" id="tk" <?php if ($_GET['field'] == 'subject') { echo 'checked="checked"'; } ?> /><label for="tk"><?php echo _AT('tile_keyword'); ?></label><br />
- <input type="radio" name="field" value="description" id="td" <?php if ($_GET['field'] == 'description') { echo 'checked="checked"'; } ?> /><label for="td"><?php echo _AT('tile_description'); ?></label><br />
+ <input type="radio" name="field" value="description" id="td" <?php if ($_GET['field'] == 'description') { echo 'checked="checked"'; } ?> /><label for="td"><?php echo _AT('description'); ?></label><br />
<input type="radio" name="field" value="technicalFormat" id="tf" <?php if ($_GET['field'] == 'technicalFormat') { echo 'checked="checked"'; } ?> /><label for="tf"><?php echo _AT('tile_technical_format'); ?></label>
</div>