/** * Constructor * * @since 1.0 */ function __construct() { parent::__construct(); global $mainframe; $config =& HGUtil::config(); // Get the paramaters of the active menu item $params =& $mainframe->getParams('com_hotelduigde'); //get the number of events from database // $limit = JRequest::getInt('limit', $config->favmaximage); $limit = JRequest::getInt('limit', 10); $limitstart = JRequest::getInt('limitstart'); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); // Get the filter request variables $this->setState('filter_order', JRequest::getCmd('filter_order', 'i.title')); $this->setState('filter_order_dir', JRequest::getCmd('filter_order_Dir', 'ASC')); }
?> <!--- /*********************************************** * HotelGuide - © EazyTOUR (www.eazytour.com) * REMOVAL OR MODIFICATION COPYRIGHT TEXT BELLOW IS * VIOLATION OF TERMS & CONDITIONS AND DEPRIVES OF * ANY KIND OF SUPPORTS * * If you want to remove copyright, * buy the commercial version. * * Visit http://www.joomla.eazytour.com/ for support ***********************************************/ ---> <?php echo HGUtil::footer(); ?> <p> <input type="hidden" name="option" value="com_hotelguide" /> <input type="hidden" name="filter_order" value="<?php echo $this->lists['filter_order']; ?> " /> <input type="hidden" name="filter_order_Dir" value="" /> <input type="hidden" name="view" value="tags" /> <input type="hidden" name="task" value="" /> </p> </form> </div>
?> "> <?php echo htmlspecialchars($row->title, ENT_QUOTES, 'UTF-8'); ?> </a><small><em>(<?php echo HGUtil::introtext(strip_tags($row->alias), 25); ?> )</em></small></span> <?php } ?> </td> <td> <div align="left"><?php echo HGUtil::introtext(strip_tags($row->description), 100); ?> </div> </td> <td align="center"> <?php echo $published; ?> </td> <td align="center"> <?php echo $access; ?> </td> <td class="order" colspan="2"> <span><?php
</thead> <tbody> <?php foreach($this->reviews as $comment): $link = JRoute::_( 'index.php?option=' .$option. '&controller=reviews&task=edit&cid='.$comment->id.'' ); ?> <tr> <td align="center" valign="top"> <?php if ($comment->mainimage) { echo '<img src="../images/hotelguide/gallery/hotel_'.$comment->itemid.'/thumb/'.$comment->mainimage.'" />'; } else { echo ' <img src="../administrator/components/com_hotelguide/assets/images/no_thumb.gif" />'; } ?> </td> <td> <span class="editlinktip hasTip" title="<?php echo JText::_( 'HG_TITLE' );?>::<?php echo $comment->title; ?>"> <a href="<?php echo $link ?>"><?php echo $comment->title; ?></a></span></td> <td><div align="left"><?php echo HGUtil::introtext(strip_tags($comment->description),100); ?></div></td> <td><?php $author=JFactory::getUser($comment->userid); echo $author->name; ?></td> <td><?php echo $comment->date;?></td> </tr> <?php endforeach; ?> </tbody> </table> <?php /* echo $pane->endPanel();?> <?php echo $pane->startPanel(JText::_('STATISTICS'), 'statstab');?> <table class="adminlist" style="width:100%;"> <thead> <tr> <td class="title"><?php echo JText::_('DATA TYPE');?></td> <td class="title"><?php echo JText::_('NUMBER');?></td> </tr> </thead> <tbody>
* along with HOTELGUIDE; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ defined('_JEXEC') or die('Restricted access'); require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'defines.php'; //include the needed classes require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.helper.php'; require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.sendmail.php'; require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.acl.php'; require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.events.php'; require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.city.php'; require_once JPATH_COMPONENT . DS . 'classes' . DS . 'hotelguide.state.php'; require_once JPATH_COMPONENT . DS . 'helpers' . DS . 'route.php'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'util.php'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'select.php'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'html' . DS . 'list.php'; global $hgconf; $hgconf = HGUtil::config(); //Set filepath $params =& JComponentHelper::getParams('com_hotelguide'); // Set the table directory JTable::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'tables'); // Require the controller require_once JPATH_COMPONENT . DS . 'controller.php'; // Create the controller $classname = 'hotelguideController'; $controller = new $classname(); // Perform the Request task $controller->execute(JRequest::getVar('task', null, 'default', 'cmd')); // Redirect if set by the controller $controller->redirect();
} echo '<br />'; } } if ($hotels->address && $hotels->cityname) { echo '<strong>' . JText::_('HG_ADDRESS') . ': </strong>' . $hotels->address . ', ' . $hotels->cityname; } echo '</p>'; echo '<p style="overflow: hidden;">'; if ($this->hgconf->max_char_hotel) { $limitchar = $this->hgconf->max_char_hotel; } else { $limitchar = 250; } if ($hotels->intro) { echo HGUtil::introtext(strip_tags($hotels->intro), $limitchar); } echo '</p>'; if (isset($hotels->taglist) && $this->hgconf->showtag && count($hotels->taglist) > 0) { echo hgSelectHelper::showtags($hotels->taglist); } echo '</p>'; echo '</div>'; echo '</div>' . "\n"; if ($hotels->featured > 0) { echo '<div class="rightcell" style="vertical-align: top;">' . "\n"; } else { echo '<div class="rightcell" style="vertical-align: middle; margin-right:2px;">' . "\n"; } if ($hotels->featured == 1) { echo '<img src="' . JURI::base() . 'components/com_hotelguide/assets/images/best.png" title="' . JTEXT::_('HG_BEST') . '" alt="' . JTEXT::_('HG_BEST') . '" />';
for ($j = 0, $k = $total; $j < $k; $j++) { $subitem = $this->events[$i]->subevent[$j]; $link = JRoute::_(hotelguideHelperRoute::getEventRoute($subitem->slug)); if ($j == 0) { echo '<div class="leftcol" style="width:40%">' . "\n"; echo '<div class="imagebox">' . "\n"; echo '<a href="' . $link . '"><img class="img_left imgshadow" style="padding:4px; margin: 6px 6px; border-color:' . $this->hgconf->bordercolor . '" src="' . JURI::base() . 'images/hotelguide/event/resize/' . $subitem->image . '" align="left" margin-left="10px" width="' . $subitem->imagewidth . 'px" height="' . $subitem->imageheight . 'px" /></a>'; echo '</div>' . "\n"; echo '<div class="textbox">' . "\n"; echo '<a href="' . $link . '"><h3 class="title" style="text-align:left">'; echo stripslashes($subitem->title); echo '</h3></a>'; echo '<p style="text-align:left; color:#8888e1;">'; echo JHTML::_('date', $subitem->startdates, JText::_('DATE_FORMAT_LC3')); echo '</p>'; echo HGUtil::introtext(strip_tags($subitem->description), 200); echo '</div>' . "\n"; echo '</div>' . "\n"; } else { echo '<div class="rightcol">' . "\n"; if ($x == 0) { echo '<div class="eventtitle" style="background: transparent url(' . JURI::base() . '/components/com_hotelguide/assets/images/back_light.png) 0 0 repeat;">' . "\n"; } else { echo '<div class="eventtitle" style="background: transparent url(' . JURI::base() . '/components/com_hotelguide/assets/images/back_dark.png) 0 0 repeat;">' . "\n"; } echo '<div class="leftcell">' . "\n"; echo '<div class="inner" style="line-height:34px;">' . "\n"; echo JHTML::_('date', $subitem->startdates, JText::_('DATE_FORMAT_LC3')); echo '</div>' . "\n"; echo '</div>' . "\n"; echo '<div class="centercell">' . "\n";
::<?php echo $promotion->title; ?> "> <a href="<?php echo $link; ?> "> <?php echo htmlspecialchars($promotion->title, ENT_QUOTES, 'UTF-8'); ?> </a></span> </td> <td> <?php echo HGUtil::introtext(strip_tags($promotion->description), 220); ?> </td> <td align="center"><?php if ($promotion->slideshow) { ?> <img src="<?php echo JURI::base(); ?> components/com_hotelguide/assets/images/slideshow.gif" /> <?php } else { ?> <img src="<?php echo JURI::base(); ?> components/com_hotelguide/assets/images/no.gif" /> <?php
if ($sub->hits == 1) { echo JText::_('HG_VISIT'); } if ($sub->hits > 1) { echo JText::sprintf('HG_VISITS', $sub->hits); } echo '</span>' . "\n"; echo '</p>'; if ($sub->description) { if ($this->hgconf->max_char_des) { $limit_char = 200; } else { $limit_char = 320; } echo '<p>'; echo HGUtil::introtext(strip_tags($sub->description), $limit_char); echo '</p>' . "\n"; } echo '</div>' . "\n"; echo '</div>' . "\n"; echo '</div>' . "\n"; $k = 1 - $k; } echo '</div>' . "\n"; echo '</div>' . "\n"; if ($this->hgconf->box == 'None') { echo '<div class="clear"></div>' . "\n"; } else { echo hg_html::boxbottom(); } echo '<div class="clear"></div>' . "\n";