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);
10 <script type="text/javascript" src="jscripts/lib/calendar.js"></script>
11 <script type="text/javascript">
13 //overwrite calendar dates range settings.
14 scwBaseYear = scwDateNow.getFullYear()-50;
15 scwDropDownYears = 70;
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">
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>
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>
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>
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>
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>
43 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
45 <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
46 <?php if($_GET['id']){ ?>
47 <input type="hidden" name="edit" value="position" />
49 <input type="hidden" name="add" value="position" />
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'); ?>" />