North Air Posted July 24, 2011 Report Share Posted July 24, 2011 Good eve to all! Short question: would it be possible to reset pilots_list.tpl to default PHP-VMS one? We´ve now RealScheduleLite installed, but unfortunately it´s unable to restrict pilots usage of aircraft (limited by ranks) and double bids. Could someone post the code of the default which still includes the above mentioned features? Many thanks and best wishes for a silent night from rainy Germany Tobias www.northair-va.de Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted July 24, 2011 Moderators Report Share Posted July 24, 2011 <h3><?php echo $title?></h3> <?php if(!$pilot_list) { echo 'There are no pilots!'; return; } ?> <table id="tabledlist" class="tablesorter"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> </tr> </thead> <tbody> <?php foreach($pilot_list 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'); */ // To skip a retired pilot, uncomment the next line: //if($pilot->retired == 1) { continue; } ?> <tr> <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td> <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <td><?php echo $pilot->totalflights?></td> <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> <?php } ?> </tbody> </table> Here it is! Quote Link to comment Share on other sites More sharing options...
North Air Posted July 25, 2011 Author Report Share Posted July 25, 2011 And this code restricts airvraft usage by rank and double bids? Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted July 25, 2011 Moderators Report Share Posted July 25, 2011 No . It will give you back the default pilots_list.tpl. If you want to restrict aircraft usage by ranks you must go to your admin center -> Airline Operations -> Add $ Edit Fleet -> Edit or add and aircraft -> On the form find out the Minimum Rank Required to fly and check the drop down menu. If you want to restrict double bids check your local.config.php and replace where Config::Set('DISABLE_SCHED_ON_BID', false); with Config::Set('DISABLE_SCHED_ON_BID', true); I would like to suggest you to activate the auto remove bid which will remove the pilot's bid after x hours . Quote Link to comment Share on other sites More sharing options...
North Air Posted July 25, 2011 Author Report Share Posted July 25, 2011 Thanks servetas! Do you know how to add to remove unflown bids after X hrs? Quote Link to comment Share on other sites More sharing options...
North Air Posted July 25, 2011 Author Report Share Posted July 25, 2011 How damn I´am? I´ve requested wrong help, sorry! Could anyone tell me how to deinstall RealScheduleLight? I would like to have the default PHPVMS booking site. Many thanks for your kind assistance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.