					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
					<form id="feditor" 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="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/event.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Post an Event'); ?></h2></div>
						<div class="listplain">
							<?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"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/event.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php e($this->_vars['com_event']['event']); ?></h2></div>
						<div class="listrow">
							<ul class="horizontal">
								<li style="width:100px; text-align:right;">
									<strong><?php _e('When'); ?>:</strong>&nbsp;&nbsp;<br />
									<strong><?php _e('Where'); ?>:</strong>&nbsp;&nbsp;<br />
								</li>
								<li style="width:340px; text-align:left;">
									<?php eDate($this->_vars['com_event']['start_date'], _('Y-m-d')); ?>
									<?php e($this->_vars['com_event']['start_hour']); ?>:
									<?php e($this->_vars['com_event']['start_minute']); ?><br />
									<?php e($this->_vars['reference']['ara_region'][$this->_vars['com_event']['ref_region']]); ?><?php HTML::reference('ara_city', $this->_vars['com_event']['ref_city']); ?>
									<?php if (!empty($this->_vars['com_event']['locale'])) : ?>(<?php e($this->_vars['com_event']['locale']); ?>)<?php endif; ?><br />
								</li>
							</ul>
						</div>
						<div class="listrow">
							<div class="rdata"><?php HTML::htmlBody($this->_vars['com_event']['comment']); ?></div>
						</div>
						<div class="listrow">
							<ul class="horizontal">
								<li style="width:100px; text-align:right;">
									<strong><?php _e('Deadline'); ?>:</strong>&nbsp;&nbsp;<br />
									<strong><?php _e('Entries'); ?>:</strong>&nbsp;&nbsp;<br />
									<strong><?php _e('Posted by'); ?>:</strong>&nbsp;&nbsp;
								</li>
								<li style="width:340px; text-align:left;">
									<?php eDate($this->_vars['com_event']['deadline'], _('Y-m-d')); ?><br />
									<?php printf(_('%s entries'), 0); ?><br />
									<?php loadPlugin::callFunc('hitsuji_profile', $this->_vars['base']['account']['id'], 'nickname'); ?>
								</li>
							</ul>
						</div>
						<div class="listplain">
							<ul class="horizontal">
								<li style="width:140px; text-align:center;">
									<?php eDate(ifNull($this->_vars['com_event']['regist_date'], 'now'), _('Y-m-d H:i')); ?>
									<img src="<?php e(BASE_URL); ?>resource/img/icons/<?php e($this->_vars['base']['visibility_icon'][$this->_vars['com_event']['visibility']]); ?>" width="16" height="16" align="absmiddle" alt="&gt;" />
								</li>
							</ul>
						</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"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/event.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Post an Event'); ?></h2></div>
						<div class="listrow">
							<label class="column"><?php _e('Title'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['event'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<input type="text" name="event" value="<?php e($this->_vars['com_event']['event']); ?>" size="42" />
							</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['com_event']['start_date'], $this->_vars['date'])); ?>
								<select name="start_hour"><option value="">--</option><?php HTML::options($this->_vars['hours'], $this->_vars['com_event']['start_hour']); ?></select>:
								<select name="start_minute"><option value="">--</option><?php HTML::options($this->_vars['sixty'], $this->_vars['com_event']['start_minute']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Deadline'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['deadline'])): ?><span class="alert"><?php _e('Please select date.'); ?></span><br /><?php endif; ?>
								<?php HTML::dateSelect('deadline', $this->_vars['com_event']['deadline']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Region'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['ref_region'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="ref_region" onchange="setCity('<?php e(HTTP_ACTION); ?>public/json/city/', this, 'city');"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['reference']['ara_region'], $this->_vars['com_event']['ref_region']); ?></select>
								<?php if (!empty($this->_vars['alert']['ref_city'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select id="city" name="ref_city"><option value=""><?php _e('- Select One -'); ?></option><?php HTML::options($this->_vars['cities'], $this->_vars['com_event']['ref_city']); ?></select><br />
								(<input type="text" name="locale" value="<?php e($this->_vars['com_event']['locale']); ?>" size="32" style="font-size:0.85em" />)
								
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Visibility'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['visibility'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('visibility', $this->_vars['visibility'], $this->_vars['com_event']['visibility']); ?>
							</div>
						</div>
						<div class="listrow">
							<div class="rdata">
								<?php if (!empty($this->_vars['alert']['comment'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
								<?php HTML::richEditor('comment', $this->_vars['com_event']['comment'], _('Comment')); ?>
								<?php loadPlugin::callFunc('hitsuji_attaches', $this->_vars['base']['account']['id']); ?>
							</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" />