remove old readme
[atutor.git] / themes / simplified-desktop / social / edit_profile / edit_contact.tmpl.php
1 <?php
2         global $addslashes;
3
4         //escape all strings
5         $con_name        = htmlentities_utf8($this->con_name);
6         $con_phone       = htmlentities_utf8($this->con_phone);
7         $con_email       = htmlentities_utf8($this->con_email);
8         $con_address     = htmlentities_utf8($this->con_address);
9
10 ?>
11
12 <div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_contact');}else{echo  _AT('add_new_contact');}?></h3></div>
13 <div class="contentbox">
14 <form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
15         <dl id="public-profile">
16                 <div class="row">
17                 <dt><label for="con_name"><?php echo _AT('name'); ?></label></dt>
18                 <dd><input type="text" id="con_name" name="con_name" value="<?php echo $con_name; ?>" /></dd>
19                 </div>
20                 <div class="row">
21                 <dt><label for="con_phone"><?php echo _AT('phone'); ?></label></dt>
22                 <dd><input type="text" id="con_phone"  name="con_phone" value="<?php echo $con_phone; ?>" /></dd>
23                 </div>
24                 <div class="row">
25                 <dt><label for="con_email"><?php echo _AT('email'); ?></label></dt>
26                 <dd><input type="text" id="con_email"  name="con_email" value="<?php echo $con_email; ?>" /></dd>
27                 </div>
28                 <dt><label for="con_address"><?php echo _AT('street_address'); ?></label></dt>  
29                 <dd><textarea name="con_address" id="con_address" cols="40" rows="5"><?php echo $con_address; ?></textarea></dd>
30                 </dl>
31                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
32                 <?php if($_GET['id']){ ?>
33                 <input type="hidden" name="edit" value="contact" />
34                 <?php }else { ?>
35                 <input type="hidden" name="add" value="contact" />
36                 <?php } ?>
37         
38                 <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
39                 <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
40         
41 </form>
42 </div>