Jump to content

shiljo

Members
  • Posts

    88
  • Joined

  • Last visited

Posts posted by shiljo

  1. For some reason kAcars stopped to work, all worked fine until 22.12.13. but now, i didnt work nothin on site regarding some changes, and still it doesnt work, hmm...was working fne all year...someone? thank you

    www.croatiacargo.com

  2. Hi! I would like someone to solve me my problem. I have 2 airlines inside group, one cargo, one passenger, how can i show those two on statistics? And does all pilots which are flying first or second, must be on either of VA, for gaining hours, or they got hours regarding they VA assigment on roster? Question is little bit mixed up and confusing, but i think you will get my point ;) S for example...

    OK i got something solved. So if any pilots flying any airline, his FH and flight are taken in count for roster. But still i need statistic for all passenger and cargo to be counted, any help code...

    this is mine now...

    <h3>Airline Stats</h3>
    <div class="box">
    <strong>Total Pilots: </strong><?php echo StatsData::PilotCount(); ?><br>
    <strong>Total Flights: </strong><?php echo StatsData::TotalFlights(); ?><br>
    <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?> FH<br>
    <strong>Total Cargo Carried: </strong><?php echo number_format(StatsData::totalpaxcarried()); ?> kg<br />
    <strong>Total Schedules: </strong><?php echo StatsData::totalschedules(); ?><br>
    <strong>Total Aircraft In Fleet: </strong><?php echo StatsData::totalaircraftinfleet(); ?><br />
    <strong>Flights Today: </strong><?php echo StatsData::totalflightstoday(); ?><br>
    </div>
    

  3. I just cant get it worked, heres my code can anyone edited for me, i just cant get it normnal ...

    <?php
    /**
    Module Created By Vansers
    This module is only use for phpVMS (www.phpvms.net) - (A Virtual Airline Admin Software)
    @Created By Vansers
    @Copyrighted @ 2011
    @Under CC 3.0
    @http://creativecommons.org/licenses/by-nc-sa/3.0/
    // Version 1.0 (September 7.12) - Module Created
    **/
    ?>
    <h3><?php echo SITE_NAME?>'s Fleet Tracker For <?php echo $aircraft->fullname;?> (<?php echo $aircraft->registration;?>)</h3>
    <br />
    <h2>Aircraft General Info</h2>
    <center>
    <?php if(!empty($aircraft->imagelink))
    {
    echo '<img src="'.$aircraft->imagelink.'" /><br /><br />';
    }
    else
    {
    echo 'No Aircraft Image Yet!';
    }
    ?>
    </center>
    <br />
    <strong>ICAO: </strong><?php echo $aircraft->icao;?>
    <br />
    <strong>Name: </strong><?php echo $aircraft->name;?>
    <br />
    <strong>Fullname: </strong><?php echo $aircraft->fullname;?>
    <br />
    <strong>Registration: </strong><?php echo $aircraft->registration;?>
    <br />
    <strong>Range: </strong><?php echo $aircraft->range;?>
    <br />
    <strong>Weight: </strong><?php echo $aircraft->weight;?>
    <br />
    <strong>Cruise: </strong><?php echo $aircraft->cruise;?>
    <br />
    <strong>Passengers: </strong><?php echo $aircraft->maxpax;?>
    <br />
    <strong>Cargo: </strong><?php echo $aircraft->maxcargo;?>
    <br />
    <h2>Aircraft Stats</h2>
    <strong>Total Miles: </strong><?php echo vFleetTrackData::countMiles($aircraft->id);?>
    <br />
    <strong>Total Hours: </strong><?php echo vFleetTrackData::countHours($aircraft->id);?>
    <br />
    <strong>Total Flights: </strong><?php echo vFleetTrackData::countFlights($aircraft->id);?>
    <br />
    <?php if(count(vFleetTrackData::CargoAircraft($aircraft->id)) > 0)
    {
    ?>
    <?php echo vFleetTrackData::countPassengers($aircraft->id);?> kg
    <?php
    }
    else
    {
    ?>
    <?php echo vFleetTrackData::countPassengers($aircraft->id);?> kg
    <?php
    }
    ?>
    <h2>Latest 15 Flights List</h2>
    <?php MainController::Run('vFleetTracker', 'buildLastFlightTable', $aircraft->id, 15);?>
    <h2>Latest 15 Flights Map</h2>
    <div class="mapcenter" align="center">
    <div id="routemap" style="width: 100%; height: 520px;"></div>
    </div>
    <script type="text/javascript">
    var options = {
    mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var map = new google.maps.Map(document.getElementById("routemap"), options);
    var flightMarkers = [];
    <?php
    $shown = array();
    $pirep_list = vFleetTrackData::getLastNumFlightsAircraft($aircraft->id, 15);
    foreach($pirep_list as $pirep) {
    // Dont show repeated routes 
    if(in_array($pirep->code.$pirep->flightnum, $shown))
     continue;
    else
     $shown[] = $pirep->code.$pirep->flightnum;
    
    if(empty($pirep->arrlat) || empty($pirep->arrlng)
     || empty($pirep->deplat) || empty($pirep->deplng))
    {
     continue;
    }
    ?>
    dep_location = new google.maps.LatLng(<?php echo $pirep->deplat?>, <?php echo $pirep->deplng?>);
    arr_location = new google.maps.LatLng(<?php echo $pirep->arrlat?>, <?php echo $pirep->arrlng?>);
    flightMarkers[flightMarkers.length] = new google.maps.Marker({
     position: dep_location,
     map: map,
     title: "<?php echo "$pirep->depname ($pirep->depicao)";?>"
    });
    flightMarkers[flightMarkers.length] = new google.maps.Marker({
     position: arr_location,
     map: map,
     title: "<?php echo "$pirep->arrname ($pirep->arricao)";?>"
    });
    var flightPath = new google.maps.Polyline({
     path: [dep_location, arr_location],
     geodesic: true,
     strokeColor: "#FF0000", strokeOpacity: 0.5, strokeWeight: 2
    }).setMap(map);
    <?php
    }
    ?>
    if(flightMarkers.length > 0)
    {
    var bounds = new google.maps.LatLngBounds();
    for(var i = 0; i < flightMarkers.length; i++) {
     bounds.extend(flightMarkers[i].position);
    }
    }
    map.fitBounds(bounds);
    </script>
    
    <h2>Available Flights</h2>
    <?php MainController::Run('vFleetTracker', 'buildFlightsAvbTable', $aircraft->id);?>
    

    Thank you very much

  4. Hi!

    I wonder is there any way to have total cargo carried under statistics on frontpage..heres the code, pls help ;)

    <h3>Airline Stats</h3>
    <div class="box">
    <strong>Total Pilots:</strong><?php echo StatsData::PilotCount(); ?><br>
    <strong>Total Flights: </strong><?php echo StatsData::TotalFlights(); ?><br>
    <strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?><br>
    <strong>Total Schedules: </strong><?php echo StatsData::totalschedules(); ?><br>
    <strong>Flights Today: </strong><?php echo StatsData::totalflightstoday(); ?><br>
    <br>
    <?php
    $cws = new CodonWebService();
    $xml = $cws->get('http://www.vacentral.net/airline/xml/ccg_croatiacargo');
    $xml = simplexml_load_string($xml);
    echo "<div style='text-align: center; font-weight: bold; font-size: 14px;	 
    						    color: #000080'>We are {$xml->rank}. on vaCentral</div>";
    ?>
    

    Something to add...

  5. Hi to all!

    need some help...welll i would love to link only pilot ID not whole name in recent pilots.tpl , and my code is :

    <?php
    foreach($pilots as $pilot)
    {
    ?>
    <p><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' - ' .$pilot->firstname . ' ' . $pilot->lastname; ?></a><img src="<?php echo Countries::getCountryImage($pilot->location);?>" align="right" alt="<?php echo Countries::getCountryName($pilot->location);?>" width="16" height="11" /><br /></p>
    <?php
    }
    ?>
    

    So anyone can help me...i tried to mess up with codes here, but cant figure it out...well im trying and learning ;) Thank you very much

    Shiljo

  6. Hi all fellow pilots and coders ;)

    CROATIA Cargo is dedicated cargo VA form Croatia. We are operating on IVAO network, but all other variants are included...VATSIM, offline...We also have our military wing, serving NATO forces on its operations, flying their A/C under our commands ETC. Feel free to join us, help us improve site, and have fun while flying on different missions online, offline...just fly ;)

    All staff is needed in order to improve our appearence, as my php knowledge isnt so much...all site is made on try-error system...;) Feel free to comment...

    thank you for your patience, help and off course...glad o be part of phpVMS comunity...one hell of a system ;)

    Bye for now...

    CEO CROATIA Cargo VA

  7. Sure, flights are set to cargo...in schedule...set to cargo...in aircraft...passengers leave blank or set to zero...everything is like it should be...ill read the posts, i will try to fix that like its writing...thank you...and what about other stuff, total cargo carried? How to put thast inside?

  8. Settings in admin panel are all to cargo...for all A/C...And only 737 it shows passangers in dtails not cargo...So i was migrating in the meanwhile on different script but would love to get back to this one if this problem can be solved...somehow script recognize 737 as passangers only , regarding admin settings under fleet...also i would love to have MTOW in table and cargo carried...that would be nice..if i only know how to code, i would make miracles wit this...;)

    Thank you for your help...i will learn php online...i hope...

  9. Hi!

    I have seaerched for it, but cant find it exactly....so i want pilot roster to be without hubs, is it possible...Ive seen few codes, but i dont get it...i treied everything but says no pilots pls help me ;)

    thank you

×
×
  • Create New...