本文整理汇总了PHP中server::getRealmName方法的典型用法代码示例。如果您正苦于以下问题:PHP server::getRealmName方法的具体用法?PHP server::getRealmName怎么用?PHP server::getRealmName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类server
的用法示例。
在下文中一共展示了server::getRealmName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
<table width="100%">
<tr><th>User</th><th>Character</th><th>Realm</th><th>Item</th><th>Date</th></tr>
<?php
while ($row = mysql_fetch_assoc($result)) {
?>
<tr class="center">
<td><?php
echo $account->getAccName($row['account']);
?>
</td>
<td><?php
echo $account->getCharName($row['char_id'], $row['realm_id']);
?>
</td>
<td><?php
echo $server->getRealmName($row['realm_id']);
?>
</td>
<td><a href="http://<?php
echo $GLOBALS['tooltip_href'];
?>
item=<?php
echo $row['entry'];
?>
" title="" target="_blank">
<?php
echo $server->getItemName($row['entry']);
?>
</a></td>
<td><?php
echo $row['date'];
示例2: elseif
} else {
?>
<span class="attention">Instance Reset costs
<?php
echo $GLOBALS['service'][$service]['price'] . ' ' . website::convertCurrency($GLOBALS['service'][$service]['currency']);
?>
</span>
<?php
if ($GLOBALS['service'][$service]['currency'] == "vp") {
echo "<span class='currency'>Vote Points: " . account::loadVP($_SESSION['cw_user']) . "</span>";
} elseif ($GLOBALS['service'][$service]['currency'] == "dp") {
echo "<span class='currency'>" . $GLOBALS['donation']['coins_name'] . ": " . account::loadDP($_SESSION['cw_user']) . "</span>";
}
}
if (isset($_POST['ir_step1']) || isset($_POST['ir_step2'])) {
echo 'Selected realm: <b>' . server::getRealmName($_POST['ir_realm']) . '</b><br/><br/>';
} else {
?>
Select realm:
<form action="?p=instancereset" method="post">
<table>
<tr>
<td>
<select name="ir_realm">
<?php
$result = mysql_query("SELECT name,char_db FROM realms");
while ($row = mysql_fetch_assoc($result)) {
if (isset($_POST['ir_realm']) && $_POST['ir_realm'] == $row['char_db']) {
echo '<option value="' . $row['char_db'] . '" selected>';
} else {
示例3: while
<th>Service</th>
<th>Description</th>
<th>Realm</th>
<th>Date</th>
</tr>
<?php
$server->selectDB('webdb');
$result = mysql_query("SELECT * FROM user_log WHERE account='" . (int) $_GET['getslogs'] . "'");
if (mysql_num_rows($result) == 0) {
echo 'No logs was found for this account!';
} else {
while ($row = mysql_fetch_assoc($result)) {
echo '<tr class="center">';
echo '<td>' . $row['service'] . '</td>';
echo '<td>' . $row['desc'] . '</td>';
echo '<td>' . $server->getRealmName($row['realmid']) . '</td>';
echo '<td>' . date('Y-m-d H:i', $row['timestamp']) . '</td>';
echo '</tr>';
}
}
?>
</table>
<hr/>
<?php
}
?>
<table width="100%">
<tr>
<td>Username or ID: </td>
<form action="" method="get">
<input type="hidden" name="p" value="users">