<?php if ($this->_vars['is_invited']): ?>
<form method="post" action="<?php e(HTTP_ACTION); ?>public/join/account/<?php e($this->_vars['request']['id']); ?>/<?php e($this->_vars['request']['key']); ?>/"><?php HTML::requires(); ?>
<?php if ($this->_vars['action']['complete']): ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><font size="<?php Theme::exec()->fontSize(); ?>"><?php _e('Thank you for joining.'); ?></font><br></td></tr>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><font size="<?php Theme::exec()->fontSize(); ?>">
		<a href="<?php e(HTTP_ACTION); ?>private/home/living/"><?php _e('My Home'); ?></a><br></font>
		<?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
	<br></td></tr>
</table>
<?php elseif ($this->_vars['action']['confirm']): ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('last_name'); ?>:<br></td></tr>
	<tr><td><?php e($this->_vars['request']['last_name']); ?><br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Name'); ?>:<br></td></tr>
	<tr><td><?php e($this->_vars['request']['first_name']); ?><br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Nickname'); ?>:<br></td></tr>
	<tr><td><?php e($this->_vars['request']['nickname']); ?><br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('E-mail'); ?>:<br></td></tr>
	<tr><td><?php e($this->_vars['email']); ?><br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Email Notifications'); ?>:<br></td></tr>
	<tr><td><?php echo $this->_vars['mailings'][$this->_vars['request']['mailing']]; ?><br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
		<input type="submit" name="manip" value="<?php _e('Submit'); ?>">
		<input type="submit" name="<?php e($this->_vars['action']['goback']); ?>" value="<?php _e('Go back'); ?>">
	<br></td></tr>
</table>
<?php else: ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('last_name'); ?>:<br></td></tr>
	<tr><td>
		<?php if (!empty($this->_vars['alert']['last_name'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please enter.'); ?></font><br><?php endif; ?>
		<input type="text" name="last_name" value="<?php e($this->_vars['request']['last_name']); ?>" style="ime-mode:active">
	<br></td></tr>

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

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

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('E-mail'); ?>:<br></td></tr>
	<tr><td><?php e($this->_vars['email']); ?><br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Password'); ?>:<br></td></tr>
	<tr><td>
		<?php if (!empty($this->_vars['alert']['password'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please enter.'); ?></font><br><?php endif; ?>
		<?php if (!empty($this->_vars['alert']['unmatched'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('The password does not match'); ?></font><br><?php endif; ?>
		<input type="password" name="password" value="<?php e($this->_vars['request']['password']); ?>">
	<br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Verify Password'); ?>:<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="password" name="verification" value="<?php e($this->_vars['request']['verification']); ?>">
	<br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Email Notifications'); ?>:<br></td></tr>
	<tr><td>
		<font color="<?php Theme::exec()->alertColor(); ?>"><?php echo empty($this->_vars['alert']['mailing'])? '':_('Please select.').'<br>'; ?></font>
		<?php HTML::radio('mailing', $this->_vars['mailings'], $this->_vars['request']['mailing']); ?></select>
	<br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('terms'); ?>:<br></td></tr>
	<tr><td>
		<font color="<?php Theme::exec()->alertColor(); ?>"><?php echo empty($this->_vars['alert']['agree'])? '':_('If you do not agree, not available.').'<br>'; ?></font>

		<a href="<?php e(HTTP_ACTION);?>public/content/browse/terms/" target="_blank"><?php _e('Terms of Service'); ?></a><br>
		<input type="checkbox" name="agree" value="1" <?php print(empty($this->_vars['request']['agree'])? '':' checked="checked"');?>><?php _e('Accept Terms and Conditions'); ?>
	<br></td></tr>

	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>"><br></td></tr>
</table>
<?php endif; ?>
</form>
<?php else: ?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
	<tr><td><font size="<?php Theme::exec()->fontSize(); ?>">
		<?php printf(_('%s to sign up, to receive the invitation to please.'), SNS_NAME); ?><br>
		<?php _e('The invitation written in the URL to access please.'); ?><br>&nbsp;</font>
		<font color="<?php Theme::exec()->alertColor(); ?>" size="<?php Theme::exec()->fontSize(); ?>"><?php _e('Please note the following things.'); ?></font><br>
		<font size="<?php Theme::exec()->fontSize(); ?>"><?php _e('For security reasons, there are many characters in the URL.'); ?><br>
		<?php _e('By mail, the URL is two lines or more may be displayed.'); ?><br>
		<?php _e("in that case, the URL in your browser's address field copy."); ?><br>
	<br></font></td></tr>
</table>
<?php endif; ?>
