Example #1
0
 /**
  * Fetch the tour with the specified sortorder.
  *
  * @param   int         $sortorder  The sortorder of the tour.
  * @return  tour
  */
 public static function get_tour_from_sortorder($sortorder)
 {
     global $DB;
     $tour = $DB->get_record('tool_usertours_tours', array('sortorder' => $sortorder));
     return tour::load_from_record($tour);
 }
Example #2
0
    echo strtoupper($tour->available_seats);
    ?>
</td>
                      <td><?php 
    echo strtoupper($tour->start_price);
    ?>
 <?php 
    echo $this->tour->show_symbol($company_info->company_currency);
    ?>
</td>
                      <td><?php 
    echo date('d.m.Y', strtotime($tour->date_created));
    ?>
</td>
                      <td style="text-align:center"><?php 
    tour::status($tour->from_start_time);
    ?>
</td>
                      <td style="text-align:center" width="20%">
                        <div class="btn-group" role="group">
                          <a href="<?php 
    echo base_url('admin/tours/list_passangers/' . $tour->tour_id);
    ?>
" class="btn btn-default btn-xs"><span class="icon-list" style="color:grey"></span> <?php 
    echo lang('Passangers list');
    ?>
</a>
                          <a href="<?php 
    echo base_url('admin/tours/edit_tour/' . $tour->tour_id);
    ?>
" class="btn btn-default btn-xs"><span class="icon-pencil" style="color:green"></span> <?php 
Example #3
0
 /**
  * Get the Tour instance that this step belongs to.
  *
  * @return  tour
  */
 public function get_tour()
 {
     if ($this->tour === null) {
         $this->tour = tour::instance($this->tourid);
     }
     return $this->tour;
 }