Jump to content

Curshad

Members
  • Posts

    175
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Curshad

  1. Hello everyone, Would anyone know who can provide free admin template(s) for the community? I think speak for the community when I say we'd greatly appreciate any Template released. Because it'll deffinately be a change from the basic phpvms admin looks. I am aware that some people pay for custom admin templates. But for those who cant afford a superb job (me ) something free and cool looking would be great. Biggest shoutouts to those that agree and the guys/gals that'll willing out of the goodness of their heart create one!
  2. sorry i didnt understand how to go about updating.. If i had not backed up i wouldnt have an admin center right now.. I followed these instructions: phpVMS - Virtual Airline Administration Software Copyright © 2008 Nabeel Shahzad phpVMS is licenced under the following license: Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) View license.txt in the root, or visit: http://creativecommons.org/licenses/by-nc-sa/3.0/ --- INSTALLATION Upload to your site, create a database. Run the installer in install/install.php --- UPGRADING Backup your core/local.config.php. Then, upload all of the files. Restore your core/local.config.php file. Run the updater in install/update.php --- For more information, visit www.phpvms.net Forums: http://forum.phpvms.net Documentation: http://docs.phpvms.net changing my directories gave abunch of errors. Nabeel could u tell me how i need to go about updating?
  3. Yeah I downloaded the file. But it has a buncha of installers I know this will help my route map show but I do not want to lose my pilot data va data and template data. That's why I'm asking how does this install? Or update? For me to start over and re edit my templates and other files, is like asking a fish to eat a turtle
  4. Hey how do I install this? I've already installed my phpvms stuff wont this affect alot of stuff if i just copy and replace?
  5. i would also like to know. Robb he's meaning in the MYSQL table or the database whatever its call. there's a coloumn called route_details. Mine is also blank i thik it has alot to do with showing routes on live map.
  6. Anyone know how to get the Route_Details coloumn populated?
  7. Try this: <?php if($flight->phasedetail != '<img src="url picture of the image u want"/>') { echo $flight->phasedetail; } else { echo "<img src="url picture of the image u want"/>"; }?>
  8. G'day, i myself Just took a look at the database, the route column is populated, but the route_details column isn't. How can i populate them? I believe this is why i cant see my FIX NDB VOR or nothing on my acars map. The link Jeff provided did not work for me. I assume that must have been updated. Tylor if you can tell me how that'll be great!
  9. How can i change the Color or theme of my live map? any links?
  10. Please can anyone assist me with a coding problem I am having? This is for the ocean blue front page recent.tpl Basically I just want this: "Latest Flights" (Image was photo edited) The Airline Tab is what I want but i cant figure the coding out. I always seem to be onto something but then nothing :/ Here's the coding what i have so far: <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ocean_table"> <tr> <th>Airline</th> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Info</th> </tr> <?php if (count($results) > 0); if (count($pireps) > 0) { foreach ($results as $flight); foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); $results = ACARSData::GetACARSData(); $fcode = substr($flight->flightnum, 0, 3); echo '<tr>'; if($fcode == SIL) echo '<td><img src="http://greenvillems.org/wp-content/uploads/2012/11/Silver-Logo.jpg" width="120" height="35"/></td>'; elseif($fcode == SBM) echo '<td><img src="http://tblocations-airlinelogores.s3.amazonaws.com/200-75-4c3f16e6579e2-sky-bahamas-google-chrome-15-7-2010-160848-bmp.jpg" width="120" height="35"/></td>'; echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo '<td><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->aircraft.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><span class="label label-important"><font color="green">Accepted</font></span></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><span class="label label-important"><font color="red">Rejected</font></span></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><span class="label label-warning"><font color="orange">Pending</font></span></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td>On Progress</td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </table> <div class="clear"></div> <div class="clear"></div> And in my old template i got the airline thing to show up with this coding: <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $flight) { ?> <tr> <td align="center"><?php $fcode = substr($flight->flightnum, 0, 3); if($fcode == 'SIL') {echo '<img src="http://greenvillems.org/wp-content/uploads/2012/11/Silver-Logo.jpg" width="120" height="35"/>';} elseif($fcode == 'SBM') {echo '<img src="http://tblocations-airlinelogores.s3.amazonaws.com/200-75-4c3f16e6579e2-sky-bahamas-google-chrome-15-7-2010-160848-bmp.jpg" width="120" height="35"/>';} ?></td> Here's an image of what It looks like: So please anyone that could help can you? I tried and tried some tweaking and stuff but that echo '<td> other coding info</td>; Makes it difficult. :(
  11. I got all the info to work with this: <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ocean_table"> <tr> <th>Airline</th> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Info</th> </tr> <?php $pirep = ACARSData::GetACARSData(); if (count($pirep) > 0) { foreach($pirep as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); ?> <tr> <td align="center"><?php $fcode = substr($pirep->flightnum, 0, 3); if($fcode == 'SIL') {echo '<img src="http://greenvillems.org/wp-content/uploads/2012/11/Silver-Logo.jpg" width="120" height="35"/>';} elseif($fcode == 'SBM') {echo '<img src="http://tblocations-airlinelogores.s3.amazonaws.com/200-75-4c3f16e6579e2-sky-bahamas-google-chrome-15-7-2010-160848-bmp.jpg" width="120" height="35"/>';} ?></td> <td align="center"><?php echo $pirep->flightnum;?></td> <td align="center"><?php echo '<a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a>';?></td> <td align="center"><?php echo $pirep->depname;?></td> <td align="center"><?php echo $pirep->arrname;?></td> <td align="center"><?php echo $pirep->aircraftname;?></td> <td align="center"><?php echo $pirep->flighttime;?></td> <td align="center"><?php echo $pirep->landingrate;?>ft/m</td> <td align="center"><?php if($pirep->accepted == PIREP_ACCEPTED) echo '<span class="label label-important"><font color="green">Accepted</font></span>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<span class="label label-important"><font color="red">Rejected</font></span>'; elseif($pirep->accepted == PIREP_PENDING) echo '<span class="label label-warning"><font color="orange">Pending</font></span>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo 'On Progress'?></td> </tr> <?php } } else { ?> <tr><td width="20%" align="center" colspan="6" style="padding: 5px; font-size: 13px; font-weight: bold; color: #3399FF;">No Flights in Progress!</td></tr> <?php } ?> </tbody> </table> <div class="clear"></div> <div class="clear"></div> My only issue now is the new of pireps to show up currently only one is showing up.
  12. Hey simpilot myself and flyalaskava is have a touch time put this airline thing into the Latest flights board (for he pireps instead of live flights) It's been over 5hrs and I give I thought i was onto something but then i got stuck I did play around with it like i say and got the Airline image to load. Here's what i have: <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ocean_table"> <tr> <th>Airline</th> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Info</th> </tr> <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $pirep) { ?> <tr> <td align="center"><?php $fcode = substr($pirep->flightnum, 0, 3); if($fcode == 'SIL') {echo '<img src="http://greenvillems.org/wp-content/uploads/2012/11/Silver-Logo.jpg" width="120" height="35"/>';} elseif($fcode == 'SBM') {echo '<img src="http://tblocations-airlinelogores.s3.amazonaws.com/200-75-4c3f16e6579e2-sky-bahamas-google-chrome-15-7-2010-160848-bmp.jpg" width="120" height="35"/>';} ?></td> <td align="center"><?php echo $pirep->flightnum;?></td> <td align="center"><?php echo $pirep->depname;?></td> <td align="center"><?php echo $pirep->arrname;?></td> <td align="center"><?php echo $pirep->aircraftname;?></td> <td align="center"><?php echo $pirep->landingrate;?>ft/m</td> <td align="center"><?php if($pirep->accepted == PIREP_ACCEPTED) echo '<td><span class="label label-important"><font color="green">Accepted</font></span></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><span class="label label-important"><font color="red">Rejected</font></span></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><span class="label label-warning"><font color="orange">Pending</font></span></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td>On Progress</td>'?></td> </tr> <?php } } else { ?> <tr><td width="20%" align="center" colspan="6" style="padding: 5px; font-size: 13px; font-weight: bold; color: #3399FF;">No Flights in Progress!</td></tr> <?php } ?> </tbody> </table> <div class="clear"></div> <div class="clear"></div> But thats not working 1. it doesnt show last 10 pireps 2. some info isnt displaying. (the airline info displays but other info.. *fart sound* Here is what i originally thought would work: <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ocean_table"> <tr> <th>Airline</th> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Info</th> </tr> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); echo '<tr>'; echo '<td>' <?php $fcode = substr($flight->flightnum, 0, 3); if($fcode == 'SIL') {echo '<img src="http://greenvillems.org/wp-content/uploads/2012/11/Silver-Logo.jpg" width="120" height="35"/>';} elseif($fcode == 'SBM') {echo '<img src="http://tblocations-airlinelogores.s3.amazonaws.com/200-75-4c3f16e6579e2-sky-bahamas-google-chrome-15-7-2010-160848-bmp.jpg" width="120" height="35"/>';} ?>'</td>' echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo '<td><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->aircraft.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><span class="label label-important"><font color="green">Accepted</font></span></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><span class="label label-important"><font color="red">Rejected</font></span></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><span class="label label-warning"><font color="orange">Pending</font></span></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td>On Progress</td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> My results
  13. Curshad

    OceanBlue

    I can fix the table i'm asking about adding that new coloumn in the "Airlines" Coloumn like im my Flights departure board. I want the Airline thing to show up in Latest flights
  14. Curshad

    OceanBlue

    I'm trying to get airline to show up like in my Flight Departures board here: The code i use to put the "Airlines section into the table of the live map on the front page here: <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ocean_table"> <tr> <th>Airline</th> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Info</th> </tr> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); echo '<tr>'; echo '<td>' <?php $fcode = substr($flight->flightnum, 0, 3); if($fcode == 'SIL') {echo '<img src="http://greenvillems.org/wp-content/uploads/2012/11/Silver-Logo.jpg" width="120" height="35"/>';} elseif($fcode == 'SBM') {echo '<img src="http://tblocations-airlinelogores.s3.amazonaws.com/200-75-4c3f16e6579e2-sky-bahamas-google-chrome-15-7-2010-160848-bmp.jpg" width="120" height="35"/>';} ?>'</td>' echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo '<td><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->aircraft.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><span class="label label-important"><font color="green">Accepted</font></span></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><span class="label label-important"><font color="red">Rejected</font></span></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><span class="label label-warning"><font color="orange">Pending</font></span></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td>On Progress</td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> The results of that code here: Here's what the website looks like with that code (IGNORE TOUCHDOWN STATS OVERLAP AND OTHER MINOR ERRORS STILL A WORK IN PROGRESS) here:
  15. :'( Jeff come back to us this would do so well for my VA right now...
  16. Curshad

    OceanBlue

    Creator you have an idea of what to do? Also the touchdown stats wont stay aligned withn the side boxes I've tried changing the table with with the touchdown tempalate but no luck <div class="art-block clearfix"> <div class="art-blockheader"> <h3 class="t">Monthly Touchdown Stats</h3> </div> <div class="art-blockcontent"><p><?php MainController::Run('TouchdownStats', 'top_landing_this_month'); ?></p></div> </div> TPL <?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 license 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/ ?> <table width="100%" border="0" class="ocean_table"> <tr> <td>Pilot</td> <td>Aircraft</td> <td>Arrival Field</td> <td>Landing Rate</td> <td>Date Posted</td> </tr> <?php foreach($stats as $stat) { $pilot = PilotData::getPilotData($stat->pilotid); $aircraft = OperationsData::getAircraftInfo($stat->aircraft); echo '<tr>'; echo '<td>'.PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - '.$pilot->firstname.' '.$pilot->lastname.'</td>'; echo '<td>'.$aircraft->fullname.'</td>'; echo '<td>'.$stat->arricao.'</td>'; echo '<td>'.$stat->landingrate.'</td>'; echo '<td>'.date(DATE_FORMAT, strtotime($stat->submitdate)).'</td>'; echo '</tr>'; } ?> </table>
  17. Curshad

    OceanBlue

    Im having troubles displaying this http://forum.phpvms.net/topic/21259-live-flight-board-airlines-display-solved/#entry114046 into the recent front bids heres what im doing but getting an error. <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ocean_table"> <tr> <th>Airline</th> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Info</th> </tr> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); echo '<tr>'; echo '<td>' <?php $fcode = substr($flight->flightnum, 0, 3); if($fcode == 'SIL') {echo '<img src="http://greenvillems.org/wp-content/uploads/2012/11/Silver-Logo.jpg" width="120" height="35"/>';} elseif($fcode == 'SBM') {echo '<img src="http://tblocations-airlinelogores.s3.amazonaws.com/200-75-4c3f16e6579e2-sky-bahamas-google-chrome-15-7-2010-160848-bmp.jpg" width="120" height="35"/>';} ?>'</td>' echo '<td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo '<td><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td>'.$pirep->aircraft.'</td>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><span class="label label-important"><font color="green">Accepted</font></span></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><span class="label label-important"><font color="red">Rejected</font></span></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><span class="label label-warning"><font color="orange">Pending</font></span></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td>On Progress</td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?>
  18. Curshad

    OceanBlue

    Wow this Skin is absolutely Fantasic! Thank you for the Free release.
  19. Thanks i'll check it out and let you know how it works out. Again i appreciate it
  20. Hello guys is there any possible way i can add a photo slide show to my header? Im using the Obsses Blue template. If not what about a regular slideshow for the front page? I was trying to use some html coding and iframe but no luck. I'd appreciate any help offered.
  21. Anyone has a fix? would be greatly appreciated.
×
×
  • Create New...