Jump to content

Bueno93

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by Bueno93

  1. very nice skin.

    I also have a little problem with the menu not keeping it on the right place.

    When i look on a 23" screen and have the left: 780 all is ok.

    When i look on a 19" screen and have the left: 780 all is not ok and the menu goes way to the right.

    Is there a way to set the menu on a fixed position independent of the screen size?

    Further the skin is very nice :)

    Sorry guys, I need to bring up the topic again, as I have the same problem here. Is there any possibility to fix the menu bar?

  2. Wow, many thanks for your fast answer. I thought of this kind of code, but it doesn't work at the moment.

    I use the code like this:

    <?php
    if ($route->flighttype == "P")
    {
     <img src="http://www.1234.com/images/misc/1234.png"/>
    }
    else if($route->flighttype == "C")
    {
     <img src="http://www.1234.com/images/misc/5678.png"/>
    }
    else
    {
     <img src="http://www.1234.com/images/misc/910.png"/>
    }?>

    I get the following message: Parse error: syntax error, unexpected '<' in /hp/bh/ad/yc/www/core/templates/schedule_results.tpl on line 121

    Is the embedding of the image wrong?

  3. Yeah, you're right. One topic solved, the next follows. Hope this will be the last one for a while ;).

    We'll have a look at the schedule_results.tpl, where the problem is the following:

    In front of every resulting flight I have put a picture (I mean the Aero Lloyd logo ; see below). I now intend to show this picture for every flight marked as passenger flight. For flights, marked as charter, I'd like to have another picutre. How do I handle with this "if"-issue to determine the appereance of each picture?!

    probresults.PNG

    I hope the problem is clear, otherwise just ask me.

    Maybe there's someone in this holy programming-world, who can help me :). I'd really appreciate this, as I don't know what to do.

    Kind regards from Germany

    Bueno

  4. Good evening,

    I need to bring up this topic once again. My question is the following: Where can I find the code for the format of the time, that is shown? (e.g. the flighttime)

    I'd like to change the format from 0:3 into 00:30 hours.

    Any possibility to do this? I didn't find a code until now.

    Thank you very much

    BR

    Bueno

  5. Hey guys,

    I'm struggeling with the following code, so I really need your help. I'd like to have the abilty to sort my results from searching the flightplan, which should be the schedule_results.tpl. So I tried to use the Tablesorter 2.0 jQuery plugin, that someone posted recently (see here:jQuery plugin:Tablesorter 2.0).

    The required jquery-latest.js and jquery.tablesorter.js are located in www.mysite.com/www/lib/skins/crystal/js. The code, which is just a result from following the installing instructions, looks like this:

    <script type="text/javascript" src="www.mysite.com/www/lib/skins/crystal/js/jquery-latest.js"></script> 
    <script type="text/javascript" src="www.mysite.com/www/lib/skins/crystal/js/jquery.tablesorter.js">
    $(document).ready(function() 
       { 
           $("#myTable").tablesorter(); 
       } 
    ); </script> 
    <?php
    if(!$allroutes)
    {
       echo '<p align="center">No routes have been found!</p>';
       return;
    }
    ?>
    
    
    
    <table width="100%" id="myTable" class="tablesorter">
    <tr>
       <th>Flug</th>
       <th>Startort</th>
       <th>Zielort</th>
       <th>Startzeit</th>
       <th>Flugzeit</th>
       <th>Flugzeug</th>
       <th>Buchen</th>
       </tr>
    <tbody>
    
    // I left the options out here!
    
    ?>
    <tr>
       <td>
           <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?></a>
           <?php
           # Note: this will only show if the above code to
           #    skip the schedule is commented out
           if($route->bidid != 0)
           {
               echo 'This route has been bid on';
           }
           ?>
       </td>
       <td><?php echo ''.$route->depicao.''?></td>
       <td><?php echo ''.$route->arricao.''?></td>
       <td><?php echo $route->deptime;?></td>
       <td><?php echo $route->deptime;?></td>
       <td><?php echo $route->aircraft; ?></td>
       <td><?php 
           # Don't allow overlapping bids and a bid exists
           if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
           {
           ?>
         <a id="<?php echo $route->id; ?>2" class="addbid" 
                   href="<?php echo actionurl('/schedules/addbid');?>">Buchen</a>
         <?php
           }
           else
           {
               if(Auth::LoggedIn())
               {
                ?>
         <a id="<?php echo $route->id; ?>2" class="addbid" 
                       href="<?php echo url('/schedules/addbid');?>">Buchen</a>
         <?php             
               }
           }        
           ?>
           </td>
       </tr>
    <?php
    /* END OF ONE TABLE ROW */
    }
    ?>
    </tbody>
    </table>
    <hr>
    
    

    Using this code, nothing happens. The table is just the same, like I had before.

    I would really appreciate, if someone knows, what's wrong with the code, 'cause I really have no idea left.

    Thank you

    Kind Regards

    Tim

  6. Hi simpilot,

    thank you once again for a very nice add-on ;-).

    I'd just like to know, if you can add the value daysofweek. Would be some kind of this, wouldn't it?

    <select class="search" name="daysofweek">
                       <option value="">All days</option>
                       <?php
                           foreach ($daysofweek as $days)
                               {echo '<option value="'.$days->name.'">'.$days->name.'</option>';}
                       ?>
                   </select>
    

    But this doesn't work for me. Any possibility to get it work? I guess it's something in here "$days->name".

    Regards

  7. Hey, the flight hours are hours.minutes - if you enter hours:minutes, it will accept that too (it's automatically translated into the hours.minutes)

    Hi Nabeel,

    is there any possibility to avoid this translation into hours.minutes, because in some situation (e.g. the briefing) the value flighttime, shown as 3.1, looks quite strange.

    Regards

  8. Hi again,

    I have just two short questions. Well at first, I'd like to know, if there's any possibilty to change the format of the hours. Normally it is 0.3 for 30 minutes. Is there any way to change it into 00:30? Or 02:40 for 2 hours and 40 minutes?

    The other question is, if I can change the title of the page somewhere. So, let me just explain ;-). If I watch a profile of a pilot the browser shows a title for the page, above. E.g. Profile for XY, or if I watch the schedules it says Schedules. Can I change these names anywhere?

    Thank you in advance

    and kind regards

    Bueno

  9. Hi,

    as usually a very nice add-on ;). Just one short question: The old stats start with January 1970. Where can I edit this date & the names for the months. As we are a German airline we'd like to have the names in German, but I didn't find a way to change the names.

    Once again thank you for those useful add-ons.

    Kind regards

    Bueno

  10. Well,

    I found the doc refering to the topic, but at all I don't understand how to add the parameters. So, I guess it's all in this:

    $params = array(

    's.depicao' => array ('KJFK', 'LFPG'),

    's.arricao' => array ('KBOS', 'KIAD'),

    's.enabled' => 1,

    But where exactly do I have to add these lines so that they will work?

    Regards

    Tim

  11. Good evening again,

    as I'm trying to make my site as comfortable as possible I'm planning to add a search filter. Unfortunately I'm having great plans without having the right PHP knowledge (stupid, eh? ;)), so I have to rely on you as far as it is possible.

    Well, the search filter should have a few functions. At first you should be able to search with different values.

    Starting with entering a departure or a destination ICAO (e.g. EDDL would show all [every day] departures from Dusseldorf, just entering ED would show all departures out of Germany). The same for the destination. These two values combined should show a route between the two ICAOs.

    Further on you should be able to restrict the search, as choosing a certain aircraft operating on this route and a restriction on the flightdays, too. All these values should be linked.

    Example (1):

    Departure: ED

    Aircraft: 737-700 selected

    Day: Tuesday

    -> Should show all flights out of Germany operated by an 737 on Tuesday.

    Example (2):

    just A320 as aircraft selected

    -> Should show EVERY flight operated with an A320.

    So, every value should be usable on it's own but also linked with the others.

    (As perfection there should be a sort function available for the schedule results. Like departuretime etc.)

    At all this is just an idea, for which I didn't find a solution yet. I'm also not sure if it's possible to realise this "dream" with phpVMS, but I would love the one, who could show me.

    I hope this request is not too high, but I really need help in such situations.

    Have a nice evening

    Kind regards from Germany

  12. Good evening,

    Problem solved!! Just one file missing. Sorry about this. Have a nice evening.

    I already read some threads about the problem before, but nothing helped to solve my problem. So, let me just describe. If I am going to bid a flight (using Firefox) I click on "Add to bid" but nothing happens. No failure message or something else. The page just remains like it was before.

    The API-Key is set correctly. I guess there is a failure in the schedule_results.tpl but I'm not sure about this.

    Looks like this:

    <?php
    if(!$allroutes)
    {
       echo '<p align="center">No routes have been found!</p>';
       return;
    }
    ?>
    <table id="tabledlist" class="tablesorter">
    <thead>
    <tr>
       <th>Flight Info</th>
       <th>Options</th>
    </tr>
    </thead>
    <tbody>
    <?php
    foreach($allroutes as $route)
    {
       
       /* Uncomment this code if you want only schedules which are from the last PIREP that
          pilot filed */
       /*if(Auth::LoggedIn())
       {
          $search = array(
             'p.pilotid' => Auth::$userinfo->pilotid,
             'p.accepted' => PIREP_ACCEPTED
          );
          
          $reports = PIREPData::findPIREPS($search, 1); // return only one
          
          if(is_object($reports))
          {
             # IF the arrival airport doesn't match the departure airport
             if($reports->arricao != $route->depicao)
             {
                continue;
             }
          }
       }*/
       
       /*
       Skip over a route if it's not for this day of week
       Left this here, so it can be omitted if your VA
        doesn't use this. 
        
       Comment out these two lines if you don't want to.
       */
       
       if(strpos($route->daysofweek, date('w')) === false)
          continue;
          
       /* END DAY OF WEEK CHECK */
       
          
       
       /*
       This will skip over a schedule if it's been bid on
       This only runs if the below setting is enabled
       
       If you don't want it to skip, then comment out
       this code below by adding // in front of each 
       line until the END DISABLE SCHEDULE comment below
       
       If you do that, and want to show some text when
       it's been bid on, see the comment below
       */
       if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
       {
          continue;
       }
       /* END DISABLE SCHEDULE ON BID */
       
       /* THIS BEGINS ONE TABLE ROW */
    ?>
    <tr>
       <td >
          <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?><?php echo '('.$route->depicao.' - '.$route->arricao.')'?></a>
          <br />
          
          <strong>Departure: </strong><?php echo $route->deptime;?>         <strong>Arrival: </strong><?php echo $route->arrtime;?><br />
          <strong>Equipment: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>)  <strong>Distance: </strong><?php echo $route->distance . Config::Get('UNITS');?>
          <br />
          <strong>Days Flown: </strong><?php echo Util::GetDaysCompact($route->daysofweek); ?><br />
          <?php echo ($route->route=='')?'':'<strong>Route: </strong>'.$route->route.'<br />' ?>
          <?php echo ($route->notes=='')?'':'<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?>
          
          <?php
          # Note: this will only show if the above code to
          #   skip the schedule is commented out
          if($route->bidid != 0)
          {
             echo 'This route has been bid on';
          }
          ?>
       </td>
       <td nowrap>
          <a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a><br />
          <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a><br />
          
          <?php 
          # Don't allow overlapping bids and a bid exists
          if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
          {
          ?>
             <a id="<?php echo $route->id; ?>" class="addbid"
    href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a>
          <?php
          }
          else
          {
             if (Auth::LoggedIn())
             {
              ?>
                <a id="<?php echo $route->id; ?>" class="addbid" 
                   href="<?php echo url('/schedules/addbid');?>">Add to Bid</a>
             <?php          
             }
          }      
          ?>
       </td>
    </tr>
    <?php
    /* END OF ONE TABLE ROW */
    }
    ?>
    </tbody>
    </table>
    <hr> 

    Maybe you're able to help me.

    Thanks in advance and kind regards from Germany

    Tim

×
×
  • Create New...