Issue-4845: Merged in branch 'gsoc11_benj' for the enhanced mobile theme.
[atutor.git] / docs / mods / _core / users / instructor_requests.php
index 6d5eb64..6487ec2 100644 (file)
@@ -164,51 +164,10 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 $sql   = "SELECT M.login, M.first_name, M.last_name, M.email, M.member_id, A.* FROM ".TABLE_PREFIX."members M, ".TABLE_PREFIX."instructor_approvals A WHERE A.member_id=M.member_id ORDER BY M.login";
 $result = mysql_query($sql, $db);
 $num_pending = mysql_num_rows($result);
-?>
-
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<table class="data" summary="" rules="cols">
-<thead>
-<tr>
-       <th scope="col">&nbsp;</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('last_name');    ?></th>
-       <th scope="col"><?php echo _AT('email');        ?></th>
-       <th scope="col"><?php echo _AT('notes');        ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="6">
-       <input type="hidden" name="auth_publicKey" value="<?php echo $publicKey; ?>" />
-       <input type="hidden" name="auth_timestamp" value="<?php echo $timestamp; ?>" />
-       <input type="hidden" name="auth_token" value="<?php echo at_sign_request($timestamp, $publicKey); ?>" />
-       <input type="submit" name="deny" value="<?php echo _AT('deny'); ?>" /> 
-       <input type="submit" name="approve" value="<?php echo _AT('approve'); ?>" /></td>
-</tr>
-</tfoot>
-<tbody>
-<?php
-       if ($row = mysql_fetch_assoc($result)) {
-               do {
-                       echo '<tr onmousedown="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" id="r_'.$row['member_id'].'">';
-                       echo '<td><input type="radio" name="id" value="'.$row['member_id'].'" id="i'.$row['member_id'].'" /></td>';
-                       echo '<td><label for="i'.$row['member_id'].'">'.AT_print($row['login'], 'members.login').'</label></td>';
-                       echo '<td>'.AT_print($row['first_name'], 'members.first_name').'</td>';
-                       echo '<td>'.AT_print($row['last_name'], 'members.last_name').'</td>';
-                       echo '<td>'.AT_print($row['email'], 'members.email').'</td>';
-                       
-                       echo '<td>'.AT_print($row['notes'], 'instructor_approvals.notes').'</td>';
-
-                       echo '</tr>';
-               } while ($row = mysql_fetch_assoc($result));
-       } else {
-               echo '<tr><td colspan="6">'._AT('none_found').'</td></tr>';
-       }
-?>
-</tbody>
-</table>
-</form>
 
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
+$savant->assign('result', $result);
+$savant->assign('num_pending', $num_pending);
+$savant->display('admin/users/instructor_requests.tmpl.php');
+
+require(AT_INCLUDE_PATH.'footer.inc.php'); 
+?>
\ No newline at end of file