Jump to content

Lausitzaircargo

Members
  • Posts

    25
  • Joined

  • Last visited

Posts posted by Lausitzaircargo

  1. @Vangelishave tried a look for my Request? I think so. The Button worked. 

     

    But i have a another Question:

     

    When i will Generate my Dispatch i become the following Answer back:

     

    Fatal Error: Unknown aircraft type

     

    I have add a ATR42-500 to my Fleet. Can you help me again or have anybody a Tutorial. I dont know what i have to do to add a fake Aircraft or whatever. Im a Beginner in Coding 

     

    Thanks for your help.

     

    Cheers

  2. ok on the default Template thats ok. 

     

    Thats my Briefing on the skin OceanBlue

     

    Quote

    <br /><br />
    <script src="http://skyvector.com/linkchart.js"></script>
    <input type="button" onclick="simbriefsubmit('http://www.test.lausitz-aircargo.de/index.php/SimBrief');" style="font-size:20px" value="Generate Simbrief">
    <br /><br />
    <table width="98%" align="center" cellpadding="4">
        <!-- Flight ID -->
        <tr style="background-color: #2f70a9; color: #eeeeee;">
            <td colspan="2">Flight</td>
        </tr>
        <tr>
            <td colspan="2">
            <?php echo $schedule->code.$schedule->flightnum; ?>
            </td>
        </tr>

        <tr  style="background-color: #2f70a9; color: #eeeeee;">
            <td>Departure</td>
            <td>Arrival</td>
        </tr>

        <tr>
            <td width="50%" ><?php echo "{$schedule->depname} ($schedule->depicao)"; ?><br />
                <a href="https://pilotweb.nas.faa.gov/geo/icaoRadius.html?icao_id=<?php echo $schedule->depicao?>&radius=2"
                    target="_blank">Click to view NOTAMS</a>
            </td>
            <td width="50%" ><?php echo "{$schedule->arrname} ($schedule->arricao)"; ?><br />
                <a href="https://pilotweb.nas.faa.gov/geo/icaoRadius.html?icao_id=<?php echo $schedule->arricao?>&radius=2"
                    target="_blank">Click to view NOTAMS</a></td>
        </tr>

        <!-- Times Row -->
        <tr style="background-color: #2f70a9; color: #eeeeee;">
            <td>Departure Time</td>
            <td>Arrival Time</td>
        </tr>
        <tr>
            <td width="50%" ><?php echo "{$schedule->deptime}"; ?></td>
            <td width="50%" ><?php echo "{$schedule->arrtime}"; ?></td>
        </tr>

        <!-- Aircraft and Distance Row -->
        <tr style="background-color: #2f70a9; color: #eeeeee;">
            <td>Aircraft</td>
            <td>Distance</td>
        </tr>
        <tr>
            <td width="50%" ><?php echo "{$schedule->aircraft}"; ?></td>
            <td width="50%" ><?php echo "{$schedule->distance}"; ?></td>
        </tr>

        <tr style="background-color: #2f70a9; color: #eeeeee;">
            <td>Departure METAR</td>
            <td>Arrival METAR</td>
        </tr>
        <tr>
            <td width="50%" ><div id="<?php echo $schedule->depicao; ?>" class="metar">Getting Airport METAR</div> <br />
                <a href="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/weather" target="_blank">
                View Weather Details</a>
            </td>
            <td width="50%" ><div id="<?php echo $schedule->arricao; ?>" class="metar">Getting Airport METAR</div><br />
                <a href="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/weather" target="_blank">
                View Weather Details</a></td>
        </tr>

        <!-- Route -->
        <tr style="background-color: #2f70a9; color: #eeeeee;">
            <td colspan="2">Route</td>
        </tr>
        <tr>
            <td colspan="2">
            <?php
            # If it's empty, insert some blank lines
            if($schedule->route == '')
            {
                echo '<br /> <br /> <br />';
            }
            else
            {
                echo strtoupper($schedule->route);
            }
            ?>
            </td>
        </tr>

        <!-- Notes -->
        <tr style="background-color: #2f70a9; color: #eeeeee;">
            <td colspan="2">Notes</td>
        </tr>
        <tr>
            <td colspan="2" style="padding: 6px;">
            <?php
                # If it's empty, insert some blank lines
                if($schedule->notes == '')
                {
                    echo '<br /> <br /> <br />';
                }
                else
                {
                    echo "{$schedule->notes}";
                }
            ?>
            </td>
        </tr>


    </table>

    <table width="98%" align="center" padding="2">
    <tr style="background-color: #2f70a9; color: #eeeeee; padding: 5px;">
        <td>Additional Data</td>
    </tr>
    <tr>
        <td><a href="http://flightaware.com/analysis/route.rvt?origin=<?php echo $schedule->depicao?>&destination=<?php echo $schedule->arricao?>">View recent IFR Routes data</a></td>
    </tr>
    </table>

    <h3>Procedures and Information</h3>
    <table width="98%" align="center">

        <tr style="background-color: #2f70a9; color: #eeeeee;">
            <td>Charts for <?php echo $schedule->depicao?></td>
            <td>Charts for <?php echo $schedule->arricao?></td>
        </tr>
        <tr align="center">
            <td width="50%" valign="top">
                <a href="http://www.airnav.com/airport/<?php echo $schedule->depicao?>#ifr" target="_blank">
                <img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/APD/AIRPORT+DIAGRAM/png"
                    width="387px" height="594px" alt="No chart available" /></a>
            </td>
            <td width="50%" valign="top">
                <a href="http://www.airnav.com/airport/<?php echo $schedule->arricao?>#ifr" target="_blank">
                <img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/APD/AIRPORT+DIAGRAM/png"
                    width="387px" height="594px" alt="No chart available" /></a>
            </td>

        </tr>
    </table>

    <h3>Weather</h3>
    <div align="center">
        <p><img src="http://flightaware.com/resources/wx/us_depiction.gif" /></p>
        <p><img src="http://flightaware.com/resources/wx/surface_analysis.gif" /></p>
        <p><img src="http://flightaware.com/resources/wx/national_radar.gif" /></p>
        <p><img src="http://flightaware.com/resources/wx/us_high_level_weather_12z.gif" /></p>
        <p><img src="http://flightaware.com/resources/wx/severe_outlook_day_1.gif" /></p>
        <a href="http://flightaware.com/resources/weather_maps/" target="_blank">View additional weather graphs</a>
    </div>
    <div align="right" style="font-size: small;">Data Courtesy of <a href="http://flightaware.com" target="_new">FlightAware</a></div>
    <br />

     

     

  3. 21 hours ago, web541 said:

    It's working fine for me (unless you have fixed it already). It's most likely a bootstrap conflict (see gio1961's linked post above) or a jQuery conflict, so you'd have to fiddle around with what and where you have them linked (and if you have them linked in your skin, take them out of the Fltbook/schedule_results.php page).

    If you are using Bootstrap 4 (which I don't think you are), then it will require some tweaking as I haven't made it compatible yet.

    Hi 

    Yes its working with the Template what you have seen. On the other Template blueIce its not working. I think its a problem with another Popup from the Login/Logout System

    At the Moment im happy

     

    Cheers

  4. 2 minutes ago, gio1961 said:

     

    I will be hard to understand but the website ( lausitz-aircargo.de ) was created with VAM and the test site ( test://lausitz-aircargo.de ) does not open.

    However do as Proavia tells you. If it doesn't work with the Crystal skin it is a problem of the module and, if I remember correctly, it is a problem with javascript (javascript conflict of the module with the skins)..

     

    Yes the old Site is based on VAM. Vam if stil not upgrading anything. So i will go back to phpvms

     

    And the Test Site its working i have checked this http://test.lausitz-aircargo.de/index.php/

     

     

  5. On 2/22/2020 at 10:56 PM, Strider said:

    I have released version 1.4 You can now include flight numbers of the airline operating the flight. So if you have a codeshare flight and have it under your own companies flight number you can show the flight number of the operating company.I have also removed the image inputting input box in the add a new codeshare, as it is not required, as the airline code will suffice.

     

    Download: https://github.com/Strider2/codeshare

    Hi 

     

    i dont become the Image working. Anybode a Idea.... And no i will no change to tpl. I need Assistance for phpversion

     

    Thanks

  6. Hello Friends,

     

    i have installed the blueicev2 skin and all the modules where coming with the file. When i will update my Stats.data.class i will become the following Failure.

     

    "Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /www/htdocs/w01501e7/test.lausitz-aircargo.de/core/common/StatsData.class.php on line 879"

     

    on this line i have set up the following code from the Documentation 

     

    public static function get_stats_by_cur_month($howmany) 	public static function TotalPilotMiles($pilotid)
    {
      $key = 'total_miles';
      $key .= '_'.$pilotid;
    
      $total = CodonCache::read($key);
    
      if($total === false)
      {
       $total = 0;
       $sql = "SELECT * FROM ".TABLE_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted=1";
       $results = DB::get_results($sql);
       if($results) { foreach($results as $result) { $total += $result->distance; } }
    
       CodonCache::write($key, $total, '15minute');
      }
      return $total;
    }
    
       public static function getpilotsbestlanding($pilotid)
        {
                $sql = "SELECT landingrate FROM ".TABLE_PREFIX."pireps WHERE pilotid = '$pilotid' AND landingrate < 0 ORDER BY landingrate DESC LIMIT 1";
    
                $result = DB::get_row($sql);
    
                if(!$result)
                {
                    return 0;
                }
    
                $result = $result->landingrate;
    
            return $result;
        }
    
            public static function getpilotsworselanding($pilotid)
        {
            $sql = "SELECT landingrate FROM ".TABLE_PREFIX."pireps WHERE pilotid = '$pilotid' AND landingrate < 0 ORDER BY landingrate ASC LIMIT 1";
    
                $result = DB::get_row($sql);
    
                if(!$result)
                {
                    return 0;
                }
    
                $result = $result->landingrate;
    
            return $result;
    }

    I´m not the best Coder. So i hope now of help from you Guys.

  7. 1 minute ago, servetas said:

    Could you please explain to us what would you like to display in your frontpage? Based on the template you are trying to display, it seems that you are trying to show all of the top pilot details. What is on your mind?

    Hy

    i will display the Toppilot of the Month, the Top Pilot (Hours Flown) and the Top Pilot (Miles flown)

    And all 3 Things i will add in a table and will display on the frontpage.

  8. Hello Guys

    after a long time without coding i need assistance on this module.

    alle files are on the server and the SQL was included on the Database. Now i will show the Toppilots on the frontpage. Heres if i was maded to come up to the Site.

    <?php Template::Show('tp_index.php'); ?>

    when i look at the Site i will see this Error Message

     

    Notice: The template file "/www/htdocs/w01501e7/lausitzair/core/templates/tp_index.php" doesn't exist in /www/htdocs/w01501e7/lausitzair/core/classes/TemplateSet.class.php on line 231

    My Question: What have i to do, to display the Toppilot on the frontpage ?

    Many thanks fpor your help.

     

  9. Thats not the correct Answer. I wil lhave not the Livemap on the Mainsite, i will have the Weather map in this topic on the frontpage_main... The Livemap i have already.....

     

    So the next please. I dotn know where i can figure it out

×
×
  • Create New...