Jump to content

freshJet

Members
  • Posts

    1470
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by freshJet

  1. Not sure what you mean? If you want it on the frontpage, why did you put it on the layout.tpl? Did you use an iframe? If so, don't.
  2. <?php MainController::Run('FrontSchedules', 'index');?>
  3. Agreed with Adem. I announced freshJet saying in September 2010 but didn't open door until February 2011. And good luck with the freshest VA ever
  4. Is this the news we are talking about? Rather vague post...
  5. Oh dear. Anyone else thinking what I'm thinking?
  6. Didn't. I removed the stylesheet link and page title and it works fine. Bugging me now, but might just leave it as a bare page.
  7. For example?
  8. I have an external module where the login was fine and the logout works, but produces the 'headers already sent' error. Here is my logout.php: <?php include('/home/freshjet/public_html/core/codon.config.php'); ?> <title>Page title</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <?php function logout(){ $ret = Auth::LogOut(); if($ret == true){ echo 'You are now logged out'; } } logout(); ?> And the error: Warning: Cannot modify header information - headers already sent by (output started at /home/freshjet/public_html/portal/logout.php:5) in /home/freshjet/public_html/core/common/Auth.class.php on line 341
  9. Yeah if they tick the charter flight option they can choose whatever flight they want. You can turn this off in your kACARS_Free/kACARS_Free.php file, near the top.
  10. freshJet

    The basics

    I don't like using the core_navigation.tpl, I just merge it into the layout.tpl. You can do whatever you like. You'll notice that each <li> tag represents a button. So, just add a new one below the rest (or in between - depending on where you want it displayed) and call it 'Schedule' or whatever and link it to index.php/schedules. As for tutorials, it's basically just HTML/CSS. There are literally tons of tutorials on the internet. Your layout.tpl and style.css files are the ones you want.
  11. What about it?
  12. I've been having it too, try using this solution to fix it and prevent further errors.
  13. What is $allactivities ?
  14. Very easy indeed, all you need is the font. These fonts should be available free online, then just set the background colour to black (or slightly lighter, try #555).
  15. I'm not sure what you're trying to do. $aircraft->fullname won't get you anything.
  16. Yup, that's it
  17. Firefox
  18. Eddie, the bottom of that page isn't displaying correctly for me. The pilot roster is floating away to the right and is overlapping the sidebar with the exception of the aircraft slideshow...
  19. I know that but I am asking how it is triggered, surely the function name needs to be included somewhere as a hidden field?
  20. And what about the button on the form to call the function? And is $data an array?
  21. OK, I ask too many questions... I have modules in development involving MySQL tables. These often involve adding and getting data from these tables. However, I can never get them to work. I try copying from other modules but still nothing. Submitting Data Say I wanted to have a user complete a form and submit it. The data would then be inserted to a MySQL table. How does this work? I am aware I will need a module class file for this as well but I'm not sure on the exact code. What would the code be for the submit button to run the function that inserts the data, and what would the PHP function code look like? Is it as simple as the SQL followed by mysql_query($sql); ? (Where $sql contains the SQL code) Retrieving Data As for retrieving data, say I wanted an HTML table displaying the content. Sounds easy, but I can never get it to work (although this is probably because I can't get the insert to work). The way I did this is something along the lines of: $data = ExampleData::getData(); where the function code is nothing more than SQL, but what is the correct code to go after the SQL? Say I have: $sql = "SELECT * FROM table_name WHERE id=5"; What is the line following it?
  22. I know that, that is really what I mean. So I cannot change the number of passengers that kACARS displays?
  23. I contacted Jeffrey but thought it'd be best to post here. Does anyone know how to export own data to kACARS? Take passengers for example. There is: $load = $xml->pirep->pax; in the code but this won't set the actual value. I'm assuming the values are decided in the XML? Any ideas?
  24. Agreed, should be easy to make the members list your pilots.
  25. Awesome
×
×
  • Create New...