d4045f04607cf782ca8a64a0a44ce160eb79eb33
[atutor.git] / mods / social / html / 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         <dt><label for="url"><?php echo _AT('url'); ?></label></dt>
13         <dd><input type="text" id="url" name="url" value="<?php echo $url; ?>" /></dd>
14
15         <dt><label for="site_name"><?php echo _AT('site_name'); ?></label></dt>
16         <dd><input type="text" id="site_name" name="site_name" value="<?php echo $site_name; ?>" /></dd>
17
18         <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
19                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
20                 <?php if($_GET['id']){ ?>
21                 <input type="hidden" name="edit" value="websites" />
22                 <?php }else { ?>
23                 <input type="hidden" name="add" value="websites" />
24                 <?php } ?>
25         <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
26         <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
27         </dl>
28 </div>
29 </form>