<?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' ); 
?>
<fieldset>
<table width="100%">
	<tr>
		<td width="4%"><img src="<?php echo JURI::root();?>administrator/components/com_rsevents/images/icons/information.png" /></td>
		<td><strong style="font-size:12px"><?php echo JText::_('RSE_IMPORT_INFO'); ?></strong></td>
	</tr>
</table>
</fieldset>
<table class="adminlist" width="100%">
	<thead>
		<tr>
			<th style="text-align:left; width: 40%;">
				<?php echo JText::_('RSE_IMPORT_FROM'); ?>
			</th>
			<th style="text-align:left;">
				<?php echo JText::_('RSE_IMPORT'); ?>
			</th>
		</tr>
	</thead>
	<?php if(!file_exists(JPATH_SITE.DS.'components'.DS.'com_eventlist'.DS.'eventlist.php') && !file_exists(JPATH_SITE.DS.'components'.DS.'com_jcalpro'.DS.'jcalpro.php') && !file_exists(JPATH_SITE.DS.'components'.DS.'com_jevents'.DS.'jevents.php')) { ?>
	<tr>
		<td colspan="2"><?php echo JText::_('RSE_IMPORT_MESSAGE'); ?></td>
	</tr>
	<?php } ?>
	<?php if(file_exists(JPATH_SITE.DS.'components'.DS.'com_eventlist'.DS.'eventlist.php')) { ?>
	<tr>
		<td><?php echo JText::_('RSE_EVENTLIST'); ?></td>
		<td><a href="index.php?option=com_rsevents&task=importeventlist&controller=import"><img src="<?php echo JURI::root();?>administrator/components/com_rsevents/images/icons/import.png" alt="<?php echo JText::_( 'RSE_IMPORT' ); ?>" /></a></td>
	</tr>
	<?php } ?>
	<?php if(file_exists(JPATH_SITE.DS.'components'.DS.'com_jcalpro'.DS.'jcalpro.php')) { ?>
	<tr>
		<td><?php echo JText::_('RSE_JCALPRO'); ?></td>
		<td><a href="index.php?option=com_rsevents&task=importjcal&controller=import"><img src="<?php echo JURI::root();?>administrator/components/com_rsevents/images/icons/import.png" alt="<?php echo JText::_( 'RSE_IMPORT' ); ?>" /></a></td>
	</tr>
	<?php } ?>
	<?php if(file_exists(JPATH_SITE.DS.'components'.DS.'com_jevents'.DS.'jevents.php')) { ?>
	<tr>
		<td><?php echo JText::_('RSE_JEVENTS'); ?></td>
		<td><a href="index.php?option=com_rsevents&task=importjevents&controller=import"><img src="<?php echo JURI::root();?>administrator/components/com_rsevents/images/icons/import.png" alt="<?php echo JText::_( 'RSE_IMPORT' ); ?>" /></a></td>
	</tr>
	<?php } ?>
</table>