Jump to content

Jeff

Members
  • Posts

    1307
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Jeff

  1. What is wrong with kAcars? Jeffrey Kobus (lorathon) has created a pretty good program that offers just about anything you need for your website.

    fsproducts_small.png

    If you click on the image above, you can see that you can have any or all of the available options for your VA's needs. I don't think that what he (Jeffrey) is asking for his product is unreasonable, and you should consider it. I don't think you will find one that comes close to what it entails, and best of all...it was specially made to work for phpVMS.

  2. <?php
    //simpilotgroup addon module for phpVMS virtual airline system
    //
    //simpilotgroup addon modules are licenced under the following license:
    //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
    //To view full icense text visit http://creativecommons.org/licenses/by-nc-sa/3.0/
    //
    //@author David Clark (simpilot)
    //@copyright Copyright (c) 2009-2010, David Clark
    //@license http://creativecommons.org/licenses/by-nc-sa/3.0/
    ?>
    <p><span style="color: rgb(0, 0, 0);"><span style="font-size: 16px;"><font color="000000">Search Flight Schedules</font></span></span></p>
    <form action="<?php echo url('/FrontSchedules');?>" method="post" enctype="multipart/form-data">
       <table align="left" border="0" width="100%">
           <tr>
               <td bgcolor="#FFEFAD" border="1"><font color="#003399"><b>Select An Airline</b></font></td>
               <td>
                   <select class="search" name="airline">
                       <option value="">All</option>
                       <?php
                           foreach ($airlines as $airline)
                               {echo '<option value="'.$airline->code.'">'.$airline->icao.''.$airline->name.'</option>';}
    
                       ?>
                   </select>
               </td>
           </tr>
           <tr>
               <td bgcolor="#FFEFAD" border="1"><font color="#003399"><b>Select An Aircraft Type</b></font></td>
               <td>
                   <select class="search" name="aircraft">
                       <option value="">All</option>
                       <?php
                           foreach ($aircrafts as $aircraft)
                               {echo '<option value="'.$aircraft->icao.'">'.$aircraft->icao.'</option>';}
                       ?>
                   </select>
               </td>
           </tr>
           <tr>
               <td bgcolor="#FFEFAD" border="1"><font color="#003399"><b>Select A Departure Airfield</b></font></td>
               <td>
                   <select class="search" name="depicao">
                       <option value="">All</option>
    <?php if (Auth::LoggedIn()) {?>   
    <?php $reports = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED);
    if(is_object($reports))
           {echo '<option value="'.$reports->arricao.'">Your current location ('.$reports->arricao.')</option>';}
    elseif(!$reports)
    {echo '<option value="'.Auth::$userinfo->hub.'">Your current location ('.Auth::$userinfo->hub.')</option>';}}?>
    <?php
    foreach ($airports as $airport)
    {
    echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';
    }?>
                   </select>
               </td>
           </tr>
               <td bgcolor="#FFEFAD" border="1"><font color="#003399"><b>Select An Arrival Airfield</></font></td>
               <td>
                   <select class="search" name="arricao">
                       <option value="">All</option>
                       <?php
                           foreach ($airports as $airport)
                               {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';}
                       ?>
                   </select>
               </td>
           </tr>
           <tr>
               <td>
                   <input title="Click here to search for flights" type="hidden" name="action" value="findflight" />
                   <input title="Click here to search for flights" type="submit" name="submit" value="Find My Flights" />
               </td>
           </tr>
       </table>
    </form>

    I have that code in its own file. It works off of this: http://forum.phpvms.net/topic/2197-schedule-search-airline-aircraft-arrival-departure/page__view__findpost__p__14669

  3. There is a oversee in your code inside your navigation menu.

    You have:

    <li><a href="http://skyviewva.co.cc/index.php/pages/operationshandbook">Operations Handbook</a></li><li><a href="http://skyviewva.co.cc/index.php/pages/fleet">Fleet</a></li></li>

    You might want to remove the last </li>

    <li><a href="http://skyviewva.co.cc/index.php/pages/operationshandbook">Operations Handbook</a></li><li><a href="http://skyviewva.co.cc/index.php/pages/fleet">Fleet</a></li>

  4. <li style="padding: 0; margin: 0;"><a class="menu" href="#">
    <img src="<?php echo  SITE_URL?>/admin/lib/layout/images/pilots_icon.png" />Pilots & Groups</a>
    <ul style="padding: 0; margin: 0;">
    	<?php
    	if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_REGISTRATIONS)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/pilotadmin/pendingpilots');?>">Pending Registrations</a></li>
    	<?php
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PILOTS)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/pilotadmin/viewpilots');?>">View All Pilots</a></li>
    	<?php
       	        }
    	if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/PilotLogins/');?>">View All Pilot Logins</a></li>
    	<?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_GROUPS)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/pilotadmin/pilotgroups');?>">Pilot Groups</a></li>
    	<?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_RANKS)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/pilotranking/pilotranks');?>">Pilot Ranks</a></li>
    	<?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, EMAIL_PILOTS)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/massmailer'); ?>">Email all Pilots</a></li>
    	<?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_AWARDS)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/pilotranking/awards'); ?>">Awards</a></li>
    	<?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_TYPERATING)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/pilotranking/awards'); ?>">Typerating</a></li>
    	<?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) 
    	{
    	?>
    		<li><a href="<?php echo adminurl('/maintenance/changepilotid'); ?>">Change a Pilot's ID</a></li>
    	<?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_PIREPS)) 
    	{
    	?>
    	<li><a href="<?php echo adminurl('/pilotadmin/viewbids'); ?>">View Bids</a></li>
    	<?php 
    	}
    	?>
    	<li></li>
    </ul>
    </li>

    You're going to use this one:

    <?php 
    	}
    	if(PilotGroups::group_has_perm(Auth::$usergroups, FULL_ADMIN)) 
    	{
    	?>
    		<li><a href="<?php echo adminurl('/maintenance/changepilotid'); ?>">Change a Pilot's ID</a></li>

  5. Other than your math, I don't see anything wrong with either the code or how it looks on the site.

       <thead>
        <tr>
       <th width="7%" align="center" style="background-color: #171717;">Flight#</th>
       <th width="30%" align="center" style="background-color: #171717;">Departure</th>
       <th width="30%" align="center" style="background-color: #171717;">Arrival</th>
       <th width="15%" align="center" style="background-color: #171717;">Pilot</th>
       <th width="10%" align="center" style="background-color: #171717;">Landing Rate</th>
       <th width="8%" align="center" style="background-color: #171717;">Aircraft</th>
       <th width="5%" align="center" style="background-color: #171717;">Status</th>

    This adds up to 105%, you're 5% over (maybe a workbook, or maybe a calculator might help).

    If you'd like any more further support, I'd suggest you don't gripe about the answers you get for what you ask for, or how you ask them. This isn't going to get you far.

  6. The problem is in the way YOU coded the table. Your page source show this:

    <h2>Recent Flights Booked</h2>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
    <th width="10%" align="center" style="background-color: #171717;">Flight Number</div></th>
    <th width="10%" align="center" style="background-color: #171717;">Depart</div></th>	
    <th width="10%" align="center" style="background-color: #171717;">Arrive</div></th>
    <th width="20%" align="center" style="background-color: #171717;">Pilot Name</div></th>
    <th width="20%" align="center" style="background-color: #171717;">Aircraft</th>   //There is no </div> in this line
    <th width="10%" align="center" style="background-color: #171717;">Tail No.</div></th>
    <th width="20%" align="center" style="background-color: #171717;">Flight Time</div></th>
    </tr>          //You have a </tr> but no <tr> in the table
    </thead> 
    <tbody>
    
    <tr bgcolor="#171717">
    <td height="25" width="15%" align="center">PIA356</a> </td>  //There is a <span></span> missing here
    <td height="25" width="13%" align="center"><span>OPLA</span></td>
    <td height="25" width="13%" align="center"><span>OPRN</span></td>
    
    <td height="25" width="20%" align="center"><span>Sajid Ali</span></td>
    <td height="25" width="15%" align="center"><span>ATR42</span></td>
    <td height="25" width="12%" align="center">AP-BHP</td> //There is a <span></span> missing here
    <td height="25" width="12%" align="center"><span>1 Hours</span></td>
    </tr> 
    
    <tr bgcolor="#171717">
    <td height="25" width="15%" align="center">PIA653</a> </td> //There is a <span></span> missing here
    <td height="25" width="13%" align="center"><span>OPRN</span></td>
    <td height="25" width="13%" align="center"><span>OPLA</span></td>
    
    <td height="25" width="20%" align="center"><span>Ali Asad</span></td>
    <td height="25" width="15%" align="center"><span>ATR42</span></td>
    <td height="25" width="12%" align="center">AP-BHP</td>  //There is a <span></span> missing here
    <td height="25" width="12%" align="center"><span>1 Hours</span></td>
    </tr> 
    </tbody>
    </table>

    Redo the table to fix the problems, then it should look right.

  7. I can't share too much, then it wouldn't be original. If you look at this post I made, you can figure out how to add the extra fields in the .csv

    On the images on that page, you will see that it is showing the "Meals", "Duration", and "Operated By". The operated By is actually typed in the fields under "Notes" in the .csv. The other 2 are added fields I had to create. If you notice in the above image, Meals is not included. I am going to be adding letters to substitute the names for the meals (services) the flight offers (Airlines use these letters as well).

    For some reason after I create all my flights, I need to upload the csv twice in order for the extra fields to show up, but that's okay though. Jeffrey explains it pretty well on how to add the extra fields in the .csv, all you need to do is follow what he has posted and you should be able to figure it out. I won't be on too much, as weekends are busy for me, but if you have problems with getting it added, you can post here, and I will get to it.

  8. That's not going to be possible at the moment. Now, what I have done to move around this is, when I create the connecting flights, I add a letter to it that shows that it is indeed a connecting flight. Airlines use the same flight number on 65% of their flights for their connections, but, unfortunately, phpVMS doesn't allow you to use the same flight number twice for the same airline. This is the only way I have found to get the linked (connecting) flights to work. I attached an image to show what I did. I had to add three (3) more fields in the .csv in order to get it to show the added fields.

    flightscont.jpg

  9. I know I saw this in another thread last year, but can't seem to find it. I need the code that will show the pilots start date. I need it to work both in the profile_main.tpl and also in the pilot_public_profile.tpl. Can someone help out please?

  10. Sometimes pilots just want to be told where to fly, thats where the random flights from Jeff comes in handy and the adventure of completing a tour and gaining a badge for their profile.

    That is Jeffrey Kobus, not me. Thought I'd clear that up. ;)

  11. Okay, here is a problem I came across today that I would like to get right, but just can't figure it out. I want to have the aircraft name to be shown instead of the registration in the pireps_viewall.tpl.

    In the pireps_viewall.tpl file I have this (as default)

    <?php echo $report->registration; ?>

    I have tried numerous types to get it show, but it just will not show up for me.

    Tried the following...

    <?php echo $report->name; ?>
    <?php echo $aircraft->name; ?>
    <?php echo $report->aircraftname; ?>

    with no positive results. Does anyone have the correct code for this?

  12. Real Schedule Lite: This allows you to create your own connecting flight system using a certain aircraft that you specify for each flight. For example you add an aircraft (for this example Boeing 737-800), and for the registration, you would add a different tail number for every Boeing 737-800 you have in your aircraft list (something like N542DL, N543DL, N544DL...etc). Then you create your flight legs for every plane that bares that registration.

    In layman's terms, your flights would be like this for the airplane that bares the registration N542DL: KATL -> KJFK -> KJAX -> KJFK -> KATL

    Then you can add another one for N543DL: KATL -> KPHX -> KMSP -> KATL...and-so-on.

    Random Itinerary Builder: This will allow the pilot to have your schedule search find random flights that depart from your current location. Once it finds the next flight from your location, it will then find the next flight from that airport you will land at. You can have it search one (1) or up to fifteen (15) flights at a time. It will then show you the random results it came up with (using what information you gave it to search for). If you like the routes it has generated, you can then bid for those flights. They will then be added to your flight bids. You can then fly all the routes it has just given you in the order it gave you.

    If this doesn't help you, then we don't know what you are asking.

  13. Look, we're not here to criticize any of the work you do. There are ways to do things to make your Virtual Airline among the top of the list. Unfortunately, you have been going about it the wrong way. You were constantly opening and closing a virtual airline numerous times, all the while copying other VA owners hard work. Were are here to help in any way we can to get you what you need, all you need to do is ask. I have, in the past, copied some work from a highly recognized VA that is at the top of the best VA's list. I have removed all such items and started fresh (which really doesn't take long to do) since everything you need can be found here in the forums. I am glad to finally see you have owned up to what you have done. If you continue to do your best, all you will receive is praise and positive feed-back.

×
×
  • Create New...