<?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');
jimport('joomla.html.pane');
$tabs= & JPane::getInstance('Tabs',array(),true);
JHTML::_('behavior.modal');
JHTML::_('behavior.mootools');
JHTML::_('behavior.tooltip');
JHTML::_('behavior.switcher');
$editor=& JFactory::getEditor();
?>

<!-- tab -->

<script type="text/javascript">
function changeLayout(value)
{
	if (value == 0 ) return;
		else if (value == 1)
			document.getElementById('layoutArea').value = '<div style="overflow: hidden">\n{EventIcon}<a href="{EventLink}"><strong>{EventName}</strong></a><br/>\n{EventSubtitle}\n<p>{EventDescription}</p>\nAt <em>{LocationName}</em> from {EventStartDate} to {EventEndDate} - Hosted by {EventHost} - {CategoryName} - <a href="{EventLink}">Details</a></div>\n<hr/>';
		else if (value == 2)
			document.getElementById('layoutArea').value = '<tr>\n\t<td>{EventStartDate} - {EventEndDate}</td>\n\t<td><a href="{EventLink}">{EventName}</a></td>\n\t<td><a href="{LocationLink}">{LocationName}</a></td>\n\t<td>{CategoryName}</td>\n</tr>';
}
</script>
<form action="index.php" method="post" name="adminForm">
<div id="config-document">
<div id="page-general">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="license">
								<?php echo JText::_( 'RSE_LICENSE' ); ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[global.register.code]" value="<?php echo $this->data['global.register.code'];  ?>" size="55" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="date">
								<?php echo JText::_( 'RSE_DATE_FORMAT' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[global.dateformat]" value="<?php echo $this->data['global.dateformat'];  ?>" size="55" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="debug">
								<?php echo JText::_( 'RSE_12H' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[enable.12format]','class="inputbox"',$this->data['enable.12format']); ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="debug">
								<?php echo JText::_( 'RSE_DEBUG' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[enable.debug]','class="inputbox"',$this->data['enable.debug']); ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<!-- tab -->
<div id="page-events">
<fieldset>
<legend><?php echo JText::_('RSE_EVENT_INTRO'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td width="10%">
				<label for="layouts">
					<?php echo JText::_( 'RSE_SELECT_INTRO_LAYOUT' ).' : '; ?>
				</label>
			</td>
			<td>
				<?php echo $this->lists['layout']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2">
				<textarea id="layoutArea" name="rseventsConfig[layouts.eventintro]" rows="10" cols="100%"><?php echo $this->data['layouts.eventintro']; ?></textarea>
			</td>
		</tr>
	</table>
</fieldset>

<fieldset>
	<legend><?php echo JText::_('RSE_GUEST_MENU_OPTIONS'); ?></legend>
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td width="10%">
				<label for="invite">
					<?php echo JText::_( 'RSE_SHOW_INVITE' ).' : '; ?>
				</label>
			</td>
			<td>
				<?php echo JHTML::_('select.booleanlist','rseventsConfig[event.show.invite]','class="inputbox"',$this->data['event.show.invite']); ?>
			</td>
		</tr>
		<tr>
			<td width="10%">
				<label for="outlook">
					<?php echo JText::_( 'RSE_SHOW_OUTLOOK' ).' : '; ?>
				</label>
			</td>
			<td>
				<?php echo JHTML::_('select.booleanlist','rseventsConfig[event.show.outlook]','class="inputbox"',$this->data['event.show.outlook']); ?>
			</td>
		</tr>
	</table>
</fieldset>

<fieldset>
	<legend><?php echo JText::_('RSE_MODERATION_SETTINGS'); ?></legend>
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td width="10%">
				<label for="moderation" class="editlinktip hasTip" title="<?php echo JText::_('RSE_MODERATION_INFO'); ?>">
					<?php echo JText::_( 'RSE_MODERATION_EMAIL' ).' : '; ?>
				</label>
			</td>
			<td>
				<input type="text" name="rseventsConfig[moderation.email]" value="<?php echo $this->data['moderation.email'];  ?>" size="100"  />
			</td>
		</tr>
	</table>
</fieldset>

<fieldset>
<legend><?php echo JText::_('RSE_FULL_BOOKING'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="booking">
								<?php echo JText::_( 'RSE_FULL_BOOKING_MESSAGE' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[event.full.booking]" value="<?php echo $this->data['event.full.booking'];  ?>" size="100"  />
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
</fieldset>
<fieldset>
	<legend><?php echo JText::_('RSE_ICON_SHOW'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="enableicon">
								<?php echo JText::_('RSE_ENABLE_ICON').':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[enable.event.icon]','class="inputbox"',$this->data['enable.event.icon']); ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="sicon">
								<?php echo JText::_('RSE_SMALL_ICON').':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[event.icon.small]" value="<?php echo $this->data['event.icon.small']; ?>" size="5"  maxlength="4" /> px
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="bicon">
								<?php echo JText::_('RSE_BIG_ICON').':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[event.icon.big]" value="<?php echo $this->data['event.icon.big']; ?>" size="5" maxlength="4" /> px
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_('RSE_USER_REGISTRATION'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="registration">
								<?php echo JText::_( 'RSE_ENABLE_GUEST_REGISTRATION' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[event.enable.guests]','class="inputbox"',$this->data['event.enable.guests']); ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="registration">
								<?php echo JText::_( 'RSE_ENABLE_MULTIPLE_REGISTRATION' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[event.multiple.reg]','class="inputbox"',$this->data['event.multiple.reg']); ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="registrationMethod">
								<?php echo JText::_( 'RSE_REGISTRATION_METHOD' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[event.redirect.registration]','class="inputbox"',$this->data['event.redirect.registration'],JText::_('RSE_CREATE_USER'),JText::_('RSE_REDIRECT')); ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="redirect">
								<?php echo JText::_( 'RSE_CB_REDIRECT' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['redirection']; ?>
						</td>
					</tr>	
					<tr>
						<td width="200">
							<label for="cbautoaccept" class="editlinktip hasTip" title="<?php echo JText::_('RSE_CB_AUTOACCEPT_INFO'); ?>">
								<?php echo JText::_( 'RSE_CB_AUTOACCEPT' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[cb.autoapprove]','class="inputbox"',$this->data['cb.autoapprove']); ?>
						</td>
					</tr>	
					<tr>
						<td width="200">
							<label for="booking">
								<?php echo JText::_( 'RSE_DEFAULT_REGISTER_FORM' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['forms']; ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
</fieldset>


<fieldset>
<legend><?php echo JText::_('RSE_AUTO_ARCHIVE'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="enableutoarchive">
								<?php echo JText::_( 'RSE_ENABLE_ARCHIVE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[event.enable.autoarchive]','class="inputbox"',$this->data['event.enable.autoarchive']); ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="autoarchive">
								<?php echo JText::_( 'RSE_NR_DAYS_ARCHIVE' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[event.archive.days]" value="<?php echo $this->data['event.archive.days'] ; ?>" size="3" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" style="text-align:center;" maxlength="2" /> <?php echo JText::_('RSE_NR_DAYS'); ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_('RSE_FILES_ALLOWED'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="extensions">
								<?php echo JText::_( 'RSE_EXTENSIONS' ).':'; ?>
							</label>
						</td>
						<td>
							<textarea name="rseventsConfig[event.files]" rows="5" cols="30%"><?php echo $this->data['event.files'] ; ?></textarea>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_('RSE_EXTRAS'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="enableFlash">
								<?php echo JText::_( 'RSE_ENABLE_FLASH' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['flash']; ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="enableYoutube">
								<?php echo JText::_( 'RSE_ENABLE_YOUTUBE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['youtube']; ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="enableMp3">
								<?php echo JText::_( 'RSE_ENABLE_MP3' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['mp3']; ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="enableMeebo">
								<?php echo JText::_( 'RSE_ENABLE_MEEBO' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['meebo']; ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="enableMeebo">
								<?php echo JText::_( 'RSE_ENABLE_FLICKR' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['flickr']; ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="flikr.key">
								<?php echo JText::_( 'RSE_FLICKR_API_KEY' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[flikr.key]" value="<?php echo $this->data['flikr.key'];  ?>" size="50" maxlength="100" /> <a href="http://www.flickr.com/services/api/keys/apply/" target="_blank"><?php echo JText::_('RSE_MAP_KEY_REQUEST'); ?></a>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="flikr.key">
								<?php echo JText::_( 'RSE_FLICKR_NUM_PHOTOS' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[flikr.num.photos]" value="<?php echo $this->data['flikr.num.photos'];  ?>" size="3" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_('RSE_COMMENTS'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="enableFlash">
								<?php echo JText::_( 'RSE_COMMENTS_SELECT' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->commentoptions; ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</fieldset>
<fieldset>
<legend><?php echo JText::_('RSE_SUBSCRIBERS_PROFILE'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="enableFlash">
								<?php echo JText::_( 'RSE_SUBSCRIBERS_ENABLE_PROFILE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['profile']; ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</fieldset>
</div>
<!-- tab -->
<div id="page-locations">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="200">
							<label for="gMaps">
								<?php echo JText::_( 'RSE_ENABLE_MAPS' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['gMaps']; ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="gMaps">
								<?php echo JText::_( 'RSE_GOOGLE_MAP' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['maps']; ?>
						</td>
					</tr>
					<tr>
						<td width="200">
							<label for="key">
								<?php echo JText::_( 'RSE_MAP_API' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[locations.gMaps.key]" value="<?php echo $this->data['locations.gMaps.key'];  ?>" size="100" maxlength="100"> <a href="http://code.google.com/apis/maps/signup.html" target="_blank"><?php echo JText::_('RSE_MAP_KEY_REQUEST'); ?></a>
						</td>
					</tr>
					<?php if($this->data['locations.gmaps'] == 1) { ?>
					<tr>
							<td width="100" class="center">
								<?php echo JText::_( 'RSE_MAP_CENTER' ); ?>
							</td>
							<td>
								<input type="text" name="rseventsConfig[locations.gMaps.center]" id="center" size="40" maxlength="250" value="<?php echo $this->data['locations.gMaps.center'];?>" />
								<a class="modal" href="index.php?option=com_rsevents&task=map&tmpl=component" rel="{handler: 'iframe', size: {x: 500, y: 400}}" /><?php echo JText::_('RSE_CHANGE'); ?></a>
							</td>
					</tr>
					<?php } ?>
				</table>
			</td>
		</tr>
	</table>
</div>
<div id="page-emails">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="100">
							<label for="from">
								<?php echo JText::_( 'RSE_EMAIL_FROM' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.from]" value="<?php echo $this->data['emails.from'];  ?>" size="55" />
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="fromName">
								<?php echo JText::_( 'RSE_EMAIL_FROM_NAME' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.from.name]" value="<?php echo $this->data['emails.from.name'];  ?>" size="55" />
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_REPLY' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.reply]" value="<?php echo $this->data['emails.reply'];  ?>" size="55" />
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="cc">
								<?php echo JText::_( 'CC' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.cc]" value="<?php echo $this->data['emails.cc'];  ?>" size="55" />
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="cc">
								<?php echo JText::_( 'BCC' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.bcc]" value="<?php echo $this->data['emails.bcc'];  ?>" size="55" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<?php echo $tabs->startPane('content-pane'); ?>
<?php echo $tabs->startPanel(JText::_('RSE_EMAIL_INV_EMAIL'),"emails-invite"); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="100">
							<label for="subject">
								<?php echo JText::_( 'RSE_EMAIL_SUBJECT' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.invite.subject]" value="<?php echo $this->data['emails.invite.subject'];  ?>" size="55" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="">
								<?php echo JText::_( 'RSE_EMAIL_MODE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[emails.invite.type]','class="inputbox"',$this->data['emails.invite.type'],JText::_('RSE_HTML'),JText::_('RSE_TEXT')); ?>
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MESSAGE' ).':'; ?>
							</label>
						</td>
						<td>
						<?php if($this->data['emails.invite.type'] == 1) 					
							echo $editor->display('rseventsConfig[emails.invite.content]',$this->data['emails.invite.content'],550,400,70,10);
							else
							{
						?>
							<textarea name="rseventsConfig[emails.invite.content]" rows="10" cols="100%"><?php echo $this->data['emails.invite.content'];  ?></textarea>
						<?php } ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
<?php echo $tabs->endPanel(); ?>
<?php echo $tabs->startPanel(JText::_('RSE_EMAIL_REG_EMAIL'),"emails-registration"); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="100">
							<label for="subject">
								<?php echo JText::_( 'RSE_EMAIL_SUBJECT' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.registration.subject]" value="<?php echo $this->data['emails.registration.subject'];  ?>" size="55" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MODE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[emails.registration.type]','class="inputbox"',$this->data['emails.registration.type'],JText::_('RSE_HTML'),JText::_('RSE_TEXT')); ?>
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="enable">
								<?php echo JText::_( 'RSE_EMAIL_ENABLE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[emails.registration.enable]','class="inputbox"',$this->data['emails.registration.enable']); ?>
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MESSAGE' ).':'; ?>
							</label>
						</td>
						<td>
						<?php if($this->data['emails.registration.type'] == 1) 					
							echo $editor->display('rseventsConfig[emails.registration.content]',$this->data['emails.registration.content'],550,400,70,10);
							else
							{
						?>
							<textarea name="rseventsConfig[emails.registration.content]" rows="10" cols="100%"><?php echo $this->data['emails.registration.content'];  ?></textarea>
						<?php } ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
<?php echo $tabs->endPanel(); ?>
<?php echo $tabs->startPanel(JText::_('RSE_EMAIL_ACT_EMAIL'),"emails-activation"); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="100">
							<label for="subject">
								<?php echo JText::_( 'RSE_EMAIL_SUBJECT' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.activation.subject]" value="<?php echo $this->data['emails.activation.subject'];  ?>" size="55" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MODE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[emails.activation.type]','class="inputbox"',$this->data['emails.activation.type'],JText::_('RSE_HTML'),JText::_('RSE_TEXT')); ?>
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="enable">
								<?php echo JText::_( 'RSE_EMAIL_ENABLE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[emails.activation.enable]','class="inputbox"',$this->data['emails.activation.enable']); ?>
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MESSAGE' ).':'; ?>
							</label>
						</td>
						<td>
						<?php if($this->data['emails.activation.type'] == 1) 					
							echo $editor->display('rseventsConfig[emails.activation.content]',$this->data['emails.activation.content'],550,400,70,10);
							else
							{
						?>
							<textarea name="rseventsConfig[emails.activation.content]" rows="10" cols="100%"><?php echo $this->data['emails.activation.content'];  ?></textarea>
							<?php } ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
<?php echo $tabs->endPanel(); ?>
<?php echo $tabs->startPanel(JText::_('RSE_EMAIL_REMINDER'),"emails-reminder"); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="100">
							<label for="subject">
								<?php echo JText::_( 'RSE_EMAIL_SUBJECT' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.rem.subject]" value="<?php echo $this->data['emails.rem.subject'];  ?>" size="55">
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MODE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[emails.rem.type]','class="inputbox"',$this->data['emails.rem.type'],JText::_('RSE_HTML'),JText::_('RSE_TEXT')); ?>
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MESSAGE' ).':'; ?>
							</label>
						</td>
						<td>
						<?php if($this->data['emails.rem.type'] == 1) 					
							echo $editor->display('rseventsConfig[emails.rem.content]',$this->data['emails.rem.content'],550,400,70,10);
							else
							{
						?>
							<textarea name="rseventsConfig[emails.rem.content]" rows="10" cols="100%"><?php echo $this->data['emails.rem.content'];  ?></textarea>
						<?php } ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
<?php echo $tabs->endPanel(); ?>
<?php echo $tabs->startPanel(JText::_('RSE_EMAIL_PR_EMAIL'),"emails-preminder"); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="100">
							<label for="subject">
								<?php echo JText::_( 'RSE_EMAIL_SUBJECT' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[emails.reminder.subject]" value="<?php echo $this->data['emails.reminder.subject'];  ?>" size="55" />
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MODE' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[emails.reminder.type]','class="inputbox"',$this->data['emails.reminder.type'],JText::_('RSE_HTML'),JText::_('RSE_TEXT')); ?>
						</td>
					</tr>
					<tr>
						<td width="100">
							<label for="reply">
								<?php echo JText::_( 'RSE_EMAIL_MESSAGE' ).':'; ?>
							</label>
						</td>
						<td>
						<?php if($this->data['emails.reminder.type'] == 1) 					
							echo $editor->display('rseventsConfig[emails.reminder.content]',$this->data['emails.reminder.content'],550,400,70,10);
							else
							{
						?>
							<textarea name="rseventsConfig[emails.reminder.content]" rows="10" cols="100%"><?php echo $this->data['emails.reminder.content'];  ?></textarea>
						<?php } ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
<?php echo $tabs->endPanel(); ?>
<?php echo $tabs->endPane(); ?>
</div>
<div id="page-payments">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td width="150">
							<label for="default_payment">
								<?php echo JText::_( 'RSE_PAYMENT_DEFAULT' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo $this->lists['payment'];?>
						</td>
					</tr>
					<?php if (defined('RSEVENTS_PAYPAL')) {?>
					<tr>
						<td width="150">
							<label for="epayments">
								<?php echo JText::_( 'RSE_PAYMENTS_FOR_ALL' ).':'; ?>
							</label>
						</td>
						<td>
							<?php echo JHTML::_('select.booleanlist','rseventsConfig[paypal.for.users]','class="inputbox"',$this->data['paypal.for.users']); ?>
						</td>
					</tr>
					<?php } ?>
					<tr>
						<td width="150">
							<label for="currency">
								<?php echo JText::_( 'RSE_PAYMENT_CURRENCY' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[payment.currency]" value="<?php echo $this->data['payment.currency'];  ?>" size="4" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="150">
							<label for="thousands">
								<?php echo JText::_( 'RSE_PAYMENT_THOUSANDS' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[payment.thousands]" value="<?php echo $this->data['payment.thousands'];  ?>" size="4" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="150">
							<label for="decimal">
								<?php echo JText::_( 'RSE_PAYMENT_DECIMAL_SEPARATOR' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[payment.decimal]" value="<?php echo $this->data['payment.decimal'];  ?>" size="4" maxlength="50">
						</td>
					</tr>
					<tr>
						<td width="150">
							<label for="nr.decimal">
								<?php echo JText::_( 'RSE_PAYMENT_NR_DECIMALS' ).':'; ?>
							</label>
						</td>
						<td>
							<input type="text" name="rseventsConfig[payment.nrdecimals]" value="<?php echo $this->data['payment.nrdecimals'];  ?>" size="4" maxlength="50">
						</td>
					</tr>
				</table>
			</td>
		</tr>
</table>
</div>
</div>
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="task" value="editSettings" />
<input type="hidden" id="firstzoomlevel" name="firstzoomlevel" value="4" />
<input type="hidden" name="option" value="com_rsevents" />
<input type="hidden" name="view" value="settings" />
<input type="hidden" name="controller" value="settings" />
</form>

<?php
//keep session alive while editing
JHTML::_('behavior.keepalive');
?>