Jump to content

pilot center


RoylesVA

Recommended Posts

Hey i been working on my pilot center useing all the right codes but i get an error on the last line can anyone have a look and let me know whats missing

Thanks Nathan

<div id="mainbox">

<h3>Pilot Center</h3>

<div class="indent">

<td><p><strong>Welcome back <?php echo $pilot->firstname . ' ' . $pilot->lastname; ?>!</strong></p>

</tr>

</table>

<table width="152" height="68" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="188" height="68"><?php PopUpNews::PopUpNewsList(3); ?>

</tr>

</table>

<table width="589" height="45" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<th width="192" scope="col"><img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" />

<th width="192" scope="col"><img src="<?php echo $pilot->rankimage ?>" />

<th width="197" scope="col"><?php MainController::Run('Mail', 'checkmail'); ?>

<p><a href="<?php echo url('/Mail'); ?>">Royles AirMail</a>

</tr>

</table>

<table width="290" height="149" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td><li><strong>Your Pilot ID: </strong> <?php echo $pilotcode; ?></li>

<li><strong>Your Rank: </strong><?php echo $pilot->rank;?></li>

<?php

if($report) { ?>

<li><strong>Latest Flight: </strong><a

href="<?php echo url('pireps/view/'.$report->pirepid); ?>">

<?php echo $report->code . $report->flightnum; ?></a>

</li>

<?php

}

?>

<li><strong>Total Flights: </strong><?php echo $pilot->totalflights?></li>

<li><strong>Total Hours: </strong><?php echo $pilot->totalhours; ?></li>

<li><strong>Total Transfer Hours: </strong><?php echo $pilot->transferhours?></li>

<li><strong>Total Money: </strong><?php echo FinanceData::formatMoney((floatval($pilot->totalpay) + floatval($pilot->payadjust))) ?></li>

<?php

if($nextrank)

{

?>

</tr>

</table>

<table width="707" height="94" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td width="256" height="94" align="left"><strong>Profile Options</strong>

<ul>

<li><a href="<?php echo url('/profile/editprofile'); ?>">Edit My Profile, Email and Avatar</a></li>

<li><a href="<?php echo url('/profile/changepassword'); ?>">Change my Password</a></li>

<li><a href="<?php echo url('/profile/badge'); ?>">View my Badge</a></li>

<li><a href="<?php echo url('/profile/stats'); ?>">My Stats</a></li>

<li><a href="<?php echo url('/downloads'); ?>">View Downloads</a></li>

</ul>

</p>

<td width="242" align="center" valign="top"><strong> Flight Operations</strong>

<ul>

<li><a href="<?php echo url('/pireps/mine');?>">View my PIREPs</a></li>

<li><a href="<?php echo url('/pireps/routesmap');?>">View a map of all my flights</a></li>

<li><a href="<?php echo url('/pireps/filepirep');?>">File a Pilot Report</a></li>

<li><a href="<?php echo url('/schedules/view');?>">View Flight Schedules</a></li>

<li><a href="<?php echo url('/schedules/bids');?>">View my flight bids</a></li>

<li><a href="<?php echo url('/finances');?>">View VA Finances</a></li>

</ul>

<td width="209" valign="top"><strong>My Awards</strong><br />

<?php

if(!$allawards) {

echo 'No awards yet';

} else {

/* To show the image:

<img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" />

*/

?>

<ul>

<?php foreach($allawards as $award){ ?>

<li><?php echo $award->name ?></li>

<?php } ?>

</ul>

<?php

}

?>

</tr>

</table>

<table width="300" border="0" cellspacing="0" cellpadding="0">

<tr>

</tr>

</table>

<table width="516" height="55" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td>

<strong>ACARS Config</strong>

<ul>

<li><a href="<?php echo actionurl('/acars/fspaxconfig');?>">Download FSPax Config</a></li>

<li><a href="<?php echo actionurl('/acars/xacarsconfig');?>">Download XAcars Config</a></li>

<li><a href="<?php echo actionurl('/fsfk/vaconfig_template');?>">VA-Template.txt</a>

</tr>

</table>

</td>

</tr></table>

</div>

</div>

<br />

Link to comment
Share on other sites

Guest lorathon

That is the error. The error states that it has come to the end of the script without the if closing. Unexpected $end. It was expecting the } closure of the if statement.

Just remove the if($nextrank) {

Link to comment
Share on other sites

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