Jump to content

AFVA | Mitchell

Members
  • Posts

    143
  • Joined

  • Last visited

Posts posted by AFVA | Mitchell

  1. On behalf of everyone on the management team at Australian Frontier Virtual Airways I would like to say thank you to everyone who was involved in the development and testing of phpVMS for making such a great system. I would also like to also say thank you to everyone who has helped us in the troubles we encounter.

    In 2008 we were founded running VAFS until we went broke. We lost everything, members, our website and relationships. Many members though we were gone. In January this year we started to test phpVMS and gave it the go ahead. Some people thought we would not survive a month, but now we have 20+ members, tonnes of events and lots of fun flying.

    Still got a lot of work to do, even when I do get it done, I will still be coding as the new BETAs come out.

    Thank you all,

    Mitchell Williamson

    On behalf of the Australian Frontier Management Team

    VMS http://afva.servegame.org | Website http://www.australianfrontier.com

  2. Got a small problem though:

    The drop-down menu won't display the airlines.

    The code in schedule_searchform.tpl

    		
    <div id="airline">
    		<p>Select Airline:</p>
    		<select id="airline" name="airline">
    		<option value="">Select Airline</option>
    	<?php
    
    	if(!$airline) $airline = array();
        foreach($allairlines as $airline)
    	{
    		echo '<option value="'.$airline->code.'">'.$airline->name.'</option>';
    	}
    	?>
    
        </select>
    	<input type="submit" name="submit" value="Find Flights" />
      </div>

    Schedules.php:

    public function FindFlight()
    {
    
    	if($this->post->depicao != '')
    	{
    		Template::Set('allroutes', SchedulesData::GetRoutesWithDeparture($this->post->depicao));
    	}
    
    	if($this->post->arricao != '')
    	{
    		Template::Set('allroutes', SchedulesData::GetRoutesWithArrival($this->post->arricao));
    	}
    
    	if($this->post->equipment != '')
    	{
    		Template::Set('allroutes', SchedulesData::GetSchedulesByEquip($this->post->equipment));
    	}
    
    	if($this->post->distance != '')
    	{
    		if($this->post->type == 'greater')
    			$type = '>';
    		else
    			$type = '<';
    
    		Template::Set('allroutes', SchedulesData::GetSchedulesByDistance($this->post->distance, $type));
    	}
    
    	if($this->post->airline!= '')
        {
        $routes = SchedulesData::GetSchedulesWithCode($this->post->airline);
        Template::Set('allroutes', $routes);
        }
    
    	Template::Show('schedule_results.tpl');

    I want to search using the airlines so that all the airlines appear in the drop down menu.

    Thanks in advance,

    Mitch

  3. I want to make a bar at the top of the page with the current flights online.

    Info I want with it:

    Dep Airport

    Arr Airport

    Status

    Pilot Name

    Flight Number

    phpVMS version 1.2.700 (will be updated in the next coming days)

    Thanks in advance,

    Mitchell Williamson

    Australian Frontier Virtual Airways

  4. The code I am working on at the moment:

    	  <div id="airline">
    		<p>Select Airline:</p>
    		<p><b>This feature is under construction. Check back soon! AFVA Management. </b></p>
    	<select id="airline" name="airline">
    		<option value="">Select Airline</option>
    	<?php
    
    	if(!$airline) $airline = array();
    	foreach($allairlines as $airline)
    	{
    		echo '<option value="'.$airline->name.'">'.$airline->name.'</option>';
    	}
    	?>

    Trying to get all the airlines to display as an option.

    Anyone know how to get all the airlines to display as an option??

  5. This may be your problem:

    REASON: One of your pilots has bid on the flight.

    From the changelog:

    NEW: Added option to allow only one bid per schedule, and hide schedule

    To fix:

    Go to core/templates/schedule_results.tpl and open it up

    You should see the following code near the top:

    This will skip over a schedule if it's been bid on
    This only runs if the below setting is enabled
    
    If you don't want it to skip, then comment out
    this code below by adding // in front of each 
    line until the END DISABLE SCHEDULE comment below
    
    If you do that, and want to show some text when
    it's been bid on, see the comment below
    */
    if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
    {
    	continue;
    }

    Make the true into a false

    I have been having that problem with my VA and soon I will be removing the entire bidding function,

    Hope this helps

    Mitchell Williamson

    Australian Frontier VA Administrator

  6. G'day everyone,

    I am skinning a new website using phpVMS. Everything is working except when I put in the code to try and make the Recent PIREPs and New pilots appear only on the home page I get a bunch of errors. Can someone simply tell me the code I have to put in?

    Here is the code that I have, tell me where to put the PHP codes please.

        <div class="middle_left">
        	   	   
        	<h3>Recent Reports</h3>
    
    
    <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>
    
    <h3>Newest Pilots</h3>
    
    <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>
    
    
        </div>

    Help would be greatly appreciated! (Been spending three hours skinning ;) )

    Mitchell Williamson

×
×
  • Create New...