本文整理汇总了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";
示例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']) {