					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
					<form name="edit" method="post" action="<?php e($this->_vars['action']['url']); ?>">
						<?php HTML::requires(); ?>
<?php if ($this->_vars['action']['complete']): ?>
						<div class="listplain">
							<?php _e('Your invitation was sent to your friend.'); ?><br /><br /><?php loadPlugin::callFunc('hitsuji_banner', POSITION_MIDDLE); ?><br />
						</div>
<?php elseif ($this->_vars['action']['confirm']): ?>
						<div class="listrow">
							<label class="column"><?php _e('E-mail'); ?>:</label>
							<div class="fdata"><?php e($this->_vars['fri_invite']['email']); ?></div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Comment'); ?>:</label>
							<div class="fdata"><?php HTML::nl2br($this->_vars['fri_invite']['comment']); ?></div>
						</div>
						<div class="listplain">
							<input type="submit" name="manip" value="<?php _e('Submit'); ?>" style="width:120px;" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="submit" name="<?php e($this->_vars['action']['goback']); ?>" value="<?php _e('Go back'); ?>" style="width:100px;" />
						</div>
<?php else: ?>
						<div class="listrow">
							<label class="column"><?php _e('E-mail'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['email'])): ?><span class="alert"><?php _e('Please type.'); ?></span><br /><?php endif; ?> 
								<?php if (!empty($this->_vars['alert']['registered'])): ?><span class="alert"><?php _e('Registered member.'); ?></span><br /><?php endif; ?> 
								<input type="text" name="email" value="<?php e($this->_vars['fri_invite']['email']); ?>" size="32" />
							</div>
						</div>
						<div class="listrow">
							<label class="column"><?php _e('Comment'); ?>:</label>
							<div class="fdata">
								<?php if (!empty($this->_vars['alert']['comment'])): ?><span class="alert"><?php _e('Please type.'); ?></span><br /><?php endif; ?>
								<textarea name="comment" cols="40" rows="6"><?php e($this->_vars['fri_invite']['comment']); ?></textarea>
							</div>
						</div>
						<div class="listplain"><input type="submit" name="confirm" value="<?php _e('Confirm'); ?>" style="width:120px;" /></div>
<?php endif; ?>
					</form><img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />


<?php if(!empty($this->_vars['invites'])): ?>
					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="---" align="absbottom" />
                    <form name="delete" method="post" action="<?php e(HTTP_ACTION); ?>private/home/invite/">
						<?php HTML::requires(); ?>
<?php foreach($this->_vars['invites'] as $_row): ?>
						<div class="listrow">
							<label class="column"><?php eDate($_row['modified'], _('Y-m-d H:i')); ?>:</label>
							<div class="fdata"><label><input type="checkbox" name="invitations[]" value="<?php e($_row['id']); ?>"><?php e(RKT_Crypt::getDecrypted($_row['email'])); ?></label></div>
						</div>
<?php endforeach; ?>
						<div class="listplain"><input name="delete" type="submit" value="<?php _e('Delete'); ?>" onclick="return confirm('<?php _e("Invitations to delete it?"); ?>');" style="width:120px;" /></div>
                    </form><img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="___" align="top" />
<?php endif; ?>
