move code up one directory
[atutor.git] / themes / default / social / edit_profile / edit_position.tmpl.php
1 <?php
2         global $addslashes;
3         //escape all strings
4         $company                = htmlentities_utf8($this->company);
5         $title                  = htmlentities_utf8($this->profile_title);
6         $description    = htmlentities_utf8($this->description, false);
7         $from                   = htmlentities_utf8($this->from);
8         $to                             = htmlentities_utf8($this->to);
9 ?>
10 <script type="text/javascript" src="jscripts/lib/calendar.js"></script>
11 <script type="text/javascript"> 
12 <!--
13         //overwrite calendar dates range settings.
14         scwBaseYear                     = scwDateNow.getFullYear()-50; 
15         scwDropDownYears        = 70; 
16 -->
17 </script>
18 <div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_position');}else{echo  _AT('add_new_position');}?></h3></div>
19 <div class="contentbox">
20 <form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
21         <dl id="public-profile">
22
23                 <dt><label for="company"><?php echo _AT('company'); ?></label></dt>
24                 <dd><input type="text" id="company" name="company" value="<?php echo $company; ?>" /></dd>
25         
26                 <dt><label for="title"><?php echo _AT('position'); ?></label></dt>
27                 <dd><input type="text" id="title" name="title" value="<?php echo $title; ?>" /></dd>
28         
29                 <dt><label for="from"><?php echo _AT('from'); ?></label></dt>
30                 <dd><input type="text" id="from" name="from" value="<?php echo $from; ?>" />
31                 <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('from'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
32
33                 <dt><label for="to"><?php echo _AT('to'); ?></label></dt>
34                 <dd><input type="text" id="to" name="to" value="<?php echo $to; ?>" />
35                 <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('to'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
36         
37                 <dt><label for="description"><?php echo _AT('description'); ?></label>  </dt>
38                 <dd><textarea name="description" id="description" cols="40" rows="5"><?php echo $description; ?></textarea></dd>
39         </dl>
40         <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
41         
42                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
43                 <?php if($_GET['id']){ ?>
44                 <input type="hidden" name="edit" value="position" />
45                 <?php } else { ?>
46                 <input type="hidden" name="add" value="position" />
47                 <?php } ?>
48         <input type="submit" class="button" name="submit" value="<?php echo _AT('save'); ?>" />
49         <input type="submit" class="button" name="cancel" value="<?php echo _AT('cancel'); ?>" />
50 </form>
51 </div>