<?php
	global $addslashes;
	//escape all strings
	$title			= AT_print($this->title, 'input.text');
	if($this->interests){
	    $edit_this = AT_print($this->interests, 'input.text');
	}else if ($this->associations){
	    $edit_this = AT_print($this->associations, 'input.text');	
	}else if($this->awards){
	    $edit_this = AT_print($this->awards, 'input.text');	
	}
?>
<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">

<div class="headingbox"><h3><?php if($_GET['id']){ echo _AT($title);}else{echo  _AT($title);}?></h3></div>
<div class="contentbox">
	<div>	
			<label for="<?php echo $title;?>"><?php echo _AT($title); ?></label>
		<div>
			<textarea rows="4" cols="40" id="<?php echo $title;?>" name="<?php echo $title;?>"><?php echo $edit_this; ?></textarea>
		</div>
		
		<?php if (isset($this->id)): ?>
		<input type="hidden" name="id" value="<?php echo $this->id; ?>" />
		<input type="hidden" name="edit" value="<?php echo $title; ?>" />
		<?php else: ?>	
		<input type="hidden" name="add" value="<?php echo $title; ?>" />
		<?php endif; ?>
		<input type="submit" name="submit" value="<?php echo _AT('save'); ?>" class="button"/>
		<input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" class="button"/>
	</div>
</div>
</form>