Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. Do you have any errors in your logs ?
  2. Just rename the tpl files to php and it will work
  3. You forgot APVacars http://baggelis.com/index.php/apvacarsm/apvacars-custom 60 + - euro price may vary from requested addons Custom Interface - Custom Functions
  4. Does the table exist in mysql ? If yes is there any data in there if yes drop the table and recreate it it might got corupted
  5. what acars are you using ? as it seems to be from there
  6. Website address please ?
  7. Are you on free hosting as kacars and some other acars do not work well
  8. if you are doing it with javascript like above you still will be loading all the records you will need to set a mysql limit look at this example $sql = "SELECT * FROM Orders LIMIT 30"; and then you will need to continue from where you stopped with $sql = "SELECT * FROM Orders LIMIT 10 OFFSET 15"; have a look at this website http://www.w3schools.com/php/php_mysql_select_limit.asp
  9. emm the error says about the function PirepAcData:get_criteria and not PirepAcData ::get_settings change this public function get_criteria() { $query = "SELECT * FROM ".TABLE_PREFIX."autopirep"; return DB::get_results($query); } to public static function get_criteria() { $query = "SELECT * FROM ".TABLE_PREFIX."autopirep"; return DB::get_results($query); }
  10. Is that whete you have phpvms installed ?
  11. What is your website addres ?
  12. first the code for the acars table is different than the pireps table as you can see you have 2 flights 1 is AAL80 and 2 is SIA321 so what do you have to do is split the airline code from the flight number for example for AAL80 will be a) AAL and b)80 and now you can use the code assumed you have it named AAL.png that can be done with the included function SchedulesData::getProperFlightNum(flightnumber) so in your case it will be $ProperFN=SchedulesData::getProperFlightNum($pirep->flightnum); and to show the image <?php echo '<img class="img-responsive" src="'.fileurl('/airlines/'.$ProperFN[code].'.png').'" alt="'.$airline->name.'" />'; ?>
  13. If it is a new setup it seems some files to be corupted try to re upload everything
  14. kick the pilot from your VA just joking Put the pilot to connect with smart acars and then put someone else at the same time to connect and see the diferences in the phpvms_acars table
  15. can you try to explain ?
  16. do you have any idea how you would like it ?
  17. Where does this come up ? that is no error that is php code from a file
  18. Did you converted it into a valid phpvms skin ?
  19. Search is your friend
  20. Can you please open a new topic for that ? As it isn't a simbrief issue thanks
  21. Can you please post your website address ? I will return home Tuesday I will have a look at it then
  22. Whel phpvms is an mvc framework that means that all query should go to schedules data.class At the moment I am away from a PC until Tuesday then I will be able to suggest some code Pagination work with limit and offset have a look here http://www.w3schools.com/php/php_mysql_select_limit.asp. So you should post like a form the offset in order to get let's say the next 50 records
  23. You could alter the Query so you can use pagination have a look http://www.tutorialspoint.com/php/mysql_paging_php.htm
  24. 1 tip i would replace the whole hard coded time code with this $r = range(1, 24); $selected = is_null($selected) ? date('h') : $selected; $select = "<select name=deph id=dephour>\n"; foreach ($r as $hour) { $select .= "<option value=\"$hour\""; $select .= ($hour==$selected) ? ' selected="selected"' : ''; $select .= ">$hour</option>\n"; } $select .= '</select>'; echo $select; echo":"; $rminutes = range(1, 60); $selected = is_null($selected) ? date('h') : $selected; $selectminutes = "<select name=depm id=dephour>\n"; foreach ($rminutes as $minutes) { $selectminutes .= "<option value=\"$minutes\""; $selectminutes .= ($hour==$selected) ? ' selected="selected"' : ''; $selectminutes .= ">$minutes</option>\n"; } $selectminutes .= '</select>'; echo $selectminutes; also you can get a dynamic fleet from the db if you want as i saw that you have it hard coded
  25. I do not know if you want the solution or not yet But i will give you a tip <form id="sbapiform"> the location is wrong also you have 1 more mistake in your code as debugging software is a wonderful experience only if you are on drugs i want to remind you that time is splitted in Hours = 1-24 and minutes = 00-60 if you wish i can post the solution
×
×
  • Create New...