view = $path["view"] . "frame/portrait.php"; $id = $params["id"]; $s = "SELECT id " . "FROM monster_collection " . "WHERE id = " . $id . "; "; $q = mysqli_query($this->db, $s); if (mysqli_num_rows($q) > 0){ $r = mysqli_fetch_array($q); $this->collection = new Monster_Collection($this->db, $r["id"]); $this->id = $id; $this->name = $this->collection->monster->name; $this->name_aw = $this->collection->monster->name_aw; $this->stars = $this->collection->stars; $this->default_stars = $this->collection->monster->stars; $this->level = $this->collection->level; $this->max_level = 10 + (5 * $this->stars); $this->awaken = $this->collection->awaken; $this->img = $this->collection->monster->image; $this->img_aw = $this->collection->monster->image_aw; $this->element = $this->collection->monster->element; if ($this->level == 0 || $this->stars == 0){ $this->owned = false; } if ($this->awaken == 1){ $this->cur_name = $this->name_aw; $this->cur_img = $this->img_aw; $this->img_star = $star_src = $path["img"]["layout"] . "icon/star_aw.png"; } else{ $this->cur_name = $this->element . " " . $this->name; $this->cur_img = $this->img; $this->img_star = $star_src = $path["img"]["layout"] . "icon/star.png"; } } } } ?>