Jump to content

Bueno93

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by Bueno93

  1. 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. Hi, folks! Does anyone have an extension for this great module to add the possibility to search for the day of flight? I had some tries, but it doesn't really work for me. So, is it possible to select the day of flight in addition to the other values or has someone already coded this? Doesn't matter if it is not possible, would be just a nice extension Kind regards Bueno
  3. Perfect!!! exactly what I intended. Thank you very much :-)
  4. 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?
  5. 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?! 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
  6. Works perfectly. Thank you very much ;-)
  7. Hey guys, how can I remove the Route Map, shown on the Schedule Details page? It isn't coded in the template file. I also tried to set the width and height to 0px in the local config, but it didn't work. Does anyone has an idea? Regards Bueno
  8. Okay, and what exactly do I have to change? Is it determined in a code?
  9. 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
  10. Hi, the pictures are located here: www.yoursite.com/lib/images/ranks Hope this helps Regards Bueno
  11. 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
  12. 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
  13. Alright, this is fixed now. Thank you very much
  14. 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
  15. 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
  16. Hi, everything is fixed now. Thank you once again for your support . Kind regards
  17. 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
  18. Hey, this is a very nice add-on. I have just a short question. Is there any possibility to show a forum which has a new unread post in another colour or something like that? Kind regards Tim
  19. 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
  20. Hi Nabeel, well I don't remember that I have seen this thread but I'll take a look again, thank you .
  21. 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
  22. 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...