-
Posts
1381 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Parkho
-
Hello everyone, I have started using FSFK as a joint client for my airline and the problem I have is that the log part of the flight needs to be inserted in separate fields in DB so that I can pull the data and show it in a table but I don't know which file to edit as there is no .php associated with FSFK in ACARS module and nor there is for KACARS if I'm not mistaking. I appreciate any help in this regard. Thanks
-
Open core_navigation.tpl and go to line 14 after this: // Show these items only if they are logged in Insert this: $pilotid = Auth::$userinfo->pilotid; $last_location = RealScheduleLiteData::get_pilot_location($pilotid, 1); $last_name = OperationsData::getAirportInfo($last_location->arricao); $curlocation = $last_location->arricao; Make sure you copy that before this: ?> Now on line 21 copy this: <li> <?php echo '<a href="'.SITE_URL.'/index.php/RealScheduleLite/get_airport?icao='.$curlocation.'">'.$curlocation.'</a>'; ?></li> That should give you your current location and when you click on it it'll take you to realschedulelite airport page for bookings.
-
Okay! In navigation menu, you want "KJFK" for example. When you click on it, it'll take you to page of realscheduleslite for booking? Am I right?
-
It's in admin/modules/operations and airports function will be the one but that function is connected to another function to find the airports which I don't know where it is, so my opinion is that instead of going through the whole lot of searching use the manual procedure.
-
And what was the result? I think you're trying to by pass the first page of RealScheduleLite where the airports are listed with available aircrafts with this.
-
Follow up the picture:
-
Okay! are you using the realschedulelite or the default? and please explain what exactly you need to do.If possible with pictures.
-
Add it manually using google earth for the lat and lon and so on for the description.
-
core_navigatin.tpl codes are like this: <li><a href="<?php echo url('/'); ?>">home</a></li> <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <li><a href="<?php echo url('/login'); ?>">Login</a></li> <li><a href="<?php echo url('/registration'); ?>">Register</a></li> <?php } else { // Show these items only if they are logged in ?> <li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li> <?php } ?> <li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li> <li><a href="<?php echo url('/acars') ?>">Live Map</a></li> <?php echo $MODULE_NAV_INC;?> <?php if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>'; } ?> <li><a href="<?php echo url('/logout'); ?>">Log Out</a></li> <?php } ?> now add this to line #16 for RealSchedulesLite add-on: <li><a href="<?php echo url('/realschedulelite'); ?>">RealSchedulesLite</a></li> Or add this for the default schedules search: <li><a href="<?php echo url('/schedules/view'); ?>">Schedules</a></li> If that's what you mean.
-
Did you enter "week1" into any fields? If yes, that might be the problem.
-
Please refer to the page for the newly added pictures.
-
Also, you could use this one: FlightBookingSystem
-
Use this instead: <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> This will show you the last 5 pilots and you can change the "5" to your desired number.
-
You need to put that in a div tag other than that use the center tag like this: <div>......</div> <center>......</center>
-
You can set the flight numbers for continued flights as FL#A and FL#B. Otherwise, changing the core files is strongly not suggested.
-
Green dots are images that you have to put in correct path, so read the install note as to where you'll have to upload them.
-
This Part: $fuelflowB722 = 1126; $fuelhrB722 = 3000; $rangeB722 = 2400; $altB722 = 36000; $fuelflowB738 = 1045; $fuelhrB738 = 3970; $rangeB738 = 1990 ; $altB738 = 35000; $fuelflowB744 = 1845; $fuelhrB744 = 7671; $rangeB744 = 7260; $altB744 = 45000; $fuelflowB763 = 1405; $fuelhrB763 = 4780; $rangeB763 = 4260; $altB763 = 43000; $fuelflowB772 = 2200; $fuelhrB772 = 6400; $rangeB772 = 7730; $altB772 = 43000; $fuelflowA30B = 1526; $fuelhrA30B = 5238; $rangeA30B = 3400; $altA30B = 39000; $fuelflowA320 = 790; $fuelhrA320 = 3000; $rangeA320 = 2615; $altA320 = 37000; $fuelflowA332 = 1433; $fuelhrA332 = 6375; $rangeA332 = 6400; $altA332 = 41000; $fuelflowA343 = 1829; $fuelhrA343 = 8300; $rangeA343 = 6700; $altA343 = 45000; $fuelflowF100 = 744; $fuelhrF100 = 2136; $rangeF100 = 1323; $altF100 = 33000;
-
Please share how it was solved. Thanks
-
Here you go: FlightBookingSystem
-
Are you using any skins rather than the default? If yes you have skin problem try changing it to defaul crystal skin or use one that's working.
-
Yep! Works like a charm. You did it
-
Great. I have different approach to get the schedules flight count for today but can you share the info?
-
I don't think that's doable but I was thinking of using the find pirep function in PIREPData passing the submitedate value as today and then use a foreach and an if statement. Don't know if it works though.
-
Ok that's good, first you need to assign a value to $today like this: $today = date("Y-m-d"); ////// This gives you today's date $pirepdate = date(DATE_FORMAT, strtotime($pirep->submitdate)); ////// This formats the pirep's submit date. If($today == $pirepdate) { continue; } But you will need a foreach for your column meaning another foreach inside the already existing foreach and of course you need to pull the pirep data for your foreach. Complicated huh! . I'm working on it let me see if I can resolve it