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