move code up one directory
[atutor.git] / themes / simplified-desktop / 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                 <div class="row">
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                 </div>
26                 <div class="row">
27                 <dt><label for="title"><?php echo _AT('position'); ?></label></dt>
28                 <dd><input type="text" id="title" name="title" value="<?php echo $title; ?>" /></dd>
29                 </div>
30                 <div class="row">
31                 <dt><label for="from"><?php echo _AT('from'); ?></label></dt>
32                 <dd><input type="text" id="from" name="from" value="<?php echo $from; ?>" />
33                 <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('from'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
34                 </div>
35                 <div class="row">
36                 <dt><label for="to"><?php echo _AT('to'); ?></label></dt>
37                 <dd><input type="text" id="to" name="to" value="<?php echo $to; ?>" />
38                 <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('to'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
39                 </div>
40                 <dt><label for="description"><?php echo _AT('description'); ?></label>  </dt>
41                 <dd><textarea name="description" id="description" cols="40" rows="5"><?php echo $description; ?></textarea></dd>
42         </dl>
43         <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
44         
45                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
46                 <?php if($_GET['id']){ ?>
47                 <input type="hidden" name="edit" value="position" />
48                 <?php } else { ?>
49                 <input type="hidden" name="add" value="position" />
50                 <?php } ?>
51         <input type="submit" class="button" name="submit" value="<?php echo _AT('save'); ?>" />
52         <input type="submit" class="button" name="cancel" value="<?php echo _AT('cancel'); ?>" />
53 </form>
54 </div>