function UnionShow() { if ($this->CanUnionBattle() !== true) { $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF'])); $extra = INDEX; header("Location: http://{$host}{$uri}/{$extra}?hunt"); exit; } //if($Result = $this->UnionProcess()) // return true; print '<div style="margin:15px">' . "\n"; print "<h4>Union Monster</h4>\n"; $Union = new union(); // 倒されているか、存在しない場合。 if (!$Union->UnionNumber($_GET["union"]) || !$Union->is_Alive()) { ShowError("Defeated or not Exists."); return false; } print '</div>'; $this->ShowCharacters(array($Union), false, "sea"); print '<div style="margin:15px">' . "\n"; print "<h4>Teams</h4>\n"; print "</div>"; print '<form action="' . INDEX . '?union=' . $_GET["union"] . '" method="post">'; $this->ShowCharacters($this->char, CHECKBOX, explode("<>", $this->party_memo)); ?> <div style="margin:15px;text-align:center"> <input type="submit" class="btn" value="战斗!"> <input type="hidden" name="union_battle" value="1"> <input type="reset" class="btn" value="重置"><br> 保存此队伍:<input type="checkbox" name="memory_party" value="1"> </div></form> <?php }