<?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">
<h3><?php echo JText::_('RSE_PHOTOS_TITLE').'  "'.$this->data->EventName.'"'; ?></h3>
<form action="index.php" method="post">
<?php echo JText::_('RSE_PHOTOS_MESSAGE'); ?>
<br />
<table>
	<tr>
		<td><img src="<?php echo JURI::root().'components/com_rsevents/images/flickr.png'; ?>" style="margin: 2px;"/></td>
		<td>Flickr</td>
	</tr>
</table>

<input type="text" value="" size="55" name="photos" id="photos" /> 
<button type="submit"><?php echo JText::_('RSE_ADD_PHOTOS');?></button>
<button type="button" 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_BACK_BTN'); ?></button>
<br />
<em><?php echo JText::_('RSE_FLICKR_EXAMPLE');?></em>	
	<input type="hidden" name="cid" 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="option" value="com_rsevents" />
	<input type="hidden" name="controller" value="events" />
	<input type="hidden" name="view" value="events" />
	<input type="hidden" name="layout" value="photos" />
	<input type="hidden" name="task" value="savePhotos" />
</form>
</div>
<?php
echo $this->layout[1];
?>