<? $this->load->view( $this->aSystemVar['template_viewer_root'] . '_header') ?>

<div id="breadcrumb">
	<span><?= anchor( base_url(true), $this->lang->line('home') ) ?></span>
	<span class="divider"><?= $this->config->item('breadcrumb_divider') ?></span>
	<span><?= $this->lang->line('compose') ?></span>
</div>
<div>

			<div>
				<img src="<?=$data['Recipient']['iconUrl'];?>" alt="<?=$data['Recipient']['Name'];?>" title="<?=$data['Recipient']['Name'];?>" />
				<br />
				<?= anchor( 'user/profile/' . $data['Recipient']['Name'], $data['Recipient']['Name']); ?>
			</div>
			<div>&nbsp;<?= $this->validation->error_string; ?></div>
			<div>
			<?= form_open('mailbox/compose'); ?>
				<input type="hidden" name="RecipientId" value="<?=$data['Recipient']['Id']?>" />
				<br />
				<?= $this->lang->line('subject'); ?>
				<br />
				<input type="text" name="Subject" class="text" style="width:50%;" value="<?=$data['Message']['Subject']?>" />
				<br />
				<?= $this->lang->line('message'); ?>
				<div class="marginbottom5">
				<textarea name="Body" cols="70" rows="10" style="width:98%;"><?=$data['Message']['Body']?></textarea>
				</div>
				<div class="submit">
					<input type="submit" name="send" class="submit" value="<?= $this->lang->line('send'); ?>" />
				</div>
			<?= form_close(); ?>
			</div>


</div>
<? $this->load->view( $this->aSystemVar['template_viewer_root'] . '_footer') ?>