当前位置: 首页>>代码示例>>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;未经允许,请勿转载。