Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

<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! B)

  • Moderators
Posted

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 ;) .

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...