本文整理汇总了PHP中PilotData::getPilotAvatar方法的典型用法代码示例。如果您正苦于以下问题:PHP PilotData::getPilotAvatar方法的具体用法?PHP PilotData::getPilotAvatar怎么用?PHP PilotData::getPilotAvatar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PilotData
的用法示例。
在下文中一共展示了PilotData::getPilotAvatar方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) {
die;
}
?>
<div id="mainbox">
<h3>Pilot Center</h3>
<div class="indent">
<p><strong>Welcome back <?php
echo $pilot->firstname . ' ' . $pilot->lastname;
?>
!</strong></p>
<table>
<tr>
<td valign="top" align="center">
<img src="<?php
echo PilotData::getPilotAvatar($pilotcode);
?>
" />
<br /><br />
<img src="<?php
echo $pilot->rankimage;
?>
" />
</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
示例2:
<input type="password" name="password" value="" />
<input type="hidden" name="remember" value="on" />
<input type="hidden" name="redir" value="index.php/profile" />
<input type="hidden" name="action" value="login" />
<input type="submit" name="submit" value="Log In" />
</form>
<?php
} else {
/* Auth::$userinfo has the information about the user currently logged in
We will use this next line - this gets their full pilot id, formatted properly */
$pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
?>
<img align="left" height="50px" width="50px" style="margin-right: 10px;"
src="<?php
echo PilotData::getPilotAvatar($pilotid);
?>
" />
<strong>Pilot ID: </strong> <?php
echo $pilotid;
?>
<strong>Rank: </strong><?php
echo Auth::$userinfo->rank;
?>
<br />
<strong>Total Flights: </strong><?php
echo Auth::$userinfo->totalflights;
?>
, <strong>Total Hours: </strong><?php
echo Auth::$userinfo->totalhours;