remove old readme
[atutor.git] / docs / themes / mobile / social / 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                 <div class="row">
18                 <dt><label for="rep_name"><?php echo _AT('name'); ?></label></dt>
19                 <dd><input type="text" id="rep_name" name="rep_name" value="<?php echo $rep_name; ?>" /></dd>
20                 </div>
21                 <div class="row">
22                 <dt><label for="rep_title"><?php echo _AT('title'); ?></label></dt>
23                 <dd><input type="text" id="rep_title"  name="rep_title" value="<?php echo $rep_title; ?>" /></dd>
24                 </div>
25                 <div class="row">
26                 <dt><label for="rep_phone"><?php echo _AT('phone'); ?></label></dt>
27                 <dd><input type="text" id="rep_phone"  name="rep_phone" value="<?php echo $rep_phone; ?>" /></dd>
28                 </div>
29                 <div class="row">
30                 <dt><label for="rep_email"><?php echo _AT('email'); ?></label></dt>
31                 <dd><input type="text" id="rep_email"  name="rep_email" value="<?php echo $rep_email; ?>" /></dd>
32                 </div>
33                 
34                 <dt><label for="rep_address"><?php echo _AT('street_address'); ?></label></dt>  
35                 <dd><textarea name="rep_address" id="rep_address" cols="40" rows="5"><?php echo $rep_address; ?></textarea></dd>
36                 </dl>
37                 
38                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
39                 <?php if($_GET['id']){ ?>
40                 <input type="hidden" name="edit" value="representation" />
41                 <?php }else { ?>
42                 <input type="hidden" name="add" value="representation" />
43                 <?php } ?>
44         
45                 <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
46                 <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
47         
48 </form>
49 </div>