Your IP : 216.73.216.240


Current Path : /home/s/u/n/sunflowe/www2/j15/administrator/components/com_easycaptcha/views/captcha/
Upload File :
Current File : /home/s/u/n/sunflowe/www2/j15/administrator/components/com_easycaptcha/views/captcha/view.html.php

<?php
/**
 * @version $Id: view.html.php 635 2008-03-18 08:46:38Z 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 EasyCaptchaViewCaptcha extends JView
{
	/**
	 * Easybook view display method
	 * @return void
	 **/
	function uploadForm($tpl = null)
    {
        
        $this->_layout = 'upload';
        
        JToolBarHelper::title( JText::_( 'Upload a Captcha' ), 'easycaptcha' );
        JToolBarHelper::cancel('cancel', 'Close');
		JHTML::_('stylesheet', 'easycaptcha.css', 'administrator/components/com_easycaptcha/css/');		

        parent::display($tpl);
    }
    
    function editForm($tpl = null)
    {
    	JRequest::setVar('hidemainmenu', 1);
    	$this->_layout = 'form';
    	
    	
    	JToolBarHelper::title( JText::_( 'Configure a Captcha' ), 'easycaptcha' );
    	JToolBarHelper::save();
        JToolBarHelper::cancel('cancel', 'Close');
		JHTML::_('stylesheet', 'easycaptcha.css', 'administrator/components/com_easycaptcha/css/');
		
		$captcha = &$this->get('Data');
		$file = JPATH_SITE.DS.'components'.DS.'com_easycaptcha'.DS.'captchas'.DS.$captcha->name.DS.'captcha.xml';
		$params = new JParameter( $captcha->params, $file );
		
		$this->assignRef('row', $captcha);
		$this->assignRef('params', $params);
		
		JHTML::_('behavior.tooltip');
		parent::display($tpl);
    }
}