Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. try <?php NOTAMSData::GetNotam($schedule->depicao,4);?> and <?php NOTAMSData::GetNotam($schedule->arricao,4);?> for arrival
  2. Did you try to do it by your self ? have you found any free html template that would be easy to be converted and you need help ? That are the cheapest and easyest ways to learn if not it depends on what you need and if it fits your budget
  3. Try this Code <!-- Begin Company News --> <div class="art-postcontent art-postcontent-0 clearfix"><div class="art-content-layout-wrapper layout-item-0"> <div class="art-content-layout layout-item-1"> <div class="art-content-layout-row"> <div class="art-layout-cell layout-item-2" style="width: 100%" > <div class="art-blockheader"> <h3 class="t">Departure/Arrival Board</h3> </div> <div align="center"> <table align="center" width="100%" border="0"> <tr> <td><?php # # $query = "SELECT * FROM phpvmsSIM_schedules ORDER BY deptime + 0 ASC"; # $list = DB::get_results($query); # echo '<h3>Expected Departures - Current Time is '.date('G:i').'</h3>'; # echo '<table align="center" width="90%" border="0" bgcolor="#99FF00" >'; # echo '<tr><td><b>Flight Number</b></td><td><b>Departure</b></td><td><b>Arrival</b></td><td><b>Departure Time</b></td><td><b>Aircraft</b></td><td><b>Status</b></td></tr>'; # $count = 0; # foreach($list as $flight) { # if(date('G:i') >= '23') { # $time = '0'; # } # else { # $time = date('G:i'); # } # if(($flight->deptime + 0) >= $time) { # if($count < 10) { # $aircraft = OperationsData::getAircraftInfo($flight->aircraft); $depname = OperationsData::getAirportInfo($flight->depicao); $arrname = OperationsData::getAirportInfo($flight->arricao); # echo '<tr><td>'.$flight->flightnum.'</td><td>'.$depname->name.'</td><td>'.$arrname->name.'</td><td>'.$flight->deptime.'</td><td>'.$aircraft->fullname.'</td>'; # echo '<td>'; # $minutes = explode(':', $flight->deptime); # if($minutes['0'] <= date('G')) { # if(($minutes['1'] - date('i')) <= 0) { # echo 'Departed'; # } # elseif(($minutes['1'] - date('i')) <= 15 && ($minutes['1'] - date('i')) >= 1) { # echo 'Final Call'; # } # elseif(($minutes['1'] - date('i')) >= 30 && ($minutes['1'] - date('i')) <= 20) { # echo 'Proceed to Gate'; # } # else { # echo 'Scheduled Departure'; # } # } # else { # echo 'Scheduled Departure'; # } # echo '</td></tr>'; # $count++; # } # } # } # echo '</table>'; # # echo '<h3>Expected Arrivals - Current Time is '.date('G:i').'</h3>'; # echo '<table align="center" width="90%" border="1" bgcolor="#99FF00" >'; # echo '<tr><td><b>Flight Number</b></td><td><b>Departure</b></td><td><b>Arrival</b></td><td><b>Arrival Time</b></td><td><b>Aircraft</b></td><td><b>Status</b></td></tr>'; # $count = 0; # foreach($list as $flight) { # if(date('G:i') >= '23') { # $time = '0'; # } # else { # $time = date('G:i'); # } # if(($flight->arrtime + 0) >= $time) { # if($count < 10) { # $aircraft = OperationsData::getAircraftInfo($flight->aircraft); $depname = OperationsData::getAirportInfo($flight->depicao); $arrname = OperationsData::getAirportInfo($flight->arricao); # echo '<tr><td>'.$flight->flightnum.'</td><td>'.$depname->name.'</td><td>'.$arrname->name.'</td><td>'.$flight->arrtime.'</td><td>'.$aircraft->fullname.'</td>'; # echo '<td>'; # $minutes2 = explode(':', $flight->arrtime); # if($minutes2['0'] <= date('G')) { # if($minutes2['1'] - (date('i')) >= 30) { # echo 'On Time'; # } # elseif(($minutes2['1'] - date('i')) >= 1 && ($minutes2['1'] - date('i')) <= 30) { # echo 'On Approach'; # } # else { # echo 'Landed'; # } # # } # else { # echo 'On Time'; # } # echo '</td></tr>'; # $count++; # } # } # } # echo '</table>'; $flights = PIREPData::getRecentReportsByCount(10); $string = ""; foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?></td> </tr> </table> <div align="center"> <!-- End Company News -->
  4. What code did you put in the schedule briefing ? <?php NOTAMSData::GetNotam($icao,numberof notams);?> This is the only code you need to add in the template
  5. Just made this for you Put it in core/common folder you can call it wherever you want with <?php NOTAMSData::GetNotam($icao,numberof notams);?> $icao = the airport icao you want the notams to get number of notams = the amount of notams you want to get -1 if you want 4 notams then you write 3 etc NOTAMSData.class.php
  6. No idea i am sorry I hust know that at some time he comes and goes maybe personal matters Maybe we could help you with your isssue just tell us what you need and somebody might be able to help you
  7. In core/common folder you need to edit PilotData.class.php function generateSignature
  8. You can do it with a custom Tracker or with a dropdown menu in the bid area where you can select the airplane
  9. I find it a little imposible to not have a local.config.php as in there are also located the login credentials to the database Btw what is your site link ?
  10. There is no picture Make sure that you have checked the flying days
  11. no you should have a local.config.php in core folder
  12. You are inserting the wrong mysql password
  13. something comes empty can you tell us what is there in line 419 ?
  14. To be honest i didnt quite understand the question You want to add schedules ?
  15. http://forum.phpvms.net/topic/20729-table-with-row-in-multiple-column/
  16. Also APVacars Free http://baggelis.com/index.php/apvacarsm/apvacars Custom http://baggelis.com/index.php/apvacarsm/apvacars-custom
  17. Delete everything and try to reinstall it by following the instructions
  18. Did you changed anything except line 23 in simbrief.apiv1.js ? as far as i can see at line 107 it should be outputpage_calc = outputpage.replace("http://",""); and yours is outputpage_calc = outputpage.replace("http://www.unitedairlinesvirtual.com");
  19. If this is your website http://www.unitedairlinesvirtual.com/index.php/schedules/details/2 then i do not see a simbrief button please setup the module by reading carefully the instructions so we can see what your problem is
  20. Does anyone have the zip file of simpilots phpvms ? it seems that he cleared up he's github Thanks in advance
×
×
  • Create New...