<?php include VIEW_DIR.'mobile/common/menu/public.tpl'; ?>
<?php if (SYSTEM_INVITE): ?>
<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/sent.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Sign Up'); ?></td></tr>
	<tr><td>
	<?php _e('This service is invited.'); ?><br>
	<?php _e('Please receive an invitation email from the member who is already registered to have you use service.'); ?><br>
	</td></tr>
</table>
<?php else: ?>
<form method="post" action="<?php e(HTTP_ACTION); ?>public/join/invite/"><?php HTML::requires(); ?>
<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/sent.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Receive a letter of invitation'); ?></td></tr>
<?php if (empty($this->_vars['sent'])): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Email'); ?>:<br></td></tr>
	<tr><td>
		<?php if (!empty($this->_vars['alert']['email'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please enter.'); ?></font><br><?php endif; ?>
		<?php if (!empty($this->_vars['unmatched'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('The Email does not match'); ?></font><br><?php endif; ?>
		<input type="text" name="email" value="<?php e($this->_vars['request']['email']); ?>">
	<br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Verify Email'); ?>:<br></td></tr>
	<tr><td>
		<?php if (!empty($this->_vars['alert']['verification'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please enter.'); ?></font><br><?php endif; ?>
		<input type="text" name="verification" value="<?php e($this->_vars['request']['verification']); ?>">
	<br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Choose all keys'); ?>:<br></td></tr>
	<tr><td>
		<input type="hidden" name="phrase" value="<?php e($this->_vars['phrase']); ?>" />
		<img src="<?php e(BASE_URL); ?>key.php" alt="key"/><br><?php if (!empty($this->_vars['bad_select'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please choose all the keys.'); ?></font><br><?php endif; ?>
<?php foreach($this->_vars['option'] as $_row): ?>
		<img src="<?php e(BASE_URL); ?>key<?php e(ACTION_STYLE); ?>/<?php e($_row['file']); ?>" alt="key" /><input type="checkbox" name="selected[]" value="<?php e($_row['key']); ?>" />
<?php endforeach; ?>
	<br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><input name="CAPTCHA" type="submit" value="<?php _e('Send Invite'); ?>"><br></td></tr>
<?php else: ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
		<?php _e('A letter of invitation was sent to your email address.'); ?><br><br><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
	<br></td></tr>
<?php endif; ?>
</table>
</form>
<?php endif; ?>
