Jump to content

mark1million

Moderators
  • Posts

    2283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. Hey i like your site it look very good, clean layout, how do you get the acars info in the scrolling marquee if you wouldnt mind sharing. As for the pilots list i have an example of all the pilots with out the airports for aerosoft so they can verify my guys hours, <h3>Hours Validation</h3> <p>To Quick search name or pilot id hit Ctrl + F and and type in data.</p> <?php if(!$allpilots) { echo 'There are no pilots!</div>'; return; } ?> <table width="380" cellspacing="1" cellpadding="5" border="1"> <thead> <tr> <th width="60px">Pilot ID</th> <th width="200px">Name</th> <th width="55px">Hours</th> <th width="65px">Active/Inactive</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ ?> <tr> <td width="1%" nowrap><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <div align="left"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </div></td> <td><div align="center"><?php echo $pilot->totalhours?></div></td> <td><div align="center"><?php If ($pilot->retired == 0) { echo '<img src="/images/green-status.gif" />'; } else { echo '<img src="/images/red-status.gif" />'; } ?></div></td></div></td> <?php } ?> </div> </tbody> </table> You get the idea so you can add or remove columns as you wish
  2. You are the man, working perfectly thank you for that fix.
  3. Jeff you are a star, i was just looking at changing that as the pilot ID's are handy to see
  4. OK so if your on a beta here is the code for you <h3>Pilots List</h3> <table id="grid"></table> <div id="pager"></div> <br /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo fileurl('/lib/js/jqgrid/css/ui.jqgrid.css');?>" /> <script src="<?php echo fileurl('/lib/js/jqgrid/js/i18n/grid.locale-en.js');?>" type="text/javascript"></script> <script src="<?php echo fileurl('/lib/js/jqgrid/js/jquery.jqGrid.min.js');?>" type="text/javascript"></script> <script type="text/javascript"> $("#grid").jqGrid({ url: '<?php echo adminaction('/pilotadmin/getpilotsjson');?>', datatype: 'json', mtype: 'GET', colNames: ['','First', 'Last', 'Email', 'Location', 'Status', 'Rank', 'Flights', 'Hours', 'IP', 'Edit'], colModel : [ {index: 'id', name: 'id', hidden: true, search: false }, {index: 'firstname', name : 'firstname',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}}, {index: 'lastname', name : 'lastname', sortable : true, align: 'left', searchoptions:{sopt:['in']}}, {index: 'email', name : 'email', sortable : true, align: 'left',searchoptions:{sopt:['li']}}, {index: 'location', name : 'location', sortable : true, align: 'center',searchoptions:{sopt:['eq','ne']}}, {index: 'retired', name : 'status', sortable : true, align: 'center',searchoptions:{sopt:['in']}}, {index: 'rank', name : 'rank', sortable : true, align: 'center', searchoptions:{sopt:['eq','ne']}}, {index: 'totalflights', name : 'totalflights', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'totalhours', name : 'totalhours', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'lastip', name : 'lastip', sortable : true, align: 'center', searchoptions:{sopt:['in']}}, {index: '', name : '', sortable : true, align: 'center', search: false} ], pager: '#pager', rowNum: 25, sortname: 'lastname', sortorder: 'asc', viewrecords: true, autowidth: true, height: '100%' }); jQuery("#grid").jqGrid('navGrid','#pager', {edit:false,add:false,del:false,search:true,refresh:true}, {}, // edit {}, // add {}, //del {multipleSearch:true} // search options ); </script> Rather than copy all the code its just a simple name change on line 23 at the beginning, from status to retired
  5. Ah im on a beta and the pilot id's are no longer displayed, that could be the problem but ill manually update that to reflect the correct column and see what happens.
  6. Solution, Run the install check cURL was not enabled
  7. Thanks Jeff, nice one. [edit] Doesn't seem to work, all its done is shifted the country flag over and lost a column.
  8. HI Nabeel, The past couple of days have been a massive headache, i wont bore you with the details but i have to reinstall apache among other things after an os upgrade to Ununtu 10.4. Now my pireps are not sending and if i send them manually i get, FAILED exporting PIREP #1512 - No response from API server with the list of pirep numbers. Currently were at 31 waiting to be exported. I also changed the name on VA central a couple of days ago as well so that may also have something to do with it.
  9. Check your dates, you created an event for the 1st october in the past, try another date in the future.
  10. Yes Jeff, The mission statement from the makers were to continue to add functionality so eventually all offsets were the same as FS, from that i have tested (not extensively) its seems to be OK, the only things that are not happening is the aircraft type and the heading for the live acars, apart from that it seems to be performing OK.
  11. HI just remember its always yoursiteurl/index.php/modulename
  12. There is a script here if you just do a search for pagination, joeri has it on his site
  13. HI guys, I have just tried this again with the new version of XPUIPC Version 1.9.0 and i couldnt seem to find a problem with it it the way its logging data, the only thing i found so far was it reporting 0 and heading on the maps but that's no big problem. Fuel T/O data and Landing rate was all logged correctly. The designers release updates to XPUIPC, their goal is for every addon to work the same way as MSFS through the interface. Give it a try Here is the version of XPUIPC for everyone to test. XPUIPC.zip
  14. Just add in your css the image and class, for example .news { background: url(image/news.png) no-repeat left; height:26px; color: #FF0000; font-size: 18px; font-family: Times New Roman; padding-left: 30px; padding-bottom: 3px; margin-top: 5px;
  15. www.mysite.com / index.php / toppilot. See here, http://forum.phpvms.net/topic/2225-toppilot-beta-10/
  16. How have you implemented, i would suggest starting from a fresh from the initial release then making the modifications afterwards. Might be worth a shot.
  17. A quick fix to this would be a drop down box for login.
  18. Just place this code on a page and open it, after its populated remove or comment it out, Nabeel has fixed in another beta release. <?php FinanceData::updateAllExpenses(); ?> Topic is http://forum.phpvms.net/topic/3192-end-of-month-finances/page__p__21397__hl__%2Bfinances+%2Bat+%2B0__fromsearch__1#entry21397
  19. One way is to do as Aerosoft have done, http://www.aerosoft.com/shop-re/home1.html click on your countries flag then that takes you to the translated files for your site. there are other ways by detecting ipaddresses but thats the easiest by far.
  20. That line will be in your header tpl
  21. What skin are you trying to use?
  22. HI there is no css styles being used, go to the admin and change the default back to crystal
×
×
  • Create New...