					<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
					<form method="post" action="<?php e($this->_vars['action']['url']); ?>"><?php HTML::requires(); ?>
						<tr><td align="center" bgcolor="<?php Theme::exec()->bgTitleColor(); ?>"><img src="<?php e(BASE_URL); ?>resource/img/icons/event.gif" width="16" height="16" alt="&gt;">&nbsp;<?php _e('Invite Community'); ?></td></tr>
<?php if ($this->_vars['action']['complete']): ?>
						<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center">
							<?php _e('Sent Message'); ?><br><br><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MOBILE); ?><br>
						<br></td></tr>
<?php elseif ($this->_vars['action']['confirm']): ?>
						<div class="listrow">
							<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Friends'); ?>:<br></td></tr>
							<tr><td>
								<?php if (!empty($this->_vars['alert']['friends'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please select.'); ?></font><br><?php endif; ?> 
								<?php HTML::mobileCheckedList($this->_vars['friends'], $this->_vars['request']['friends'], 2); ?>
								<?php HTML::hidden('friends', $this->_vars['request']['friends']); ?>
							<br></td></tr>
						<br></td></tr>
						<div class="listrow">
							<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Subject'); ?>:<br></td></tr>
							<tr><td><?php e($this->_vars['fri_message']['subject']); ?><br></td></tr>
						<br></td></tr>
						<div class="listrow">
							<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Body'); ?>:<br></td></tr>
							<tr><td><?php HTML::htmlBody($this->_vars['fri_message']['body']); ?><br></td></tr>
						<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>
<?php else: ?>
						<div class="listrow">
							<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Friends'); ?>:<br></td></tr>
							<tr><td>
								<?php if (!empty($this->_vars['alert']['friends'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please select.'); ?></font><br><?php endif; ?> 
								<?php HTML::mobileCheckbox('friends', $this->_vars['friends'], $this->_vars['request']['friends'], 2); ?>
							<br></td></tr>
						<br></td></tr>
						<div class="listrow">
							<tr><td bgcolor="<?php Theme::exec()->bgColumnColor(); ?>"><?php _e('Subject'); ?>:<br></td></tr>
							<tr><td>
								<?php if (!empty($this->_vars['alert']['subject'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please enter.'); ?></font><br><?php endif; ?> 
								<input type="text" name="subject" value="<?php e($this->_vars['fri_message']['subject']); ?>" size="42">
							<br></td></tr>
						<br></td></tr>
						<div class="listrow">
							<div class="mdata">
								<?php if (!empty($this->_vars['alert']['body'])): ?><font color="<?php Theme::exec()->alertColor(); ?>"><?php _e('Please enter.'); ?></font><br><?php endif; ?>
								<?php HTML::mobileRichEditor('body', ifNull($this->_vars['fri_message']['body'], $this->_vars['community_link']), _('Body'), 'small'); ?>
							<br></td></tr>
						<br></td></tr>
						<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>" align="center"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>"><br></td></tr>
<?php endif; ?>
					</form>
					</table>
