Esempio n. 1
0
		</thead>
		<tfoot>
		<tr id="lapozosor">
            <td colspan="2">
              Összesen: <span class="talalatok_szama"><?php  echo (int)$this->getModel('naplos')->getTotal(); ?></span> adat
            </td>
			<td colspan="4">
				<?php echo $this->pagination->getListFooter(); ?>
			</td>
		</tr>
	</tfoot>
	<tbody>
<?php
  if (count($this->items)) : 
  		foreach ($this->items as $i => $item) :
                itemAccess($item, $userCsoport);
				$canCreate  = $user->authorise('core.create');
				$canEdit    = $user->authorise('core.edit');				
				$canChange  = $user->authorise('core.edit.state'); 				
					
				$disableClassName = '';
				$disabledLabel	  = '';
				if (!$saveOrder) {
					$disabledLabel    = JText::_('JORDERINGDISABLED');
					$disableClassName = 'inactive tip-top';
				} 
	
 				$onclick = "";
  	
    			if (JFactory::getApplication()->input->get('function', null)) {
    				$onclick= "onclick=\"window.parent.jSelectKapcsolatok_id('".$item->id."', '".$this->escape($item->lastaction)."', '','kapcs_id')\" ";
Esempio n. 2
0
<?php
/**
* @version		$Id:edit.php 1 2015-05-30 06:28:16Z  $
* @copyright	Copyright (C) 2015, . All rights reserved.
* @license 		
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
$session = JFactory::getSession();
$userCsoport = $session->get('userCsoport');
itemAccess($this->item, $userCsoport);
formAccess($this->form, $userCsoport); 


// Set toolbar items for the page
$edit		= JFactory::getApplication()->input->get('edit', true);
$text = !$edit ? JText::_( 'New' ) : JText::_( 'Edit' );
JToolBarHelper::title(   JText::_( 'Kapcsolatok' ).': <small><small>[ ' . $text.' ]</small></small>' );
JToolBarHelper::cancel('doszures.megsem','Rendben');
if ($userCsoport->jog_nev == 'RW')
  JToolBarHelper::editList('doszures.edit');
JToolBarHelper::custom('kommentek.browser','','','Kommentek',true);
JToolBarHelper::custom('kapcsolatok.naplo','','','Változás történet',true);

// kodolt mezők rendbetétele
$db = JFactory::getDBO();
$db->setQuery('select * from #__tny_kategoriak 
where kategoria_id='.$this->item->kategoria_id);
$res = $db->loadObject();
Esempio n. 3
0
	/**
	  * show form kirajzolása
	  * JRequest cids
	  * @return void
	  */
    public function show() {
       $model = $this->getModel('kapcsolatok');
       $view = $this->getView('kapcsolatok','html');
	   $session = JFactory::getSession();
	   $userCsoport = $session->get('userCsoport');
       $cids = JRequest::getVar('cid');
       $id = $cids[0];
       $item = $model->getItem($id);
       itemAccess($item, $userCsoport);	   
       $form = JForm::getInstance('adminForm',  
                             JPATH_ADMINISTRATOR.'/components/com_tagnyilvantartas/models/forms/kapcsolatok.xml',
                             array('control' => ''));
       $form->bind($item);                               
       $view->set('Item',$item);
       $view->set('Form',$form);
       $view->setLayout('show');
       $view->display();
    }