コード例 #1
0
ファイル: helper.php プロジェクト: dg711/moodle
 /**
  * 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);
 }
コード例 #2
0
ファイル: tours.php プロジェクト: FalconDev91/tripexpress
    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 
コード例 #3
0
ファイル: step.php プロジェクト: dg711/moodle
 /**
  * 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;
 }