當前位置: 首頁>>代碼示例>>PHP>>正文


PHP server::getRealmName方法代碼示例

本文整理匯總了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'];
開發者ID:nero08,項目名稱:CraftedWeb,代碼行數:31,代碼來源:logs-voteshop.php

示例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: 
&nbsp;
<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 {
開發者ID:Kheros,項目名稱:CraftedWeb,代碼行數:31,代碼來源:instancereset.php

示例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">
開發者ID:nero08,項目名稱:CraftedWeb,代碼行數:31,代碼來源:users-manage.php


注:本文中的server::getRealmName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。