db8725d145145309ebbb819488d7bdd455d04b42
[atutor.git] / docs / themes / default / admin / system_preferences / language_edit.tmpl.php
1
2 <form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
3
4 <input type="hidden" name="old_code" value="<?php echo $this->lang->getCode(); ?>" />
5
6 <div class="input-form" style="width:95%">
7         <div class="row">
8                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
9                 <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
10         </div>
11
12         <div class="row">
13                 <label for="locale"><?php echo _AT('locale'); ?></label><br />
14                 <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
15         </div>
16
17         <div class="row">
18                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
19                 <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
20         </div>
21
22         <div class="row">
23                 <label for="ltr"><?php echo _AT('direction'); ?></label><br />
24                 <?php 
25                         if ($_POST['direction'] == 'rtl') { 
26                                 $rtl = 'checked="checked"';  
27                                 $ltr='';  
28                         } else { 
29                                 $rtl = '';  
30                                 $ltr='checked="checked"'; 
31                         }
32                 ?>
33                 <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
34         </div>
35
36         <div class="row">
37                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
38                 <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
39         </div>
40
41         <div class="row">
42                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
43                 <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
44         </div>
45
46         <div class="row">
47                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
48                 <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
49         </div>
50
51
52         <div class="row buttons">
53                 <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
54         </div>
55 </div>
56 </form>