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


PHP Rank::refreshImageSize方法代碼示例

本文整理匯總了PHP中Rank::refreshImageSize方法的典型用法代碼示例。如果您正苦於以下問題:PHP Rank::refreshImageSize方法的具體用法?PHP Rank::refreshImageSize怎麽用?PHP Rank::refreshImageSize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Rank的用法示例。


在下文中一共展示了Rank::refreshImageSize方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: implode

     echo "<td class='formTitle'><span onmouseover=\"showToolTip('Days Since Last Login')\" onmouseout='hideToolTip()' style='cursor: help'>DSL:</span></td>";
 }
 echo "\n\t\t\t<td class='formTitle'>Status:</td>\n\t\t</tr>\n\t";
 $sqlRanks = "('" . implode("','", $arrRanks) . "')";
 $sqlHideInactive = "";
 if ($websiteInfo['hideinactive'] == 1) {
     $sqlHideInactive = " AND " . $dbprefix . "members.onia = '0'";
 }
 $query = "SELECT " . $dbprefix . "members.member_id FROM " . $dbprefix . "members INNER JOIN " . $dbprefix . "ranks ON " . $dbprefix . "members.rank_id=" . $dbprefix . "ranks.rank_id WHERE " . $dbprefix . "members.rank_id IN " . $sqlRanks . " AND " . $dbprefix . "members.disabled = '0' AND " . $dbprefix . "ranks.hiderank = '0'" . $sqlHideInactive . " ORDER BY " . $dbprefix . "ranks.ordernum DESC";
 $result2 = $mysqli->query($query);
 $arrMemberCountCat[$row['rankcategory_id']] = $result2->num_rows;
 while ($arrMembers = $result2->fetch_assoc()) {
     $member->select($arrMembers['member_id']);
     $memberListInfo = $member->get_info_filtered();
     $rankObj->select($memberListInfo['rank_id']);
     $rankObj->refreshImageSize();
     $rankListInfo = $rankObj->get_info_filtered();
     $dispMainGame = "Not Set";
     if ($gameObj->select($memberListInfo['maingame_id'])) {
         $gameObj->refreshImageSize();
         $gameInfo = $gameObj->get_info_filtered();
         $arrGameCount[] = $gameInfo['gamesplayed_id'];
         $dispMainGame = "<div class='memberPageImage'><img src='" . $gameInfo['imageurl'] . "' width='" . $gameInfo['imagewidth'] . "' height='" . $gameInfo['imageheight'] . "' onmouseover=\"showToolTip('" . $gameInfo['name'] . "')\" onmouseout='hideToolTip()'></div>";
     } else {
         $arrGameCount[] = "NotSet";
     }
     $arrGamesPlayed = array_merge($arrGamesPlayed, $member->gamesPlayed());
     $dispDSL = floor((time() - $memberListInfo['lastlogin']) / 86400);
     if ($memberListInfo['onia'] == 1) {
         $dispDSL = "IA";
     }
開發者ID:nsystem1,項目名稱:clanscripts,代碼行數:31,代碼來源:members.php


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