<?php include VIEW_DIR.'mobile/common/menu/profile.tpl'; ?>

<?php if ($this->_vars['base']['visible'] & VISIBILITY_FRIEND): ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="right"><font size="<?php Theme::exec()->fontSize(); ?>"><a href="<?php e(HTTP_ACTION); ?>member/contact/comment/<?php e($this->_vars['base']['member']['id']); ?>/"><img src="<?php e(BASE_URL); ?>resource/img/icons/comment_edit.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Post a Comment'); ?></a><br></font></td></tr>
</table>
<?php endif; ?>
<?php if (empty($this->_vars['v_fri_comment'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<?php HTML::mobilePager($this->_vars['p_fri_comment']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_fri_comment'] as $_row): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><font size="<?php Theme::exec()->fontSize(); ?>"><?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_friend'], 'vSmall,nickname'); ?></font></td>
	<td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>"><?php HTML::htmlBody($_row['comment']); ?></font>
	<div align="right"><font size="<?php Theme::exec()->fontSize(); ?>"><?php eDate($_row['modified'], _('m-d H:i')); ?><br>
<?php if ($this->_vars['base']['account']['id'] == $_row['ref_friend']): ?>
	<img src="<?php e(BASE_URL); ?>resource/img/icons/edit.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/contact/comment/<?php e($_row['ref_account']); ?>/<?php e($_row['id']); ?>/"><?php _e('Edit'); ?></a>/
	<img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/contact/comment/<?php e($_row['ref_account']); ?>/<?php e($_row['id']); ?>/delete/"><?php _e('Delete'); ?></a>
<?php elseif ($this->_vars['base']['account']['id'] == $this->_vars['base']['member']['id']): ?>
	<img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/contact/comment/<?php e($_row['ref_account']); ?>/<?php e($_row['id']); ?>/delete/"><?php _e('Delete'); ?></a>
<?php endif; ?></font></div>
	<hr color="<?php Theme::exec()->bgColor(); ?>" noshade="noshade"></td></tr>
<?php endforeach; ?>
</table>
<?php HTML::mobilePager($this->_vars['p_fri_comment']); ?>
<?php endif; ?>

