<?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');
?>
<button onclick="document.location = '<?php echo html_entity_decode(JRoute::_('index.php?option=com_rsevents&view=events&layout=show&cid='.$_GET['IdEvent'].$this->itemId)); ?>';"><?php echo JText::_('RSE_BACK_BTN'); ?></button>
<form action="index.php" method="post" name="adminForm" id="adminForm">
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td>
							<label for="name">
								<?php echo JText::_( 'RSE_LOCATION_NAME' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->data->LocationName; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="weburl">
								<?php echo JText::_( 'RSE_LOCATION_URL' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->data->LocationURL; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="address">
								<?php echo JText::_( 'RSE_LOCATION_ADDRESS' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->data->LocationAddress; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="zip">
								<?php echo JText::_( 'RSE_LOCATION_ZIP' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->data->LocationZip; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="city">
								<?php echo JText::_( 'RSE_LOCATION_CITY' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->data->LocationCity; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="state">
								<?php echo JText::_( 'RSE_LOCATION_STATE' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->data->LocationState; ?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="country">
								<?php echo JText::_( 'RSE_LOCATION_COUNTRY' ).':'; ?>
							</label>
						</td>
						<td>						
							<?php echo $this->data->LocationCountry; ?>
						</td>
					</tr>					
				</table>
			</td>
		</tr>
	</table>
	<p><?php echo $this->data->LocationDescription; ?></p>
	<?php echo $this->map; ?>
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="option" value="com_rsevents" />
<input type="hidden" name="cid" value="<?php echo $this->data->IdLocation; ?>" />
<input type="hidden" name="IdLocation" value="<?php echo $this->data->IdLocation; ?>" />
<input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>" />
<input type="hidden" name="controller" value="locations" />
<input type="hidden" name="view" value="locations" />
<input type="hidden" name="layout" value="show" />
<input type="hidden" name="task" value="save" />
</form>

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