Пример #1
0
 public function display($tpl = null)
 {
     JHTML::stylesheet('administrator/components/com_phocaguestbook/assets/phocaguestbook.css');
     $this->tmpl['version'] = PhocaGuestbookHelper::getPhocaVersion();
     $this->addToolbar();
     parent::display($tpl);
 }
Пример #2
0
 function display($tpl = null)
 {
     JHTML::stylesheet('phocaguestbook.css', 'administrator/components/com_phocaguestbook/assets/');
     JHTML::_('behavior.tooltip');
     $version = PhocaGuestbookHelper::getPhocaVersion();
     $this->assignRef('version', $version);
     parent::display($tpl);
     $this->_setToolbar();
 }
Пример #3
0
 function display($tpl = null)
 {
     global $mainframe;
     JHTML::stylesheet('phocaguestbook.css', 'administrator/components/com_phocaguestbook/assets/');
     JToolBarHelper::title(JText::_('Phoca Guestbook Info'), 'info');
     JToolBarHelper::cancel('cancel', 'Close');
     JToolBarHelper::help('screen.phocaguestbook', true);
     $version = PhocaGuestbookHelper::getPhocaVersion();
     $this->assignRef('version', $version);
     parent::display($tpl);
 }
 function check()
 {
     if (trim($this->title) == '') {
         $this->setError(JText::_('COM_PHOCAGUESTBOOK_GUESTBOOK_MUST_HAVE_TITLE'));
         return false;
     }
     if (empty($this->alias)) {
         $this->alias = $this->title;
     }
     $this->alias = PhocaGuestbookHelper::getAliasName($this->alias);
     return true;
 }
Пример #5
0
 function display($tpl = null)
 {
     JHTML::stylesheet('phocaguestbook.css', 'administrator/components/com_phocaguestbook/assets/');
     global $mainframe;
     $uri =& JFactory::getURI();
     $document =& JFactory::getDocument();
     $db =& JFactory::getDBO();
     JToolBarHelper::title('  ' . JText::_('Phoca Guestbook Control Panel'), 'phoca');
     JToolBarHelper::preferences('com_phocaguestbook', '460');
     JToolBarHelper::help('screen.phocaguestbook', true);
     JHTML::_('behavior.tooltip');
     $version = PhocaGuestbookHelper::getPhocaVersion();
     $this->assignRef('version', $version);
     parent::display($tpl);
 }
 function check()
 {
     /*
     		// If in frontend it is not required
     		if (trim( $this->title ) == '') {
     			$this->setError( JText::_( 'COM_PHOCAGUESTBOOK_ITEM_MUST_HAVE_TITLE') );
     			return false;
     		}*/
     if (empty($this->alias)) {
         $this->alias = $this->title;
     }
     if (empty($this->date)) {
         $this->date = JFactory::getDate()->toMySQL();
     }
     $this->alias = PhocaGuestbookHelper::getAliasName($this->alias);
     return true;
 }