					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
					<form name="edit" method="post" action="<?php e($this->_vars['action']['url']); ?>">
                        <?php HTML::requires(); ?>
<?php if ($this->_vars['action']['complete'] || $this->_vars['action']['deleted']): ?>
						<div class="listplain">
							<img src="<?php e(BASE_URL); ?>resource/img/icons/date.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>member/schedule/calendar/<?php e($this->_vars['base']['account']['id']); ?>/"><?php _e('View Calendar'); ?></a><br>
							<?php e($this->_vars['action']['complete']? _('Updated'):_('Deleted')); ?><br /><br /><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?><br />
						</div>
<?php elseif ($this->_vars['action']['confirm'] || $this->_vars['action']['delete']): ?>
						<div class="listrow">
							<label class="column"><?php _e('Visibility'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['visibility'][$this->_vars['cal_schedule']['visibility']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Title'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['cal_schedule']['schedule']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Start Date'); ?>:</label>
							<div class="fdata">
							    <?php eDate($this->_vars['cal_schedule']['start_date']); ?>&nbsp;
							    <?php e($this->_vars['cal_schedule']['start_hour']); ?>:
							    <?php e($this->_vars['cal_schedule']['start_minute']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('End Date'); ?>:</label>
							<div class="fdata">
								<?php eDate($this->_vars['cal_schedule']['end_date']); ?>
								<?php e($this->_vars['cal_schedule']['start_hour']); ?>:
								<?php e($this->_vars['cal_schedule']['start_minute']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Comment'); ?>:</label>
							<div class="fdata"><?php HTML::nl2br($this->_vars['cal_schedule']['comment']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Reminder'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['reminders'][$this->_vars['cal_schedule']['reminder']]); ?></div>
						</div>
						<div class="listplain">
							<input type="submit" name="manip" value="<?php e($this->_vars['action']['confirm']? _('Submit'):_('Delete')); ?>" style="width:120px;" />&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('Visibility'); ?>:</label>
							<div class="fdata">
								<select name="visibility"><?php HTML::options($this->_vars['visibility'], $this->_vars['cal_schedule']['visibility']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Title'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['schedule'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
 
								<input type="text" name="schedule" value="<?php e($this->_vars['cal_schedule']['schedule']); ?>" size="32" />
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Start Date'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['start_date'])): ?><span class="alert"><?php _e('Please select date.'); ?></span><br /><?php endif; ?>
								<?php HTML::dateSelect('start_date', ifNull($this->_vars['cal_schedule']['start_date'], $this->_vars['date'])); ?>&nbsp;
								<select name="start_hour"><option value="">--</option><?php HTML::options($this->_vars['hours'], $this->_vars['cal_schedule']['start_hour']); ?></select>:
								<select name="start_minute"><option value="">--</option><?php HTML::options($this->_vars['sixty'], $this->_vars['cal_schedule']['start_minute']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('End Date'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['end_date'])): ?><span class="alert"><?php _e('Please select date.'); ?></span><br /><?php endif; ?>
								<?php HTML::dateSelect('end_date', ifNull($this->_vars['cal_schedule']['end_date'], $this->_vars['date'])); ?>&nbsp;
								<select name="start_hour"><option value="">--</option><?php HTML::options($this->_vars['hours'], $this->_vars['cal_schedule']['start_hour']); ?></select>:
								<select name="start_minute"><option value="">--</option><?php HTML::options($this->_vars['sixty'], $this->_vars['cal_schedule']['start_minute']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Comment'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['comment'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<textarea name="comment" class="textarea" cols="40" rows="6"><?php e($this->_vars['cal_schedule']['comment']); ?></textarea>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Reminder'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['reminder'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('reminder', $this->_vars['reminders'], $this->_vars['cal_schedule']['comment']); ?>
							</div>
						</div>
						<div class="listplain"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:120px;" /></div>
<?php endif; ?>
					</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />
