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

$document =& JFactory::getDocument();
$document->addStyleSheet(JURI :: root().'administrator/components/com_rsevents/css/style.css');	

$modifyRegister = JRequest::getVar('modify_register');
if(!empty($modifyRegister))
{
	$globalRegisterCode = '';
}
else 
{
	$globalRegisterCode = $this->rseventsConfig['global.register.code'];
}
?>
<form action="<?php echo JRoute::_('index.php?option=com_rsevents'); ?>" method="post" name="adminForm">
<table class="thisform">
		<tr class="thisform">
  		<td width="50%" valign="top" class="thisform">
  			<table width="100%" class="thisform2" border="1">
  				<tr class="thisform2">
      				<td align="center" height="100px" width="33%" class="thisform2">
      				<div align="center">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=listevents'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_EVENT_MANAGER' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/events.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_EVENT_MANAGER' ); ?>
			            </a>
			        </div>
					</td>
      				<td align="center" height="100px" width="34%" class="thisform2">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=listsubscriptions'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_SUBSCRIPTION_MANAGER' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/categories.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_SUBSCRIPTION_MANAGER' ); ?>
			            </a>
					</td>
      				<td align="center" height="100px" class="thisform2">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=listcategories'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_CATEGORIES' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/categories.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_CATEGORIES' ); ?>
			            </a>
					</td>
				</tr>
  				<tr class="thisform2">
      				<td align="center" height="100px" width="33%" class="thisform2">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=listlocations'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_LOCATIONS' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/locations.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_LOCATIONS' ); ?>
			            </a>
					</td>
      				<td align="center" height="100px" class="thisform2">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=listdesigns'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_DESIGNS' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/designs.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_DESIGNS' ); ?>
			            </a>
					</td>
      				<td align="center" height="100px" width="33%" class="thisform2">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=listgroups'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_GROUPS' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/groups.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_GROUPS' ); ?>
			            </a>
					</td>
				</tr>
				<tr class="thisform2">
      				<td align="center" height="100px" width="33%" class="thisform2">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=editsettings'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_SETTINGS' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/settings.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_SETTINGS' ); ?>
			            </a>
					</td>
      				<td align="center" height="100px" class="thisform2">
			            <a href="<?php echo JRoute::_('index.php?option=com_rsevents&task=update'); ?>" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_UPDATES' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/restore.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_UPDATES' ); ?>
			            </a>
					</td>
					<td align="center" height="100px" class="thisform2">
			            <a target="_blank" href="http://feedback.rsjoomla.com/pages/26179-joomla-calendar-and-event-manager-rsevents" style="text-decoration:none;" title="<?php echo JText::_( 'RSE_FEEDBACK' ); ?>">
			            <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/icons/feedback.png" width="48px" height="48px" align="middle" border="0"/>
			            <br />
			            <?php echo JText::_( 'RSE_FEEDBACK' ); ?>
			            </a>
					</td>
				</tr>
			</table>

		</td>
	    <td width="50%" valign="top" align="center">

		    <table border="1" width="100%" class="thisform">
				<tr class="thisform">
		            <th class="cpanel" colspan="2"><?php echo JText::_('RSE_RS_PRODUCT') . JText::_('RSE_RS_VERSION').' rev '.JText::_('RSE_RS_REVISION');?></th></td>
		         </tr>
		         <tr class="thisform"><td bgcolor="#FFFFFF" colspan="2"><br />
		      <div style="width=100%" align="center">
		      <img src="<?php echo JURI::root(); ?>administrator/components/com_rsevents/images/rs_events_logo.jpg" align="middle" alt="RSEvents! Logo"/>
		      <br /><br /></div>
		      </td></tr>
		         <tr class="thisform">
		            <td width="120" bgcolor="#FFFFFF"><?php echo JText::_( 'RSE_INSTALLED_VERSION' ); ?></td>
		            <td bgcolor="#FFFFFF"><?php echo JText::_( 'RSE_RS_VERSION' );?></td>
		         </tr>
		         <tr class="thisform">
		            <td bgcolor="#FFFFFF"><?php echo JText::_( 'RSE_COPYRIGHT' ); ?></td>
		            <td bgcolor="#FFFFFF"><?php echo JText::_('RSE_RS_COPYRIGHT');?></td>
		         </tr>
		         <tr class="thisform">
		            <td bgcolor="#FFFFFF"><?php echo JText::_( 'RSE_LICENSE' ); ?></td>
		            <td bgcolor="#FFFFFF"><?php echo JText::_('RSE_RS_LICENSE');?></td>
		         </tr>
		         <tr class="thisform">
		            <td valign="top" bgcolor="#FFFFFF"><?php echo JText::_( 'RSE_AUTHOR' ); ?></td>
		            <td bgcolor="#FFFFFF">
		            <?php echo JText::_('RSE_RS_AUTHOR');?>
					</td>
		         </tr>
		         <tr class="<?php echo ($globalRegisterCode=='') ? 'thisformError':'thisformOk';?>">
					<td valign="top">
						<?php echo JText::_( 'RSE_LICENSE_CODE' ); ?>
					</td>
					<td>
						<?php echo ($globalRegisterCode=='') ? '<input type="text" size="30" name="rseventsConfig[global.register.code]" value=""/>':$globalRegisterCode;?>
					</td>
		         </tr>
		         <tr class="<?php echo ($globalRegisterCode=='') ? 'thisformError':'thisformOk';?>">
					<td valign="top">&nbsp;</td>
					<td>
						<?php
						if($globalRegisterCode!=''){
						?>
						<input type="submit" name="modify_register" value="<?php echo JText::_( 'RSE_MODIFY_LICENSE' ); ?>" /><br/>

						<?php
						}else{
						?>
						<input type="button" name="register" value="<?php echo JText::_( 'RSE_UPDATE_BUTTON' ); ?>" onclick="javascript:submitbutton('saveRegistration');"/>
						<?php
						}
						?>
					</td>
		         </tr>
		      </table>
			  <p align="center"><a target="_blank" href="http://www.rsjoomla.com/joomla-components/joomla-security.html"><img align="middle" alt="RSFirewall! Approved" src="<?php echo JURI::root();?>administrator/components/com_rsevents/images/rsfirewall-approved.gif"/></a></p>
	      </td>
	   </tr>
	</table>
	
	<input type="hidden" name="task" value="" />
</form>

