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);
14 <script type='text/javascript' src='jscripts/lib/calendar.js'></script>
15 <script type="text/javascript">
17 //overwrite calendar dates range settings.
18 scwBaseYear = scwDateNow.getFullYear()-50;
19 scwDropDownYears = 70;
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">
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>
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>
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>
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>
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>
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>
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>
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>
59 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
60 <?php if($_GET['id']){ ?>
61 <input type="hidden" name="edit" value="education" />
63 <input type="hidden" name="add" value="education" />
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'); ?>" />