<?php
/**
* @package ccNewsletter
* @version 1.0.9
* @author  Chill Creations <info@chillcreations.com>
* @link    http://www.chillcreations.com
* @copyright Copyright (C) 2008 - 2010 Chill Creations-All rights reserved
* @license GNU/GPL, see LICENSE.php for full license.
* See COPYRIGHT.php for more copyright notices and details.

This file is part of ccNewsletter.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
**/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

function versionCompare()
{
	$jversion = new JVersion();
	$current_version =  $jversion->getShortVersion();
	return substr($current_version,0,3);
}

if(versionCompare()!="1.5")
{
	?>
		<style type="text/css">
		tr, td {
		    border: 0 solid #DDDDDD;
		}
		</style>
	<?php
}
?>
<div class="componentheading">
	<?php echo $this->pageTitle; ?>
</div>
<table>
<tr>
	<td>
		<?php echo $this->operationStatus; ?>
	</td>
</tr>
<tr>
	<td>
	&nbsp;
	</td>
</tr>
<?php
	if($this->status_de_un=="0")
	{
?>
<tr>
	<td>
<?php echo JText::_( 'CC_MSG_UNSUBS_SUCCESSMESSSAGE1' ); ?>
<a href="<?php echo JURI::root().'index.php?option=com_ccnewsletter&task=activate&code='.$this->removeID;?>"> <?php echo JText::_( 'CC_MSG_UNSUBS_SUCCESSMESSSAGE2'); ?></a>
<?php echo JText::_( 'CC_MSG_UNSUBS_SUCCESSMESSSAGE3'); ?>
	</td>
</tr>
<?php } ?>
</table>
<br/>

