Jump to content

Angello

Members
  • Posts

    55
  • Joined

  • Last visited

Posts posted by Angello

  1. /**
    * These are some options for the ACARS map, you can change here
    *
    * By default, the zoom level and center are ignored, and the map
    * will try to fit the all the flights in. If you want to manually set
    * the zoom level and center, set "autozoom" to false.
    *
    * You can use these MapTypeId's:
    * http://code.google.com/apis/maps/documentation/v3/reference.html#MapTypeId
    *
    * Change the "TERRAIN" to the "Constant" listed there - they are case-sensitive
    *
    * Also, how to style the acars pilot list table. You can use these style selectors:
    *
    * table.acarsmap { }
    * table.acarsmap thead { }
    * table.acarsmap tbody { }
    * table.acarsmap tbody tr.even { }
    * table.acarsmap tbody tr.odd { }
    */
    ?>
    <script type="text/javascript">
    <?php
    /* These are the settings for the Google map. You can see the
    Google API reference if you want to add more options.
    
    There's two options I've added:
    
    autozoom: This will automatically center in on/zoom
    so all your current flights are visible. If false,
    then the zoom and center you specify will be used instead
    
    refreshTime: Time, in seconds * 1000 to refresh the map.
    The default is 10000 (10 seconds)
    */
    ?>
    var acars_map_defaults = {
    autozoom: true,
    zoom: 4,
    center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"),
    mapTypeId: google.maps.MapTypeId.HYBRID,
    refreshTime: 10000
    };
    </script>
    <div class="mapcenter" align="center">
    <div id="acarsmap" style="width:<?php echo Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div>
    </div>
    <?php
    

  2. core/app.config.php

    # Google Map Options

    Config::Set('MAP_WIDTH', '875px');

    Config::Set('MAP_HEIGHT', '650px');

    # Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP

    Config::Set('MAP_TYPE', 'G_SATELLITE_MAP');

    Config::Set('MAP_LINE_COLOR', '#ff0000');

    Config::Set('MAP_CENTER_LAT', '52.308053');

    Config::Set('MAP_CENTER_LNG', '4.764167');

    Config::Set('MAP_ZOOM_LEVEL', 10);

    post-9851-0-71888600-1425122077_thumb.png

    not working

  3. pilot list.tpl

    <br /><br />

    <h3><?php echo $title?></h3>

    <?php

    if(!$allpilots)

    {

    echo 'There are no pilots!';

    return;

    }

    ?>

    <table width="100%" class="ocean_table" id="tabledlist">

    <thead>

    <tr>

    <th>Pilot ID</th>

    <th width="24%">Name</th>

    <th width="16%">Rank</th>

    <th width="17%">Flights</th>

    <th width="18%">Hours</th>

    <th width="19%">Status</th>

    </tr>

    </thead>

    <tbody>

    <?php

    foreach($allpilots as $pilot)

    {

    /*

    To include a custom field, use the following example:

    <td>

    <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>

    </td>

    For instance, if you added a field called "IVAO Callsign":

    echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');

    */

    // To skip a retired pilot, uncomment the next line:

    //if($pilot->retired == 1) { continue; }

    ?>

    <tr>

    <td width="6%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">

    <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>

    </td>

    <td>

    <img src="<?php echo Countries::getCountryImage($pilot->location);?>"

    alt="<?php echo Countries::getCountryName($pilot->location);?>" />

    <?php echo $pilot->firstname.' '.$pilot->lastname?>

    </td>

    <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td>

    <td><?php echo $pilot->totalflights?></td>

    <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>

    <td><?php

    if($pilot->retired == '1')

    {echo '<img src="'.SITE_URL.'/lib/skins/ocean_blue/images/no.png" alt="warning" /> - Retired';}

    else

    {echo '<img src="'.SITE_URL.'/lib/skins/ocean_blue/images/yes.png" alt="warning" /> - Active';}

    ?></td>

    <?php

    }

    ?>

    </tbody>

    </table>

  4. hello friend I am trying to create my own airline, I have installed a template but registration page I get the following error

    Warning: file_exists (): file name is longer than the maximum path length allowed on this platform (4096): home/u848980505/public_html/phpvms / / / lib / skins / FREE /

    As you will understand I am new user and I have not much experience

    thank you very much you sincerely receive

  5. Hello friends, I'm new around here, I just i nstalled the program phpvms and I get the following error in the registration page, I have not much knowledge of computer science, from and a friendly greeting and thanks

    Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (4096): /home/u377726758/public_html/phpvms//lib/skins/crystal/

×
×
  • Create New...