コード例 #1
0
ファイル: global.php プロジェクト: skyser2003/Hall-of-Fame
function LogShowRanking()
{
    print "<div style=\"margin:15px\">\n";
    print "<a href=\"?log\">All</a> ";
    print "<a href=\"?clog\">Common</a> ";
    print "<a href=\"?ulog\">Union</a> ";
    print "<a href=\"?rlog\" class=\"a0\">Ranking</a>";
    // rank
    print "<h4>ランキング戦 - 全ログ(Rank Battle Log)</h4>\n";
    $log = @glob(LOG_BATTLE_RANK . "*");
    foreach (array_reverse($log) as $file) {
        BattleLogDetail($file, "RANK");
    }
    print "</div>\n";
}
コード例 #2
0
ファイル: global.php プロジェクト: skyser2003/hof
function LogShowRanking()
{
    print "<div style=\"margin:15px\">\n";
    print "<a href=\"?log\">全部</a> ";
    print "<a href=\"?clog\">普通</a> ";
    print "<a href=\"?ulog\">BOSS战</a> ";
    print "<a href=\"?rlog\" class=\"a0\">排行战</a>";
    // rank
    print "<h4>排名赛-全记录(Rank Battle Log)</h4>\n";
    $log = @glob(LOG_BATTLE_RANK . "*");
    foreach (array_reverse($log) as $file) {
        BattleLogDetail($file, "RANK");
    }
    print "</div>\n";
}
コード例 #3
0
ファイル: class.main.php プロジェクト: skyser2003/hof
 function HuntShow()
 {
     include DATA_LAND;
     include DATA_LAND_APPEAR;
     print '<div style="margin:15px">';
     print '<h4>普通怪物</h4>';
     print '<div style="margin:0 20px">';
     $mapList = LoadMapAppear($this);
     foreach ($mapList as $map) {
         list($land) = LandInformation($map);
         print "<p style='display:inline;margin-right:32px;'><a href=\"?common={$map}\">{$land[name]}</a>";
         //print(" ({$land[proper]})");
         print "</p>";
     }
     // Union
     print "</div>\n";
     $files = glob(UNION . "*");
     if ($files) {
         include CLASS_UNION;
         include DATA_MONSTER;
         foreach ($files as $file) {
             $UnionMons = new union($file);
             if ($UnionMons->is_Alive()) {
                 $Union[] = $UnionMons;
             }
         }
     }
     if ($Union) {
         print '<h4>BOSS</h4>';
         $result = $this->CanUnionBattle();
         if ($result !== true) {
             $left_minute = floor($result / 60);
             $left_second = $result % 60;
             print '<div style="margin:0 20px">';
             print '离下次战斗还需要 : <span class="bold">' . $left_minute . ":" . sprintf("%02d", $left_second) . "</span>";
             print "</div>";
         }
         print "</div>";
         $this->ShowCharacters($Union);
     } else {
         print "</div>";
     }
     // union
     print "<div style=\"margin:0 15px\">\n";
     print "<h4>BOSS战记录 <a href=\"?ulog\">全表示</a></h4>\n";
     print "<div style=\"margin:0 20px\">\n";
     $log = @glob(LOG_BATTLE_UNION . "*");
     foreach (array_reverse($log) as $file) {
         $limit++;
         BattleLogDetail($file, "UNION");
         if (15 <= $limit) {
             break;
         }
     }
     print "</div></div>\n";
 }
コード例 #4
0
	function HuntShow() {
		include(DATA_LAND);
		include(DATA_LAND_APPEAR);
		print('<div style="margin:15px">');
		print('<h4>CommonMonster</h4>');
		print('<div style="margin:0 20px">');

		$mapList	= LoadMapAppear($this);
		foreach($mapList as $map) {
			list($land)	= LandInformation($map);
			print("<p><a href=\"?common={$map}\">{$land[name]}</a>");
			//print(" ({$land[proper]})");
			print("</p>");
		}

		// Union
		print("</div>\n");
		$files	= glob(UNION."*");
		if($files) {
			include(CLASS_UNION);
			include(DATA_MONSTER);
			foreach($files as $file) {
				$UnionMons	= new union($file);
				if($UnionMons->is_Alive())
					$Union[]	= $UnionMons;
			}
		}
		if($Union) {
			print('<h4>UnionMonster</h4>');
			$result = $this->CanUnionBattle();
			if($result !== true) {
				$left_minute	= floor($result/60);
				$left_second	= $result%60;
				print('<div style="margin:0 20px">');
				print('Time left to next battle : <span class="bold">'.$left_minute. ":".sprintf("%02d",$left_second)."</span>");
				print("</div>");
			}
			print("</div>");
			$this->ShowCharacters($Union);
		} else {
			print("</div>");
		}

		// union
		print("<div style=\"margin:0 15px\">\n");
		print("<h4>Union Battle Log <a href=\"?ulog\">全表示</a></h4>\n");
		print("<div style=\"margin:0 20px\">\n");
		$log	= @glob(LOG_BATTLE_UNION."*");
		foreach(array_reverse($log) as $file) {
			$limit++;
			BattleLogDetail($file,"UNION");
			if(15 <= $limit)
				break;
		}
		print("</div></div>\n");
	}