<?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);
?>

<form action="index.php" method="post" enctype="multipart/form-data" name="adminForm" id="adminForm">
<?php echo $tabs->startPane('content-pane'); ?>
<?php echo $tabs->startPanel(JText::_('RSE_EVENT_TAB_INFO'),"event-info"); ?>
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td>
							<label for="published">
								<?php echo JText::_( 'RSE_PUBLISHED' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo JHTML::_('select.booleanlist','published','class="inputbox"',$this->data->published); ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="eventname">
								<?php echo JText::_( 'RSE_EVENT_NAME_DEFAULT' ).':'; ?>
							</label>
						</td>
						<td>						
							<input name="EventName" value="<?php echo $this->data->EventName; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="alias">
								<?php echo JText::_( 'RSE_EVENT_ALIAS' ).':'; ?>
							</label>
						</td>
						<td>						
							<input name="EventAlias" value="<?php echo $this->data->EventAlias; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="eventsubtitle">
								<?php echo JText::_( 'RSE_EVENT_SUBTITLE' ).':'; ?>
							</label>
						</td>
						<td>						
							<input name="EventSubtitle" value="<?php echo $this->data->EventSubtitle; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="hosted">
								<?php echo JText::_( 'RSE_EVENT_HOSTER' ).':'; ?>
							</label>
						</td>
						<td>						
							<input name="EventHost" value="<?php echo $this->data->EventHost; ?>" size="50" maxlength="100" />
						</td>
						<td>						
							
						</td>
					</tr>
					<tr>
						<td>
							<label for="category">
								<?php echo JText::_( 'RSE_EVENT_CATEGORY' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->lists['categories']; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="design">
								<?php echo JText::_( 'RSE_EVENT_DESIGN' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->lists2['designs']; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="location">
								<?php echo JText::_( 'RSE_EVENT_LOCATION' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->lists1['locations']; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="owner">
								<?php echo JText::_( 'RSE_EVENT_OWNER' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->lists3['username']; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="StartDate">
								<?php echo JText::_( 'RSE_EVENT_START_DATE' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo JHTML::_('calendar', date($this->rseventsConfig['global.dateformat'],$this->data->EventStartDate), "EventStartDate", "EventStartDate"); ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="StartTime">
								<?php echo JText::_( 'RSE_EVENT_START_TIME' ).':'; ?>
							</label>
						</td>
						<td align="center">						
							<input name="EventStartDateH" value="<?php echo $this->data->EventStartDateH; ?>" size="3" maxlength="2" /> : <input name="EventStartDateM" value="<?php echo $this->data->EventStartDateM; ?>" size="3" maxlength="2" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="EndDate">
								<?php echo JText::_( 'RSE_EVENT_END_DATE' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo JHTML::_('calendar', date($this->rseventsConfig['global.dateformat'],$this->data->EventEndDate), "EventEndDate", "EventEndDate"); ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="EndTime">
								<?php echo JText::_( 'RSE_EVENT_END_TIME' ).':'; ?>
							</label>
						</td>
						<td align="center">						
							<input name="EventEndDateH" value="<?php echo $this->data->EventEndDateH; ?>" size="3" maxlength="2" /> : <input name="EventEndDateM" value="<?php echo $this->data->EventEndDateM; ?>" size="3" maxlength="2" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="web">
								<?php echo JText::_( 'RSE_EVENT_WEB' ).':'; ?>
							</label>
						</td>
						<td>						
							<input name="EventURL" value="<?php echo $this->data->EventURL; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="phone">
								<?php echo JText::_( 'RSE_EVENT_PHONE' ).':'; ?>
							</label>
						</td>
						<td>						
							<input name="EventPhone" value="<?php echo $this->data->EventPhone; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="email">
								<?php echo JText::_( 'RSE_EVENT_EMAIL' ).':'; ?>
							</label>
						</td>
						<td>						
							<input name="EventEmail" value="<?php echo $this->data->EventEmail; ?>" size="50" maxlength="100" />
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<?php echo $tabs->endPanel(); ?>
<?php echo $tabs->startPanel(JText::_('RSE_EVENT_TAB_DESCRIPTION'),"event-description"); ?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td>
							<label for="description">
								<?php echo JText::_( 'RSE_EVENT_DESCRIPTION' ).':'; ?>
							</label>
						</td>
						<td>
<?php $editor=& JFactory::getEditor();
echo $editor->display('EventDescription',$this->data->EventDescription,550,400,70,10); ?>						
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<?php echo $tabs->endPanel(); ?>
<?php echo $tabs->endPane(); ?>

<?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="controller" value="events" />
<input type="hidden" name="view" value="events" />
<input type="hidden" name="task" value="" />
</form>

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