Exemplo n.º 1
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // get the data from the model
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     // get the image
     $imageHelper = new CHPanelHelperImage(JComponentHelper::getParams('com_chpanel'));
     $this->image = $imageHelper->getImage($this->item->id, 'rooms');
     // get params
     $this->params = JComponentHelper::getParams('com_chpanel');
     // create the toolbar
     CHPanelHelper::getToolbar(false, $this->item->id, $this->item->title);
     // display the view template
     parent::display($tpl);
 }
Exemplo n.º 2
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // get the data from the model
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     // get params
     $this->params = JComponentHelper::getParams('com_chpanel');
     // get the image
     $imageHelper = new CHPanelHelperImage(JComponentHelper::getParams('com_chpanel'));
     $this->image = $imageHelper->getImage($this->item->id, 'hotels');
     // create the toolbar
     CHPanelHelper::getToolbar(false, $this->item->id, $this->item->title);
     // load com_hotel language (for categories titles)
     $lpath = JPATH_ROOT . '/components/com_hotel';
     JFactory::getLanguage()->load('com_hotel', $lpath, 'en-GB', true);
     JFactory::getLanguage()->load('com_hotel', $lpath, null, true);
     // display the view template
     parent::display($tpl);
 }
Exemplo n.º 3
0
								<div class="pull-left">
									<?php 
        if ($item->checked_out) {
            ?>
										<?php 
            echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, $context . '.', $canCheckin);
            ?>
									<?php 
        }
        ?>
									<a href="<?php 
        echo JRoute::_('index.php?option=com_chpanel&task=room.edit&id=' . $item->id);
        ?>
">
										<?php 
        if ($imageHelper->getImage($item->id, $context)) {
            ?>
											<?php 
            echo '<img class="thumbnail pull-left chpanel-images-thumb" src="' . $image_path . $item->id . '-tiny.jpg?' . rand(1, 999) . '" />';
            ?>
										<?php 
        }
        ?>
										<?php 
        echo $this->escape($item->title);
        ?>
									</a>
								</div>
							</td>

							<td class="nowrap has-context">