e604da6a9582ed338c7fb45426be5b0b7399f836
[atutor.git] / docs / themes / simplified-desktop / social / edit_profile / edit_websites.tmpl.php
1 <?php
2         global $addslashes;
3
4         //escape all strings
5         $url            = htmlentities_utf8($this->url);
6         $site_name      = htmlentities_utf8($this->site_name);
7 ?>
8 <div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_websites');}else{echo  _AT('add_new_website');}?></h3></div>
9 <div class="contentbox">
10 <form method="POST" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
11         <dl id="public-profile">
12         <div class="row">
13         <dt><label for="url"><?php echo _AT('url'); ?></label></dt>
14         <dd><input type="text" id="url" name="url" value="<?php echo $url; ?>" /></dd>
15         </div>
16         <div class="row">
17         <dt><label for="site_name"><?php echo _AT('site_name'); ?></label></dt>
18         <dd><input type="text" id="site_name" name="site_name" value="<?php echo $site_name; ?>" /></dd>
19         </div>
20         <br />
21         <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
22                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
23                 <?php if($_GET['id']){ ?>
24                 <input type="hidden" name="edit" value="websites" />
25                 <?php }else { ?>
26                 <input type="hidden" name="add" value="websites" />
27                 <?php } ?>
28         <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
29         <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
30         </dl>
31 </div>
32 </form>