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

<form method="post" action="<?php e(HTTP_ACTION); ?>private/message/list/<?php e($this->_vars['status']); ?>/"><?php HTML::requires(); ?>
<?php if (count($this->_vars['v_fri_message'])): ?>
<?php HTML::mobilePager($this->_vars['p_fri_message']); ?>
<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">

<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($this->_vars['v_fri_message'] as $_row): ?>
<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
<img src="<?php e(BASE_URL); ?>resource/img/icons/<?php e($this->_vars['icons'][$_row['flag']]); ?>.gif" width="16" height="16" alt="&gt;">
<input type="checkbox" name="messages[]" value="<?php e($_row['id']); ?>">
<a href="<?php e(HTTP_ACTION); ?>private/message/<?php e($this->_vars['target'][$this->_vars['status']]); ?>/<?php e($_row['id']); ?>/"><?php e($_row['subject']); ?></a><br>
<?php _e('From'); ?>:<a href="<?php e(HTTP_ACTION); ?>member/personal/profile/<?php e($_row['ref_from']); ?>/"><?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_from'], 'nickname'); ?></a>
<?php eDate($_row['regist_date'], _('Y-m-d')); ?></font><hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">
</td></tr>
<?php endforeach; ?>

<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>">
<?php if ($this->_vars['status'] == MESSAGE_TRASH): ?>
<select name="chenge"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['statuses']); ?></select>
<input type="submit" name="manips" value="<?php _e('Move'); ?>"><br>

<input type="submit" name="delete" value="<?php _e('Delete'); ?>">
<?php else: ?>
<input type="submit" name="manips" value="<?php _e('Delete'); ?>"><br>
<?php endif; ?>
</td></tr></table>
<?php else: ?>
<?php e(sprintf(_('There are no messages in your %s folder.'), $this->_vars['statuses'][$this->_vars['status']])); ?><br><br>
<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php endif; ?>
</form>
