-
Posts
1307 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Jeff
-
I've done something terribly wrong here. I am trying to set this in a table, but can't get it to lineup correctly. Can someone please help with this table? <table width="100%" border="1" bgcolor="#042233" id="tabledlist" class="tablesorter"> <thead> <tr> <th width="25%" border="0">Award</th> <th width="25%" border="0">Award Name</th> <th width="50%" border="0">Description</th> </tr> </thead> <?php if(!$allawards) { echo $userinfo->firstname . 'has no awards yet.'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <ul> <table width="790" bgcolor="#042233" border="1" cellspacing="5" cellpadding="5"> <?php foreach($allawards as $award){ ?> <tr> <td width="25%"><center><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></center></td> <td width="25%"><center><?php echo $award->name ?></center></td> <td width="50%"><center><?php echo $award->descrip ?></center></td> </tr> <?php } ?> </table> </ul> <?php } ?> I know how to do tables for everything else, but this one is being stubborn.
-
Thank you Tom, it is now working. If anyone would like the refresh code, here it is <meta http-equiv="refresh" content="60" > Just change the 60 to the time you want it to refresh. (Ex. 60= 1 minute)
-
Hope this is what you wanted... public_html/core/templates/route_map.tpl
-
I'm wanting to make my (mysite.com/index.php) page refresh after so amount of time (1 minute). I placed the code in, but now my whole site refreshes after one minute has gone by. Is there a way to just have the main page refresh?
-
Thank you, and sorry if I come out to be a pain. I just can't figure the scheduling script stuff out.
-
You could just open the .tpl file you are wanting to edit and just remove that code for the table from it. Not sure if this works if it tied into a sidebar menu or similar.
-
With this code I placed in the randomsearch.tpl <tr> <td width ="25%"><b>Airline: <FONT COLOR="#FF0000">(Optional)</FONT></b></td> <td width ="75%"><select id="allAirlines" name="allAirlines"> <option value="">Select Airline</option> <?php if (!$allAirlines) $allAirlines = array(); foreach($allAirlines as $airline) { echo '<option value="'.$airline->code.'" '.$sel.'>'.$airline->code.' - '.$airline->name.'</option>'; } ?> </td> </tr> and some coding placed in the RandomFlights.php (whole code displayed below) <?php /* * phpVMS Module: Random Itinerary Builder * Coding by Jeffrey Kobus * www.fs-products.net * Verion 1.2 * Dated: 03/21/2011 */ class RandomFlights extends CodonModule { public function index() { Template::Show('randomsearch.tpl'); } public function getRandomFlights() { $dep = $this->post->depicao; $airline = $this->set('allAirlines', $airline); //This is what I added. I also tried $airline = $this->post->airline; $equip = $this->post->equipment; $count = $this->post->count; for($i = 0; $i < $count; $i++) { $params = array( 's.depicao' => $dep, 's.enabled' => 1 ); if(!$airline) // I also added this piece of coding here. I was getting most of the info from a couple of places I searched for in the forum (some was Simpilots) { $airline = '%'; } if($equip != "") $params['a.icao'] = $equip; $flights = SchedulesData::findSchedules($params); if($flights) { foreach ($flights as $row) { $r = rand(0, count($flights)); $airline = OperationsData::getAirlineByCode($flights[$r]->code); if($airline->enabled == 0) continue; if ($flights[$r]->aircraftlevel > Auth::$userinfo->ranklevel) { continue; } else { $schedules[$i] = $flights[$r]; $dep = $flights[$r]->arricao; break; } } } } Template::Set('schedules', $schedules); Template::Set('count', $count); Template::Show('randomflights.tpl'); } public function bidAll() { $count = $this->post->count; for ($i = 0; $i < $count; $i++) { $ret = SchedulesData::addBid($this->post->pilotid, $this->post->schedules[$i]); $flight = SchedulesData::getSchedule($this->post->schedules[$i]); if($ret) echo 'Flight - '.$flight->code.$flight->flightnum.' added <br/>'; } echo 'Finished'; } } ?> I am still getting nothing in the Dropdown except "SELECT AIRLINE". What the heck am I missing here? I can't figure out what you changed before when you added the Airframe menu. Do I have a typo somewhere, or is there another code I need to place somewhere?
-
Thank you very much lorathon. I actually had that part coded correctly, I just couldn't figure out what I needed to place in the randomflights.tpl to make it work. I appreciate your help.
-
I got most of that code from the schedule_searchform.tpl and tweaked it to look like (at least how I thought it was supposed to look like) the way you have it when it is searching for its items. I cannot figure out how to code it to search by airframe (EX: All, A320, B737, E45, SF3, etc...)
-
This is the whole code that I am trying to get the "Choose Aircraft" menu added to the page. Something I have in there is not coming up right because I just have an empty drop-down box. <?php $pilotid = Auth::$userinfo->pilotid; $last_location = PIREPData::getLastReports($pilotid, 1); $last_name = OperationsData::getAirportInfo($last_location->arricao); $userinfo = PilotData::getPilotData($pilotid); if($last_location->arricao == '') $last_location->arricao = $userinfo->hub; ?> <table border = "0"> <tr> <th scope="col">Random Itinerary from Current Location</th> </tr> <tr><form name="randomflights" id="randomflights" action="<?php echo SITE_URL?>/index.php/randomflights/getRandomFlights" method="post"> <td>Current Location Preselected </td> <table> <tr> <td width ="25%"><b>Current Location:</b></td> <td width ="75%"><select id="depicao" name="depicao"> <option value="<?php echo $last_location->arricao?>"><?php echo $last_location->arricao?> (<?php echo $last_name->name?>)</option> </td> </tr> <tr> <td width ="25%"><b>Aircraft:</b></td> <td width ="75%"><select id="equipment" name="equipment"> <option value="<?php echo $equip->name?>"><?php echo $equip->name?></option> <?php if(!$equipment) $equipment = array(); foreach($equipment as $equip) { echo '<option value="'.$equip->name.'">'.$equip->name.'</option>'; } ?> </td> </tr> <tr> <td width ="25%"><b>Number of Flights:</b></td> <td width ="75%"><select id="count" name="count"> <option value="1">1</option> <option value="5">5</option> <option value="10">10</option> <option value="15">15</option> </select></td> <td><input type="submit" name="submit" value="Find Random Flights"></td> </tr> </table> </form> </tr> </table> This is the part I need help with: <tr> <td width ="25%"><b>Aircraft:</b></td> <td width ="75%"><select id="equipment" name="equipment"> <option value="">Select Equipment<?php echo $equip->name?><?php echo $equip->name?></option> <?php if(!$equipment) $equipment = array(); foreach($equipment as $equip) { echo '<option value="'.$equip->name.'">'.$equip->name.'</option>'; } ?> </td> </tr>
-
I have mine set to 1
-
Of course, you don't need to use the same flight numbers as the ones posted in Ultimate Traffic or MyTraffic. Or, as an addition, you can just review the flights, and the ones that repeat the flgiht numbers, just change them to a number that isn't being used.
-
Okay, I think I understand what you are saying. Can you do me a favor and go back to that page, and start on page #1 and go through each flight one-by-one to make sure you did not overlook the flights, because according to what you posted, and the image itself, it is showing me that they are all there. The flights on those pages are shown in FLIGHT NUMBER - Ascending order (Ex: 1, 2, 3, 4, 5, 6, 7...) They aren't being shown by the order you placed them into the system. If they aren't there, come back and PM me, and I can probably get you set. (and yes it has been awhile since I last talked to you, so...hello Vans)
-
yoursite.com/admin/index.php/sitecms/viewnews Go to the ADMIN PANEL Click the NEWS & CONTENT tab to expand it Click NEWS Find the one that says "Welcome To My Virtual Airline" and click EDIT (or) DELETE
-
Check your main (original) crystal main page code to see how Nabeel has it coded, and you can probably copy/paste that into the crystal II main page.
-
I cannot seem to find this php.ini file. Does anyone know the exact location of this file?
-
Is it possible to add a couple more drop-downs for Aircraft type (737, 744, etc.) and another for Airline? If it is possible, can you please explain how.
-
Sorry, I haven't been on in almost a year. Here is a permanent link to the file. Download File
-
You're going to need to install the RealScheduleLite on your server. You can find it here You will need to change all of your planes that you use for the complete flight route, and make them each have separate tail numbers. All is explained in detail in Simpilot's post. If you need further assistance just ask here or in the post. Hope this helps you out.
-
Not quite sure dude. It has been years since I ever used FS04. Are you using anything like MyTrafficX or anything like that? If you have FSX, do you have the same problem with it like in 04? I'm just trying to narrow the problems a bit.
-
Yeah, you can do what Mark says. You can look in the other Obsess Blue thread and look for my post that explains what to delete from the pilot_main.tpl
-
I think you asked this in a previous thread. The only thing I can think of , is, if you are using an addon Toronto/Pearson (YYZ) scenery, it may have a corrupted file in it that is making it freeze. I don't think it is your video card since it isn't doing it at any other airport. I think FS 04 is trying to load a file and it is shutting something down. Sorry, I re-read your problem, and just saw you aren't using addons. You can then try doing a re-install or repair on FS04 to see if it fixes the problem.
-
That problem tends to be on all of Lorenzo's templates. Not sure what the fix is.
-
He is working on a newer version that is compatible with the latest phpVMS release.