--- /dev/null
+hi
\ No newline at end of file
+++ /dev/null
-<form name="importForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
-<div class="input-form">
- <div class="row">
- <h3><?php echo _AT('update_list'); ?></h3>
- <label for="file"><?php echo _AT('file'); ?></label><br />
- <input type="file" name="file" size="40" id="file" />
- </div>
-
- <div class="row">
- <?php echo _AT('master_not_in_list'); ?><br />
- <input type="radio" name="override" id="o0" value="0" checked="checked" /><label for="o0"><?php echo _AT('leave_unchanged'); ?></label>
- <input type="radio" name="override" id="o1" value="1" /><label for="o1"><?php echo _AT('disable'); ?></label>
- </div>
-
- <div class="row buttons">
- <input type= "submit" name="submit" value="<?php echo _AT('upload'); ?>" />
- </div>
-</div>
-</form>
-
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
- <div class="input-form">
- <div class="row">
- <h3><?php echo _AT('results_found', $num_results); ?></h3>
- </div>
-
- <div class="row">
- <?php echo _AT('account_status'); ?><br />
- <input type="radio" name="status" value="1" id="s0" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('not_created'); ?></label>
-
- <input type="radio" name="status" value="2" id="s1" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('created'); ?></label>
-
- <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
- </div>
-
- <div class="row">
- <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
- <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
- </div>
-
- <div class="row buttons">
- <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
- <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
- </div>
- </div>
-</form>
-
-<div class="paging">
- <ul>
- <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
- <li>
- <?php if ($i == $page) : ?>
- <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><strong><?php echo $i; ?></strong></a>
- <?php else: ?>
- <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><?php echo $i; ?></a>
- <?php endif; ?>
- </li>
- <?php endfor; ?>
- </ul>
-</div>
-
-
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
-
-<table summary="" class="data" rules="cols" style="width: 60%;">
-<thead>
-<tr>
- <th scope="col"> </th>
- <th scope="col"><?php echo _AT('student_id'); ?></th>
- <th scope="col"><?php echo _AT('login_name'); ?></th>
- <th scope="col"><?php echo _AT('first_name'); ?></th>
- <th scope="col"><?php echo _AT('second_name'); ?></th>
- <th scope="col"><?php echo _AT('last_name'); ?></th>
-</tr>
-</thead>
-<?php if ($this->num_results > 0): ?>
-<tfoot>
-<tr>
- <td colspan="6"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
-</tr>
-</tfoot>
-<tbody>
- <?php while($row = mysql_fetch_assoc($result)): ?>
- <tr onmousedown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['public_field']; ?>">
- <td><input type="radio" name="id" value="<?php
- if ($row['member_id']) {
- echo $row['member_id'];
- } else {
- echo '-'.$row['public_field'];
- }
- ?>" id="m<?php echo $row['public_field']; ?>" /></td>
- <td><label for="m<?php echo $row['public_field']; ?>"><?php echo $row['public_field']; ?></label></td>
- <td><?php
- if ($row['member_id']) {
- echo $row['login'];
- } else {
- echo '-';
- }
- ?></td>
- <td><?php
- if ($row['member_id']) {
- echo $row['first_name'];
- } else {
- echo '-';
- }
- ?></td>
- <td><?php
- if ($row['member_id']) {
- echo $row['second_name'];
- } else {
- echo '-';
- }
- ?></td>
- <td><?php
- if ($row['member_id']) {
- echo $row['last_name'];
- } else {
- echo '-';
- }
- ?></td>
- </tr>
- <?php endwhile; ?>
-</tbody>
-<?php else: ?>
- <tr>
- <td colspan="6"><?php echo _AT('none_found'); ?></td>
- </tr>
-<?php endif; ?>
-</table>
-</form>
\ No newline at end of file
--- /dev/null
+hi I'm an administrator
+
+<?php global $moduleFactory;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+<div class="input-form">
+
+ <div class="row">
+ <h3><?php echo $this->student_row['login']; ?></h3>
+ </div>
+
+ <div class="row">
+ <?php echo _AT('privileges'); ?><br />
+ <table width="100%" border="0" cellspacing="5" cellpadding="0" summary="">
+ <tr>
+ <?php
+ $count =0;
+ $this->student_row['privileges'] = intval($this->student_row['privileges']);
+ $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);
+ $keys = array_keys($module_list);
+ foreach ($keys as $module_name) {
+ $module =& $module_list[$module_name];
+ if (!($module->getPrivilege() > 1)) {
+ continue;
+ }
+ $count++;
+ echo '<td><label><input type="checkbox" name="privs['.$k.'][]" value="'.$module->getPrivilege().'" ';
+
+ if (query_bit($this->student_row['privileges'], $module->getPrivilege())) {
+ echo 'checked="checked"';
+ }
+
+ echo ' />'.$module->getName().'</label></td>';
+
+ if (!($count % $this->num_cols)) {
+ echo '</tr><tr>';
+ }
+ }
+ if ($count % $this->num_cols) {
+ echo '<td colspan="'.($this->num_cols-($count % $this->num_cols)).'"> </td>';
+ } else {
+ echo '<td colspan="'.$this->num_cols.'"> </td>';
+ }
+ ?>
+ </tr>
+ </table>
+ </div>
+<?php
+ }//end for
+?>
+ <div class="row buttons">
+ <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+ <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+ </div>
+</div>
+</form>
\ No newline at end of file
+++ /dev/null
-<?php global $_config; ?>
-<div class="input-form">
- <div class="row">
- <p><?php echo _AT('cron_url_usage'); ?></p>
- </div>
- <div class="row">
- <?php echo _AT('cron_url'); ?><br />
- <code><?php echo AT_BASE_HREF; ?>admin/cron.php?k=<?php echo $_config['cron_key']; ?></code>
- </div>
-</div>
\ No newline at end of file
--- /dev/null
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="input-form">
+
+<table class="data" summary="" style="width: 100%" rules="cols">
+<thead>
+ <tr>
+ <th scope="col"> </th>
+ <th scope="col"><?php echo _AT('atutor_patch_id');?></th>
+ <th scope="col"><?php echo _AT('description');?></th>
+ <th scope="col"><?php echo _AT('status');?></th>
+ <th scope="col"><?php echo _AT('available_to');?></th>
+ <th scope="col"><?php echo _AT('author');?></th>
+ <th scope="col"><?php echo _AT('installed_date');?></th>
+ <th scope="col"><?php echo _AT('view_message');?></th>
+ </tr>
+</thead>
+
+<tbody>
+<?php
+if ($this->num_of_patches == 0)
+{
+?>
+
+<tr>
+ <td colspan="8">
+<?php
+ echo _AT('none_found');
+?>
+ </td>
+</tr>
+
+<?php
+}
+else
+{
+ while ($row = mysql_fetch_assoc($this->result))
+ {
+ print_patch_row($row, $row['patches_id'], false);
+ }
+
+ $array_id = 0;
+ // display un-installed patches
+ if(is_array($this->patch_list_array))
+ {
+ foreach ($this->patch_list_array as $row_num => $new_patch)
+ {
+ if (!is_patch_installed($new_patch['atutor_patch_id']))
+ {
+ $dependent_patches_installed = true;
+ $dependent_patches = "";
+
+ // check if the dependent patches are installed
+ if (is_array($new_patch["dependent_patches"]))
+ {
+
+ foreach ($new_patch["dependent_patches"] as $num => $dependent_patch)
+ {
+ if (!is_patch_installed($dependent_patch))
+ {
+ $dependent_patches_installed = false;
+ $dependent_patches .= $dependent_patch. ", ";
+ }
+ }
+
+ // remove the last comma in the string
+ if ($dependent_patches <> "") $dependent_patches = substr($dependent_patches, 0, -2);
+ }
+
+ // display patch row
+ if ($dependent_patches_installed)
+ print_patch_row($new_patch, $array_id++, true);
+ else
+ {
+ print_patch_row($new_patch, $array_id++, false);
+ $dependent_patches_installed = true;
+ }
+ }
+ else
+ $array_id++;
+ }
+ }
+?>
+</tbody>
+<tfoot>
+<tr>
+ <td colspan="8">
+ <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
+ </td>
+</tr>
+</tfoot>
+
+<?php
+}
+?>
+</table>
+
+</div>
+</form>
+
+<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
+
+<div class="input-form">
+ <div class="row"><?php echo _AT("upload_patch"); ?></div>
+
+ <div class="row">
+ <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
+ <input type="file" name="patchfile" size="50" />
+ </div>
+
+ <div class="row buttons">
+ <input type="submit" name="install_upload" value="Install" onclick="javascript: return validate_filename(); " class="submit" />
+ <input type="hidden" name="uploading" value="1" />
+ </div>
+</div>
+
+</form>
\ No newline at end of file
--- /dev/null
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table summary="" class="data" rules="cols" align="center" style="width: 95%;">
+
+<thead>
+<tr>
+ <th scope="col"> </th>
+ <th scope="col"><?php echo _AT('atutor_patch_id'); ?></th>
+ <th scope="col"><?php echo _AT('atutor_version_to_apply'); ?></th>
+ <th scope="col"><?php echo _AT('description'); ?></th>
+ <th scope="col"><?php echo _AT('last_modified'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+ <td colspan="5">
+ <div class="row buttons">
+ <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
+ <input type="submit" name="remove" value="<?php echo _AT('remove'); ?>" />
+ </div>
+ </td>
+</tr>
+<tr>
+ <td colspan="5"></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+
+if (mysql_num_rows($this->result) == 0)
+{
+?>
+ <tr>
+ <td colspan="5"><?php echo _AT('none_found'); ?></td>
+ </tr>
+<?php
+}
+else
+{
+ while ($row = mysql_fetch_assoc($this->result))
+ {
+ ?>
+ <tr onmousedown="document.form['m<?php echo $row['myown_patch_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['myown_patch_id']; ?>">
+ <td width="10"><input type="radio" name="myown_patch_id" value="<?php echo $row['myown_patch_id']; ?>" id="m<?php echo $row['myown_patch_id']; ?>" <?php if ($row['myown_patch_id']==$_POST['myown_patch_id']) echo 'checked'; ?> /></td>
+ <td><label for="m<?php echo $row['myown_patch_id']; ?>"><?php echo $row['atutor_patch_id']; ?></label></td>
+ <td><?php echo $row['applied_version']; ?></td>
+ <td><?php echo $row['description']; ?></td>
+ <td><?php echo $row['last_modified']; ?></td>
+ </tr>
+<?php
+ }
+}
+?>
+
+</tbody>
+</table>
+
+</form>
--- /dev/null
+<?php global $strlen?>
+<?php debug($this->num_results_row);?>
+hi
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+ <div class="input-form">
+ <div class="row">
+ <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+ </div>
+
+ <div class="row">
+ <?php echo _AT('type'); ?><br />
+ <input type="radio" name="type" value="template" id="tyte" <?php if ($_GET['type'] == 'template') { echo 'checked="checked"'; } ?> /><label for="tyte"><?php echo _AT('template'); ?></label>
+ <input type="radio" name="type" value="feedback" id="tyfe" <?php if ($_GET['type'] == 'feedback') { echo 'checked="checked"'; } ?> /><label for="tyfe"><?php echo _AT('feedback'); ?></label>
+ </div>
+
+ <div class="row">
+ <input type="checkbox" name="custom" value="1" id="cus" <?php if (isset($_GET['custom'])) { echo 'checked="checked"'; } ?> /><label for="cus"><?php echo _AT('only_show_edited_terms'); ?></label>
+ </div>
+
+ <div class="row">
+ <label for="search"><?php echo _AT('search'); ?></label><br />
+ <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+ </div>
+
+ <div class="row buttons">
+ <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+ <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+ </div>
+ </div>
+</form>
+
+<form name="form" method="post">
+<div class="input-form">
+ <table cellspacing="0" cellpadding="0">
+ <tr>
+ <td valign="top">
+ <?php if ($this->num_results): ?>
+ <select size="<?php echo min(max($this->num_results,2), 25); ?>" name="terms" id="terms" onchange="javascript:showtext(this);">
+ <?php
+ while ($row = mysql_fetch_assoc($result)):
+ if ($strlen($row['text']) > 30) {
+ $row['text'] = $substr($row['text'], 0, 28) . '...';
+ }
+ ?>
+ <option value="<?php echo $row['term']; ?>"><?php echo htmlspecialchars($row['text']); ?></option>
+ <?php endwhile; ?>
+ </select>
+ <?php else: ?>
+ <p><?php echo _AT('none_found'); ?></p>
+ <?php endif; ?>
+ </td>
+
+ <td valign="top">
+ <div class="row">
+ <iframe src="mods/_core/languages/language_term.php" frameborder="0" height="430" width="450" marginheight="0" marginwidth="0" name="tran" id="tran"></iframe>
+ </div>
+ </td>
+ </tr>
+ </table>
+</div>
+</form>
\ No newline at end of file
--- /dev/null
+<?php if (!is_writeable(realpath('./../../../themes'))): ?>
+ <div class="input-form">
+ <div class="row">
+ <?php echo _AT('install_themes_text', realpath('./../../../themes')); ?>
+ </div>
+ </div>
+<?php else: ?>
+ <form name="importForm" method="post" action="mods/_core/themes/import.php" enctype="multipart/form-data">
+ <div class="input-form" style="width:95%;">
+ <div class="row">
+ <h3><?php echo _AT('import_theme'); ?></h3>
+ </div>
+
+ <div class="row">
+ <label for="file"><?php echo _AT('upload_theme_package'); ?></label><br />
+ <input type="file" name="file" size="40" id="file" />
+ </div>
+
+ <div class="row">
+ <label for="url"><?php echo _AT('specify_url_to_theme_package'); ?></label><br />
+ <input type="text" name="url" value="http://" size="40" id="url" />
+ </div>
+
+ <div class="row buttons">
+ <input type= "submit" name="import" value="<?php echo _AT('import'); ?>" />
+ </div>
+ </div>
+ </form>
+ <br />
+<?php endif; ?>
+<?php function print_data_table($this->result, $type) {
+ if (@mysql_num_rows($this->result) == 0) return;
+?>
+<h3><?php if ($type == DESKTOP_DEVICE) echo _AT('themes_for_desktop'); else echo _AT('themes_for_mobile');?></h3><br />
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form_<?php echo $type; ?>">
+<input type="hidden" name="type" value="<?php echo $type; ?>" />
+<table class="data" summary="" rules="cols">
+<thead>
+<tr>
+ <th scope="col"> </th>
+ <th scope="col"><?php echo _AT('title'); ?></th>
+ <th scope="col"><?php echo _AT('status'); ?></th>
+ <th scope="col"><?php echo _AT('version'); ?></th>
+ <th scope="col"><?php echo _AT('directory_name'); ?></th>
+ <th scope="col"><?php echo _AT('description'); ?></th>
+ <th scope="col"><?php echo _AT('theme_screenshot'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+ <td colspan="7">
+ <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />
+ <input type="submit" name="enable" value="<?php echo _AT('enable'); ?>" />
+ <input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
+ <input type="submit" name="default" value="<?php echo _AT('set_default').' '; if ($type == DESKTOP_DEVICE) echo _AT('desktop_theme'); else echo _AT('mobile_theme'); ?>" />
+ <input type="submit" name="export" value="<?php echo _AT('export'); ?>" />
+ <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+ </td>
+</tr>
+</tfoot>
+<?php while($row = mysql_fetch_assoc($this->result)) : ?>
+ <tbody>
+ <tr onmousedown="document.form_<?php echo $type; ?>['t_<?php echo $row['dir_name']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['dir_name']; ?>">
+ <td valign="top">
+ <input type="radio" id="t_<?php echo $row['dir_name']; ?>" name="theme_dir" value="<?php echo $row['dir_name']; ?>" />
+ <input type="hidden" name="<?php echo $row['dir_name']; ?>_version" value="<?php echo $row['version']; ?>" />
+ </td>
+ <td nowrap="nowrap" valign="top"><label for="t_<?php echo $row['dir_name']; ?>"><?php echo AT_print($row['title'], 'themes.title'); ?></label></td>
+ <td valign="top"><?php
+ if ($row['status'] == 0) {
+ echo _AT('disabled');
+ } else if ($row['status'] == 1) {
+ echo _AT('enabled');
+ } else if (($type == DESKTOP_DEVICE && $row['status'] == 2) || ($type == MOBILE_DEVICE && $row['status'] == 3)) {
+ echo '<strong>'._AT('default').'</strong>';
+ }
+ ?>
+ </td>
+ <td valign="top"><?php echo $row['version']; ?></td>
+ <td valign="top"><code><?php echo $row['dir_name']; ?>/</code></td>
+ <td valign="top"><?php echo $row['extra_info']; ?></td>
+ <td valign="top"><?php
+ if (file_exists('../../../themes/'.$row['dir_name'].'/screenshot.jpg')) { ?>
+ <img src="<?php echo AT_BASE_HREF; ?>themes/<?php echo $row['dir_name']; ?>/screenshot.jpg" border="1" alt="<?php echo _AT('theme_screenshot'); ?>" />
+ <?php
+ } else if (file_exists('../../../themes/'.$row['dir_name'].'/screenshot.gif')) { ?>
+ <img src="<?php echo AT_BASE_HREF; ?>themes/<?php echo $row['dir_name']; ?>/screenshot.gif" border="1" alt="<?php echo _AT('theme_screenshot'); ?>" />
+ <?php } ?>
+ </td>
+ </tr>
+ </tbody>
+<?php endwhile; ?>
+</table>
+</form>
+<?php
+}?>
\ No newline at end of file
+++ /dev/null
-<?php global $languageManager, $_config, $MaxCourseSize, $MaxFileSize; ?>
-<?php
-if (!($row = mysql_fetch_array($this->instructor_result))) : ?>
- <form action="mods/_core/courses/users/request_instructor.php" method="post">
- <input type="hidden" name="form_request_instructor" value="true" />
- <div class="input-form">
- <div class="row">
- <p><?php echo _AT('request_instructor'); ?></p>
- </div>
-
- <div class="row">
- <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="desc"><?php echo _AT('give_description'); ?></label><br />
- <textarea cols="40" rows="2" id="desc" name="description"></textarea>
- </div>
-
- <div class="row buttons">
- <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" />
- <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
- </div>
- </div>
- </form>
- <?php else : ?>
- <div class="input-form">
- <div class="row">
- <p><?php echo _AT('request_instructor_pending'); ?></p>
- </div>
- </div>
-<?php endif; ?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="course_form" enctype="multipart/form-data">
- <input type="hidden" name="form_course" value="true" />
- <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
- <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
- <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
- <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
- <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
- <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
- <input type="submit" name="submit" style="display:none;"/>
-
-<div class="input-form">
- <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
-<?php if ($this->isadmin): ?>
- <div class="row">
- <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo _AT('instructor'); ?></label><br />
- <?php
-
-
- if ($instructor_row = mysql_fetch_assoc($this->result)) {
- echo '<select name="instructor" id="inst">';
- do {
- if ($instructor_row['member_id'] == $this->row['member_id']) {
- echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
- } else {
- echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
- }
- } while($instructor_row = mysql_fetch_assoc($this->result));
- echo '</select>';
- } else {
- echo '<span id="inst">'._AT('none_found').'</span>';
- }
- ?>
- </div>
-<?php endif; ?>
-
- <div class="row">
- <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
- <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
- </div>
-
- <div class="row">
- <label for="pri_lang"><?php echo _AT('primary_language'); ?></label><br />
- <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
- </div>
-
- <div class="row">
- <label for="description"><?php echo _AT('description'); ?></label><br />
- <textarea id="description" cols="45" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
- </div>
- <?php if ($_config['course_dir_name']): ?>
- <div class="row">
- <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
- <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
- </div>
- <?php endif; ?>
-
- <?php $categories = get_categories(); ?>
- <?php if (is_array($categories)): ?>
- <div class="row">
- <label for="cat"><?php echo _AT('category'); ?></label><br />
- <select name="category_parent" id="cat">
- <option value="0"> [ <?php echo _AT('cats_uncategorized'); ?> ] </option>
- <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
-
- </select>
- </div>
- <?php endif; ?>
-
- <div class="row">
- <?php echo _AT('export_content'); ?><br />
- <?php
- switch ($this->row['content_packaging']) {
- case 'none':
- $none = ' checked="checked"';
- break;
-
- case 'top':
- $top = ' checked="checked"';
- break;
-
- case 'all':
- $all = ' checked="checked"';
- break;
- }
- ?>
- <label><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
- <label><input type="radio" name="content_packaging" value="top" id="ctop" <?php echo $top; ?> /><?php echo _AT('content_packaging_top'); ?></label><br />
- <label><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php echo _AT('content_packaging_all'); ?></label>
- </div>
-
- <div class="row">
- <?php echo _AT('syndicate_announcements'); ?><br />
- <?php
- $rss_no = $rss_yes = '';
-
- if ($this->row['rss']) {
- $rss_yes = ' checked="checked"';
- } else {
- $rss_no = ' checked="checked"';
- }
- ?>
- <label><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
- <label><input type="radio" name="rss" value="0" id="rss_n" <?php echo $rss_no; ?> /><?php echo _AT('disable_syndicate'); ?></label>
- </div>
-
- <div class="row">
- <?php echo _AT('access'); ?><br />
- <?php
- switch ($this->row['access']) {
- case 'public':
- $pub = ' checked="checked"';
- $disable = 'disabled="disabled"'; // disable the nofity box
- break;
-
- case 'protected':
- $prot = ' checked="checked"';
- $disable = 'disabled="disabled"'; // disable the nofity box
- break;
-
- case 'private':
- $priv = ' checked="checked"';
- break;
- }
-
- if ($this->row['notify']) {
- $notify = ' checked="checked"';
- }
-
- if ($this->row['hide']) {
- $hide = ' checked="checked"';
- }
- ?>
- <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo _AT('public'); ?>: </strong></label><?php echo _AT('about_public'); ?><br /><br />
-
- <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
-
- <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo _AT('private'); ?>:</strong></label> <?php echo _AT('about_private'); ?><br />
- <input type="checkbox" name="notify" id="notify" value="1" <?php
- echo $disable;
- echo $notify; ?> /><label for="notify"><?php echo _AT('email_approvals'); ?></label>
- <br />
- <input type="checkbox" name="hide" id="hide" value="1" <?php
- echo $disable;
- echo $hide; ?> /><label for="hide"><?php echo _AT('hide_course'); ?></label>.
- </div>
-
- <div class="row">
- <?php echo _AT('release_date'); ?><br />
- <?php
- $rel_no = $rel_yes = '';
-
- if (intval($this->row['release_date'])) {
- $rel_yes = ' checked="checked"';
-
- $today_day = substr($this->row['release_date'], 8, 2);
- $today_mon = substr($this->row['release_date'], 5, 2);
- $today_year = substr($this->row['release_date'], 0, 4);
-
- $today_hour = substr($this->row['release_date'], 11, 2);
- $today_min = substr($this->row['release_date'], 14, 2);
- } else {
- $rel_no = ' checked="checked"';
- $today_year = date('Y');
- }
-
- ?>
-
- <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
-
-
- <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label>
- <?php
- $name = '_release';
- require(AT_INCLUDE_PATH.'html/release_date.inc.php');
- ?>
- </div>
-
- <div class="row">
- <?php echo _AT('end_date'); ?><br />
- <?php
- $end_no = $end_yes = '';
-
- if (intval($this->row['end_date'])) {
- $end_yes = ' checked="checked"';
-
- $today_day = substr($this->row['end_date'], 8, 2);
- $today_mon = substr($this->row['end_date'], 5, 2);
- $today_year = substr($this->row['end_date'], 0, 4);
-
- $today_hour = substr($this->row['end_date'], 11, 2);
- $today_min = substr($this->row['end_date'], 14, 2);
- } else {
- $end_no = ' checked="checked"';
- $today_year = date('Y')+1;
- }
-
- ?>
-
- <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
-
- <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label>
- <?php
- $name = '_end';
- require(AT_INCLUDE_PATH.'html/release_date.inc.php');
- ?>
- </div>
-
- <div class="row">
- <?php
- if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
- echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
- echo '<input type="submit" name="settext" value="'._AT('switch_text').'" class="button"/>';
- } else {
- echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
- }
- ?>
- </div>
- <div class="row">
-
- <label for="banner"><?php echo _AT('banner'); ?></label><br />
- <textarea id="banner" cols="45" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
- </div>
-<!-- FIX -->
-<?php if (!$this->course) : ?>
- <div class="row">
- <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
- <select name="initial_content" id="initial_content" size="5">
- <option value="0"><?php echo _AT('empty'); ?></option>
- <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
- <?php
-
- if ($course_row = mysql_fetch_assoc($result)) {
- do {
- $Backup->setCourseID($course_row['course_id']);
- $list = $Backup->getAvailableList();
-
- if (!empty($list)) {
- echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
- foreach ($list as $list_item) {
- echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
- }
- echo '</optgroup>';
- }
- } while ($course_row = mysql_fetch_assoc($result));
- }
- ?>
- </select>
- </div>
-<?php endif; // !$course_id ?>
-
-<?php if ($this->isadmin) : ?>
- <div class="row">
- <?php echo _AT('course_quota'); ?><br />
- <?php
- if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) {
- $c_unlim = ' checked="checked" ';
- $c_oth2 = ' disabled="disabled" ';
- } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
- $c_def = ' checked="checked" ';
- $c_oth2 = ' disabled="disabled" ';
- } else {
- $c_oth = ' checked="checked" ';
- $c_oth2 = '';
- }
-
- if ($this->course > 0) {
- $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
- } else {
- $course_size = 0;
- }
-
- if ($this->course) {
- echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />';
- }
- ?>
-
- <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
- <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
- <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> -
- <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
- </div>
-
- <div class="row">
- <?php echo _AT('max_file_size'); ?><br />
- <?php
- $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
-
- if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) {
- $f_def = ' checked="checked" ';
- $f_oth2 = ' disabled="disabled" ';
- } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
- $f_max = ' checked="checked" ';
- $f_oth2 = ' disabled="disabled" ';
- } else {
- $f_oth = ' checked="checked" ';
- $f_oth2 = '';
- }
- ?>
- <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
- <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
- <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> -
- <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
- </div>
-
-<?php else: ?>
- <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
- <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
- <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
-<?php endif; ?>
-
- <div class="row">
- <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
- <textarea name="copyright" rows="2" cols="65" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
- </div>
- <div class="row">
- <?php
- if ($this->row['icon'] != ''):
- $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
- if (file_exists($path.$this->row['icon'])) {
- if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
- $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
- } else {
- $_base_href = 'content/' . $this->row['course_id'] . '/';
- }
- } else {
- $_base_href = "images/courses/"; //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
- }
-
- $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
- echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
-
- //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');
- ?>
- <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79" style="float: left; margin: 2px;" />
-
- <?php else: ?>
- <img id="i0" src="images/clr.gif" alt="" style="float: left; margin: 2px;" border="1" height="79" width="79" />
- <input type='hidden' name='boolForce' id='boolForce' value='' />
- <?php endif; ?>
- <div style="width:40%; float:left;">
- <label for="icons"><?php echo _AT('icon'); ?></label><br />
- <select name="icon" id="icons" onchange="SelectImg()">
- <option value=""><?php echo _AT('no_icon'); ?></option>
- <?php // ------------- custom course icons
- $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
- $boolCustom = false;
- $optCount = 0;
-
- if (is_dir($path)) {
- $boolCustom = true; // true if custom icons are uploaded, otherwise false
-
- /*$files = scandir($path); //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
-
- /* PHP 4 REPLACEMENT FOR SCANDIR */
- $dh = opendir($path);
- while (false !== ($filename = readdir($dh))) {
- $files[] = $filename;
- }
-
- /*END PHP 4 REPLACEMENT FOR SCANDIR*/
- echo "<optgroup label='"._AT('custom_icons')."'>";
- foreach($files as $val) {
- $file_ext = substr(strtolower($val), -3);
- if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
- $optCount++;
- echo "<option value='".$val."'";
- if ($val == $this->row['icon']) {
- echo 'selected="selected"';
- }
- echo ">".$val."</option>";
- }
- }
- echo "</optgroup>";
- }
-
- ?>
- <?php // ------------- other icons
-
- $course_imgs = array();
- if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
- while (false !== ($file = readdir($dir)) ) {
- if( ($file == '.') || ($file == '..')) {
- continue;
- }
- $course_imgs[] = $file;
- }
- closedir($dir);
- }
- sort($course_imgs);
- if ($boolCustom == true) {
- echo "<optgroup label='"._AT('builtin_icons')."'>";
- }
- foreach ($course_imgs as $file) {
- echo '<option value="' . $file . '" ';
- if ($file == $this->row['icon']) {
- echo 'selected="selected"';
- }
- echo ' >' . $file . '</option>';
- }
- if ($boolCustom == true) {
- echo "</optgroup>";
- }
- ?>
- </select><?php echo " "._AT('or'); ?>
- </div>
- <!-- div class="row" style="float:right;width:40%;">
- <?php echo _AT('upload_icon'); ?><br />
- <input type="file" name="customicon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/><br />
- <small><?php echo _AT('upload_icon_text'); ?></small>
- </div -->
-
- <?php require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
-
- <br style="clear: left;" />
-
- </div>
-
- <div style="clear: both;"></div>
-
-
-
- <div class="buttons">
- <?php
- echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
- echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
- ?>
-
- <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
- <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
- </div>
- </fieldset>
-</div>
-
-</form>
\ No newline at end of file
--- /dev/null
+hi Im an instructor
+
--- /dev/null
+<?php global $stripslashes; ?>
+<?php debug($result_related);?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="gid" value="<?php echo $this->gid; ?>" />
+
+<div class="input-form">
+ <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_glossary'); ?></legend>
+ <div class="row">
+ <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('glossary_term'); ?></label><br/ >
+ <input type="text" name="word" size="40" id="title" value="<?php echo htmlentities_utf8($stripslashes($row['word'])); ?>" />
+ </div>
+
+ <div class="row">
+ <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('glossary_definition'); ?></label><br />
+ <textarea name="definition" cols="55" rows="7" id="body"><?php echo htmlentities_utf8($row['definition']); ?></textarea>
+ </div>
+
+ <div class="row">
+ <?php echo _AT('glossary_related'); ?><br />
+ <?php
+
+ if ($row_g = mysql_fetch_array($this->result_related)) {
+ echo '<select name="related_term">';
+ echo '<option value="0"></option>';
+ do {
+ if ($row_g['word_id'] == $row['word_id']) {
+ continue;
+ }
+
+ echo '<option value="'.$row_g['word_id'].'"';
+
+ if ($row_g['word_id'] == $row['related_word_id']) {
+ echo ' selected="selected" ';
+ }
+
+ echo '>'.htmlentities_utf8($row_g['word']).'</option>';
+ } while ($row_g = mysql_fetch_array($result));
+
+ echo '</select>';
+
+ } else {
+ echo _AT('no_glossary_items');
+ }
+ ?>
+ </div>
+ <div class="row buttons">
+ <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+ <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+ </div>
+ </fieldset>
+</div>
+</form>
\ No newline at end of file
+<?php debug($this->gloss_results_row);
+debug($this->related_word);
+?>
<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<tr onmousedown="document.form['m<?php echo $row['word_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['word_id']; ?>">
<td valign="top" width="10"><input type="radio" name="word_id" value="<?php echo $row['word_id']; ?>" id="m<?php echo $row['word_id']; ?>" /></td>
<td valign="top"><label for="m<?php echo $row['word_id']; ?>"><?php echo AT_print($row['word'], 'glossary.word'); ?></label></td>
- <td style="whitespace:nowrap;"><?php echo AT_print($this->def_trunc, 'glossary.definition'); ?></td>
- <td valign="top"><?php echo AT_print($this->related_word, 'glossary.word'); ?></td>
+ <td style="whitespace:nowrap;"><?php echo AT_print($row['definition'], 'glossary.definition'); ?></td>
+ <?php if(!empty($row['related_word_id'])):?>
+ <td valign="top"><?php //debug($this->related_word);
+ //echo AT_print($row[related_word_id], 'glossary.word'); ?></td>
+ <?php endif; ?>
</tr>
<?php endforeach;?>
--- /dev/null
+<?php debug($this->group_type_rows);?>
+<div class="input-form">
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+<fieldset class="group_form" margin:auto;"><legend class="group_form"><?php echo _AT('groups'); ?></legend>
+<table class="data" summary="" rules="cols" style="width: 80%">
+<tfoot>
+<tr>
+ <td>
+ <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
+ <input type="submit" name="members" value="<?php echo _AT('members'); ?>" />
+ <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+ </td>
+</tr>
+</tfoot>
+<tbody>
+
+<?php if (!empty($this->group_type_rows)): ?>
+
+ <?php foreach ($this->group_type_rows as $type_id => $row): ?>
+ <tr onmousedown="document.form['g<?php echo $row['type_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['type_id']; ?>">
+ <th>
+ <input type="radio" id="g<?php echo $row['type_id']; ?>" name="id" value="<?php echo $row['type_id']; ?>" />
+ <label for="g<?php echo $row['type_id']; ?>"><?php echo AT_print($row['title'], 'groups.title'); ?></label> (<?php echo $this->num_groups.' '._AT('groups'); ?>)</td>
+ </th>
+ </tr>
+ <?php endforeach; ?>
+ <?php if ($num_groups) : ?>
+ <?php while ($group_row = mysql_fetch_assoc($group_result)): ?>
+ <?php
+ $sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."groups_members WHERE group_id=$group_row[group_id]";
+ $group_cnt_result = mysql_query($sql, $db);
+ $group_cnt = mysql_fetch_assoc($group_cnt_result);
+ ?>
+ <tr onmousedown="document.form['g<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>">
+ <td class="indent"><input type="radio" id="g<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>" name="id" value="<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>" /> <label for="g<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>"><?php echo AT_print($group_row['title'], 'groups.title'); ?></label> (<?php echo $group_cnt['cnt'].' '._AT('members'); ?>)</td>
+ </tr>
+ <?php endwhile; ?>
+ <?php else: ?>
+ <tr>
+ <td class="indent"><strong><?php echo _AT('none_found'); ?></strong></td>
+ </tr>
+ <?php endif; ?>
+
+<?php endif;?>
+<?php if (empty($this->group_type_rows)): ?>
+<?php else: ?>
+ <tr>
+ <td><strong><?php echo _AT('none_found'); ?></strong></td>
+ </tr>
+<?php endif;?>
+
+
+</tbody>
+</table>
+</fieldset>
+</form><br />
+</div>
\ No newline at end of file
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<table class="data" summary="" rules="cols">
+<table class="data" summary="Course polls listed by question, creation date and votes" rules="cols">
<colgroup>
<?php if ($this->col == 'question'): ?>
<col />
--- /dev/null
+<?php global $_pages;?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data" rules="rows" summary="">
+<thead>
+<tr>
+ <th scope="cols"><?php echo _AT('section'); ?></th>
+ <th><?php echo _AT('order'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+ <td colspan="2"><input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /></td>
+</tr>
+</tfoot>
+<tbody>
+
+<?php foreach ($this->_current_modules as $module): ?>
+<?php if ($module == 'mods/_standard/student_tools/index.php') { continue; } ?>
+<?php ?>
+<tr>
+ <td>
+ <?php if (in_array($module, $this->fha_student_tools)): ?>
+ <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" checked="checked" />
+ <?php else: ?>
+ <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" />
+ <?php endif; ?>
+ <label for="m<?php echo $count; ?>"><?php
+ if (isset($_pages[$module]['title'])) {
+ echo $_pages[$module]['title'];
+ } else {
+ echo _AT($_pages[$module]['title_var']);
+ } ?></label>
+ </td>
+
+ <td align="right">
+ <?php if (!in_array($module, $this->fha_student_tools)): ?>
+
+ <?php else: ?>
+ <?php if (($count != $num_main+1) && ($count > 1)): ?>
+ <input type="submit" name="up[<?php echo $module; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
+ <?php else: ?>
+ <img src="images/clr.gif" alt="" width="12" />
+ <?php endif; ?>
+ <?php if (($count != $num_main) && ($count < $this->num_modules)): ?>
+ <input type="submit" name="down[<?php echo $module; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
+ <?php else: ?>
+ <img src="images/clr.gif" alt="" width="12" />
+ <?php endif; ?>
+ <?php endif; ?>
+ </td>
+</tr>
+<?php
+$count++;
+endforeach; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
/* This is the default configuration file for the default theme. */
/* The theme's name. */
- $_theme['name'] = 'Default 1.6';
+ $_theme['name'] = 'simplified-desktop';
/* The theme's version number. */
- $_theme['version'] = '0.1';
+ $_theme['version'] = '1.0';
/* Which version of ATutor is this theme intended for. */
$_theme['atutor-version'] = '1.6';
<!--Created from the ATutor Themes Export Generator-->\r
\r
<theme>\r
- <title>Default</title>\r
+ <title>simplified-desktop</title>\r
<version>1.0</version>\r
<type>Desktop</type>\r
- <last_updated>2008-02-12</last_updated>\r
+ <last_updated>2011-09-02</last_updated>\r
<extra_info>plone-like.</extra_info>\r
</theme>\r
\r
<?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
-
<div id="my_courses_container">
<table class="data" style="width:100%;">
<tr><th></th>