| 32 | |
| 33 | $img = IMG_URL."/items/".$size."_".$size."/".$this->row_['itm_icon'].".png"; |
| 34 | if (substr($this->getName(), strlen($this->getName()) - 2, 2) == "II") |
| 35 | { |
| 36 | $icon .= IMG_URL."/items/32_32/t2.gif"; |
| 37 | } |
| 38 | else |
| 39 | { |
| 40 | $icon= IMG_URL."/items/32_32/blank.gif"; |
| 41 | } |
| 42 | global $config, $smarty; |
| 43 | $smarty->assign('img',$img); |
| 44 | $smarty->assign('icon',$icon); |
| 45 | return $smarty->fetch('icon.tpl'); |
31 | | // slot 6 is dronebay |
32 | | if ($this->row_['itt_slot'] == 6) |
33 | | { |
34 | | $html .= "<td class=item-icon width=\"30\" height=\"34\" background=\"".IMG_URL."/drones/".$size."_".$size."/".$this->row_['itm_externalid'].".png\" valign=top>"; |
35 | | } |
36 | | else |
37 | | { |
38 | | // fix for new db structure, just make sure old clients dont break |
39 | | if (!strstr($this->row_['itm_icon'], 'icon')) |
40 | | { |
41 | | $this->row_['itm_icon'] = 'icon'.$this->row_['itm_icon']; |
42 | | } |
43 | | $html .= "<td class=item-icon width=\"30\" height=\"34\" background=\"".IMG_URL."/items/".$size."_".$size."/".$this->row_['itm_icon'].".png\" valign=top>"; |
44 | | } |
45 | | // return IMG_URL."/items/".$size."_".$size."/".$this->row_['itm_icon'].".png"; |
46 | | |
47 | | if (substr($this->getName(), strlen($this->getName()) - 2, 2) == "II") |
48 | | $html .= "<img src=\"".IMG_URL."/items/32_32/t2.gif\" border=\"0\">"; |
49 | | else |
50 | | $html .= "<img src=\"".IMG_URL."/items/32_32/blank.gif\" border=\"0\">"; |
51 | | |
52 | | $hmtl .= "</td>"; |
53 | | |
54 | | return $html; |