Okay, I was trying it. But it doesnt work!
At the moment i dont have added the control for ranks (because the double-bid doesnt work )
Please help me, here is the code:
//If pilot is logged in check their location
//If the pilot is at this airport allow them to bid on flights
if(Auth::LoggedIn() == true)
{
$location = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, ‘’);
$location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);
if(!$location == $name->hub)
{
echo ‘<td><a id="’.$flight->id.'" class=“addbid”
href=“‘.actionurl(’/schedules/addbid’).'”>Buchen</a></td>';
}
else if($location->arricao == $name->icao)
{
echo ‘<td><a id="’.$flight->id.'" class=“addbid”
href=“‘.actionurl(’/schedules/addbid’).'”>Buchen</a></td>';
}
else
{
echo ‘<td>Sie sind nicht in ‘.$name->name.’</td>’;
}
}
if(Auth::LoggedIn() == true)
{
if(Config::Get(‘DISABLE_SCHED_ON_BID’) == true && $route->bidid != 0)
{
echo ‘<td><a id="’.$flight->id.'" class=“addbid”
href=“‘.actionurl(’/schedules/addbid’).'”>Buchen</a></td>';
}
{
if(Auth::LoggedIn())
{
?>
<a id=“<?php echo $route->id; ?>” class=“addbid”
href=“<?php echo url(‘/schedules/addbid’);?>”>Buchung</a>
<?php
}
}
}
But i can add an bid, who have added another!
Can one help me? And eventually say me how i can add the flight restrictions for rankings? Or can one correct it?