Пример #1
0
 /**
  * singleton getter
  *
  * @param void
  * @return PApps
  */
 public static function get()
 {
     if (!isset(self::$_instance)) {
         $c = __CLASS__;
         self::$_instance = new $c();
     }
     return self::$_instance;
 }
Пример #2
0
    ?>
" /></a> <a href="trip/create" title="<?php 
    echo $words->getSilent('TripTitle_create');
    ?>
"><?php 
    echo $words->getSilent('TripTitle_create');
    ?>
</a><?php 
    echo $words->flushBuffer();
    ?>
</li>
          </ul>

            <?php 
    // ###   NEW   To be programmed: show the first visitor, then the second. !! Different div's (c50l, c50r)!  ###
    $next_trips = MOD_trips::get()->RetrieveVisitorsInCityWithAPicture($_SESSION['IdMember']);
    echo $next_trips ? '<h3>' . $words->getFormatted('RecentMemberCity') . '</h3>' : '';
    for ($ii = 0; $ii < count($next_trips); $ii++) {
        $m = $next_trips[$ii];
        $tripDate = explode(" ", $m->tripDate);
        ?>
                    <p class="floatbox UserpicFloated">
                        <?php 
        echo MOD_layoutbits::PIC_30_30($m->Username, '', $style = 'float_left framed');
        echo $words->flushBuffer();
        ?>
                        <?php 
        echo '<a href="members/' . $m->Username . '">' . $m->Username . '</a>';
        ?>
                        <br />
                        <?php