d1e7869feaebb1655843cca7e8784cfcc0477fb4
[atutor.git] / mods / atalker / admin / admin_voice_files.php
1 <?php
2 /****************************************************************/
3 /* ATalker                                                                                                      */
4 /****************************************************************/
5 /* Copyright (c) 2002-2005 by Greg Gay                                  */
6 /* Adaptive Technology Resource Centre / University of Toronto  */
7 /* http://atutor.ca                                                                                             */
8 /*                                                              */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License  */
11 /* as published by the Free Software Foundation.                                */
12 /****************************************************************/
13 // $Id: admin_voice_html.php 5123 2005-07-12 14:59:03Z greg
14
15 // Generate the HTML for the Administrator's  Voice Manager
16
17 ?>
18 <table class="data" style="width:95%;" summary="" rules="cols" >
19 <tbody>
20 <tr>
21 <td colspan="3">        
22         <h3><?php echo _AT('manage_atutor_voice'); ?></h3>
23
24                 <table width="100%">
25                         <tr>
26                                 <td colspan="3">
27                 <?php
28                 
29                 if ($handle = opendir(AT_SPEECH_TEMPLATE_DIR)) {
30                 
31                         echo '<ul>';
32
33                         while (false !== ($file = readdir($handle))) {
34                                 if($file != "." && $file !=".."){
35                                         echo '<li><a href="'.AT_SPEECH_TEMPLATE_URL.$file.'">'.$file.'</a> (<a href="'.$_SERVER['PHP_SELF'].'?delete='.$file.SEP.'tab='.$tab.'">'._AT('delete').'</a>)</li>'."\n";
36                                         $files++;
37                                 }
38                         }
39                         if(!$files){
40                                 echo _AT('no_files_found'); 
41                 
42                         }
43
44                         echo '</ul>';
45                 
46                         closedir($handle);
47
48                 }
49                 ?>
50                                 </td>
51                         </tr>
52                 </table>
53                 </td>
54         </tr>
55 </tbody>
56 </table>