4482652f7150679f033fc4f2c325b558f2006dea
[atutor.git] / docs / themes / simplified-desktop / social / edit_profile / edit_personal.tmpl.php
1 <?php
2         global $addslashes;
3
4         //escape all strings
5         $per_weight      = htmlentities_utf8($this->per_weight);
6         $per_height      = htmlentities_utf8($this->per_height);
7         $per_hair        = htmlentities_utf8($this->per_hair);
8         $per_eyes        = htmlentities_utf8($this->per_eyes);
9         $per_ethnicity   = htmlentities_utf8($this->per_ethnicity);
10         $per_languages   = htmlentities_utf8($this->per_languages);
11         $per_disabilities = htmlentities_utf8($this->per_disabilities);
12
13 ?>
14
15 <div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_personal');}else{echo  _AT('add_new_personal');}?></h3></div>
16 <div class="contentbox">
17 <form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
18         <dl id="public-profile">
19                 <div class="row"> 
20                 <dt><label for="per_weight"><?php echo _AT('per_weight'); ?></label></dt>
21                 <dd><input type="text" id="per_weight"  name="per_weight" value="<?php echo $per_weight; ?>" /></dd>
22                 </div>  
23                 
24                 <div class="row">
25                 <dt><label for="per_height"><?php echo _AT('per_height'); ?></label></dt>
26                 <dd><input type="text" id="per_height"  name="per_height" value="<?php echo $per_height; ?>" /></dd>
27                 </div>          
28                 
29                 <div class="row">
30                 <dt><label for="per_hair"><?php echo _AT('per_hair'); ?></label></dt>
31                 <dd><input type="text" id="per_hair"  name="per_hair" value="<?php echo $per_hair; ?>" /></dd>
32                 </div>
33
34                 <div class="row">
35                 <dt><label for="per_eyes"><?php echo _AT('per_eyes'); ?></label></dt>
36                 <dd><input type="text" id="per_eyes"  name="per_eyes" value="<?php echo $per_eyes; ?>" /></dd>
37                 </div>
38         
39                 <div class="row">
40                 <dt><label for="per_ethnicity"><?php echo _AT('per_ethnicity'); ?></label></dt>
41                 <dd><input type="text" id="per_ethnicity"  name="per_ethnicity" value="<?php echo $per_ethnicity; ?>" /></dd>
42                 </div>
43
44                 <div class="row">
45                 <dt><label for="per_languages"><?php echo _AT('per_languages'); ?></label></dt>
46                 <dd><input type="text" id="per_languages"  name="per_languages" value="<?php echo $per_languages; ?>" /></dd>
47                 </div>
48
49                 <div class="row">
50                 <dt><label for="per_disabilities"><?php echo _AT('per_disabilities'); ?></label></dt>
51                 <dd><input type="text" id="per_disabilities"  name="per_disabilities" value="<?php echo $per_disabilities; ?>" /></dd>
52                 </div>
53
54                 </dl>
55                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
56                 <?php if($_GET['id']){ ?>
57                 <input type="hidden" name="edit" value="personal" />
58                 <?php }else { ?>
59                 <input type="hidden" name="add" value="personal" />
60                 <?php } ?>
61         
62                 <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
63                 <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
64         
65 </form>
66 </div>