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


PHP Rank::getLocalImageURL方法代碼示例

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


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

示例1: foreach

        }
        echo "\n\t\t\t<tr>\n\t\t\t\t<td class='main' align='center' colspan='2'><img src='" . $rankCatInfo['imageurl'] . "' width='" . $rankCatInfo['imagewidth'] . "' height='" . $rankCatInfo['imageheight'] . "' onmouseover=\"showToolTip('<b>" . $rankCatInfo['name'] . "</b><br>" . $rankCatInfo['description'] . "')\" onmouseout='hideToolTip()'></td>\n\t\t\t</tr>\n\t\t";
    } else {
        $dispCatDesc = "";
        if ($rankCatInfo['description'] != "") {
            $dispCatDesc = " style='cursor: pointer' onmouseover=\"showToolTip('<b>" . $rankCatInfo['name'] . "</b><br>" . $rankCatInfo['description'] . "')\" onmouseout='hideToolTip()'";
        }
        echo "\n\t\t\t<tr>\n\t\t\t\t<td class='formTitle' align='center' colspan='2'><span" . $dispCatDesc . ">" . $rankCatInfo['name'] . "</span></td>\n\t\t\t</tr>\n\t\t";
    }
    $arrRanks = $rankCatObj->getAssociateIDs("ORDER BY ordernum DESC");
    foreach ($arrRanks as $rankID) {
        $rankObj->select($rankID);
        $rankInfo = $rankObj->get_info_filtered();
        if ($rankInfo['hiderank'] == 0) {
            if ($rankInfo['imagewidth'] == 0) {
                $imageURL = $rankObj->getLocalImageURL();
                $imageSize = getimagesize($imageURL);
                $rankInfo['imagewidth'] = $imageSize[0];
            }
            if ($rankInfo['imageheight'] == 0) {
                $imageURL = $rankObj->getLocalImageURL();
                $imageSize = getimagesize($imageURL);
                $rankInfo['imageheight'] = $imageSize[1];
            }
            echo "\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='center' valign='top' style='width: 50%'>\n\t\t\t\t\t\t<img src='" . $rankInfo['imageurl'] . "' width='" . $rankInfo['imagewidth'] . "' height='" . $rankInfo['imageheight'] . "'>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td valign='top' style='width: 50%' class='main'>\n\t\t\t\t\t\t<b>" . $rankInfo['name'] . "</b><br>\n\t\t\t\t\t\t" . nl2br($rankInfo['description']) . "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr><td colspan='2'><br></td></tr>\n\t\t\t";
        }
    }
    echo "<tr><td colspan='2'><br></td></tr>";
}
echo "</table>";
include $prevFolder . "themes/" . $THEME . "/_footer.php";
開發者ID:nsystem1,項目名稱:clanscripts,代碼行數:31,代碼來源:ranks.php

示例2: array

                     if (isset($_POST[$strPostVarName]) && $_POST[$strPostVarName] == 1) {
                         $arrValues = array($rankInfo['rank_id'], $row['console_id']);
                         $privObj->addNew($arrColumns, $arrValues);
                     }
                 }
             }
             echo "\n\t\t\t\t\t\t\t<div style='display: none' id='successBox'>\n\t\t\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\t\tSuccessfully Edited Rank: <b>" . $rankInfo['name'] . "</b>!\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\t\tpopupDialog('Manage Ranks', '" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "', 'successBox');\n\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t\t";
         } else {
             $_POST['submit'] = false;
         }
     } else {
         $_POST['submit'] = false;
     }
 }
 if (!isset($_POST['submit']) || !$_POST['submit']) {
     $localImageURL = $rank->getLocalImageURL();
     if ($rankInfo['imagewidth'] == 0 and $localImageURL !== false) {
         $rankImageSize = getimagesize($prevFolder . $localImageURL);
         $rankInfo['imagewidth'] = $rankImageSize[0];
     }
     if ($rankInfo['imageheight'] == 0 and $localImageURL !== false) {
         $rankImageSize = getimagesize($prevFolder . $localImageURL);
         $rankInfo['imageheight'] = $rankImageSize[1];
     }
     $popupWidth = $rankInfo['imagewidth'] + 50;
     echo "\n\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfunction showRankImage() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\t\$('#popupRankImage').dialog({\n\t\t\t\t\t\t\t\ttitle: 'View Rank Image',\n\t\t\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\t\t\twidth: " . $popupWidth . ",\n\t\t\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\t\t\tshow: \"fade\",\n\t\t\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t\t\t\"Ok\": function() {\n\t\t\t\t\t\t\t\t\t\t\$(this).dialog(\"close\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\$('.ui-dialog :button').blur();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t</script>\n\t\t\t\t\t";
     $result = $mysqli->query("SELECT * FROM " . $dbprefix . "rankcategory ORDER BY ordernum");
     $rankCatOptions = "";
     while ($row = $result->fetch_assoc()) {
         $rankCatName = filterText($row['name']);
         if ($rankInfo['rankcategory_id'] == $row['rankcategory_id']) {
開發者ID:nsystem1,項目名稱:clanscripts,代碼行數:31,代碼來源:edit.php


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