Jump to content

Jakubovsky

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by Jakubovsky

  1. Warning: fopen(vatsimdata.txt) [function.fopen]: failed to open stream: Permission denied in /1/www/smart-express.info/core/modules/Vatsim/Vatsim.phpon line 33

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /1/www/smart-express.info/core/modules/Vatsim/Vatsim.php on line 34

    Warning: fclose() expects parameter 1 to be resource, boolean given in /1/www/smart-express.info/core/modules/Vatsim/Vatsim.php on line 35

    Warning: file(vatsimdata.txt) [function.file]: failed to open stream: No such file or directory in /1/www/smart-express.info/core/modules/Vatsim/Vatsim.phpon line 38

    Warning: Invalid argument supplied for foreach() in /1/www/smart-express.info/core/modules/Vatsim/Vatsim.php on line 41

  2. Hello,

    Trying find solution...

    545268ebfde1103fd735b17270d7a77c.png

    on profile_main.tpl in "Latset Flight" section code is:

    <?php echo $report->aircraft; ?>
    

    Its show me: number "18"

    and second...

    "Next Flight"

    on profile_main.tpl code inserted to table is:

    <td colspan="5" rowspan="2"><?php Template::Show('core_bids.tpl'); ?></td>
    

    and core_bids.tpl is:

    <style type="text/css">
    .table_back {
    background-color: #CCC;
    }
    </style>
    <?php
    if(!$bids)
    {
    echo '<p align="center">You have not bid on any flights</p>';
    return;
    }
    ?>
    <table>
    <thead>
    <tr class="table_back">
    <th width="25%"><div align="center"><strong>Flight</strong></div></th>
    <th width="25%"><div align="center"><strong>Departure</strong></div></th>
    <th width="25%"><div align="center"><strong>Arrival</strong></div></th>
    <th width="25%"><div align="center"><strong>Aircraft</strong></div></th>
    <th width="25%"><div align="center"><strong>Distance</strong></div></th>
    </tr>
    </thead>
    <tbody>
    <?php
    foreach($bids as $bid)
    {
    ?>
    <tr id="bid<?php echo $bid->bidid ?>">
    <td><div align="center"><?php echo $bid->code . $bid->flightnum; ?></div></td>
    <td align="center"><div align="center"><?php echo $bid->depicao; ?></div></td>
    <td align="center"><div align="center"><?php echo $bid->arricao; ?></div></td>
    <td><div align="center"><?php echo $bid->aircraft; ?> (<?php echo $bid->registration?></div></td>
    <td><div align="center"><?php echo $bid->distance;?></div></td>
    </tr>
    <?php
    }
    ?>
    </tbody>
    </table>
    

    Bids allredy BID...

  3. Hello,

    inetersted help with code source.

    1) schedule routes

    For exmp. We have flight ABC0001 from AAAA to BBBB only for one a/c, can its possible choise with wich one a/c operate this schedule route.

    2) insert on schedule alternative airport with route. AAAA-BBBB with alternative CCCC and route from BBBB to CCCC is :)

    thx.

    Sergejs

×
×
  • Create New...