<?php 
        echo htmlspecialchars($row->name, ENT_QUOTES, 'UTF-8');
        ?>
					</a></span>
				<?php 
    }
    ?>
			</td>
            <td align="center">
				<?php 
    echo $row->state;
    ?>
			</td>
			<td>
				<?php 
    $countrycode = hotelguideList::countryCodesArray();
    echo $countrycode[$row->country];
    ?>
			</td>
			<td align="center">
				<?php 
    echo $access;
    ?>
			</td>
			<td align="center">
				<?php 
    echo $published;
    ?>
			</td>
			<td align="center"><?php 
    echo $row->id;
Exemple #2
0
 function outcalendar($name, $selected, $attribs = null, $idtag = false, $translate = false)
 {
     if (is_array($attribs)) {
         $attribs['class'] = (isset($attribs['class']) ? $attribs['class'] : '') . ' inputbox';
         $attribs = JArrayHelper::toString($attribs);
     }
     $JUser =& JFactory::getUser();
     $JDate = JFactory::getDate();
     $JDate->setOffset($JUser->getParam('timezone'));
     $date = date('Y-m-d');
     $year = substr($date, 0, 4);
     $month = substr($date, 5, 2);
     $day = substr($date, 8, 2);
     if (preg_match("/^0/", $day)) {
         $day = str_replace("0", "", $day);
     }
     $daylist = '';
     for ($i = 1; $i <= 31; $i++) {
         if ($day > $i) {
             $daylist[] = JHTML::_('select.option', $i . '" disabled="disabled', str_pad($i, 2, "0", STR_PAD_LEFT));
         } else {
             $daylist[] = JHTML::_('select.option', $i, str_pad($i, 2, "0", STR_PAD_LEFT));
         }
     }
     $javascript = ' ';
     $day_checkout = JHTML::_('select.genericlist', $daylist, 'outdate-sel-dd', 'class="inputbox" size="1" style="font-size: 11px; width: 50px;"' . $javascript, 'value', 'text', $selected);
     // generate the month combo
     for ($i = $month; $i <= 12 + $month; $i++) {
         if ($i > 12) {
             $m = $i - 12;
             $newyear = $year + 1;
             $monthlist[] = JHTML::_('select.option', str_pad($m, 2, "0", STR_PAD_LEFT) . $newyear, hotelguideList::getMonthYear($i, $month, $newyear));
         } else {
             $monthlist[] = JHTML::_('select.option', str_pad($i, 2, "0", STR_PAD_LEFT) . $year, hotelguideList::getMonthYear($i, $month, $year));
         }
     }
     $month_checkout = JHTML::_('select.genericlist', $monthlist, 'outdate-sel-mm', 'class="inputbox" size="1" style="font-size: 11px; width: auto;" ' . $javascript, 'value', 'text', $selected);
     return $day_checkout . '&nbsp;' . $month_checkout;
 }