garcez
-
Posts
21 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by garcez
-
-
The page on my site changed its format from one day to the next, would anyone know the motovo for this to occur?
And how to fix it?
It was like this:
It was like this:
-
-
This Registration Error started for no reason whatsoever, no one has done anything on the site this year.
Does anyone know how to solve and the reason for this error?
QuoteRegistration Error
Cannot add or update a child row: a foreign key constraint fails (`iflyvirt_main`.`phpvms_pilots`, CONSTRAINT `phpvms_pilots_ibfk_1` FOREIGN KEY (`code`) REFERENCES `phpvms_airlines` (`code`) ON UPDATE CASCADE)
-
20 minutes ago, web541 said:
You'd have to adjust the schedule_results.php file and add some lines of code there, maybe before this line
https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/templates/schedule_results.php#L18
For example:
<?php $allbids = SchedulesData::getAllBids(); foreach($allbids as $bid) { if ($bid->aircraft == $schedule->aircraft) { continue; } } ?>
That will hide the schedule completely if the aircraft has been booked already, if you want to show the schedule but not show the "Add to bid" button then you will need to add that further down in the file and adjust the code here
https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/templates/schedule_results.php#L43
Thank you I will try and return.
-
Is there a way to prevent the same aircraft from being booked by two pilots at the same time? And what about this aircraft that was reserved to be released again to be reserved only after the flight has ended?
Thanks for any help.
-
-
Charter flights are always "delayed", as Schedules flights are normal in flight status. What should I do for charter flights to have their normal status?
<?php $schedule = SchedulesData::getScheduleByFlight($pirep->code,$pirep->flightnum); $fltime = explode(".", $schedule->flighttime); $minstar = substr($fltime[1],0,1); $minstarmin = substr($fltime[1],1,2); $flmin = $minstar * 10; $flhou = $fltime[0] * 60; $flminu = $flhou + $flmin + $minstarmin; $actfltime = explode(".", $pirep->flighttime); $actminstar = substr($actfltime[1],0,1); $actminstarmin = substr($actfltime[1],1,2); $actflmin = $actminstar * 10; $actflhou = $actfltime[0] * 60; $actflminu = $actflhou + $actflmin + $actminstarmin; if(($flminu - 20) > $actflminu) { echo "<font color='Blue'><b>Early</b></font> "; } elseif (($flminu + 15) < $actflminu) { echo "<font color='#ff0000'><b>Delayed</b></font> "; } else { echo "<font color='#090'><b>On Time</b></font> "; } ?>
-
7 hours ago, shakamonkey88 said:
Also... Did you buy the CC Flight Tracker payware module?
Yes!
-
3 minutes ago, flyalaska said:
You will get a faster response if you post on there forums.
Which forum? Can you send the link?
-
I installed the new smart CARS 2 Web Script today.
When installing it, this error appeared on the
QuoteWarning: Invalid argument supplied for foreach() in /home/iflyvirt/public_html/iCrew/lib/skins/icrewv4/trackflight/flightinfo.php on line 528
Quote<div class="row">
<div class="col-md-12">
<div class="block">
<div class="block-title">
<h3><i class="gi gi-notes_2"></i> ACARS Report <?php echo $acarsdata->flightnum?></h3>
</div>
<table class="table table-responsive" width="100%" cellspacing="0" style="font-size:13px">
<tr>
<td>Time</td>
<td>Altitude</td>
<td>Ground Speed</td>
<td>Latitude</td>
<td>Longitude</td>
</tr>
<?php
foreach($posreports as $thepositions)
{
?>
<tr>
<td><?php echo $thepositions->positiontime; ?></td>
<td><?php echo $thepositions->altitude; ?></td>
<td><?php echo $thepositions->groundspeed; ?></td>
<td><?php echo $thepositions->latitude; ?></td>
<td><?php echo $thepositions->longitude; ?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>Este erro foi solucionado com a ajuda do gio1961
Quote*******
foreach($posreports as $thepositions)
****
To:
if($posreports)
foreach($posreports as $thepositions)However, the coordinates do not appear in the ACARS Flight Tracker, the navdata table is empty. Another error that occurs is that when sending Pirep it accuses "PIREP FILING ERROR" even with this error Pirep is sent to the VA website. Another mistake is that the flight hangs on Live Flights. In other words, it is not automatically deleted from the acarsdata when the Pirep is finished and sent.
With the old smartCARS 2 Web Script Files it worked perfectly. The question is, what is the reason it is no longer working with the new smartCARS 2 Web Script Files?
Thanks in advance for any help.
smartCARS_web_script_files-old.zip smartCARS_web_script_files_new.zip
-
40 minutes ago, gio1961 said:
Yes
The error - Warning: Invalid argument supplied for foreach () script no longer exists, but it is not transmitting the coordinates. Do you know what should be done?
-
1 minute ago, gio1961 said:
Yes
Thanks the error is gone, I will test now to see if you enter the aircraft coordinates correctly in ACARS Flight Tracker.
-
2 minutes ago, gio1961 said:
*******
foreach($posreports as $thepositions)
****
To:
if($posreports)
foreach($posreports as $thepositions)Would be like this?
Quote<div class="row">
<div class="col-md-12">
<div class="block">
<div class="block-title">
<h3><i class="gi gi-notes_2"></i> ACARS Report <?php echo $acarsdata->flightnum?></h3>
</div>
<table class="table table-responsive" width="100%" cellspacing="0" style="font-size:13px">
<tr>
<td>Time</td>
<td>Altitude</td>
<td>Ground Speed</td>
<td>Latitude</td>
<td>Longitude</td>
</tr>
<?php
if($posreports)
foreach($posreports as $thepositions)
{
?>
<tr>
<td><?php echo $thepositions->positiontime; ?></td>
<td><?php echo $thepositions->altitude; ?></td>
<td><?php echo $thepositions->groundspeed; ?></td>
<td><?php echo $thepositions->latitude; ?></td>
<td><?php echo $thepositions->longitude; ?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div> -
I have this problem after updating smartCARS 2 Web Script Files.
QuoteWarning: Invalid argument supplied for foreach() in /home/iflyvirt/public_html/iCrew/lib/skins/icrewv4/trackflight/flightinfo.php on line 528
Please I need help.
Thanks.
Quote<div class="row">
<div class="col-md-12">
<div class="block">
<div class="block-title">
<h3><i class="gi gi-notes_2"></i> ACARS Report <?php echo $acarsdata->flightnum?></h3>
</div>
<table class="table table-responsive" width="100%" cellspacing="0" style="font-size:13px">
<tr>
<td>Time</td>
<td>Altitude</td>
<td>Ground Speed</td>
<td>Latitude</td>
<td>Longitude</td>
</tr>
<?php
foreach($posreports as $thepositions)
{
?>
<tr>
<td><?php echo $thepositions->positiontime; ?></td>
<td><?php echo $thepositions->altitude; ?></td>
<td><?php echo $thepositions->groundspeed; ?></td>
<td><?php echo $thepositions->latitude; ?></td>
<td><?php echo $thepositions->longitude; ?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div> -
Solved
-
I need someone to service this site. Whoever was doing does not answer my calls anymore.
urgently please
-
Have you finished this project?
-
Disappeared, do not have the link anymore?
-
flyalaska Do you have anything that can work with phpVMS v2?
-
Skin is available?
My website page has changed format.
in Support Forum
Posted · Edited by garcez
Phpvms 5 I use the TFDI website to host. I didn't make any changes.
This is the old admin's response: