Пример #1
0
/*
 * —крипт показывает список владельцев вещи по ее id
 */
$itemid = intval(@$_REQUEST['itemOwner']);
$FindRefrence = "?itemOwner={$itemid}";
$item = getItem($itemid);
if (!$item) {
    RenderError("{$lang['item_not_found']}");
} else {
    if ($ajaxmode == 0) {
        echo "<table cellspacing=0 cellpadding=0 width=500><tbody><tr>";
        echo "<td vAlign=top align=right width=20%>";
        $icon = getItemIcon($item['displayid']);
        echo "<br><a href=\"#\"><img height=64 width=64 border=0 src='{$icon}'></a></td>";
        echo "<td>";
        generateItemTable($item);
        echo "</td>";
        echo "</tr></tbody></table>";
        if ($item['BuyPrice']) {
            echo "{$lang['buy_price']}: " . money($item['BuyPrice']);
        }
        echo "<br /><br />";
    }
    $show_fields = array('PL_REPORT_LEVEL', 'PL_REPORT_RACE', 'PL_REPORT_CLASS', 'PL_REPORT_NAME', 'PL_REPORT_ITEM');
    $p_search =& new PlayerReportGenerator('item');
    $p_search->disableMark();
    $p_search->Init($show_fields, $FindRefrence, 'searchOwners', $config['fade_limit'], 'name');
    $p_search->itemOwner($itemid);
    $number = $p_search->getTotalDataCount();
    if ($number <= 0) {
        echo $lang['owner_no_found'];
Пример #2
0
// Получаем вещь
$item = getItem($entry);
if (!$item) {
    RenderError("{$lang['item_not_found']}");
} else {
    $baseLink = '?item=' . $str;
    if ($ajaxmode == 0) {
        if ($lang['www_item']) {
            echo "<a href=\"" . sprintf($lang['www_item'], $entry) . "\" target=\"_blank\"\">" . sprintf($lang['www_item'], $entry) . "</a><br>";
        }
        echo "<table cellspacing=0 cellpadding=0 width=500><tbody><tr>";
        echo "<td valign=top align=right width=20%>";
        $icon = getItemIcon($item['displayid']);
        echo "<br><a id='no_tip' href=\"?item={$entry}\"><img height=64 width=64 border=0 src='{$icon}'></a></td>";
        echo "<td>";
        generateItemTable($item, $item_data, 0);
        echo "</td>";
        echo "</tr></tbody></table>";
        if ($item['minMoneyLoot']) {
            echo "<b>{$lang['Rew_money']}</b>&nbsp;" . money($item['minMoneyLoot']);
        }
        if ($item['maxMoneyLoot'] && $item['maxMoneyLoot'] > $item['minMoneyLoot']) {
            echo "&nbsp;-&nbsp;" . money($item['maxMoneyLoot']);
        }
        if ($item['BuyPrice']) {
            echo '<br>' . $lang['buy_price'] . ':&nbsp;' . money($item['BuyPrice']);
        }
        echo "<br />";
        //********************************************************************************
        // Если часть набора - выводим весь набор
        //********************************************************************************