Jump to content

Fernando

Members
  • Posts

    304
  • Joined

  • Last visited

Posts posted by Fernando

  1. I'm looking at the forum and would like to suggest an idea at all.

    It would be possible to create a system linking the Pilot Shop

    The pilot using his money to buy a charter flight?

    Example

    First Flight - Cessna 172 - Flight taking off from SBSP to SBKP, take the opportunity to fly on a visual flight through the city of sao paulo in Brazil. Buy Now $2.500

    Second Flight - Boeing 737-800 - Meet the Lisbon flight and buy now knows the best landscapes of Portugual bound LEMD. Buy Now $5.000

    Third Flight - Boeing 747-400- Now make a TOUR leaving LPPT bound for SBGR with scale SBRF, come experience this thrill aboard this magnificent aircraft - Buy Now $20.000

    I think it is possible to create a system that is an idea after all pilots flying will want to buy a charter flight, so we can have a difference within the company ... and a cool competition to join the above values ​​and enjoy a flight and charte performing a flight like the pilot.

    GLO0004.png

  2. Can someone help me,

    I analyzed my site and realized that the person filling out the contact form .... the data is not sent to the registered email address when installing phpvms.

    I noticed that too when sending e-mail to all pilots in the admin center, shows that it was sent but no one receives ...

    Does anyone have any idea?

    • Like 1
  3. Good morning, here's the code.

    Insert it in your frontpage_main.tpl

    <?php
    		 $flights = PIREPData::getRecentReportsByCount(10);																																	
    		 $string = "";
    		 foreach($flights as $flight)
    		 {	
    						 $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
    		 }																																	
    ?>
    <img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=wls&MR=900&MX=720x360&PM=b:disc7%2b%25U" width="725 px" /><br />
    Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.voegolv.net" target="_blank">Luiz Fernando </a>
    <!--Start Table-->
    <?php
    $count = 10;
    $pireps = PIREPData::getRecentReportsByCount($count);
    ?>
    <table width="725 px" border="1" bordercolor="#FFFFFF">
    <thead>
    	 <tr align="center" valign="middle" bgcolor="#7D95AF">
    	 <th>Flight #</th>
    	 <th>Departure</th>
    	 <th>Arrival</th>
    	 <th>Duration</th>
    	 <th>Pilot</th>
    	 <th>Landing Rate</th>
    	 <th>Aircraft</th>
    	 </tr>
    </thead>
     <tbody>
    
    <?php
    if(count($pireps) > 0)
    {
    foreach ($pireps as $pirep)
    {
     $pilotinfo = PilotData::getPilotData($pirep->pilotid);
     $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
     echo "<tr>";
     echo "<td align=center> $pirep->code $pirep->flightnum </td>";
     echo "<td align=center> $pirep->depicao </td>";
     echo "<td align=center> $pirep->arricao </td>";
     echo "<td align=center> $pirep->flighttime </td>";
     echo "<td align=center> $pilotid $pilotinfo->firstname $pilotinfo->lastname </td>";
     echo "<td align=center> $pirep->landingrate </td>";
     echo "<td align=center> $pirep->aircraft </td>";
     echo "</tr>";
    }
    }
    else
    {
     echo "<tr><td>There are no recent flights!</td></tr>";
    }
    ?>
    </table>
    </td>
    

    This you insert in your Profile_main.tpl,

    it reports the last 10 flights each pilot and shows how many days lack to Prevent Them from being retired

    <?php
     $flights = PIREPData::getLastReports($userinfo->pilotid, '10');
     $string = "";
     foreach($flights as $flight)
     {
     $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
     }
     ?>
    </p>
    		 <p align="center"><img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=520x260&PM=pemr:disc10:red%2b%22%25I%22:white&PC=blue" /><br />
    		 </p>
    		 <div class="alert alert-info">
    			 <?php $totaldays = Config::Get('PILOT_INACTIVE_TIME');
    
    
    										 {
    						 ?>
    			 <?php
    				 if ($userinfo->lastpirep == '0000-00-00 00:00:00') {
    						 echo 'Voce não realizou ainda nenhum voo na Gol Virtual!';
    				 }
    				 else {
    						 $datebefore1 = substr($userinfo->lastpirep, 0, 10);
    						 $datetoday2 = date("Y-m-d");
    						 $datebefore3 = strtotime($datebefore1);
    						 $datetoday4 = strtotime($datetoday2);
    						 $newdate = $datetoday4-$datebefore3;
    						 $lastpirep = floor($newdate/(60*60*24));
    						 $daysleft = $totaldays-$lastpirep;
    						 echo 'your last flight was ';
    								 if ($lastpirep == 0) { echo 'Today'; }
    								 else if ($lastpirep == 1) { echo 'Yesterday'; }
    								 else {
    										 echo $lastpirep . ' day(s) ago.';
    								 }
    								 echo '&nbspVoce tem ';
    								 if ($daysleft == 0) { echo 'Our system has identified the absence of flights within 30 days, carrying his status was changed to inactive!'; }
    								 else {
    										 echo $daysleft . '&nbspdays to make your flight and prevent your registration is changed to inactive.';
    								 }
    
    
    				 }
    				 ?>
    			 <?php
    }
    ?>
    

    GLO0004.png

  4. I searched here in the forum something like Booked Flights,

    thought, but nothing worked properly.

    I visualized the Admin Center, my pilots booked 18 flights, but not me this script returns the same flights on the Frontpage_main.tpl,.

    Someone has something similar like this

    http://airmaltavirtu...ex.php/bookings

    The script I have is this, but he did not return the you that I see in the admin center.

    Current Booked Flights</h3>
    <?php /*echo '<pre>'; print_r($allbids); echo '</pre>';*/
    if(!$allbids)
    {
     echo 'There are no bids!';
     return;
    }
    ?>
    <table id="tabledlist" class="tablesorter">
    <thead>
    <tr>
     <th>Route</th>
     <th>Pilot</th>
     <th>Day Filed</th>
     <th>Options</th>
    </tr>
    </thead>
    <tbody>
    <?php
    foreach($allbids as $bid)
    {?>
    <tr id="row<?php echo $bid->bidid?>">
     <td><?php echo $bid->code.$bid->flightnum."({$bid->depicao} - {$bid->arricao})"?></td>
     <td><?php echo PilotData::GetPilotCode($bid->code, $bid->flightnum).' - '.$bid->firstname.' '.$bid->lastname; ?></td>
     <td><?php echo $bid->dateadded; ?></td>
     <td>
     <button href="<?php echo url('/schedules/brief/'.$bid->routeid);?>">
    				 Brief</button>
    		 </td>
     </tr>
    <?php } ?>
    </tbody>
    </table>
    

    GLO0004.png

    Commercial Pilot

    www.voegolv.net

×
×
  • Create New...