					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
<?php if (empty($this->_vars['com_names']['id'])): ?>
					<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/connect.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Involved a Community'); ?></h2></div>
<?php if ($this->_vars['action']['complete']): ?>
						<div class="listplain">
							<?php // _e('Private community require approval from a moderator to join. Your request to join has been sent.'); ?>
							<?php _e('Updated'); ?><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('Visibility'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['visibility'][$this->_vars['com_names']['visibility']]); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Bulletin'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['bulletin'][$this->_vars['com_names']['bulletin']]); ?></div>
						</div>
<?php if (PERMISSION_REQUEST == $this->_vars['base']['community']['involved'] && !($this->_vars['com_names']['status'] & PERMISSION_INVITE)): ?>
						<div class="listrow">
							<label class="column"><?php _e('Comment'); ?>:</label>
							<div class="fdata"><?php HTML::htmlBody($this->_vars['com_names']['comment']); ?></div>
						</div>
<?php endif; ?>
						<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('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_names']['visibility']); ?>
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Bulletin'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['bulletin'])): ?><span class="alert"><?php _e('Please select.'); ?></span><br /><?php endif; ?>
								<?php HTML::radio('bulletin', $this->_vars['bulletin'], $this->_vars['com_names']['bulletin']); ?>
							</div>
						</div>
<?php if (PERMISSION_REQUEST == $this->_vars['base']['community']['involved'] && !($this->_vars['com_names']['status'] & PERMISSION_INVITE)): ?>
						<div class="listrow">
							<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', $this->_vars['com_names']['comment'], _('Comment')); ?>
							</div>
						</div>
<?php endif; ?>
						<div class="listplain"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:120px;" /></div>
<?php endif; ?>
					</form>
<?php else: ?>
						<div class="listplain">
<?php if ($this->_vars['com_names']['status'] & PERMISSION_MEMBERS): ?>
							<a href="<?php e(HTTP_ACTION); ?>community/setting/resign/<?php e($this->_vars['base']['community']['id']); ?>/delete/"><img src="<?php e(BASE_URL); ?>resource/img/icons/disconnect.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Resign'); ?></a><br />
<?php else: ?>
							<?php _e('You already have a pending member request for this community.'); ?><br />
<?php endif; ?>
							<br /><?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" />
