Jump to content

livr517

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by livr517

  1. I am in need of someone who can pull the complete schedule for Star Alliance, Oneworld and SkyTeam member airlines. I'm working up a project, which would allow my VA to fly any route on any carrier. I'd like to start with the three alliances and progress from that point. I am excluding cargo at this time. I've come across few nonworking options on the forum. thought to ask, maybe someone can point me to a working option.
  2. Im having a bit of a problem. Screenshot: http://prntscr.com/g6m58b Im using PHP version of crewcenter. I've removed all the .tpl's from use. I changed the .tpl sections of the code to .php. See copy below. Can someone please assist me? ========================================================================================================================================== <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Pilots extends CodonModule { public function index() { $this->set('allpilots', PilotData::getAllPilots()); $this->render('pilots_list.php'); } public function reports($pilotid='') { if($pilotid == '') { $this->set('message', 'No pilot specified!'); $this->render('core_error.php'); return; } $this->set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); $this->render('pireps_viewall.php'); } /* Stats stuff for charts */ public function statsdaysdata($pilotid) { $data = PIREPData::getIntervalDataByDays(array('p.pilotid'=>$pilotid), 30); $this->create_line_graph('Past 30 days PIREPs', $data); } public function statsmonthsdata($pilotid) { $data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=>$pilotid), 3); $this->create_line_graph('Monthly Flight Stats', $data); } public function statsaircraftdata($pilotid) { $data = StatsData::PilotAircraftFlownCounts($pilotid); if(!$data) $data = array(); include CORE_LIB_PATH.'/php-ofc-library/open-flash-chart.php'; $d = array(); foreach($data as $ac) { OFCharts::add_data_set($ac->aircraft, floatval($ac->hours)); } echo OFCharts::create_pie_graph('Aircraft Flown'); } protected function create_line_graph($title, $data) { if(!$data) { $data = array(); } $bar_values = array(); $bar_titles = array(); foreach($data as $val) { $bar_titles[] = $val->ym; $bar_values[] = floatval($val->total); } OFCharts::add_data_set($bar_titles, $bar_values); echo OFCharts::create_area_graph($title); } public function RecentFrontPage($count = 5) { $this->set('pilots', PilotData::GetLatestPilots($count)); $this->render('frontpage_recentpilots.php'); } }
  3. I only I corrected the profile_main.php however the app_top.php only contains one, not three. Thus far it changed the photo to the default phpvms avatar. would you mind posting the section where I should be finding each one of them?
  4. im till waiting for assistance with the same question.
  5. If I want to be able to allow for flight number lookup, what should I replace depicao or arricao with?
  6. Exactly what, I was looking for. Thanks! for the help.
  7. I've looked around for a bit and haven't come across this yet, I apologize in advance if it has already been answered. I need to change the schedule search from the default drop down list, to a search box. Both for the departure and arrival airports. I have a fairly large DB of airports and it heavy lags the site when it attempts to load them all under the drop down options. Any suggestions would be much appreciated. I'm using 5.5.x
  8. Hello all, First let me start by saying Mark, thanks for the great platform. It's taken some work and some serious reading to get things the way I want them, but thanks to so many people sharing solutions it has been a bit easier than I thought. With that said I need help to get the individual profile pictures to change and save. I've attempted a couple of solutions found online with no luck. When I hit that save changes button nothing happens. Can someone please assists? Thanks! in advance FYI I will be sharing screenshots after I have it all sorted out. I will also provide a demo account for you all to look around and let me know what you all think.
×
×
  • Create New...