<?php
/**
* @version 1.0.0
* @package RSEvents! 1.0.0
* @copyright (C) 2009 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/

defined( '_JEXEC' ) or die( 'Restricted access' ); 
echo $this->layout[0];
?>
<div id="rsevents-action">
<?php
echo JText::_('RSE_INVITE_ADDRESSES');
?>
<form  name="adminForm" action="index.php" method="POST">
<textarea name="emails" rows="10" cols="100" class="rsevents-message" id="rsevents-emails"></textarea>
<br/>
<table width="100%">
<?php echo @$this->contacts;?>
</table>
<input type="hidden" name="cid" value="<?php echo $this->data->IdEvent;?>"/>						
<input type="button" name="importb" id="importb" value="<?php echo JText::_('RSE_IMPORT_NOW');?>" size="20" onclick="rse_import_contacts();">
<input type="button" name="backbutton" value="<?php echo JText::_('RSE_BACK_BTN'); ?>" onclick="document.location='<?php echo html_entity_decode(JRoute::_('index.php?option=com_rsevents&view=events&layout=invite&cid='.$this->data->IdEvent.$this->itemId)); ?>'"/>
			<br/><?php echo JText::_('RSE_INVITE_MESSAGE');?><br/>
				<?php $editor=& JFactory::getEditor();
				echo $editor->display('message','',450,400,50,10); ?>
			<br/><br/>
	<input name="typename" id="typename" type="hidden" value="gmail">						

	<button type="submit" onclick="return rsevents_invite_validation();" style="float:left;"><?php echo JText::_('RSE_INVITE');?></button>
	<button type="button" style="float:left;" onclick="document.location='<?php echo html_entity_decode(JRoute::_('index.php?option=com_rsevents&view=events&layout=show&cid='.$this->data->IdEvent.$this->itemId)); ?>'"><?php echo JText::_('RSE_CANCEL_BTN');?></button>
<?php JHTML::_( 'form.token' );?>
<input type="hidden" name="option" value="com_rsevents" />
<input type="hidden" name="cid" value="<?php echo $this->data->IdEvent;?>" />
<input type="hidden" name="IdEvent" value="<?php echo $this->data->IdEvent;?>" />
<input type="hidden" name="Itemid" value="<?php echo $this->Itemid;?>" />
<input type="hidden" name="controller" value="events" />
<input type="hidden" name="view" value="events" />
<input type="hidden" name="layout" value="importyahoo" />
<input type="hidden" name="task" value="invite" />
</form>
</div>
<?php
echo $this->layout[1];
?>