75ffcbc64e6ed1976c7f74b214a73c82ddcf970d
[atutor.git] / docs / themes / mobile / social / edit_profile / edit_education.tmpl.php
1 <?php
2         global $addslashes;
3
4         //escape all strings
5         $university  = htmlentities_utf8($this->university);
6         $country         = htmlentities_utf8($this->country);
7         $province        = htmlentities_utf8($this->province);
8         $degree          = htmlentities_utf8($this->degree);
9         $field           = htmlentities_utf8($this->field);
10         $from            = htmlentities_utf8($this->from);
11         $to                      = htmlentities_utf8($this->to);
12         $description = htmlentities_utf8($this->description, false);
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                 <div class="row">
27                 <dt><label for="university"><?php echo _AT('university'); ?></label></dt><br />
28                 <dd><input type="text" id="university" name="university" value="<?php echo $university; ?>" /></dd>
29                 </div>
30                 <div class="row">
31                 <dt><label for="province"><?php echo _AT('province'); ?></label></dt><br />
32                 <dd><input type="text" id="province"  name="province" value="<?php echo $province; ?>" /></dd>
33                 </div>
34                 <div class="row">
35                 <dt><label for="country"><?php echo _AT('country'); ?></label></dt><br />
36                 <dd><input type="text" id="country"  name="country" value="<?php echo $country; ?>" /></dd>
37                 </div>
38                 <div class="row">
39                 <dt><label for="degree"><?php echo _AT('degree'); ?></label></dt><br />
40                 <dd><input type="text" id="degree"  name="degree" value="<?php echo $degree; ?>" /></dd>
41                 </div>
42                 <div class="row">
43                 <dt><label for="field"><?php echo _AT('field'); ?></label></dt><br />
44                 <dd><input type="text" id="field"  name="field" value="<?php echo $field; ?>" /></dd>
45                 </div>
46                 <div class="row">
47                 <dt><label for="from"><?php echo _AT('from'); ?></label></dt><br />
48                 <dd><input type="text" id="from"  name="from" value="<?php echo $from; ?>" />
49                 <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('from'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
50                 </div>
51                 <div class="row">
52                 <dt><label for="to"><?php echo _AT('to'); ?></label></dt>       <br />
53                 <dd><input type="text" id="to"  name="to" value="<?php echo $to; ?>" />
54                 <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('to'),event);" alt="<?php echo _AT('date'); ?>" /></dd>
55                 </div>
56                 <dt><label for="description"><?php echo _AT('description'); ?></label></dt>     
57                 <dd><textarea name="description" id="description" cols="35" rows="5"><?php echo $description; ?></textarea></dd>
58                 </dl>
59                 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
60                 <?php if($_GET['id']){ ?>
61                 <input type="hidden" name="edit" value="education" />
62                 <?php }else { ?>
63                 <input type="hidden" name="add" value="education" />
64                 <?php } ?>
65         
66                 <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
67                 <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
68         
69 </form>
70 </div>