					<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(); ?>
						<div class="listrow"><h2><img src="<?php e(BASE_URL); ?>resource/img/icons/group_edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Setting Community'); ?></h2></div>
<?php if ($this->_vars['action']['complete']): ?>
						<div class="listplain">
							<?php _e('Updated'); ?><br />
							<img src="<?php e(BASE_URL); ?>resource/img/icons/group.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>community/view/community/<?php e($this->_vars['id']); ?>/"><?php _e('Top Page'); ?></a><br /><br />
							<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?><br />
						</div>
<?php elseif ($this->_vars['action']['confirm']): ?>
						<div class="listrow">
							<label class="column"><?php _e('Community Name'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['com_community']['community']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Category'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['base']['categories'][$this->_vars['com_community']['ref_category']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Community Viewable'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['visibility'][$this->_vars['com_community']['visibility']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Join Type'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['involved'][$this->_vars['com_community']['involved']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Post a Topic'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['permission'][$this->_vars['com_community']['topic_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Post a Event'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['permission'][$this->_vars['com_community']['event_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Post a Article'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['permission'][$this->_vars['com_community']['article_flag']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Region'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['reference']['ara_region'][$this->_vars['com_community']['ref_region']]); ?></div>
						</div>
						<div class="listrow">
							<div class="rdata"><?php HTML::htmlBody($this->_vars['com_community']['comment']); ?></div>
						</div>
						<div class="listplain">
							<input type="submit" name="manip" value="<?php _e('Submit'); ?>" 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('Community Name'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['community'])): ?><span class="alert"><?php _e('Please enter.'); ?></span><br /><?php endif; ?>
 
								<input type="text" name="community" value="<?php e($this->_vars['com_community']['community']); ?>" size="32" />
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Category'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['ref_category'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<select name="ref_category"><?php HTML::options($this->_vars['base']['categories'], $this->_vars['com_community']['ref_category']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Community Viewable'); ?>:</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_community']['visibility']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Join Type'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['involved'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('involved', $this->_vars['involved'], $this->_vars['com_community']['involved']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Post a Topic'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['topic_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('topic_flag', $this->_vars['permission'], $this->_vars['com_community']['topic_flag']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Post a Event'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['event_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('event_flag', $this->_vars['permission'], $this->_vars['com_community']['event_flag']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Post a Article'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['article_flag'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('article_flag', $this->_vars['permission'], $this->_vars['com_community']['article_flag']); ?>
							</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"><?php HTML::options($this->_vars['reference']['ara_region'], $this->_vars['com_community']['ref_region']); ?></select>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Comment'); ?>:</label>
							<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_community']['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" />