-
Posts
2283 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by mark1million
-
Hi Nabeel, would it be possible to add a notes section or history in the admin section of the view pilots. I would like to be able to add comments about pilots which would be for admin eyes only like a private history tab or something like that, just somewhere to keep pertinent information about the pilot.
-
To be honest Nabeel im not sure, I think it was OK on the release version.
-
Where is this in the admin section?
-
Nabeel, im on 932 and when a pilot goes to view details of a schedule the page loads out of the header and footer templates, any ideas please? Example url, http://www.easyjetva.com/index.php/schedules/brief/1576
-
Im on 932 and nothing since, i have only had the one but will keep a look out.
-
Im on 932 so if it happens again i will post back here, but its only been the 1 pilot so for and i have quite a few flights a day go through my va.
-
Yes i had a pilot report this as well, i just thought it was a one off and reset his destination from the admin pireps
-
Can anyone offer some help, I want to capture the ipaddress of anyone that uses the contact us form (contact_form.tpl) i have added the following to the form but do i need to modify the contact.php code in the modules folder as well? <input name="ip" type="hidden" value="<?PHP echo $_SERVER['REMOTE_ADDRESS']; ?>"> All that is displayed in the mail currently is -ip
-
I have that skin and its fine, try this code, <div class="mcright"> <?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 { } */ ?> <script type="text/javascript"> <?php /* These are the settings for the Google map. You can see the Google API reference if you want to add more options. There's two options I've added: autozoom: This will automatically center in on/zoom so all your current flights are visible. If false, then the zoom and center you specify will be used instead refreshTime: Time, in seconds * 1000 to refresh the map. The default is 10000 (10 seconds) */ ?> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.TERRAIN, refreshTime: 10000 }; </script> <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 = "1" width="100%" class="acarsmap"> <thead> <tr> <th><b>Pilot</b></th> <th><b>Flight #</b></th> <th><b>Departure</b></th> <th><b>Arrival</b></th> <th><b>Status</b></th> <th><b>Altitude</b></th> <th><b>Speed</b></th> <th><b>Distance/Time Remain</b></th> </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> </div> </div> If its not that then its a setting on your server.
-
It does say its meant to be in there twice and not to remove
-
Just create a file called local.config.php with 776 permissions and put it in your core folder. The main lines you need are <?php /** * This is the phpVMS Main Configuration File * * This file won't be modified/touched by future versions * of phpVMS, you can change your settings here * * There may also be additional settings in app.config.php * To change it, copy the line into this file here, for the * settings to take effect * */ define('DBASE_USER', ''); define('DBASE_PASS', ''); define('DBASE_NAME', ''); define('DBASE_SERVER', 'localhost'); define('DBASE_TYPE', 'mysql'); define('TABLE_PREFIX', 'phpvms_'); define('SITE_URL', ''); # Page encoding options Config::Set('PAGE_ENCODING', 'ISO-8859-1'); # Maintenance mode - this disables the site to non-admins Config::Set('MAINTENANCE_MODE', false); Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for routine maintenance, please check back soon.'); # See more details about these in the docs Config::Set('PAGE_EXT', '.htm'); # .htm is fine. You can still run PHP Config::Set('PILOTID_OFFSET', 0); # What # to start pilot ID's from Config::Set('PILOTID_LENGTH', 4); # Length of the Pilot ID Config::Set('UNITS', 'nm'); # Your units: nm, mi or km Config::Set('LOAD_FACTOR', '96'); # %age load factor Config::Set('CARGO_UNITS', 'Kg'); ?>
-
You can clear the cache folder within the admin maintenance
-
Sorry if this has been covered off before but on my site the schedules/view takes ages to load when hitting the page with IE, FF and Chrome it loads instantly but ie it takes about 25 seconds, any ideas please?
-
Did you also run install/update.php and gave your core/cache 775 permissions? Also i would add a ht access deny to that folder as well
-
you have a couple of divs missing on that template use <div class="mcright"> at the top of that template and close it off at the bottom see how you go.
-
# Fuel info /* Default fuel price, for airports that don't have And the surcharge percentage. View the docs for more details about these */ Config::Set('FUEL_GET_LIVE_PRICE', true); Config::Set('FUEL_DEFAULT_PRICE', '1.10'); Config::Set('FUEL_SURCHARGE', '5'); This the setting i currently use.
-
Rev 928 - VMS-261 VMS-262 VMS-263 VMS-264 VMS-265 VMS-266 #close fixed
mark1million replied to Nabeel's topic in Build Log
Nabeel, I still can not edit existing expenses, i get the following error An Error Was Encountered The module "FINANCES" doesn't exist! I can add new expenses but when i go to then remove them i get the delete conformation box OK but when i refresh they all come back, i have tried on all different browsers and still the same. -
Ha you really have got ghosts and germlins in your server
-
Nabeel, Is there a quick fix for the signatures to only show 2 after the decimal, example see in my signature earnings.
-
Nabeel i get the same error when i want to add or remove expenses. checkinstall is OK check db is also OK. Re uploaded module as well, this is happening om my dev site as well
-
Hi Nabeel, Yes i have the following info in that, dateadded name type cost 201002 Landing Fees F 1500 201003 Landing Fees F 1500 201004 Ramp Fees F 100 201004 Landing Fees F 1500 201004 Catering F 500 201004 Cleaning F 50 And the update is a reset pirep finances from the admin menu maintenance. For some reason Landing fees are in there 3 times is this correct?
-
Update.... I have just tried updating the finances from the admin section and i get, An Error Was Encountered The module "FINANCES" doesn't exist! Which is strange as i only done an update i didn't remove anything
-
Hi Nabeel, After the released update i have the following glitches, In the admin section if you edit the airports the pop-up wont disappear Admin section Flights today remains at 0 (on the front page this works OK) Finances, additional finances are not displayed in the chart its just pilot pay and fuel.(tried a reset finances but that done nothing) Cheers.
-
Its been my pleasure Thank you for the the great piece of work that is "phpVMS"