Jump to content

FlightBookingSystem_V1.0


Recommended Posts

  • Replies 101
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

I've some questions: 1. were can we set the "Fuel Per 1 Hour" and "Fuel Per 100 NM"? 2. were can we set the jumpseat price? 3. I've made a flight and after that I was trying to transfer me back to

1. Open common/RealScheduleLiteData.class.php and look for the following: realschedulelite_location And change all of them to the following: flightbookingsystem_location BTW, thanks fo

I have to thank you. Without you and the other coders, we - the regular users - would be stuck with the default schedule/theme/etc. LE there are a few more things in the code what you could change:

  • Moderators

Open core/common/FrontSchedulesData.class.php file and replace this:

public function findschedule($arricao, $depicao, $airline)   {
    $query = "SELECT phpvms_schedules.*,
 phpvms_aircraft.name AS aircraft, phpvms_aircraft.registration
		    FROM phpvms_schedules, phpvms_aircraft
		    WHERE phpvms_schedules.depicao LIKE '$depicao'
		    AND phpvms_schedules.arricao LIKE '$arricao'
		    AND phpvms_schedules.code LIKE '$airline'
		    AND phpvms_aircraft.id LIKE phpvms_schedules.aircraft";
    return DB::get_results($query);
   }

with this one:

public function findschedule($arricao, $depicao, $airline)   {
    $query = "SELECT phpvms_schedules.*,
               phpvms_aircraft.name AS aircraft,
               phpvms_aircraft.registration,
               phpvms_aircraft.ranklevel AS aircraftlevel
		    FROM phpvms_schedules, phpvms_aircraft
		    WHERE phpvms_schedules.depicao LIKE '$depicao'
		    AND phpvms_schedules.arricao LIKE '$arricao'
		    AND phpvms_schedules.code LIKE '$airline'
		    AND phpvms_aircraft.id LIKE phpvms_schedules.aircraft";

    return DB::get_results($query);
   }

  • Like 1
Link to post
Share on other sites

Open core/common/FrontSchedulesData.class.php file and replace this:

public function findschedule($arricao, $depicao, $airline) {
 $query = "SELECT phpvms_schedules.*,
phpvms_aircraft.name AS aircraft, phpvms_aircraft.registration
		 FROM phpvms_schedules, phpvms_aircraft
		 WHERE phpvms_schedules.depicao LIKE '$depicao'
		 AND phpvms_schedules.arricao LIKE '$arricao'
		 AND phpvms_schedules.code LIKE '$airline'
		 AND phpvms_aircraft.id LIKE phpvms_schedules.aircraft";
 return DB::get_results($query);
}

with this one:

public function findschedule($arricao, $depicao, $airline) {
 $query = "SELECT phpvms_schedules.*,
phpvms_aircraft.name AS aircraft,
phpvms_aircraft.registration,
phpvms_aircraft.ranklevel AS aircraftlevel
		 FROM phpvms_schedules, phpvms_aircraft
		 WHERE phpvms_schedules.depicao LIKE '$depicao'
		 AND phpvms_schedules.arricao LIKE '$arricao'
		 AND phpvms_schedules.code LIKE '$airline'
		 AND phpvms_aircraft.id LIKE phpvms_schedules.aircraft";

 return DB::get_results($query);
}

GOD!!!!

Link to post
Share on other sites
  • 7 months later...
  • Moderators

Deprecated: Non-static method FBSVData::findschedules() should not be called statically, assuming $this from incompatible context in /home/u300880035/public_html/core/modules/FBSV11/FBSV11.php on line 47

2016-03-01_014043.jpg

error, how to fix?

You're using older version of phpVMS. This module is designed to work with phpVMS 5.5X by simpilot and you're gonna have to upgrade to 5.5x eventually.

Link to post
Share on other sites

First, congratulations for your wonderful module.

Install the module and I get this error after making a reservation

Strict Standards: Non-static method FBSVData::findschedules() should not be called statically, assuming $this from incompatible context in /home/mundoairlines/www/core/modules/FBSV11/FBSV11.php on line 47

Flight Dispatch

  • Available flights from: LEMD ( Madrid Barajas International Airport)

Flight ID Origin Destination Aircraft Options MDN2588 LEMD LECO EC350

Fatal error: Class 'FCalculator' not found in /home/mundoairlines/www/core/templates/fbsv/schedule_results.php on line 179

Can you help me?

Thank you

Link to post
Share on other sites
  • 2 months later...

Deprecated: Non-static method FBSVData::findschedules() should not be called statically, assuming $this from incompatible context in /home/u300880035/public_html/core/modules/FBSV11/FBSV11.php on line 47

2016-03-01_014043.jpg

error, how to fix?

same problem ! how to fix!i use phpVMS 5.5X by simpilot + FuelCalculator.V1.2 + FlightBookingSystem.V1.1

Link to post
Share on other sites

same problem ! how to fix!i use phpVMS 5.5X by simpilot + FuelCalculator.V1.2 + FlightBookingSystem.V1.1

go into core/common/FBSVData.class.php and change all of these

public function

to

public static function

Any help please?

In your local.config.php file, change or add these

# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', true);
Config::Set('DISABLE_BIDS_ON_BID', true);

Link to post
Share on other sites

go into core/common/FBSVData.class.php and change all of these

public function

to

public static function

In your local.config.php file, change or add these

# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', true);
Config::Set('DISABLE_BIDS_ON_BID', true);

It's working my friend. Thanks

Link to post
Share on other sites
  • 1 month later...

The pilot performed 1 flight in his account 100$. The pilot then executed a transfer of 40.7$ he left 60$ (why 60$ and not 59.3$?) Beyond that I did Reset Pilot Payments on account again became 100$. Why is that? This is not true.

Edited by zakachkin
Link to post
Share on other sites
  • Moderators

The pilot performed 1 flight in his account 100$. The pilot then executed a transfer of 40.7$ he left 60$ (why 60$ and not 59.3$?) Beyond that I did Reset Pilot Payments on account again became 100$. Why is that? This is not true.

The reason is that I used a built-in function to format the currency and that function rounds up or down the results. If you don't want that do the following:

Open airport_search.php and go to line 102 and change the following:

<?php echo FinanceData::FormatMoney(Auth::$userinfo->totalpay) ;?>

To the following:

<?php echo Auth::$userinfo->totalpay ;?>

There is an issue in phpvms_pilots table's structure. The "totalpay" field type is set to "FLOAT" changing the type to "VARCHAR" may resolve your issue.

Edited by parkho
Link to post
Share on other sites

This is because every time the pilot jumpseats, it takes the cost of the jumpseat out of the `totalpay` of the pilot.

When you reset the pay, it just calculates all the PIREPS and makes an amount from that without calculating the amount and then subtracting the amount that the pilot has jumpseated. I suggest you use the `payadjust` field in phpvms

I haven't tried this, but if you want to you can (backup first)

core/common/FBSVData.class.php

public static function purchase_ticket($pilot_id, $total, $cost) {
$query = 'UPDATE '.TABLE_PREFIX.'pilots
		 SET totalpay='.$total.'
		 WHERE pilotid='.$pilot_id;
DB::query($query);

$query = "UPDATE ".TABLE_PREFIX."pilots SET payadjust = payadjust + '$cost'";
DB::query($query);
}

core/common/PilotData.class.php (edit this function)

/**
 * Go through the ledger and update the totalpay for a pilot
 *
 * @param mixed $pilotid
 * @return void
 */
public static function resetPilotPay($pilotid) {

 $total = DB::get_row(
	 'SELECT SUM(`amount`) AS `total`
		 FROM `'.TABLE_PREFIX.'ledger`
		 WHERE `pilotid`='.$pilotid
 );

$pilot = DB::get_row("SELECT * FROM ".TABLE_PREFIX."pilots WHERE `pilotid` = '$pilotid'");
$total->total = ($total->total - $pilot->payadjust);

 self::updateProfile($pilotid, array('totalpay' => $total->total));
 return $total->total;
}

core/modules/FBSV11/FBSV11.php

public function purchase()   {
  $id = DB::escape($_GET['id']);
  $cost = $_GET['cost'];
  $curmoney = Auth::$userinfo->totalpay;
  $total = ($curmoney - $cost);
  FBSVData::purchase_ticket(Auth::$userinfo->pilotid, $total, $cost);
  FBSVData::update_pilot_location($id);
  header('Location: '.url('/FBSV11'));
}

Edited by web541
Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...

Hello my friend , you do again released a 10 with this module, for those who download the module has a small mistake in choosing the next destination , which appears so

Parse error: syntax error, unexpected T_VARIABLE in /home/oneworl1/domains/oneworldv.com/public_html/core/templates/fbsv/schedule_results.php on line 118

<td colspan="0" align="left" ><b><?phpecho $route->distance . Config::Get('UNITS') ;?></b></td>

this line wrong and the problem is solved with the next space in the line code:

<td colspan="0" align="left" ><b><?php echo $route->distance . Config::Get('UNITS') ;?></b></td> this line ok

Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...
  • Moderators

Dosn't work on my side... I get

No aircraft available

No airport available

I have the latest module downloaded on GitHub today and the database installed from the SQL file provided

Have you added your airports and aircraft in admin?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...