<?php include VIEW_DIR.'mobile/common/menu/community.tpl'; ?>

<form method="post" action="<?php e($this->_vars['action']['url']); ?>"><?php HTML::requires(); ?>
<?php if ($this->_vars['action']['deleted']): ?>
	<?php _e('You have resigned.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<?php if ($this->_vars['base']['permission'] & PERMISSION_LEADER): ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td align="center" bgcolor="<?php Theme::exec()->bgTitleColor(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/cross.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Resign Community'); ?></td></tr>
	<tr><td><?php _e('The leader can not Resign.'); ?><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
		<input name="back" type="submit" value="<?php _e('Go back'); ?>">
	<br></td></tr>
</table>
<?php else : ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td align="center" bgcolor="<?php Theme::exec()->bgTitleColor(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/cross.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Resign Community'); ?></td></tr>
	<tr><td><?php _e('Click "Resign" only if you really wish to resign from the Community.'); ?><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
		<input type="submit" name="manip" value="<?php _e('Resign'); ?>">
		<input name="back" type="submit" value="<?php _e('Go back'); ?>">
	<br></td></tr>
</table>
<?php endif; ?>
	<br><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php endif; ?>
</form>
