コード例 #1
0
ファイル: index.php プロジェクト: HD-Scripts/scripts_test
<!DOCTYPE html>
<html>
	<head>
		<title>Death Arena 1.0</title>
		<link rel="stylesheet" type="text/css" href="css/da_full.css" />
		<script type="text/javascript" src="scripts/functions.js"></script>
	</head>
	<body>
	<?php 
require 'scripts/source.php';
@($DeathArena = new DeathArena());
$pg = isset($_GET['page']) ? $_GET['page'] : 0;
$min_row = $pg * $DeathArena->max_row;
$type = isset($_GET['type']) ? $_GET['type'] : 0;
$filter = isset($_GET['filter']) ? $_GET['filter'] : 0;
$DeathArena->Consult($type, $min_row, $filter == 1 ? 'loss' : ($filter == 2 ? 'ration' : 'wins'));
?>
		<div id="layout">
			<div id="logo"><img src="images/logo.png"/></div>
			<div id="contents">
				<div id="menu">
					<span><a href="?type=0">Rank de Jogadores</a></span> <span><a href="?type=1">Rank de Clãns</a></span><span><a href="?type=2">Rank de Grupos</a></span>
				</div>
				<?php 
if ($DeathArena->Ranking['total_rows']) {
    ?>
				<div id="filter-bar">
					<input type="hidden" id="page" name="page" value="<?php 
    echo $pg;
    ?>
" />
コード例 #2
0
ファイル: compact.php プロジェクト: HD-Scripts/scripts_test
	<head>
		<title>Death Arena 1.0</title>
		<link rel="stylesheet" type="text/css" href="css/da_compact.css" />
		<script src="scripts/jquery.js" type="text/javascript"></script>
		<script src="scripts/easyTooltip.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				$("a").easyTooltip();
				$("span").easyTooltip();
	    });
		</script>
	</head>
	<body>
	<?php 
require 'scripts/source.php';
@($DeathArena = new DeathArena());
$pg = isset($_GET['page']) ? $_GET['page'] : 0;
$min_row = $pg * $DeathArena->max_row;
$type = isset($_GET['type']) ? $_GET['type'] : 0;
$DeathArena->Consult($type, $min_row, 'wins');
?>
		<div id="layout">
			<div id="logo">
				<div id="filter-bar"><a href="?type=0" title="Rank de Jogadors">Jogadores</a>&nbsp;&nbsp;&nbsp;<a href="?type=1" title="Rank de Clãns">Clãns</a>&nbsp;&nbsp;&nbsp;<a href="?type=2" title="Rank de Grupos">Grupos</a></div>
			</div>
			<div id="content">
		<?php 
if (!$DeathArena->Ranking['total_rows']) {
    ?>
				<div id="no-result">Sem Resultados</div>
		<?php