当前位置: 首页>>代码示例>>PHP>>正文


PHP OperationsData::GetAllAirports方法代码示例

本文整理汇总了PHP中OperationsData::GetAllAirports方法的典型用法代码示例。如果您正苦于以下问题:PHP OperationsData::GetAllAirports方法的具体用法?PHP OperationsData::GetAllAirports怎么用?PHP OperationsData::GetAllAirports使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OperationsData的用法示例。


在下文中一共展示了OperationsData::GetAllAirports方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 public function index()
 {
     if (isset($this->post->action)) {
         if ($this->post->action == 'findflight') {
             $this->findflight();
         }
     } else {
         $this->set('airports', OperationsData::GetAllAirports());
         $this->set('airlines', OperationsData::getAllAirlines());
         $this->set('aircrafts', FrontSchedulesData::findaircrafttypes());
         $this->set('countries', FrontSchedulesData::findcountries());
         $this->show('RSL/airport_search.tpl');
     }
 }
开发者ID:phpmods,项目名称:FlightBookingSystem_V1.0,代码行数:14,代码来源:FrontSchedules.php

示例2: index

 public function index()
 {
     $revision = trim(file_get_contents(CORE_PATH . '/version'));
     if ($revision != 'simpilot 5.5.2') {
         echo '<center>phpVMS Version Installed Is Not Compatible With This Module!</center><br />';
         echo '<center>phpVMS Version Installed: ' . $revision . '</center>';
     } elseif (isset($this->post->action)) {
         if ($this->post->action == 'findflight') {
             $this->findflight();
         }
     } else {
         $this->set('airports', OperationsData::GetAllAirports());
         $this->set('airlines', OperationsData::getAllAirlines());
         $this->set('aircrafts', FBSVData::findaircrafttypes());
         $this->set('countries', FBSVData::findcountries());
         $this->show('fbsv/airport_search.php');
     }
 }
开发者ID:parkho,项目名称:FlightBookingSystem.V1.1,代码行数:18,代码来源:FBSV11.php

示例3: index

 public function index()
 {
     if (!Auth::LoggedIn()) {
         $this->set('message', 'You must be logged in to access this feature!');
         $this->render('core_error.tpl');
         return;
     } else {
         if (isset($this->post->action)) {
             if ($this->post->action == 'search') {
                 $this->search();
             }
         } else {
             $this->set('airports', OperationsData::GetAllAirports());
             $this->set('airlines', OperationsData::getAllAirlines());
             $this->set('aircrafts', OperationsData::getAllAircraft('true'));
             $this->set('countries', FltbookData::findCountries());
             $this->show('Fltbook/search_form');
         }
     }
 }
开发者ID:web541,项目名称:FltbookSystem,代码行数:20,代码来源:Fltbook.php

示例4: editpirep

 public function editpirep()
 {
     $this->set('pirep', PIREPData::GetReportDetails($this->get->pirepid));
     $this->set('allairlines', OperationsData::GetAllAirlines());
     $this->set('allairports', OperationsData::GetAllAirports());
     $this->set('allaircraft', OperationsData::GetAllAircraft());
     $this->set('fielddata', PIREPData::GetFieldData($this->get->pirepid));
     $this->set('pirepfields', PIREPData::GetAllFields());
     $this->set('comments', PIREPData::GetComments($this->get->pirepid));
     $this->render('pirep_edit.tpl');
 }
开发者ID:ryanunderwood,项目名称:phpVMS,代码行数:11,代码来源:PIREPAdmin.php

示例5: editschedule

 public function editschedule()
 {
     $id = $this->get->id;
     $this->set('title', 'Edit Schedule');
     $this->set('schedule', SchedulesData::GetSchedule($id));
     $this->set('action', 'editschedule');
     $this->set('allairlines', OperationsData::GetAllAirlines());
     $this->set('allaircraft', OperationsData::GetAllAircraft());
     $this->set('allairports', OperationsData::GetAllAirports());
     $this->set('flighttypes', Config::Get('FLIGHT_TYPES'));
     $this->render('ops_scheduleform.tpl');
 }
开发者ID:ryanunderwood,项目名称:phpVMS,代码行数:12,代码来源:Operations.php

示例6: showSchedules

 public function showSchedules()
 {
     $depapts = OperationsData::GetAllAirports();
     $equip = OperationsData::GetAllAircraftSearchList(true);
     $airlines = OperationsData::GetAllAirlines();
     $this->set('airlines', $airlines);
     $this->set('depairports', $depapts);
     $this->set('equipment', $equip);
     $this->render('schedule_searchform.tpl');
     # Show the routes. Remote this to not show them.
     $schedules = SchedulesData::GetSchedules();
     # Do some filtering and whatnots, take it out of the template...
     $today = getdate();
     $week_number = intval(($today['mday'] - 1) / 7) + 1;
     $current_day == date('w');
     $var_name = 'week' . $week_number;
     # query once, save for later
     if (Config::get('SCHEDULES_ONLY_LAST_PIREP') === true && Auth::LoggedIn() == true) {
         $reports = PIREPData::findPIREPS(array('p.pilotid' => Auth::$userinfo->pilotid, 'p.accepted' => PIREP_ACCEPTED), 1);
         // return only one
     }
     foreach ($schedules as $key => $s) {
         # should we skip schedules based on day of week?
         if (Config::get('CHECK_SCHEDULE_DAY_OF_WEEK') === true) {
             if (isset($s->{$var_name}) && !empty($s->{$var_name})) {
                 # check if today is in the active list for this week
                 if (@substr_count($s->{$var_name}, $current_day) == 0) {
                     unset($schedules[$key]);
                     continue;
                 }
             } else {
                 if (substr_count($s->daysofweek, date('w')) == 0) {
                     unset($schedules[$key]);
                     continue;
                 }
             }
         }
         # remove this schedule from the list if there's a bid on it
         if (Config::get('DISABLE_SCHED_ON_BID') === true && $route->bidid != 0) {
             unset($schedules[$key]);
             continue;
         }
         /*	This means the aircraft rank level is higher than
          		what the pilot's ranklevel, so just do "continue"
         			and move onto the next route in the list  */
         if (Config::get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) {
             if ($route->aircraftlevel > Auth::$userinfo->ranklevel) {
                 unset($schedules[$key]);
                 continue;
             }
         }
         if (Config::get('SCHEDULES_ONLY_LAST_PIREP') === true && Auth::LoggedIn() == true) {
             if (count($reports) > 0) {
                 # IF the arrival airport doesn't match the departure airport
                 if ($reports[0]->arricao != $s->depicao) {
                     unset($schedules[$key]);
                     continue;
                 }
             }
         }
     }
     // end foreach schedules
     $this->set('allroutes', $schedules);
     $this->render('schedule_list.tpl');
 }
开发者ID:rallin,项目名称:phpVMS,代码行数:65,代码来源:Schedules.php

示例7: showSchedules

 public function showSchedules()
 {
     $depapts = OperationsData::GetAllAirports();
     $equip = OperationsData::GetAllAircraftSearchList(true);
     $this->set('depairports', $depapts);
     $this->set('equipment', $equip);
     $this->render('schedule_searchform.tpl');
     # Show the routes. Remote this to not show them.
     $this->set('allroutes', SchedulesData::GetSchedules());
     $this->render('schedule_list.tpl');
 }
开发者ID:web541,项目名称:FltbookSystem,代码行数:11,代码来源:Schedules.php

示例8: FilePIREPForm

 protected function FilePIREPForm($bidid = '')
 {
     if (!Auth::LoggedIn()) {
         $this->set('message', 'You must be logged in to access this feature!');
         $this->render('core_error.tpl');
         return;
     }
     $this->set('pilot', Auth::$userinfo->firstname . ' ' . Auth::$userinfo->lastname);
     $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid));
     $this->set('pirepfields', PIREPData::GetAllFields());
     if ($bidid != '') {
         $this->set('bid', SchedulesData::GetBid($bidid));
         // get the bid info
     }
     $this->set('allairports', OperationsData::GetAllAirports());
     $this->set('allairlines', OperationsData::GetAllAirlines(true));
     $this->set('allaircraft', OperationsData::GetAllAircraft(true));
     $this->render('pirep_new.tpl');
 }
开发者ID:rallin,项目名称:phpVMS,代码行数:19,代码来源:PIREPS.php


注:本文中的OperationsData::GetAllAirports方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。