<?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');
JHTML::_('behavior.modal');

echo $this->layout[0];
?>
<div id="rsevents-action">
<form action="index.php" method="post" name="adminForm" id="adminForm">
<?php echo JText::_('RSE_FROM'); ?> : <input type="text" value="" name="rse_from" size="40" />
<br/><br/>
<?php echo JText::_('RSE_INVITE_ADDRESSES'); ?>
<br/>
<textarea name="emails" rows="10" cols="100" class="rsevents-message" id="rsevents-emails"><?php echo $this->importedContacts;?></textarea>
<br/>
<?php echo JText::_('RSE_INVITE_IMPORTS'); ?>
	<table>
		<tr>
			<td colspan="2">
				<input type="radio" name="importfrom" value="yahoo" id="yahoo" checked="checked" onclick="rse_change_carrier('yahoo');"/>
				<label for="yahoo"><img src="<?php echo JURI::root();?>components/com_rsevents/images/yahoo.png" border="0"/></label>
				
				<input type="radio" name="importfrom" value="gmail" id="gmail" onclick="rse_change_carrier('gmail');"/>
				<label for="gmail"><img src="<?php echo JURI::root();?>components/com_rsevents/images/gmail.png" border="0"/></label>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo JText::_('RSE_USER_ID'); ?> : 
			</td>
			<td>
				<input name="username" type="text" id="username"/><span id="rsevents-carrier">@yahoo.com</span>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo JText::_('RSE_PASSWORD'); ?> : 
			</td>
			<td>
				<input name="password" type="password" id="password" />
			</td>
		</tr>
	</table>
<button type="submit" onclick="return rsevents_import_validation();"><?php echo JText::_('RSE_IMPORT_NOW');?></button>
<input name="typename" id="typename" type="hidden" value="yahoo">

<br/>
<br/>
<?php echo JText::_('RSE_INVITE_MESSAGE'); ?>
<br/>
<?php $editor=& JFactory::getEditor();
				echo $editor->display('message','',450,400,50,10); ?>
<br/><br/><br/>
<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 echo 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; ?>" />
	<?php if ($this->data->EventType == 0) { ?>
	<input type="hidden" name="privateUrl" value="<?php echo $this->data->EventPrivateUrl; ?>" />
	<?php } ?>
	<input type="hidden" name="controller" value="events" />
	<input type="hidden" name="task" id="task" value="invite" />

</form>
</div>
<?php
echo $this->layout[1];
?>