| 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/linksform/ |
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 - Links Form View
*/
class YoutubeGalleryViewLinksForm extends JView
{
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 - Video Lists', 'generic.png' ).': <small><small>[ '. $text.' ]</small></small>' );
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);
}
/**
* display method of Youtube Gallery view
* @return void
*/
/*
public function display($tpl = null)
{
$form = $this->get('Form');
$item = $this->get('Item');
$script = $this->get('Script');
// Check for errors.
if (count($errors = $this->get('Errors')))
{
JError::raiseError(500, implode('<br />', $errors));
return false;
}
// Assign the Data
$this->form = $form;
$this->item = $item;
$this->script = $script;
// Set the toolbar
$this->addToolBar();
// Display the template
parent::display($tpl);
// Set the document
}
*/
}
?>