Jump to content

Aaron

Members
  • Posts

    184
  • Joined

  • Last visited

Everything posted by Aaron

  1. When PIREPS are filled, the aircraft always comes up as the wrong aircraft, any ideas? I flew CC-150 came up as CP-140 in PIREP, same with the next 2 flights I did.
  2. Here's what the sidebar shows, both flights were cmopleted 2 hours ago as well Current Flights CFC001 - Aaron Schpitzer CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron CFC002 - Josh Gheron
  3. On the current flight part of my sidebar, and the live map, more than 2 hours later it still shows a flight me and another guy did, also, it shows one of the flights in both places, at least 10 times in a row of the same thing. Any ideas?
  4. I got some help and the booking system is now functional, I'm going to work on perfecting it then gonna put a link for anyone who wants it
  5. I think this is the chunk giving me trouble in IE, idk why yet. If i change the background-color, Then the color of the black crap changes with it. ul#css3menu1,ul#css3menu1 ul{ margin:0;list-style:none;padding:0;background-color:#FFFFFF;background-image:url("mainbk.png");background-repeat:repeat;border-width:0px;border-style:solid;border-color:#999999;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}
  6. This is how to get your CSS to show up, put this code in the documents that u want, make sure is between the [head] and [/head] and put the link to your CSS in there instead of mine. Hope it works out, good luck with ur airline <link rel="stylesheet" href="/core/templates/pilotcentermenu/style.css" type="text/css" />
  7. still need help, cant find why it doesn't work in IE
  8. I made a CSS style for a sidebar for my pilot center and training center and it works fine in google chrome, but theres a thick black line in IE going down the left side of it. I cant figure out how to make the line go away. Check it out in internet explorer at http://www.canforce.org/index.php/pages/trainingcenter Here's the external CSS Code: ul#css3menu1,ul#css3menu1 ul{ margin:0;list-style:none;padding:0;background-color:#000;background-image:url("mainbk.png");background-repeat:repeat;border-width:0px;border-style:solid;border-color:#999999;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;} ul#css3menu1 ul{ display:none;position:absolute;left:100%;top:0;-moz-box-shadow:0.7px 0.7px 1px #777777;-webkit-box-shadow:0.7px 0.7px 1px #777777;box-shadow:0.7px 0.7px 1px #777777;background-color:#333;background-image:none;border-width:1px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border-style:solid;border-color:#5A5E60;padding:0 9px 9px;} ul#css3menu1 li:hover>*{ display:block;} ul#css3menu1 li{ position:relative;zoom:1;display:block;white-space:nowrap;font-size:0;} ul#css3menu1 li:hover{ z-index:1;} ul#css3menu1 ul ul{ position:absolute;left:100%;top:0;} ul#css3menu1{ padding:0 1px 1px;font-size:0;z-index:999;position:relative;display:inline-block;zoom:1; *display:inline;} ul#css3menu1>li,ul#css3menu1 li{ margin:1px 0 0;} ul#css3menu1 a:active, ul#css3menu1 a:focus{ outline-style:none;} ul#css3menu1 a,ul#css3menu1 a.pressed{ display:block;vertical-align:middle;text-align:left;text-decoration:none;font:bold 12px Arial;color:#cccccc;cursor:default;} ul#css3menu1 ul li{ float:none;margin:9px 0 0;} ul#css3menu1 ul a{ text-align:left;padding:8px 0 0 0;background-color:#333;background-image:none;border-width:1px 0 0 0;border-style:solid;border-color:#262626;border-radius:0px;-moz-border-radius:0px;-webkit-border-radius:0px;font:13px Arial;color:#cccccc;text-decoration:none;} ul#css3menu1 li:hover>a{ background-color:#00007f;border-style:none;font:bold 12px Arial;color:#ffffff;text-decoration:none;background-image:url("mainbk.png");background-position:0 100px;} ul#css3menu1 img{ border:none;vertical-align:middle;margin-right:10px;} ul#css3menu1 img.over{ display:none;} ul#css3menu1 li:hover > a img.def{ display:none;} ul#css3menu1 li:hover > a img.over{ display:inline;} ul#css3menu1 li a.pressed img.over{ display:inline;} ul#css3menu1 li a.pressed img.def{ display:none;} ul#css3menu1 span{ display:block;overflow:visible;background-position:right center;background-repeat:no-repeat;padding-right:0px;} ul#css3menu1 a{ padding:10px;background-color:#333;background-image:url("mainbk.png");background-repeat:repeat;background-position:0 200px;border-width:0px;border-style:none;border-color:;color:#cccccc;text-decoration:none;} ul#css3menu1 li:hover>a,ul#css3menu1 li>a.pressed{ background-color:#00007f;background-image:url("mainbk.png");background-position:0 100px;border-style:none;color:#ffffff;text-decoration:none;} ul#css3menu1 ul li:hover>a,ul#css3menu1 ul li>a.pressed{ background-color:#333;background-image:none;border-style:solid;border-color:#262626;font:13px Arial;color:#00007f;text-decoration:none;} ul#css3menu1 li.topfirst>a{ border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;text-shadow:#000000 0px -1px 1px;} ul#css3menu1 li.topfirst:hover>a,ul#css3menu1 li.topfirst>a.pressed{ text-shadow:#3d3d3d 0px -1px 1px;} ul#css3menu1 li.topmenu>a{ text-shadow:#000000 0px -1px 1px;} ul#css3menu1 li.topmenu:hover>a,ul#css3menu1 li.topmenu>a.pressed{ text-shadow:#3d3d3d 0px -1px 1px;} ul#css3menu1 li.toplast>a{ border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0;-webkit-border-bottom-right-radius:4px;-webkit-border-bottom-left-radius:4px;text-shadow:#000000 0px -1px 1px;} ul#css3menu1 li.toplast:hover>a,ul#css3menu1 li.toplast>a.pressed{ text-shadow:#3d3d3d 0px -1px 1px;}
  9. how do I load the pilotclass.class.php so that I get the pilot ID variable?
  10. I read over the docs, I'm still a bit confused. I don't see why I need a module, It works fine, the only error is that it can't find the pilot id variable. I tryed making it into a module and this is what I got and now idk what now. class bookingsystem extends CodonModule { public $title = 'Booking System'; public function index() { <p> <span style="color: rgb(128,0,0)"><strong><span style="font-size: 36px">Book a Flight</span></strong></span></p> <form action="bookingresults.htm" method="post"> Departure Airport ICAO: <input name="depicao" /><br /> Arrival Airport ICAO: <input name="arricao" /><br /> Aircraft: <select id="aircraft" name="aircraft"> <option selected="selected" value="12">CC-130</option> <option value="13">CC-130J</option> <option value="17">CC-150</option> <option value="4">CC-144</option> <option value="7">CT-142</option> <option value="1">CP-140</option> <option value="20">CC-138</option> <option value="22">CU-170</option> <option value="10">CT-156</option> <option value="8">CC-177</option> <option value="3">CC-115</option> <option value="2">CP-140A</option> <option value="19">CT-114</option> <option value="11">CT-155</option> <option value="14">CF-18</option> <option value="16">F-35</option> <option value="18">CH-124</option> <option value="9">CH-146</option> <option value="6">CH-149</option> <option value="15">CH-139</option> <option value="21">CH-148</option> <option value="5">CH-147D</option></select> <br /> Route: <input name="route" /><br /> Altitude: <input name="flightlevel" /><br /> <input type="submit" value="Submit" /></form> } public function results() { <span style="color: rgb(128,0,0)"><strong><span style="font-size: 36px">Booking Results</span></strong></span> include(http://www.canforce.org/core/common/pilotdata.class.php) <?php PilotData::GetPilotCode($pilotid)?> <?php $con = mysql_connect("localhost:3306","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("canforce_phpvmsinstall", $con); $sql="INSERT INTO phpvms_schedules (id, code, flightnum, depicao, arricao, route, aircraft, flightlevel, deptime, arrtime, flighttime, enabled, bidid) VALUES ('$pilotid','CFC','$pilotid','$_POST[depicao]','$_POST[arricao]','$_POST[route]','$_POST[aircraft]','$_POST[flightlevel]','00:00','00:00','00:00','1','1')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } mysql_close($con) ?> }
  11. I found the Pilotdata.class.php and the function I need to get the pilot ID. Now how do I put it in the php document so that it puts the pilot id in a variable for me?
  12. The way I have it set up, I have an html form (bookingform.html), and it's action (bookingresults.php). They're both placed in core/pages. I've made a simple booking system because my VA is military, there are no set routes, so pilots will simply go onto the booking page and fill out the info and it will add their flight to the routes database. The only problem right now is that I want the flight number to be $pilotid and just overwrite each time hey fill out the form, I just need the code to get the $pilotid.
  13. thanks, but it didn't work I talked to a guy that works for a webdesign company in teamspeak and he said it's referencing the PilotData part or something. He says I need to find a page that says this "class PilotData {..." and then put one of these in there with the filename that the class PilotData is found in "include(filename)" or "require_once(filename)". And then have that code you gave me afterwards. Any ideas where that file is that I'm missing?
  14. how do I get the pilot ID variable? I think it's $pilotcode or something but I think you need a line of code to acctually get the pilot id and put it in the variable. plz help
  15. Disregard, it didn't work cause apparently I dont have permissions on forum to upload it sorry
  16. Here's mine, just import in it n edit the aircraft and you should be good to go
  17. still need help plz
  18. I'm trying to make a simple booking system so pilots can make their own routes. I tryed to make it so that the flight number would be the pilots callsign, and the rest is in a form. The problem is it doesn't work and idk why not. Here's the code for the form: <span style="color: rgb(128,0,0)"><strong><span style="font-size: 36px">Flight Booking System</span></strong></span> <form action="http://www.canforce.org/core/modules/Booking/booking.php" method="post"> Departure Airport ICAO: <input type="text" name="depicao" /><br /> Arrival Airport ICAO: <input type="text" name="arricao" /></br> Aircraft: <select name="aircraft" id="aircraft"> <option value="12">CC-130</option> <option value="13">CC-130J</option> <option value="17">CC-150</option> <option value="4">CC-144</option> <option value="7">CT-142</option> <option value="1">CP-140</option> <option value="20">CC-138</option> <option value="22">CU-170</option> <option value="10">CT-156</option> <option value="8">CC-177</option> <option value="3">CC-115</option> <option value="2">CP-140A</option> <option value="19">CT-114</option> <option value="11">CT-155</option> <option value="14">CF-18</option> <option value="16">F-35</option> <option value="18">CH-124</option> <option value="9">CH-146</option> <option value="6">CH-149</option> <option value="15">CH-139</option> <option value="21">CH-148</option> <option value="5">CH-147D</option> </select> </label></br> Route: <input type="text" name="route" /></br> Altitude: <input type="text" name="flightlevel" /></br> <input type="submit" value="Submit" /> </form> And here's the code for the action: <span style="color: rgb(128,0,0)"><strong><span style="font-size: 36px">Booking Results</span></strong></span> <?php $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); $con = mysql_connect("localhost:3306","canforce_booking","my pasword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("canforce_phpvmsinstall", $con); $sql="INSERT INTO phpvms_schedules (id, code, flightnum, depicao, arricao, route, aircraft, flightlevel, deptime, arrtime, flighttime, enabled, bidid) VALUES ('$pilotcode','CFC','$pilotcode','$_POST[depicao]','$_POST[arricao]','$_POST[route]','$_POST[aircraft]','$_POST[flightlevel]','00:00','00:00','00:00','1','1')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } mysql_close($con) ?>
  19. <style type="text/css"> a:link { color: #333333; text-decoration: none; } a:visited { text-decoration: none; color: #333333; } a:hover { text-decoration: none; color: #999999; } a:active { text-decoration: none; color: #333333; } a { font-size: 18px; } </style> Heres what I have at the beggining. Below there is a table with links in it. It works with those ones perfectly fine, but it also affects other links on the page. The phpvms link at the bottom turns big and grey because the above code has priority over the external css. I read about all that on W3schools, but I cant figure out how to make internal code apply only to certain sections. Is it possible maybe to rename them to c:link, c:visited ... and then apply that to the table? If so what changes do I need in the table?
  20. Hi, I added an in page CSS to style the links on my fleet page, but when I do that it screws up the other links in the page. Also, in my pilot center, if I style a second side menu, it screws up the formatting of the top navbar. I've googled it and tryed everything I can think of
  21. Aaron

    logo

    k I've followed the instructions and it seems to work in all other browsers. I'll wait till monday and hope it comes up in IE. Thanks for help everybody
  22. Aaron

    logo

    It still doesn't work in IE
  23. Aaron

    logo

    I put one of those little logos that shows up in the tab bar and in the url. But it works in google chrome, but not in IE. All the tutorials say to do it exactly the way I did, but it still doesn't work in IE. Heres the code I put in the layout.tpl <link rel="shortcut icon" href="/favicon.ico"/>
  24. Aaron

    iframe

    All that does is get rid of the scroll bar and cuts the page off if it doesn't fit in the specified height. I want the iframe to adjust it's height to fit all the content on the page, because the forum gets longer depending on how many posts there are, so I dont want the scroll bar, but I want all the contents to fit in the window as well. I've googled it and nothing so far
×
×
  • Create New...