| Server IP : 180.180.241.3 / Your IP : 216.73.216.216 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/administrator/components/com_youtubegallery/views/themeform/ |
Upload File : |
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import Joomla view library
jimport('joomla.application.component.view');
/**
* Youtube Gallery Theme Form View
*/
class YoutubeGalleryViewThemeForm extends JView
{
/**
* display method of Youtube Gallery view
* @return void
*/
function display($tpl = null)
{
global $mainframe;
$row =& $this->get('Data');
//$this->assignRef('tableid', $row->id);
$isNew= ($row->id < 1);
$this->assignRef('isNew',$isNew);
$text = $isNew ? JText::_( 'NEW' ) : JText::_( 'EDIT' );
JToolBarHelper::title( JText::_( 'YouTube Gallery', 'generic.png' ).': <small><small>[ '. $text.' ]</small></small>' );
if(!$row->readonly)
{
JToolBarHelper::apply();
JToolBarHelper::save();
}
if ($isNew) {
JToolBarHelper::cancel();
} else {
// for existing items the button is renamed `close`
JToolBarHelper::cancel( 'cancel', 'Close' );
}
$Model =& $this->getModel();
$this->assignRef('Model', $Model);
$this->assignRef('row',$row);
parent::display($tpl);
}
}
?>