本文整理汇总了PHP中Globals::getCouncilHREF方法的典型用法代码示例。如果您正苦于以下问题:PHP Globals::getCouncilHREF方法的具体用法?PHP Globals::getCouncilHREF怎么用?PHP Globals::getCouncilHREF使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Globals
的用法示例。
在下文中一共展示了Globals::getCouncilHREF方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
?>
</span>
<br />
<a class="nav" href="<?php
echo $PlayerNameLink;
?>
"><?php
echo $ThisPlayer->getDisplayName();
?>
</a>
</div>
</td>
<td>
<div class="topcenterOne noWrap">
Race: <a href="<?php
echo Globals::getCouncilHREF($ThisPlayer->getRaceID());
?>
"><?php
echo $ThisPlayer->getColouredRaceName($ThisPlayer->getRaceID());
?>
</a><br />
Turns : <span id="turns">
<span class="<?php
switch ($ThisPlayer->getTurnsLevel()) {
case 'NONE':
case 'LOW':
echo 'red';
break;
case 'MEDIUM':
echo 'yellow';
示例2: foreach
Below you may decide to declare War or make Peace with other races within the Universe.<br />Remember that Peace votes are subject to veto by corresponding Racial President.<br />Choose wisely, for the fate of your race may lie with your decision.
</div><br /><br />
<table class="standard center" width="50%">
<tr>
<th>Race</th>
<th>Treaty</th>
</tr><?php
foreach ($VoteRaceHrefs as $RaceID => $FormHref) {
?>
<tr>
<td align="center"><img src="<?php
echo Globals::getRaceHeadImage($RaceID);
?>
" width="60" height="64" /><br /><a href="<?php
echo Globals::getCouncilHREF($RaceID);
?>
"><?php
echo $ThisPlayer->getColouredRaceName($RaceID);
?>
</a></td>
<td align="center">
<form method="POST" action="<?php
echo $FormHref;
?>
">
<input type="submit" name="action" value="Peace" id="InputFields" />
<input type="submit" name="action" value="War" id="InputFields" />
</form>
</td>