Jump to content
AFVA | Mitchell

phpVMSBooking Release

Recommended Posts

[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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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....

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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'); ?>

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

SVA0001.png

Share this post


Link to post
Share on other sites

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

SVA0001.png

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

Share this post


Link to post
Share on other sites

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

thanks a lot will add this ASAP

this procedere will work with other modules too I guess?

BR

Thomas

Share this post


Link to post
Share on other sites

thanks a lot will add this ASAP

this procedere will work with other modules too I guess?

BR

Thomas

Yes it should just change the ('/booking') to ('/modulename')

modulename = Name of the module (the folder in core/modules)

Share this post


Link to post
Share on other sites

how can I make it look right with Obsess Blue Theme?

the pic attached shows the way it looks at the moment lot of white space otherwise works great

post-585-098155500 1274544327_thumb.jpg

BR

Thomas

Share this post


Link to post
Share on other sites

how can I make it look right with Obsess Blue Theme?

the pic attached shows the way it looks at the moment lot of white space otherwise works great

post-585-098155500 1274544327_thumb.jpg

BR

Thomas

You have to add the mcright div to it to get it to center up and look right. The answer is located here http://forum.phpvms.net/topic/2564-osses-bule-skin-problem/

I have not tried this script, but I know the fix in that other thread will work. That is a skin problem and not a script problem. B)

Share this post


Link to post
Share on other sites

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

Where do I place that code on my VA to get it on my Frontpage, I have managed to add other codes to it, but i cannot find it and I don't think It looks right the code, but it probably is as you know what you are doing, I got my Signature working :)

Many Thanks,

Matthew

Join Fly Sol - We are all ways recruiting.

FSV0001.png

Share this post


Link to post
Share on other sites

Where do I place that code on my VA to get it on my Frontpage, I have managed to add other codes to it, but i cannot find it and I don't think It looks right the code, but it probably is as you know what you are doing, I got my Signature working :)

Many Thanks,

Matthew

Join Fly Sol - We are all ways recruiting.

FSV0001.png

frontpage_main.tpl

Share this post


Link to post
Share on other sites

:huh: I'm feeling really dumb. It looks nice, but what does it actually do that isn't already being done?

The truth is...it dosn't. It adds a realistic side of things to make the VA website seem more real, also in the future (once im done with WorldACARS and a million other things) i will add all sorts of stuff to enhance it. But pretty much its another way of bidding on flights ;)

Share this post


Link to post
Share on other sites

Thanks. At least I know I haven't lost what little remains of my mind. :D

I think I'll add it to my site. I might even kludge together a version for booking cargo flights, as well.

Share this post


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...