Пример #1
0
 public function MakeMapContent()
 {
     print "Making map content string...\n";
     $output = "";
     for ($id = 1; $id <= self::ESOITM_MAX_ITEMID;) {
         $type = $this->typeMap[$id];
         $firstId = $id;
         while ($this->typeMap[$id] == $type && $id <= self::ESOITM_MAX_ITEMID) {
             $id++;
         }
         $lastId = $id - 1;
         $count = $lastId - $firstId + 1;
         $typeString = GetEsoItemTypeText($type);
         $height = $count * 2;
         if ($type < 0) {
             $output .= "<div id='esoitm_id_none' style='height: {$height}px; line-height: {$height}px;'></div>\n";
         } elseif ($firstId == $lastId) {
             $output .= "<div id='esoitm_id_{$type}' style='height: {$height}px; line-height: {$height}px;'>{$typeString} ({$firstId})</div>\n";
         } else {
             $output .= "<div id='esoitm_id_{$type}' style='height: {$height}px; line-height: {$height}px;'>{$typeString} ({$firstId} to {$lastId})</div>\n";
         }
     }
     return $output;
 }
Пример #2
0
 public function MakeBreadCrumbBlock()
 {
     $output .= "&lt; <a href='?'>All Items</a>";
     if ($this->viewSearch != "") {
         return $output;
     }
     if ($this->viewType < 0 && $this->viewEquipType < 0) {
         return "";
     }
     if ($this->viewType >= 0 && $this->viewEquipType >= 0) {
         $type = $this->viewType;
         $typeName = GetEsoItemTypeText($this->viewType);
         $output .= ": <a href='?type={$type}'>{$typeName}</a>";
     }
     if ($this->viewType >= 0 && $this->viewEquipType >= 0 && $this->viewWeaponType >= 0 || $this->viewType >= 0 && $this->viewEquipType >= 0 && $this->viewArmorType >= 0) {
         $type = $this->viewType;
         $equipType = $this->viewEquipType;
         $equipTypeName = GetEsoItemEquipTypeText($this->viewEquipType);
         $output .= ": <a href='?type={$type}&equiptype={$equipType}'>{$equipTypeName}</a>";
     }
     return $output;
 }
Пример #3
0
 private function MakeItemTypeText()
 {
     switch ($this->itemRecord['type']) {
         case 1:
         case 2:
             return GetEsoItemEquipTypeText($this->itemRecord['equipType']);
         case 4:
             return "Food";
         default:
             return GetEsoItemTypeText($this->itemRecord['type']);
     }
 }