Jump to content

bass

Members
  • Posts

    240
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by bass

  1. If the author has given to the public use of script, why, then, not take from it all the most useful for us) Sim BRIEF way your is very pleasant to me, but out of all of our pilots VAC use it only me ((((all too lazy to do the registration. https://cloud.mail.r.../Az4S/4M1ae4bHr Script download
  2. Hello everybody. There is free use of the site on which the script has useful addons for us. Help adapt some scripts under phpvms. Dispatch. I found this site on the hosting, it has become a bit errors, but it does not matter. The main thing is to understand that there can be useful to him. I recorded a short video on how to create a briefing on this site. Can we pull this script and adapt it to our system? Script Download http://www.avsim.su/f/raznoe-24/skript-bukinga-54006.html?action=download&hl=
  3. thanks for the link to useful websites, now has more sites to copy)))
  4. Hello everyone, today made all the main types of pages. I liked the austere style "Admin Panel" and I decided to make a template for the site in such a style. As for me the pattern looks good!) Special features - a list of flights that indicates the presence of the aircraft at the departure airport. Are made to the same plane, do not can fly several people. On the "Fleet" aircraft indicated status (busy or free) You can enter the site http://pilot-academy.pe.hu/ demo@demo.ru Password 123456
  5. Thank you! I will do a full update of your site.
  6. Say what is now current version PHPVMS and where to download it? Half modules operating. That's decided to put the current version phpvms And tell me how to install php version?
  7. View how much data the agent gives in report))) It's super easy!!! (I did a test flight)
  8. This is a free app, but it's made under a different system. It would be very good if this agent is alter for PHPVMS There are a lot of advantages. You can specify any options through the admin panel. The speed of taxiing. The rate of decrease Speed up to FL100 Navigation lights Landing weight Meteo data during landing And more.... I'm not good in php, still trying to make this agent and module for phpvms to him. Moreover, all files for it to work is in the public domain.
  9. Hello, there is an interesting and ACARS module to it which can be set up directly criteria and evaluation flight. But he made under another system. Tell me is it possible to adapt our system PHPVMS? This is called client - SIM_ACARS_1.4.0 If someone is interested in the development of a system of phpvms can throw all of the files, although they are online in the public domain.
  10. So I finished the work on his website. If such a pattern is interesting, email me. I changed the top of the page.
  11. That's how this page looks at me. I have not finished work on it. I decided to put on this page all the most useful for easy site navigation.
  12. Long sought help, and could not help me ... in a few weeks I'll make this alteration module now all works))) It shows the free or not the aircraft. And even made a list of flights that shows the status of the aircraft at the airport. Free flight Busy flight Aircraft at the airport there. What would the pilots were unable to do bet on the flight if it has no aircraft.
  13. That's how we derive estimates for their flight in the file pireps_viewall
  14. The paid version kAcars
  15. You do not know how they did ??? This is a very important function. Bet only available aircraft. fleet_list.tpl
  16. I still suffer with this code, now I have it turns out that in one cell at once shows the two values 1. Plane free 2. Aircraft busy I can not do normal code ( <?php // loop to create the column headers $lastbids = SchedulesData::GetLatestBids(); if ($lastbids) { foreach($lastbids as $lastbid) {if($lastbid->registration != $aircraft->registration) { $params = $lastbid->pilotid; $pilot = PilotData::GetPilotData($params); $pname = $pilot->firstname; $psurname = $pilot->lastname; $count = 1; while ($count <= $lastbid):$imges = 'Свободен'; $count++; endwhile; echo $imges; } if($lastbid->registration == $aircraft->registration) { $params = $lastbid->pilotid; $pilot = PilotData::GetPilotData($params); $pname = $pilot->firstname; $psurname = $pilot->lastname; $count = 0; while ($count <= $lastbid):$img = '<div style="color:#FF0000;">Занят</div>'; $count++; endwhile; echo $img; } } } ?>
  17. In this module, there is a very nice feature. Your unit can display the plane at the airport have or do not have it. Tell me, how can this function is set to flight list ??? (Schedule_resilts.tpl) The pilot could not make reservation for a flight, if it is not the plane right now? Schedule_resilts.tpl- I have now installed this code. <?php $pilotid = Auth::$userinfo->pilotid; $last_location = FltbookData::getLocation($pilotid, 1); $last_name = OperationsData::getAirportInfo($last_location->arricao); ?> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> <script src="http://code.jquery.com/jquery-latest.js"></script><!-- Latest compiled and minified Javascript - Modified to clear modal on data-dismiss --> <script type="text/javascript" src="<?php echo SITE_URL;?>/lib/js/bootstrap.js"></script> <br /> <table width="787" class="table table-striped table-bordered table-hover" id="tabledlist"> <?php if(!$allroutes) { ?> <?php } else { ?> <thead> <tr id="tablehead"> <th bgcolor="#C20A1F">Компания</th> <th bgcolor="#C20A1F">Номер рейса </th> <th bgcolor="#C20A1F">Вылет</th> <th bgcolor="#C20A1F">Прибытие </th> <th bgcolor="#C20A1F">Самолет</th> <th bgcolor="#C20A1F">Статус</th> </tr> </thead> <tbody> <?php foreach($allroutes as $route) { if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { if($route->aircraftlevel > Auth::$userinfo->ranklevel) { continue; } } ?> <tr style="height:12px; font-size:14px; font-weight:normal;"> <td width="16.5%" align="left" valign="middle"><div align="center"><img src="<?php echo SITE_URL?>/lib/skins/red/images/airlines/<?php echo $route->code;?>-tail.png" width="50" height="50" align="absbottom" style="vertical-align:top; margin-bottom:10px;"></div></td> <td width="16.5%" align="center" valign="middle"><center><?php echo $route->code . $route->flightnum?></center></td> <td width="16.5%" align="center" valign="middle"><?php $country = OperationsData::getAirportInfo($route->depicao); $imgicao = array_search($country->country, Countries::$countries); ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strtolower($imgicao);?>.png" alt="<?php echo strtolower($imgicao);?>" /> <a href="<?php echo SITE_URL?>/index.php/airports/get_airport?icao=<?php echo $route->depicao ?>" target="_blank"><?php echo $route->depicao;?></a> (<?php echo $route->deptime; ?>) </strong><br /> <?php $departname = OperationsData::getAirportInfo($route->depicao); $depairport = substr($departname->name,0,18);?><?php echo $depairport;?></td> <td width="16.5%" align="center" valign="middle"><?php $country = OperationsData::getAirportInfo($route->arricao); $imgicao = array_search($country->country, Countries::$countries); ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strtolower($imgicao);?>.png" alt="<?php echo strtolower($imgicao);?>" /> <a href="<?php echo SITE_URL?>/index.php/airports/get_airport?icao=<?php echo $route->arricao ?>" target="_blank"><?php echo $route->arricao;?></a> (<?php echo $route->arrtime; ?>) </strong><br /> <?php $arrivename = OperationsData::getAirportInfo($route->arricao); $arrairport = substr($arrivename->name,0,18);?><?php echo $arrairport;?></td> <td width="16.5%" align="left" valign="middle"><?php echo $route->aircraft ;?> <?php echo $route->registration ;?> <div class="vertical-align-text pull-right" style="padding-left:6px;"> <div class="font-small pull-right"><?php echo $route->flighttime; ?>h</div> <div class="font-small"><?php echo round($route->distance,0,PHP_ROUND_HALF_UP); ?>nm</div> </div> </td> <td width="16.5%" align="center" valign="middle"><?php if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <div class="btn btn-danger btn-sm sharp disabled">недоступен</div> <?php } else { ?> <a data-toggle="modal" href="<?php echo SITE_URL?>/action.php/Fltbook" data-target="#confirm" class="btn btn-success btn-md">Свободен</a> <?php } ?> </td> </tr> <td colspan="6"> <table cellspacing="0" cellpadding="0" border="1" id="details_dialog_<?php echo $route->flightnum;?>" style="display:none" width="100%"> <tr> <th align="center" bgcolor="black" colspan="4"><font color="white">Flight Brefing</font></th> </tr> <td><a href="<?php echo url('/schedules/details/'.$route->id);?>"><strong><font color="red">Отправить Fplan в VATSIM </strong></a></td> <tr> <td align="left"> &nbspDeaprture:</td> <td colspan="0" align="left" ><b> <?php $name = OperationsData::getAirportInfo($route->depicao); echo "{$name->name}"?></b></td> <td align="left"> &nbspArrival:</td> <td colspan="0" align="left" ><b> <?php $name = OperationsData::getAirportInfo($route->arricao); echo "{$name->name}"?></b></td> </tr> <tr> <td align="left"> &nbspAircraft</td> <td colspan="0" align="left" ><b> <?php $plane = OperationsData::getAircraftByName($route->aircraft); echo $plane->fullname ; ?></b></td> <td align="left"> &nbspDistance:</td> <td colspan="0" align="left" ><b> <?php echo $route->distance . Config::Get('UNITS') ;?></b></td> </tr> <tr> <td align="left"> &nbspDep Time:</td> <td colspan="0" align="left" ><b> <font color="red"><?php echo $route->deptime?> GMT</font></b></td> <td align="left"> &nbspArr Time:</td> <td colspan="0" align="left" ><b> <font color="red"><?php echo $route->arrtime?> GMT</font></b></td> </tr> <tr> <td align="left"> &nbspAltitude:</td> <td colspan="0" align="left" ><b> <?php echo $route->flightlevel; ?> ft</b></td> <td align="left"> &nbspDuration:</td> <td colspan="0" align="left" ><font color="red"><b> <?php $dist = $route->distance; $speed = 440; $app = $speed / 60 ; $flttime = round($dist / $app,0)+ 20; $hours = intval($flttime / 60); $minutes = (($flttime / 60) - $hours) * 60; if($hours > "9" AND $minutes > "9") { echo $hours.':'.$minutes ; } else { echo '0'.$hours.':0'.$minutes ; } ?> Hrs</b></font></td> </tr> <tr> <td align="left"> &nbspDays</td> <td colspan="0" align="left" ><b> <?php echo Util::GetDaysLong($route->daysofweek) ;?></b></td> <td align="left"> &nbspPrice:</td> <td colspan="0" align="left" ><b> $<?php echo $route->price ;?>.00</b></td> </tr> <tr> <td align="left"> &nbspFlight Type:</td> <td colspan="0" align="left" ><b> <?php if($route->flighttype == "P") { echo'Passenger' ; } if($route->flighttype == "C") { echo'Cargo' ; } if($route->flighttype == "H") { echo'Charter' ; } ?></b></td> <td align="left"> &nbspFlown</td> <td colspan="0" align="left" ><b> <?php echo $route->timesflown ;?></b></td> </tr> <tr> <th align="center" bgcolor="black" colspan="4"><font color="white">Fuel Calculation for <?php $plane = OperationsData::getAircraftByName($route->aircraft); echo $plane->fullname ; ?> </font></th> </tr> <?php $fuelflowB722 = 3800; $fuelhrB722 = 3000; $fuelflowB738 = 1045; $fuelhrB738 = 3970; $fuelflowB744 = 1845; $fuelhrB744 = 7671; $fuelflowB763 = 1405; $fuelhrB763 = 4780; $fuelflowB772 = 2200; $fuelhrB772 = 6400; $fuelflowA30B = 1526; $fuelhrA30B = 8065; $fuelflowA320 = 790; $fuelhrA320 = 3000; $fuelflowA332 = 1433; $fuelhrA332 = 6375; $fuelflowA343 = 1829; $fuelhrA343 = 8300; $fuelflowF100 = 744; $fuelhrF100 = 2136; if($route->aircraft == 'B737-800') { $fuelflow = $fuelflowB738; $fuelhr = $fuelhrB738; } elseif($route->aircraft == 'B747-400') { $fuelflow = $fuelflowB744; $fuelhr = $fuelhrB744; } elseif($route->aircraft == 'B767-300') { $fuelflow = $fuelflowB763; $fuelhr = $fuelhrB744; } elseif($route->aircraft == 'B777-200') { $fuelflow = $fuelflowB772; $fuelhr = $fuelhrB772; } elseif($route->aircraft == 'B727-200') { $fuelflow = $fuelflowB727; $fuelhr = $fuelhrB727; } elseif($route->aircraft == 'A300B2') { $fuelflow = $fuelflowA30B; $fuelhr = $fuelhrA30B; } elseif($route->aircraft == 'A320-200') { $fuelflow = $fuelflowA320; $fuelhr = $fuelhrA320; } elseif($route->aircraft == 'A330-200') { $fuelflow = $fuelflowA332; $fuelhr = $fuelhrA332; } elseif($route->aircraft == 'A340-300') { $fuelflow = $fuelflowA343; $fuelhr = $fuelhrA343; } elseif($route->aircraft == 'F100') { $fuelflow = $fuelflowF100; $fuelhr = $fuelhrF100; } $fldis = $route->distance / 100; $fuelnm = $fuelflow * $fldis; $fltaxi = 200; $flndg = $fuelhr * 3/4; $result = $fuelnm + $flndg + $fltaxi; ?> <tr> <td><a href="<?php echo url('/schedules/details/'.$route->id);?>">Смотреть детали </a></td> <td align="left" colspan="2"> &nbspAverage Cruise Speed:</td> <td align="left" colspan="2"> <b>430 kt/h - 800 km/h</b></td> </tr> <tr> <td align="left" colspan="2"> &nbspFuel Per 1 Hour:</td> <td align="left" colspan="2"> <b><?php echo $fuelhr ;?> kg - <?php echo ($fuelhr *2.2) ;?> lbs</b></td> </tr> <tr> <td align="left" colspan="2"> &nbspFuel Per 100 NM:</td> <td align="left" colspan="2"><b> <?php echo $fuelflow ;?> kg - <?php echo ($fuelflow *2.2) ;?> lbs</b></td> </tr> <tr> <td align="left" colspan="2"> &nbspTaxi Fuel:</td> <td align="left" colspan="2"><b> <?php echo $fltaxi ;?> kg - <?php echo ($fltaxi *2.2) ;?> lbs</b></td> <tr> <td align="left" colspan="2"> &nbspMinimum Fuel Requiered At Destination:</td> <td align="left" colspan="2"><b> <?php echo $flndg ;?> kg - <?php echo ($flndg *2.2) ;?> lbs</b></td> </tr> <tr> <td align="center" colspan="4"><font color="blue" size="4">Total Estimated Fuel Requiered For This Route: <?php echo round($result, 1) ;?> kg - <?php echo round(($result *2.2), 1) ;?> lbs</font></td> </tr> <tr> <td align="center" colspan="4"><font size="3" color="red"><b>TO PREVENT ANY MISCALCULATION ADD 500 KG EXTRA!</b></font></td> </tr> </td> </tr> <tr> <th align="center" bgcolor="black" colspan="4"><font color="white">Flight Map</font></th> </tr> <tr> <td width="100%" colspan="4"> <?php $string = ""; $string = $string.$route->depicao.'+-+'.$route->arricao.',+'; ?> <img width="100%" src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=680x200&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /></tr> </td> </table> </td> <div class="modal fade" id="confirm"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-body"> </div> </div> </div> </div> <?php /* END OF ONE TABLE ROW */ } } ?> </tbody> </table> </div> <hr> <center> <a href="<?php echo url('/Fltbook') ;?>"></a> </center></div> <br />
  18. Template deleted from the distribution, so there was no offense)))
  19. Sorry template is removed at the request of the legal owner of some design pieces.
  20. If you have any problems, I'll take a distribution pattern at all, so there was no problem.
  21. I'm just like you are giving away free to use this template for all who want it.
  22. Cast your template. Unfortunately not able to realize many of the ideas have been little to understand in php. Use someone like that. Details Download
  23. As in the code to add the variable "Airplane free"? This code is now displays "Airplane BUSY" and when the plane free, in the table there is no output. <?php // loop to create the column headers $lastbids = SchedulesData::GetLatestBids(); if ($lastbids) { foreach($lastbids as $lastbid) { if($lastbid->registration != $aircraft->registration) { $count = 0; while ($count <= $lastbid): $img = '--'; $count++; endwhile; } if($lastbid->registration == $aircraft->registration) { $params = $lastbid->pilotid; $pilot = PilotData::GetPilotData($params); $pname = $pilot->firstname; $psurname = $pilot->lastname; $count = 0; while ($count <= $lastbid): $img = 'Занят'; $count++; endwhile; echo $img; } } } ?>
  24. Help me fix this code to the page: schedule_results.tpl <?php if(Config::Get('DISABLE_SCHED_ON_BID') == true && $schedule->bidid != 0) { if($schedule->online){ ?> <strong style="color:royalblue;font-weight:normal;">Вполете</strong> <?php }else{ ?> <strong style="color:#FF0000;font-weight:normal;">Забронирован</strong> <?php } } elseif($schedule->aircraft_count == 0) { ?> <strong style="color:#FF0000;font-weight:normal;">Нет бортов </strong> <?php } else { ?> <a data-toggle="modal" href="<?php echo SITE_URL?>/action.php/Fltbook" data-target="#confirm" class="btn btn-success btn-md">Свободен</a> <?php } ?>
×
×
  • Create New...