phpVMSBooking Release

[move]phpVMSBooking[/move]


FEATURES:

Flight Search

Easy-To-Customize

Add To Bid Feature

INSTALLATION:

  1. Download attached .ZIP

  2. Upload booking_results.tpl, booking_form.tpl and booking_confirm.tpl to your core/templates or lib/skins/[sKIN NAME]/

  3. Upload ‘Booking’ to core/modules

  4. Go to www.[yoursitename].[com or whatever]/index.php/booking

COMING SOON:

Confirmation Page

Small Form you can put on home page

Enjoy!

Mitch

[phpvms_booking_1_0.zip](< base_url >/applications/core/interface/file/attachment.php?id=131)

can you post a screenshot?

Here they are

Flight Search:

Results:

All of this can by easy made to your liking in the .tpls

http://vhmrw.site90.com/index.php/booking

Brilliant,

Thanks for creating.

1 Like

Good day,

Many thanks to everyone for developing this ever growing system.

One question on the booking system, is it possible to add code that only shows the flights for today in the results page?

Many thanks in advance.

Mark

how cna i put it on the homepage , as i am pointing as PHP include but it does not give out the airport departure or arrival. Please help. I can see the airports and stuff on the index.php/booking but when i put it as an php include , it does not work. Any ideas will be nice

1 Like

Try something like:

MainController::Run('booking', 'index');

Good job on the addon! Just a minor issue, at the end of booking.php there is this:

?>

With a blank line after the ?>

You can take our the ?> (not required). The blank line/space at the end could mess up potentially sending that whitespace out and causing an “headers already sent” error message

Lol nabeel , I LOVE YU MWAN , i tried  MainController::Run(‘booking’); but i forgot to add the index and now its working . Weheee.

Thanks man!

Got it running on my front page of my dev site just gotta style it up and it should be good to go.

Thanks again,

Chad C.

is it possible to add code that only shows the flights for today in the results page?

I can add a feature to choose a day (monday, tuesday, etc.), will post the code here soon…

That would be great, thanks Mitchell.

I am to busy at the moment to test it but…

Try this code for day of week:

Replace the params stuff in booking.php’s search feature.

      $params = array(
      's.depicao' => $this->post->depicao,
      's.arricao' => $this->post->arricao,
      's.daysofweek' =>$this->post->day,
      's.enabled' => 1,
      );

and add this to booking_form.tpl

<select name="day" id="day">
	<option value="0">Sunday</option>
	<option value="1">Monday</option>
    <option value="2">Tuesday</option>
	<option value="3">Wednesday</option>
	<option value="4">Thursday</option>
	<option value="5">Friday</option>
    <option value="6">Saturday</option>
    </select>

Hi Mitchell,

Many thanks for your time, it works a treat!!!

Mark

Thanks ! I have modified it a bit , and now will try to work on calendar(not really working one , yes i want do that dates will show up but that will read days of week and show it after click search)

That’s how my one’s look

Damn was just about to forget about this , Much thanks for SimPilot for help with putting it as sidebar

I have this working inside a lightbox. In the box, the dep/arr only shows dep/app. Doesn’t display the airports. Any ideas? You can see here Click on the “Book your Alaska Adventure” banner.(Start Now)

I am displaying this way

<?php Template::Show('booking_form.tpl'); ?>

I have this working inside a lightbox. In the box, the dep/arr only shows dep/app. Doesn’t display the airports. Any ideas? You can see here Click on the “Book your Alaska Adventure” banner.(Start Now)

I am displaying this way

<?php Template::Show('booking_form.tpl'); ?>

Change the code from

<?php Template::Show('booking_form.tpl'); ?>

To

<?php MainController::Run('booking', 'index'); ?>

This way it shows the same thing though the airports are also shown. It also makes the search work.

Thank you. That fixed it!

how can I add this to Top navigation so that it opens a new site like the other Top Navigtion entries?

thanks in advance

Thomas

how can I add this to Top navigation so that it opens a new site like the other Top Navigtion entries?

thanks in advance

Thomas

Open core_navigation.tpl (should be in your lib/skins/***/ folder or core/templates).

Below this code: <li><a href=“<?php echo url(‘/acars’); ?>”>Live Map</a></li>

Add:

<li><a href="<?php echo url('/booking');?>">Book A Flight</a></li>

Done!

Hope this helped,

Mitch

Open core_navigation.tpl (should be in your lib/skins/***/ folder or core/templates).

Below this code: <li><a href=“<?php echo url(‘/acars’); ?>”>Live Map</a></li>

Add:

  • Book A Flight
  • Done!

    Hope this helped,

    Mitch

    thanks a lot will add this ASAP

    this procedere will work with other modules too I guess?

    BR

    Thomas