<?php include VIEW_DIR.'mobile/common/menu/schedule.tpl'; ?>
<?php if (!empty($this->_vars['schedule'])):?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>">
	<img src="<?php e(BASE_URL); ?>resource/img/icons/information.gif" width="16" height="16" alt="&gt;">&nbsp;<?php e($this->_vars['schedule']['schedule']); ?><br>
	<?php eDate($this->_vars['schedule']['start_date']); ?>&nbsp;
	<?php e(ifNull($this->_vars['schedule']['start_hour'], '--')); ?>:
	<?php e(ifNull($this->_vars['schedule']['start_minute'], '--')); ?>
	&nbsp;<?php _e(' to '); ?>&nbsp;<br>
	<?php eDate($this->_vars['schedule']['end_date']); ?>
	<?php e(ifNull($this->_vars['schedule']['start_hour'], '--')); ?>:
	<?php e(ifNull($this->_vars['schedule']['start_minute'], '--')); ?><br>
	<img src="<?php e(BASE_URL); ?>resource/img/icons/comment.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/schedule/comments/<?php e($this->_vars['base']['member']['id']); ?>/<?php e($this->_vars['schedule']['id']); ?>/"><?php _e('Comments');?>&nbsp;(<?php e($this->_vars['schedule']['posts']); ?>)</a><br></font>
<?php if ($this->_vars['base']['account']['id'] == $this->_vars['schedule']['ref_account']): ?>
	<div align="right"><font size="<?php Theme::exec()->fontSize(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/date_edit.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>private/post/schedule/<?php e($this->_vars['schedule']['id']); ?>/"><?php _e('Edit'); ?></a>&nbsp;/
	<img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION); ?>private/post/schedule/<?php e($this->_vars['schedule']['id']); ?>/delete/"><?php _e('Delete'); ?></a><br></font></div>
<?php endif; ?>
	</td></tr>
</table>
<hr color="<?php Theme::exec()->borderColor(); ?>" noshade="noshade">
<?php endif; ?>

<form method="post" action="<?php e($this->_vars['action']['url']); ?>"><?php HTML::requires(); ?>
<?php if ($this->_vars['action']['complete'] || $this->_vars['action']['deleted']): ?>
	<?php e($this->_vars['action']['complete']? _('Updated'):_('Deleted')); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php elseif ($this->_vars['action']['confirm'] || $this->_vars['action']['delete']): ?>
	<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
		<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><font size="<?php Theme::exec()->fontSize(); ?>"><?php loadPlugin::callFunc('hitsuji_profile', ifNull($this->_vars['cal_comment']['ref_author'], $this->_vars['base']['account']['id']), 'vSmall,nickname'); ?></font><td>
		<td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>"><?php HTML::htmlBody($this->_vars['cal_comment']['comment']); ?></font></td></tr>
	</table>
	<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
		<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
			<input type="submit" name="manip" value="<?php e($this->_vars['action']['confirm']? _('Submit'):_('Delete')); ?>">
			<input type="submit" name="<?php e($this->_vars['action']['goback']); ?>" value="<?php _e('Go back'); ?>">
		<br></td></tr>
	</table>
<?php else: ?>
	<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
		<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Comment'); ?>:<br></td></tr>
		<tr><td>
			<?php if (!empty($this->_vars['alert']['comment'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please enter.'); ?></font><br><?php endif; ?>
			<?php HTML::mobileRichEditor('comment', $this->_vars['cal_comment']['comment'], _('Comment'), 'small'); ?>
		<br></td></tr>
		<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>"><br></td></tr>
	</table>
<?php endif; ?>
</form>
