made a copy
[atutor.git] / mods / _standard / social / html / edit_profile / edit_representation.tmpl.php
1 <?php
2         global $addslashes;
3
4         //escape all strings
5         $rep_name        = htmlentities_utf8($this->rep_name);
6         $rep_title       = htmlentities_utf8($this->rep_title);
7         $rep_phone       = htmlentities_utf8($this->rep_phone);
8         $rep_email       = htmlentities_utf8($this->rep_email);
9         $rep_address     = htmlentities_utf8($this->rep_address);
10
11 ?>
12
13 <div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_representation');}else{echo  _AT('add_new_representation');}?></h3></div>
14 <div class="contentbox">
15 <form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
16         <dl id="public-profile">
17                 <dt><label for="rep_name"><?php echo _AT('name'); ?></label></dt>
18                 <dd><input type="text" id="rep_name" name="rep_name" value="<?php echo $rep_name; ?>" /></dd>
19         
20                 <dt><label for="rep_title"><?php echo _AT('title'); ?></label></dt>
21                 <dd><input type="text" id="rep_title"  name="rep_title" value="<?php echo $rep_title; ?>" /></dd>
22                 
23                 <dt><label for="rep_phone"><?php echo _AT('phone'); ?></label></dt>
24                 <dd><input type="text" id="rep_phone"  name="rep_phone" value="<?php echo $rep_phone; ?>" /></dd>
25                 
26                 <dt><label for="rep_email"><?php echo _AT('email'); ?></label></dt>
27                 <dd><input type="text" id="rep_email"  name="rep_email" value="<?php echo $rep_email; ?>" /></dd>
28
29                 <dt><label for="rep_address"><?php echo _AT('street_address'); ?></label></dt>  
30                 <dd><textarea name="rep_address" id="rep_address" cols="40" rows="5"><?php echo $rep_address; ?></textarea></dd>
31                 </dl>
32                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
33                 <?php if($_GET['id']){ ?>
34                 <input type="hidden" name="edit" value="representation" />
35                 <?php }else { ?>
36                 <input type="hidden" name="add" value="representation" />
37                 <?php } ?>
38         
39                 <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
40                 <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
41         
42 </form>
43 </div>