Jump to content

Artjom

Members
  • Posts

    120
  • Joined

  • Last visited

Posts posted by Artjom

  1. Ok, I am NO PHP Programmer. I believe what you need to do is something like 'this->lastreport' or something close to that. Ill take a look and get back with you. I know its something like lastreport or lastpirep.

    Thank you very mach, I have made this code

    Add this on top of (pilot_public_profile.tpl)

    <?php
        $last_location = PIREPData::getLastReports($userinfo->pilotid, 1, PIREP_ACCEPTED);
        $airport_info = OperationsData::GetAirportInfo($location);
        $airportname = $airport_info->name;
        $report = PIREPData::GetLastReports($pilot->pilotid, 1);
    ?>

    This code add in public profile

    <li><strong>Last Flight: </strong><?php echo $last_location->code . $last_location->flightnum; ?>(<?php echo $last_location->submitdate; ?>)</li>

  2. I add this code on top (pilot_public_profile.tpl)

    <?php
        $last_location = PIREPData::getLastReports($userinfo->pilotid, 1, PIREP_ACCEPTED);
        $airport_info = OperationsData::GetAirportInfo($location);
        $airportname = $airport_info->name;
        $report = PIREPData::GetLastReports($pilot->pilotid, 1);
    ?>

  3. Hello users

    I will make a Last Flight and Date in pilot center and pilot public center!

    This code works in "Pilot Center"

    <li><strong>Last Flight: </strong><?php echo $report->code . $report->flightnum; ?>(<?php echo $report->submitdate; ?>)</li>

    And I will Last Flight and Date works in Pilot Public Profile

    How can I create this?

    please help.

    Best regards.

    • Like 1
  4. Sorry for my englisch!

    The pilot fly from UMKK to UNOO yes!!, and from UNOO the pilot must book only return flight and not all exists in the list, After arriving in UNOO pilot can book all flights, but I need to be able to book only a return flight from UNOO to UMKK

    sheet should show only the return flight, but not all of which exist

  5. Hi, how can I make book flights as well as on FSAirlines?

    Example:

    The pilot fly from UMKK to UNOO, but from UNOO so that you can only book a return flight and not all that exist, please help I can pay you!

    do we need very much, except pilots will not book flights back and all that exist

    Aeroflot Airlines

  6. As of now, you can't. But pilots can use any aircraft they wish to use, there's no restriction

    It isn't so good, I will ask the friend of the programmer that it is possible to make if we find decisions that as to establish it I will lay out vessels on site!  Sorry for my Englisch.

  7. I'm not sure what you mean, you want to assign more than one aircraft to a route?

    Yes that, it was possible to add different planes on one route.

    To this route I will add A319-100 (EI-DMB), B737-300 (EI-FMB) and Tu154 (RA-45485)

    248_facaa3d1955521360bb6e2382ff56f2c06620a95

  8. Hallo

    I have a Flight SU517.  I will add Airbus and Boeing into the flight!

    I want that many planes add in one flight, and not just one were added!

    I've create this code, but it isn't work.

    <?php
    
    	foreach($allaircraft as $aircraft)
    	{
    		if($aircraft->registration == $schedule->registration)
    			$sel = 'selected';
    		else
    			$sel = '';
    
    		echo '<input name="aircraft" type="checkbox" value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->name.' ('.$aircraft->registration.')';
    	} ?>
    

    When I save, in flight display one plane is added only!

    That it is necessary to make that it was added two planes?

  9. Hello,

    How it's possible to draw conclusion of miles on signature?

    I add this code in PilotData.class, but it isn't work  :-[  please help me...

    $output[] = 'Total Miles: ' . $pilot->distance;
    

    I think that all users phpVMS would be very glad, that miles were displayed in the signature!

    Or?

  10. Hello, I have building a "Aeroflot Airlines"!

    I have problem with a translate! Russian text, It's displayed by questions.

    Example: ?????????

    DateBase changed to "cp1251_general_ci"

    The coding is changed to "WINDOWS-1251"

    Russian text isn't displayed as it is necessary for me, what it is necessary to make for this purpose?

×
×
  • Create New...