Данные для карт
[cswow.git] / module / owners / item_owner.php
blob964880c5f04596caea10666d8212d57ea91adfe8
1 <?php
2 include_once("include/functions.php");
3 include_once("include/report_generator.php");
4 ##########
5 /*
6 * Ñêðèïò ïîêàçûâàåò ñïèñîê âëàäåëüöåâ âåùè ïî åå id
7 */
9 $itemid = intval(@$_REQUEST['itemOwner']);
10 $FindRefrence="?itemOwner=$itemid";
12 $item=getItem($itemid);
13 if (!$item)
15 RenderError("$lang[item_not_found]");
17 else
19 if ($ajaxmode==0)
21 echo "<table cellspacing=0 cellpadding=0 width=500><tbody><tr>";
22 echo "<td vAlign=top align=right width=20%>";
23 $icon = getItemIcon($item['displayid']);
24 echo "<br><a href=\"#\"><img height=64 width=64 border=0 src='$icon'></a></td>";
25 echo "<td>";generateItemTable($item);echo "</td>";
26 echo "</tr></tbody></table>";
28 if ($item['BuyPrice']) echo "$lang[buy_price]: ".money($item['BuyPrice']);
29 echo "<br /><br />";
32 $show_fields= array('PL_REPORT_LEVEL', 'PL_REPORT_RACE', 'PL_REPORT_CLASS', 'PL_REPORT_NAME', 'PL_REPORT_ITEM');
34 $p_search =& new PlayerReportGenerator('item');
35 $p_search->disableMark();
36 $p_search->Init($show_fields, $FindRefrence, 'searchOwners', $config['fade_limit'], 'name');
37 $p_search->itemOwner($itemid);
38 $number = $p_search->getTotalDataCount();
39 if ($number <= 0)
40 echo $lang['owner_no_found'];
41 else
42 $p_search->createReport(sprintf($lang['owner_list'], $number));