ebab07e8a59effac66b3b497422b01e14318b830
[atutor.git] / mods / social / html / edit_profile / edit_additional.tmpl.php
1 <?php
2         global $addslashes;
3         //escape all strings
4         $title                  = htmlentities_utf8($this->title);
5         $interests              = htmlentities_utf8($this->interests, false);
6         $associations   = htmlentities_utf8($this->associations, false);
7         $awards                 = htmlentities_utf8($this->awards, false);
8 ?>
9 <form method="POST" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
10 <div>
11         
12                 <label for="<?php echo $title;?>"><?php echo _AT($title); ?></label>
13 <div>
14                 <textarea rows="4" cols="60" id="<?php echo $title;?>" name="<?php echo $title;?>" /><?php echo $$title; ?></textarea>
15         </div>
16         
17         <?php if (isset($this->id)): ?>
18         <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
19         <input type="hidden" name="edit" value="<?php echo $title; ?>" />
20         <?php else: ?>  
21         <input type="hidden" name="add" value="<?php echo $title; ?>" />
22         <?php endif; ?>
23         <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" class="button"/>
24         <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" class="button"/>
25 </div>
26 </form>