					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
						<?php HTML::requires(); ?>
						<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['event']['event']); ?></h2></div>
<?php if (empty($this->_vars['event'])): ?>
						<div class="listplain">
							<?php _e('Sorry, no results found.'); ?><br /><br /><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?><br />
						</div>
<?php else : ?>
						<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['event']['start_date'], _('Y-m-d')); ?>
									<?php e($this->_vars['event']['start_hour']); ?>:
									<?php e($this->_vars['event']['start_minute']); ?><br />
									<?php HTML::reference('ara_region', $this->_vars['event']['ref_region']); ?><?php HTML::reference('ara_city', $this->_vars['event']['ref_city']); ?>
									<?php if (!empty($this->_vars['event']['locale'])): ?>(<?php e($this->_vars['event']['locale']); ?>)<?php endif; ?><br />
								</li>
							</ul>
						</div>
						<div class="listrow">
							<div class="rdata"><?php HTML::htmlBody($this->_vars['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 />
<?php if ($this->_vars['base']['permission'] & PERMISSION_MEMBERS): ?>
									<strong><?php _e('Entries'); ?>:</strong>&nbsp;&nbsp;<br />
									<strong><?php _e('Posted by'); ?>:</strong>&nbsp;&nbsp;
<?php endif; ?>
								</li>
								<li style="width:340px; text-align:left;">
									<?php eDate($this->_vars['event']['deadline'], _('Y-m-d')); ?><br />
<?php if ($this->_vars['base']['permission'] & PERMISSION_MEMBERS): ?>
									<a href="<?php e(HTTP_ACTION); ?>community/event/entries/<?php e($this->_vars['event']['id']); ?>/"><?php printf(_('%s entries'), $this->_vars['event']['entries']); ?></a><br />
									<?php loadPlugin::callFunc('hitsuji_profile', $this->_vars['event']['ref_author'], 'nickname'); ?>
<?php endif; ?>
								</li>
							</ul>
						</div>
						<div class="listplain">
							<ul class="horizontal">
								<li style="width:140px; text-align:center;">
									<?php eDate(ifNull($this->_vars['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['event']['visibility']]); ?>" width="16" height="16" align="absmiddle" alt="<?php e($this->_vars['base']['visibility'][$this->_vars['event']['visibility']]); ?>" />
								</li>
								<li style="width:364px; text-align:right;">
									<img src="<?php e(BASE_URL); ?>resource/img/icons/comment.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/event/view/<?php e($this->_vars['event']['id']); ?>/#Comments"><?php _e('Comments'); ?>&nbsp;(<?php e($this->_vars['event']['posts']); ?>)</a>&nbsp;&nbsp;
<?php if ($this->_vars['base']['account']['id'] == $this->_vars['event']['ref_author'] || $this->_vars['base']['permission'] & PERMISSION_LEADER): ?>
									<img src="<?php e(BASE_URL); ?>resource/img/icons/sent.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/event/send/<?php e($this->_vars['event']['id']); ?>/"><?php _e('Send Message'); ?></a>&nbsp;&nbsp;
									<img src="<?php e(BASE_URL); ?>resource/img/icons/edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/event/post/<?php e($this->_vars['base']['community']['id']); ?>/<?php e($this->_vars['event']['id']); ?>/"><?php _e('Edit'); ?></a>&nbsp;&nbsp;
									<img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/event/post/<?php e($this->_vars['base']['community']['id']); ?>/<?php e($this->_vars['event']['id']); ?>/delete/"><?php _e('Delete'); ?></a>
<?php endif; ?>
								</li>
							</ul>
						</div>
<?php endif; ?>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />

<?php if ($this->_vars['base']['permission'] & PERMISSION_MEMBERS): ?>
					<a name="Attend"><img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" /></a>
						<form name="attend" method="post" action="<?php e(HTTP_ACTION); ?>community/event/view/<?php e($this->_vars['event']['id']); ?>/#Attend">
							<?php HTML::requires(); ?>
<?php if (empty($this->_vars['attend'])): ?>
							<div class="listplain"><input name="attend" type="submit" value="<?php _e('Attend an Event.'); ?>" style="width:180px;" /></div>
<?php else : ?>
							<div class="listplain"><?php _e('Take part in the Event.'); ?><br /><input name="delete" type="submit" value="<?php _e("Don't attend an Event."); ?>" style="width:180px;" /></div>
<?php endif; ?>
						</form>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />
<?php endif; ?>

					<a name="Comments"><img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="__" align="absbottom" /></a>
<?php if (!empty($this->_vars['v_com_report'])):?>
						<div class="listrow"><?php HTML::pager($this->_vars['p_com_report']); ?></div>
<?php foreach ($this->_vars['v_com_report'] as $_row): ?>
						<div class="listplain">
							<ul class="horizontal">
								<li style="width:166px; text-align:center;"><?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_author'], 'thumbnail,nickname'); ?></li>
								<li style="width:344px; text-align:left;"><?php HTML::htmlBody($_row['comment']); ?></li>
							</ul>
						</div>
						<div class="listrow">
							<ul class="horizontal">
								<li style="width:140px; text-align:center;">
									<?php eDate($_row['regist_date'], _('Y-m-d H:i')); ?>
								</li>
								<li style="width:364px; text-align:right;">
									<img src="<?php e(BASE_URL); ?>resource/img/icons/edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/event/report/<?php e($this->_vars['event']['id']); ?>/<?php e($_row['id']); ?>/"><?php _e('Edit'); ?></a>&nbsp;&nbsp;
									<img src="<?php e(BASE_URL); ?>resource/img/icons/trash.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/event/report/<?php e($this->_vars['event']['id']); ?>/<?php e($_row['id']); ?>/delete/"><?php _e('Delete'); ?></a>&nbsp;&nbsp;
								</li>
							</ul>
						</div>
<?php endforeach; ?>
						<div class="listplain"><?php HTML::pager($this->_vars['p_com_report']); ?></div>
<?php endif; ?>
<?php if ($this->_vars['base']['permission'] & PERMISSION_MEMBERS): ?>
						<form id="feditor" name="edit" method="post" action="<?php e(HTTP_ACTION); ?>community/event/report/<?php e($this->_vars['event']['id']); ?>/0/confirm/">
							<?php HTML::requires(); ?>
							<div class="listplain">
								<div class="mdata">
									<?php if (!empty($this->_vars['alert']['comment'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
									<?php HTML::richEditor('comment', null, _('Comment'), 'small'); ?>
								</div>
							</div>
							<div class="listrow">
								<div class="rdata">
									<?php loadPlugin::callFunc('hitsuji_attaches', $this->_vars['base']['account']['id'], 'small'); ?>
								</div>
							</div>
							<div class="listplain"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:120px;" /></div>
						</form>
<?php else: ?>
						<div class="listplain">
							<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?><br />
						</div>
<?php endif; ?>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="__" align="top" />
