					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
						<form name="edit" id="feditor" method="post" action="<?php e($this->_vars['action']['url']); ?>">
						<?php HTML::requires(); ?>
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/sent.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Comment'); ?></h2></div>
						<input type="hidden" name="ref_to" value="<?php e(ifNull($this->_vars['fri_message']['ref_to'], $this->_vars['request']['ref_to'])); ?>" />
<?php if ($this->_vars['action']['complete']): ?>
						<div class="listplain">
							<?php _e('Updated'); ?><br /><br /><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?><br />
						</div>
<?php elseif ($this->_vars['action']['confirm']): ?>
						<div class="listrow">
							<table class="list" align="center" style="width:480px;" cellpadding="4" cellspacing="0"><tbody>
								<tr>
									<td rowspan="3" style="width:120px; text-align:center;"><?php loadPlugin::callFunc('hitsuji_profile', $this->_vars['fri_message']['ref_to'], 'thumbnail'); ?></td>
									<td class="column" style="width:80px;"><?php _e('Nickname'); ?></td>
									<td><?php loadPlugin::callFunc('hitsuji_profile', $this->_vars['fri_message']['ref_to'], 'nickname'); ?>(<?php loadPlugin::callFunc('hitsuji_lastLogin', $this->_vars['fri_message']['ref_to']); ?>)</td>
								</tr>
								<tr>
									<td class="column" style="width:80px;"><?php _e('Date'); ?></td>
									<td><?php eDate(ifNull($this->_vars['fri_message']['regist_date'], 'now'), _('Y-m-d H:i')); ?></td>
								</tr>
								<tr>
									<td class="column" style="width:80px;"><?php _e('Subject'); ?></td>
									<td><?php e($this->_vars['fri_message']['subject']); ?></td>
								</tr>
							</tbody></table>
						</div>
						<div class="listrow">
							<div class="rdata"><?php HTML::htmlBody($this->_vars['fri_message']['body']); ?></div>
						</div>
						<div class="listplain">
							<input type="hidden" name="status" value="<?php e(MESSAGE_SEND) ?>" />
							<input type="submit" name="manip" value="<?php _e('Send Message'); ?>" style="width:120px;" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="submit" name="manip" value="<?php _e('Save Draft'); ?>" style="width:120px;" onclick="document.edit.status.value=<?php e(MESSAGE_DRAFT) ?>;" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="submit" name="<?php e($this->_vars['action']['goback']); ?>" value="<?php _e('Go back'); ?>" style="width:100px;" />
						</div>
<?php else: ?>
						<div class="listrow">
							<label class="column"><?php _e('To'); ?>:</label>
							<div class="fdata">
								<?php loadPlugin::callFunc('hitsuji_profile', ifNull($this->_vars['fri_message']['ref_to'], $this->_vars['request']['ref_to']), 'thumbnail,nickname'); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Subject'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['subject'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
 
								<input type="text" name="subject" value="<?php e(ifNull($this->_vars['fri_message']['subject'], $this->_vars['subject'])); ?>" size="32" />
							</div>
						</div>
						<div class="listrow">
							<div style="margin-left:20px;">
								<?php if (!empty($this->_vars['alert']['body'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<?php HTML::richEditor('body', ifNull($this->_vars['fri_message']['body'], $this->_vars['body']), _('Body')); ?>
								<?php loadPlugin::callFunc('hitsuji_attaches', $this->_vars['base']['account']['id']); ?>
							</div>
						</div>
						<div class="listplain"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" onclick="javascript:document.edit.action='<?php e($this->_vars['action']['url']); ?>';" style="width:120px;" /></div>
<?php endif; ?>
					</form><img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />
					
