remove old readme
[atutor.git] / docs / themes / mobile / admin / system_preferences / language.tmpl.php
1 <?php global $languageManager;?>
2 <form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
3 <div class="table-surround">
4 <table summary="ATutor langauge names in English and translated" class="data">
5 <colgroup>
6         <col />
7         <col class="sort" />
8         <col span="3" />
9 </colgroup>
10 <thead>
11 <tr>
12         <th scope="col">&nbsp;</th>
13         <th scope="col"><?php echo _AT('name_in_language'); ?></th>
14         <th scope="col"><?php echo _AT('name_in_english'); ?></th>
15         <!-- REMOVED FOR MOBILE <th scope="col"><?php //echo _AT('lang_code'); ?></th> -->
16         <!--  <th scope="col"><?php echo _AT('charset'); ?></th> -->
17 </tr>
18 </thead>
19 <tfoot>
20 <tr>
21         <td colspan="5">
22                 <?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
23                         <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />  
24                         <input type="submit" name="export" value="<?php echo _AT('export'); ?>"  /> 
25                         <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /> 
26                         <?php echo _AT('or'); ?> <a href="mods/_core/languages/language_add.php"><?php echo _AT('add_a_new_language'); ?></a>
27                 <?php else: ?>
28                         <input type="submit" name="export" value="<?php echo _AT('export'); ?>" /> 
29                         <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
30                 <?php endif; ?>
31         </td>
32 </tr>
33 </tfoot>
34 <tbody>
35         <?php foreach ($languageManager->getAvailableLanguages() as $codes): ?>
36                 <?php $language = current($codes); ?>
37                 <tr onmousedown="document.form['m<?php echo $language->getCode(); ?>'].checked = true; rowselect(this);" id="r_<?php echo $language->getCode(); ?>">
38                         <td><input type="radio" name="id" value="<?php echo $language->getCode(); ?>" id="m<?php echo $language->getCode(); ?>" /></td>
39                         <td><label for="m<?php echo $language->getCode(); ?>"><?php echo $language->getNativeName(); ?></label></td>
40                         <td><?php echo $language->getEnglishName(); ?></td>
41                 <!-- REMOVED FOR MOBILE         <td><?php //echo strtolower($language->getCode()); ?></td>-->
42                 <!--    <td><?php //echo strtolower($language->getCharacterSet()); ?></td> -->
43                 </tr>
44         <?php endforeach; ?>
45 </tbody>
46 </table>
47 </div>
48 </form>