Jump to content

NAdams

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by NAdams

  1. i have got it to work! not sure how, i used netbeans to create the php files instead of text edit, but they are working and the initial code that you gave me is the one i used, thanks so much for the help! here are the pages, i haven't styled anything yet, but the info is there now http://x-usairways.com/index.php/kclthub http://x-usairways.com/index.php/kphlhub http://x-usairways.com/index.php/kphxhub
  2. yep, here it is i made a php file called "kclthub" and put it in the folder core--->modules---->kclthub <?php class kclthub extends CodonModule {     public function index()     {       Template::Show('kclt_hub.tpl');     } } ?> then i made a .tpl file called "kclt_hub.tpl" and put it in the skin folder <h3>Charlotte Douglas International Airport  (KCLT)</h3> <link href="table.css" rel="stylesheet" type="text/css" /> <?php $pilots = PilotData::getAllPilotsByHub('KCLT'); ?> <table width="800" border="0">  <tr>   <td style="vertical-align:top" width="350"><table width="350" border="0">   <tr>     <th class="tableOdd">Pilot</th>     <th class="tableOdd">Country</th>     <th class="tableOdd">Rank</th>   </tr>   <?php   foreach ($pilots as $pilot) {   ?>     <tr>       <th align="left"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid); ?> | <?php echo $pilot->firstname.' '.$pilot->lastname?></th>       <th><img src="<?php echo Countries::getCountryImage($pilot->location); ?>"            alt="<?php echo Countries::getCountryName($pilot->location); ?>" /></th>       <th><img src="<?php echo $pilot->rankimage ?>" alt="<?php echo $pilot->rank; ?>" /></th>     </tr>   <?php   }   ?> </table> </td>   <td width="41"> </td>   <td style="vertical-align:top" width="395"> Our Info Here    <table width= "590" border="0">  <tr>   <td><h3>Hub Manager:</h3></td>   </tr>  <tr>   <td><p>AWE0001 | Our Hub Manager </p></td>   </tr>   </table> </td>  </tr>  <tr>   <td> </td>   <td> </td>   <td><table width= "590" border="0">  <tr>   <td colspan="2"><h3>Hub Gates:</h3></td>   </tr>  <tr>   <td><p><strong>Our Hub Gates</strong></p></td>   <td><a href="#">Map</a></td>   </tr>   </table></td>  </tr>  <tr>   <td> </td>   <td> </td>   <td> </td>  </tr>  <tr>   <td> </td>   <td> </td>   <td> </td>  </tr>  <tr>   <td> </td>   <td> </td>   <td> </td>  </tr>  <tr>   <td> </td>   <td> </td>   <td> </td>  </tr> </table>
  3. is there another line of code i need....when i put all the info in, create the folder and the php file inside, then i create the .tpl file and our info in i get this box at the top of the main site that has the php code
  4. cool, thats' exactly what i want to do i am not sure where to put the code....did you post it in the a page you created in the admin panel of phpvms, or did you create another php page and post there i you could give me your code so i can copy and paste, that would be awesome thanks
  5. true, i saw that, i was a bit confused on where to put that code, beacuse it doesn't work on the "page" source area. also, i went to his va and saw the pilots still displayed on on page, so i am wondering if he got it to work http://www.greeceairwaysva.com/fss/index.php/pilots
  6. This may have been answered somewhere but I couldn't find it Is there a way to divide the pilots list into hubs and put just the pilot list for that hub into a page created for that hub In other words, I made a hub page "KCLT". Is there a way of taking just the pilots that are in KCLT and displaying them in a table on that page?
  7. This is probably answered in another thread somewhere but I have looked and I can't find it anywhere. I am making a .csv file for the routes and importing them. In the "aircraft" column I think it is looking for the registration of the aircraft instead of the actual aircraft icao. So instead of me having to put "N123AW" in for the aircraft is there a way i can put "A320" in and the phpVMS understands it. Also, when using XACARS, when clicking "flight data from ACARS" it will have "A320" in the aircraft field instead of "N123AW" This will make it so much easier to add the routes with the .csv template if I can do it this way. Thanks! Nick
×
×
  • Create New...