Jump to content

Recommended Posts

  • Moderators
Posted

ah sorry Nabeel

here it is

<div id="mainbox">
<h3>Pilot Center</h3>
<div class="indent">
<p><strong>Welcome back <?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?>!</strong></p>
<table>
<tr>
<td valign="top" align="center">
	<img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" />
	<br /><br />
	<img src="<?php echo RanksData::GetRankImage($userinfo->rank) ?>" />
</td>
<td valign="top">
	<ul style="margin-top: 0px;">
		<li><strong>Your Pilot ID: </strong> <?php echo $pilotcode; ?></li>
		<li><strong>Your Rank: </strong><?php echo $userinfo->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 $userinfo->totalflights?></li>
		<li><strong>Total Hours: </strong><?php echo $userinfo->totalhours; ?></li>
		<li><strong>Total Transfer Hours: </strong><?php echo $userinfo->transferhours?></li>
		<li><strong>Total Money: </strong><?php echo FinanceData::FormatMoney($userinfo->totalpay) ?></li>

		<?php
		if($nextrank)
		{
		?>
			<p>You have <?php echo ($nextrank->minhours - $pilot_hours)?> hours 
				left until your promotion to <?php echo $nextrank->rank?></p>
		<?php
		}
		?>
	</ul>

</td>
</tr>
</table>
<table>
<tr>
<td valign="top" nowrap>
	<p>
		<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 SITE_URL.SIGNATURE_PATH.'/'.$pilotcode.'.png' ?>">View my Badge</a></li>
			<li><a href="<?php echo url('/downloads'); ?>">View Downloads</a></li>
		</ul>
	</p>
	<p>
		<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>	
	</p>
	<p>
		<strong>Awards</strong>
         <?php
         if(is_array($allawards))
         {         
         ?>
         <ul>
            <?php foreach($allawards as $award)
            { 
               /* To show the image:*/?>
               <li><?php echo $award->name ?> 
                  <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></li>
               
            
            
               
            <?php } ?>
         </ul>   
         <?php
         }
         ?>
	</p>
	<p>
		<strong>ACARS Config</strong>
		<ul>
			<li><a href="<?php echo actionurl('/acars/fsacarsconfig');?>">Download FSACARS Config</a></li>
			<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><strong>For FSFK, you need the following (Place in Documents/FS Flight Keeper/Templates): </strong></li>
			<li><a href="<?php echo actionurl('/fsfk/vaconfig_template');?>">VA-Template.txt</a></li>
		</ul>
	</p>
</td>
<td valign="top">
	<?php StatsData::PilotAircraftFlownGraph($userinfo->pilotid); ?>
</td>
</tr></table>
</div>
</div>
<br />

the same is on the public side you can view here

http://www.tnt-virtual.be/index.php/profile/view/1

gr joeri

  • Administrators
Posted

This

/* To show the image:*/?>
               <li><?php echo $award->name ?>&nbsp
                  <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></li>

remove the

<?php echo $award->name ?>

peice

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