Jump to content

Vangelis

Members
  • Posts

    1076
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vangelis

  1. In the admin section under maintenance you can recalculate all hours
  2. I am trying to create a new xml with version with that link /phpvms/index.php/XML/version but i get as a return This page contains the following errors: error on line 126 at column 22: Failed to parse QName 'height:' Below is a rendering of the page up to the first error. Can anybody inform me if i do anything wrong and if yes what ? Thanks
  3. I am creating an acars for our VA and my question is I have created a new module as per API but how do i remove the banner and the pilot info so it returnes a single line ? By example <?php require_once($_SERVER['DOCUMENT_ROOT'] . '/phpvms/core/codon.config.php'); class APV extends CodonModule { public function pageone($fruit='', $orange='') { echo "The fruit is an {$fruit} and the color is {$orange}"; } public function pagetwo() { echo "The fruit is an {$this->get->fruit} and the color is {$this->get->orange}"; } } what i mean that in my browser i need only the fruit is an apple and the color is green without any visuals Thanks
  4. if you havent found the ways just link your site in order to see the css code
  5. How bigger do you have a screenshot ?
  6. So i made the changes and i altered the db table but it seems that all the data goes into the log cell Here is a screen shot of the db table phpvms_pilots http://www.baggelis.com/printscreen.bmp and a raw data of the log cell CompanyName=Greek Scouts Airways<br />nPilotName=Vangelis Boulasikis<br />nFlightId=GSA185<br />nOnlineNetworkNbr=0<br />nFlightDate=2012-12-09<br />nAircraftName=iFly 737-800 (Wide screen)<br />nAircraftType=MEJ<br />nNbrPassengers=118<br />nCargoWeight=0 kg<br />nMtow=78244 kg<br />nStartAircraftWeight=60681 kg<br />nEndAircraftWeight=53280 kg<br />nStartFuelQuantity=10446 kg<br />nEndFuelQuantity=2970 kg<br />nDepartureIcaoName=LGKV - Megas Alexandros Intl - Greece<br />nArrivalIcaoName=LGTS - Makedonia - Greece<br />nDepartureLocalHour=20:36<br />nArrivalLocalHour=21:30<br />nDepartureGmtHour=19:36:00<br />nArrivalGmtHour=20:31:00<br />nTotalBlockTime=00:55:05<br />nTotalBlockTimeNight=00:55:05<br />nTotalAirbornTime=00:48:26<br />nTotalTimeOnGround=00:11:51<br />nTotalDistance=78 Nm<br />nMaxAltitude=12260ft<br />nCruiseSpeed=307 kt<br />nCruiseMachSpeed=0.48<br />nCruiseTimeStartSec=330<br />nCruiseTimeStopSec=968<br />nCruiseFuelStart=5277 kg<br />nCruiseFuelStop=4851 kg<br />nLandingSpeed=122 kt<br />nLandingPitch=5.66<br />nTouchDownVertSpeedFt=-526.92<br />nCaptainSentMayday=0<br />nCrashFlag=0<br />nFlightResult=Perfect<br />nPassengersOpinion=100<br />nPassengersOpinionText=-Are relieved to have landed safely after the extreme weather they experienced during landing.<br>n-Wonder if they landed or if they crashed (hard landing).<br>n<br />nFailureText=<br />nCasualtiesText=<br />nPilotBonusText=Perfect Flight, no problems and very satisfied passengers. (+150)<br>nYou landed at the scheduled airport. (+30)<br>nExtreme weather conditions during approach, but a safe landing and satisfied passengers. (+100)<br>n<br />nBonusPoints=280<br />nPilotPenalityText=Flight regulations require that you have sufficient fuel reserves upon landing (45 mn); you only had reserves for 00h19 of flight. (-300)<br>n<br />nPenalityPoints=300<br />nBitsPenalityDisabled=0<br />n
  7. Thank you for the file i will figure out the db fields from the script I will give it a go 2night and will post the results also 1 idea came up to explode the array field by using the n as identifier i will try that asswel and report back . Thank again for your help
  8. Wow that was fast Thank you for the answer 1st are you able to send me your fspax.php in order to do it like the way you mention 2ond isnt there another way ? in order to avoid any fuss with db changes
  9. Hello boys and girls I have a question regarding our new virtual airline we where using fsairliners and we decided to swith to phpvms and for that reason i am migrating the look of fsairliners to phpvms at some point everything is ok Pireps are showin in a nice table the pirep details are linkable but i have a small problem with the log i managed to explode the log file by modifing the fspax module with a custon char but in the log at the end by the comments of fspax an n i shown in front of the text example Flight Critique -Are angry because they didn't reach their destination (flight too short). n<---- You made a very smooth landing. (+50) n<---You landed at the scheduled airport. (+30) n<--- Your arrived too early at your destination airport.(13h56:24 difference) (-100) n<--- Here are the links to the tables so you can have a visual idea of what i am talking about Main Table http://www.gsairways...atestpireps.php Pirep Detail http://www.gsairways...etail.php?ID=19 and this is the code of my query <?php require 'dbcon.php'; $result1 = mysql_query("SELECT `phpvms_pireps`.`pirepid` , `phpvms_pilots`.`lastname` , `phpvms_pilots`.`firstname` , `phpvms_pireps`.`fuelused` , `phpvms_aircraft`.`name` , `phpvms_aircraft`.`registration` , `phpvms_pireps`.`fuelprice` , `phpvms_pireps`.`revenue` , `phpvms_pireps`.`log` FROM `gsairway_vms`.`phpvms_pireps` INNER JOIN `gsairway_vms`.`phpvms_pilots` ON (`phpvms_pireps`.`pilotid` = `phpvms_pilots`.`pilotid`) INNER JOIN `gsairway_vms`.`phpvms_aircraft` ON (`phpvms_aircraft`.`id` = `phpvms_pireps`.`aircraft`)WHERE phpvms_pireps.pirepid='$_GET[iD]';"); if (!$result1) { echo 'Could not run query: ' . mysql_error(); exit; } $row1 = mysql_fetch_object($result1); $splitlog = explode("$$", $row1->log); for($i = 0; $i < count($splitlog); $i++) $result = mysql_query("SELECT * FROM phpvms_pireps WHERE pirepid = '$_GET[iD]'"); if (!$result) { echo 'Could not run query: ' . mysql_error(); exit; } $row = mysql_fetch_object($result); mysql_close($link); ?> so my question is how do i get rid of the n ? Thank you in advance
  10. i could help you if you want just send me an e-mail at info(at)baggelis.com
  11. normaly you have made a site in frontapage or whatever so now the only thing what you have to do is to put the link destination as in core_navigation.tpl if you have problems with that or you dont figure it out just send me the template and i can place it for you or contact me at skype sv5frv1 cya
  12. Hi if you want send me your template and i can try and fix it for you my mail is info(at)baggelis.com
  13. You can make your own menus as you like them and you can copy the href code from the core_navigation.tpl file that is located in /core/templates/ cya
  14. also have a look at this post you ask almost the same thing with deferent words Forum Post
  15. If your pilot's log via your phpvms you can take acarsmap.tpl copy everything exept from the map and there it is For example create a new php with that and it should work just delete the column that you dont need <?php /** * These are some options for the ACARS map, you can change here * * By default, the zoom level and center are ignored, and the map * will try to fit the all the flights in. If you want to manually set * the zoom level and center, set "autozoom" to false. * * You can use these MapTypeId's: * http://code.google.com/apis/maps/documentation/v3/reference.html#MapTypeId * * Change the "TERRAIN" to the "Constant" listed there - they are case-sensitive * * Also, how to style the acars pilot list table. You can use these style selectors: * * table.acarsmap { } * table.acarsmap thead { } * table.acarsmap tbody { } * table.acarsmap tbody tr.even { } * table.acarsmap tbody tr.odd { } */ ?> <div class="mapcenter" align="center"> <div id="acarsmap" style="width:<?php echo Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div> </div> <?php /* See below for details and columns you can use in this table */ ?> <table border = "0" width="100%" class="acarsmap"> <thead> <tr> <td><b>Pilot</b></td> <td><b>Flight Number</b></td> <td><b>Departure</b></td> <td><b>Arrival</b></td> <td><b>Status</b></td> <td><b>Altitude</b></td> <td><b>Speed</b></td> <td><b>Distance/Time Remain</b></td> </tr> </thead> <tbody id="pilotlist"></tbody> </table> <script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js');?>"></script> <?php /* This is the template which is used in the table above, for each row. Be careful modifying it. You can simply add/remove columns, combine columns too. Keep each "section" (<%=...%>) intact Variables you can use (what they are is pretty obvious) Variable: Notes: <%=flight.pilotid%> <%=flight.firstname%> <%=flight.lastname%> <%=flight.pilotname%> First and last combined <%=flight.flightnum%> <%=flight.depapt%> Gives the airport name <%=flight.depicao%> <%=flight.arrapt%> Gives the airport name <%=flight.arricao%> <%=flight.phasedetail%> <%=flight.heading%> <%=flight.alt%> <%=flight.gs%> <%=flight.disremaining%> <%=flight.timeremaning%> <%=flight.aircraft%> Gives the registration <%=flight.aircraftname%> Gives the full name <%=flight.client%> FSACARS/Xacars/FSFK, etc <%=flight.trclass%> "even" or "odd" You can also use logic in the templating, if you so choose: http://ejohn.org/blog/javascript-micro-templating/ */ ?> <script type="text/html" id="acars_map_row"> <tr class="<%=flight.trclass%>"> <td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td> <td><%=flight.flightnum%></td> <td><%=flight.depicao%></td> <td><%=flight.arricao%></td> <td><%=flight.phasedetail%></td> <td><%=flight.alt%></td> <td><%=flight.gs%></td> <td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td> </tr> </script> <?php /* This is the template for the little map bubble which pops up when you click on a flight Same principle as above, keep the <%=...%> tags intact. The same variables are available to use here as are available above. */ ?> <script type="text/html" id="acars_map_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a><br /> <strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br /> <strong>Status: </strong><%=flight.phasedetail%><br /> <strong>Dist/Time Remain: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br /> </span> </script> <?php /* This is a small template for information about a navpoint popup Variables available: <%=nav.title%> <%=nav.name%> <%=nav.freq%> <%=nav.lat%> <%=nav.lng%> <%=nav.type%> 2=NDB 3=VOR 4=DME 5=FIX 6=TRACK */ ?> <script type="text/html" id="navpoint_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br /> <strong>Type: </strong> <?php /* Show the type of point */ ?> <% if(nav.type == 2) { %> NDB <% } %> <% if(nav.type == 3) { %> VOR <% } %> <% if(nav.type == 4) { %> DME <% } %> <% if(nav.type == 5) { %> FIX <% } %> <% if(nav.type == 6) { %> TRACK <% } %> <br /> <?php /* Only show frequency if it's not a 0*/ ?> <% if(nav.freq != 0) { %> <strong>Frequency: </strong><%=nav.freq%> <% } %> </span> </script>
  16. Have a look at http://www.utr-online.com/Software.asp?page=5
  17. Vangelis

    Tables

    can you please tell us where do you want to place that tables ? Solution 1 <strong>Registered Pilots </strong><?php echo StatsData::PilotCount($airline->code); ?><br /> <strong>Filed Pireps </strong><?php echo StatsData::TotalFlights($airline->code); ?><br /> <strong>Total Hours </strong><?php echo StatsData::TotalHours($airline->code); ?><br />
  18. Now it should be working
  19. 2 more templates added Thanks to Oceanica Virtual Aviation sugestion
  20. Is there by any change that you mean something like this ?? Your Template
  21. Hello guys and girls as i promised i added a new skin Have a look at Skins Released 2 more templates added
  22. And here you can tryout the templates and download them if you want Templates Cheers and if you need anything pm me
  23. I have made this template to work with phpvms and i will try to make a new one every day So please tell me what do yoy think about these one so i can se my mistakes and correct them thanks http://www.baggelis.com/phpvms/index.php/ If anybody whant's it pm me so i can send it to you and i will upload it when i am finished with my site see ya
×
×
  • Create New...