Пример #1
0
        }
        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
0
                     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']) {