Jump to content

Charter Flight System v1.1.0 (UPDATED!)


  

50 members have voted

  1. 1. What is your opinion on this module?

    • It is really useful and simple
      30
    • A little complicated, but useful
      16
    • Useless and extremely complicated
      4


Recommended Posts

  • Replies 132
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Charter Flight System (Using PHP-VMS defult Temps and Modules) [updated V1.1.0] By Reza Farzam Hello dear webmaster; To be honest, just noticed that this madule is a develop

No need to apologize. Nothing else I can see. I haven't looked further into hiding the CH, but will do that after I run some errands. Putting all the graphics locally, makes modifying the appearan

hi fernando, I don't get what u going to say but it might works : this module just add a new airline to your DB and the pilots will add their own charter flights in the new airline named "charter

Posted Images

Where do you change the prices for charter flights? at the moment it is charging £1 per person

I don't remember changing anything to do with the price if this is what you are talking about. Still have to work on the images I added. Some don't make sense, like the calendar in some places :) I am still having some problems with alignment and hiding the CH, Charter flight during registration.

http://screencast.com/t/ypXsYPrRa

Link to post
Share on other sites

I'm back again, but still having the issue. I've double checked and everything looks like it is installed in the correct location. There is one folder called charter in core/, a folder called Charter in core/modules/, a folder called charter in core/templates/, and the last is charter in lib/images/. The only other thing I can think of is that I don't have any flights yet. Could that be causing this?

I've also attached a screenshot of the webpage.

post-45765-0-37952900-1421021231_thumb.jpg

disregard

Link to post
Share on other sites
  • 3 months later...
  • 3 weeks later...
  • 3 weeks later...

in the script the $price = $pilotid

why i don't know ;)

i create on phpvms_airports

2 rows:

charterprice and paxprice

in charter php line 874

i add some line:

# Format the flight level

$this->post->flightlevel = str_replace(',', '', $this->post->flightlevel);

$this->post->flightlevel = str_replace(' ', '', $this->post->flightlevel);

$this->post->route = strtoupper($this->post->route);

$this->post->route = str_replace($this->post->depicao, '', $this->post->route);

$this->post->route = str_replace($this->post->arricao, '', $this->post->route);

$this->post->route = str_replace('SID', '', $this->post->route);

$this->post->route = str_replace('STAR', '', $this->post->route);

//saintlol: test recup price

$recupdata = OperationsData::getAirportInfo($this->post->depicao);

$chprice = $recupdata->charterprice;

$this->post->price = $chprice;

$this->post->flighttype ='C';

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

I'm back again, but still having the issue. I've double checked and everything looks like it is installed in the correct location. There is one folder called charter in core/, a folder called Charter in core/modules/, a folder called charter in core/templates/, and the last is charter in lib/images/. The only other thing I can think of is that I don't have any flights yet. Could that be causing this?

I've also attached a screenshot of the webpage.

post-45765-0-37952900-1421021231_thumb.jpg

I'm saving this same issue...

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

Hi,

First, absolutely brilliant module, exactly what we needed.

Everything is working fine except, the booked/bidded flight isnt being passed through to our SmartCARS system like our normal flights do?

They show on the booked flights etc on the website, just not in SmartCARS, so we're unable to actually fly them.

Any ideas on what is causing this?

AKV0001 - Gavin Browett

www.alaskairvirtual.com

Link to post
Share on other sites

Hi,

First, absolutely brilliant module, exactly what we needed.

Everything is working fine except, the booked/bidded flight isnt being passed through to our SmartCARS system like our normal flights do?

They show on the booked flights etc on the website, just not in SmartCARS, so we're unable to actually fly them.

Any ideas on what is causing this?

AKV0001 - Gavin Browett

www.alaskairvirtual.com

Dont worry, appears to have fixed itself lol - parhaps some sort of delay??

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

Hello,

So far I cant wait to test it, it seems interesting. But, I do have an issue:

Fatal error: Call to undefined method SchedulesData::countCharterSchedules() in .../core/templates/charter/ops_schedules.tpl on line 50

Thanks for your help.

I have exactly same problem. How can i fix it please?

Link to post
Share on other sites
  • 2 weeks later...
  • 4 weeks later...
  • Moderators
On 2/12/2016 at 4:17 PM, OmerAslan said:

I have exactly same problem. How can i fix it please?

hi ,

as I explained in the manuall, you have to ...Put the codes below in your SchedulesData.class (make a backup first!).

 

		   /**
		     * Get the total number of schedules based on criterea for charters
		     *
		     * @param array $params key => value list
		     * @return int Returns the total number
		     *
		     */
		    public static function CountCharterSchedules($icao, $price)
		    { //Count schedules
		    $query = "SELECT * FROM ".TABLE_PREFIX."schedules WHERE price = '".$price."' AND code = '".$icao."'";
						    $results = DB::get_results($query);
						    return DB::num_rows($results);
		    }
 

 

you can find SchedulesData.class here:

YOUR WEBSITE ROOT/core/common/...

this code will count the charter flights of each pilot! ;)

  • Like 1
Link to post
Share on other sites
7 hours ago, joooseb said:

hi ,

as I explained in the manuall, you have to ...Put the codes below in your SchedulesData.class (make a backup first!).

 


		   /**
		     * Get the total number of schedules based on criterea for charters
		     *
		     * @param array $params key => value list
		     * @return int Returns the total number
		     *
		     */
		    public static function CountCharterSchedules($icao, $price)
		    { //Count schedules
		    $query = "SELECT * FROM ".TABLE_PREFIX."schedules WHERE price = '".$price."' AND code = '".$icao."'";
						    $results = DB::get_results($query);
						    return DB::num_rows($results);
		    }
 

 

you can find SchedulesData.class here:

YOUR WEBSITE ROOT/core/common/...

this code will count the charter flights of each pilot! ;)

Yes looks great. Seems no problem after adding this code... Thanks a lot.

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

Hello again,

I want to ask about couple problems,

After i add charter flight i see it on the list so it's works. But when i will add second one it says you didn't add any charter flight before. I want to give max 5 flights a month for per person. How can i do this please?

Thanks...

Edited by OmerAslan
Link to post
Share on other sites
On 19.01.2017 at 8:40 PM, OmerAslan said:

Hello again,

I want to ask about couple problems,

After i add charter flight i see it on the list so it's works. But when i will add second one it says you didn't add any charter flight before. I want to give max 5 flights a month for per person. How can i do this please?

Thanks...

Any luck? Thanks...

Link to post
Share on other sites
  • Administrators

Maybe a picture of the screen after you add the second charter would help. Does it still list the first charter? Does the second charter appear in the list or does it not allow you to add the second charter?

As for limiting each pilot to a maximum of 5 charter flights each month, it may be best to make that a rule/policy and monitor it manually. If a pilot submits more than 5 in a calendar month, send them a note reminding them of the policy and then delete or reject their PIREP. 

Edited by ProAvia
Link to post
Share on other sites
On 22.01.2017 at 10:58 PM, ProAvia said:

Maybe a picture of the screen after you add the second charter would help. Does it still list the first charter? Does the second charter appear in the list or does it not allow you to add the second charter?

As for limiting each pilot to a maximum of 5 charter flights each month, it may be best to make that a rule/policy and monitor it manually. If a pilot submits more than 5 in a calendar month, send them a note reminding them of the policy and then delete or reject their PIREP. 

Hi ProAvia,

I add many charter flights but it's still the same. It says You have not added any flight to your charter list !

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