Пример #1
0
             echo '<img style="margin:0" src="' . JURI::base() . 'images/hotelguide/pictogram/' . $facilityDetail->pictogram . '" width="19px" alt="' . htmlentities($facilityDetail->name) . '" title="' . $facilityDetail->name . '" />';
         }
         echo '<br />';
     }
 }
 if ($hotels->address && $hotels->cityname) {
     echo '<strong>' . JText::_('HG_ADDRESS') . ':&nbsp;</strong>' . $hotels->address . ',&nbsp;' . $hotels->cityname;
 }
 echo '<p style="height:46px; 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) {
     echo hgSelectHelper::showtags($hotels->taglist);
 }
 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;">' . "\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') . '" />';
 } else {
Пример #2
0
    </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>
Пример #3
0
        ?>
">
					<?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 
Пример #4
0
 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";
Пример #5
0
::<?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";