Your IP : 216.73.216.240


Current Path : /home/sunflowe/www2/j15/administrator/components/com_easycaptcha/views/easycaptcha/
Upload File :
Current File : /home/sunflowe/www2/j15/administrator/components/com_easycaptcha/views/easycaptcha/view.html.php

<?php
/**
 * @version $Id: view.html.php 641 2008-03-18 09:26:37Z snipersister $
 * @package    EasyCaptcha
 * @link http://www.easy-joomla.org
 * @license    GNU/GPL
 */

// no direct access

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view' );

/**
 * Easybook View
 *
 * @package    Easybook
 */
class EasyCaptchaViewEasyCaptcha extends JView
{
	/**
	 * Easybook view display method
	 * @return void
	 **/
	function display($tpl = null)
    {
        
        JToolBarHelper::title( JText::_( 'EasyCaptcha' ), 'easycaptcha' );
        JToolBarHelper::publishList('publish', 'Activate');
		JToolBarHelper::deleteList( '', 'uninstall', 'Uninstall' );
        JToolBarHelper::editListX('edit', 'Configure');
		JHTML::_('stylesheet', 'easycaptcha.css', 'administrator/components/com_easycaptcha/css/');
		
        // Get data from the model
        $items =& $this->get( 'Data');
		$pagination = $this->get( 'Pagination' );
		$version =& $this->get( 'Version' );

		switch($version->checkVersion(_EASYCAPTCHA_VERSION)) {
		 case 1:
		  $this->assign( 'version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyCaptcha "._EASYCAPTCHA_VERSION."</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=4&myVersion="._EASYCAPTCHA_VERSION."' target='_blank'><img src='".JURI::base()."components/com_easycaptcha/images/shield.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #e2ad43;'><b>".JTEXT::_('no updates available')."</b></span></a></div>");
		  break;
		  
		 case -1:
		  $this->assign ('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyCaptcha "._EASYCAPTCHA_VERSION."</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=4&myVersion="._EASYCAPTCHA_VERSION."' target='_blank'><img src='".JURI::base()."components/com_easycaptcha/images/box.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #ce763a;'><b>".JTEXT::_('updates available')."</b> EasyCaptcha " . $version->_current . "</span></a></div>");
		  break;
		
		 case -2:
		  $this->assign( 'version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyCaptcha "._EASYCAPTCHA_VERSION."</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=4&myVersion="._EASYCAPTCHA_VERSION."' target='_blank'><img src='".JURI::base()."components/com_easycaptcha/images/fail.gif' border='0' style='vertical-align: middle; padding-right: 5px;'/><span style='color: #e34639;'><b>".JTEXT::_('connection failed')."</b></span></a></div>");
		  break;
		}
		
		
		$this->assignRef( 'pagination' , $pagination);
        $this->assignRef( 'items', $items );

        parent::display($tpl);
    }
}