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

<?php if ($this->_vars['base']['permission'] & PERMISSION_LEADER): ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>">
		<img src="<?php e(BASE_URL); ?>resource/img/icons/group_edit.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION);?>community/view/member/<?php e($this->_vars['base']['community']['id']); ?>/<?php e(US); ?>status=<?php e(PERMISSION_MEMBER); ?>"><?php _e('Edit Members'); ?></a><br>
		<img src="<?php e(BASE_URL); ?>resource/img/icons/group_add.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION);?>community/view/member/<?php e($this->_vars['base']['community']['id']); ?>/<?php e(US); ?>status=<?php e(PERMISSION_REQUEST); ?>"><?php _e('Want to be a member'); ?></a><br>
		<img src="<?php e(BASE_URL); ?>resource/img/icons/cross.gif" width="16" height="16" alt="&gt;">&nbsp;<a href="<?php e(HTTP_ACTION);?>community/view/member/<?php e($this->_vars['base']['community']['id']); ?>/<?php e(US); ?>status=<?php e(PERMISSION_REFUSAL); ?>"><?php _e('Expulsion list'); ?></a><br>
	</td></tr>
</table>
<?php endif; ?>

<?php if (empty($this->_vars['v_com_names'])):?>
	<?php _e('Sorry, no results found.'); ?><br><br>
	<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
<?php else: ?>
<?php HTML::mobilePager($this->_vars['p_com_names'], $this->_vars['param']); ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr>
<?php foreach ($this->_vars['v_com_names'] as $num=>$_row): ?>
	<td bgcolor="<?php Theme::exec()->bgColor(); ?>">
		<?php loadPlugin::callFunc('hitsuji_profile', $_row['ref_account'], 'nickname,vSmall'); ?>
		<?php loadPlugin::callFunc('hitsuji_lastLogin', $_row['ref_account']); ?><br>
		<?php printf($this->_vars['command'], $_row['id'], $_row['id'], $_row['id']); ?><br>
	</td>
<?php if (($num % 3) == 2): ?></tr><tr><?php endif; ?>
<?php endforeach; ?>
	</tr>
</table>
<?php HTML::mobilePager($this->_vars['p_com_names'], $this->_vars['param']); ?>
<?php endif; ?>
