Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/views/csgo-tools.php.alt

262 lines
111 KiB
Plaintext
Raw Normal View History

2018-10-16 16:28:42 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<section id="csgo">
<div id="svg-container" style="display: none;" hidden=""><svg xmlns="http://www.w3.org/2000/svg"><symbol viewBox="0 0 50 45.5" id="i-bomb"><path d="M28.6 37.5h-2.8l.2 6.8c0 .3.1.6.4.9.2.2.5.4.9.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.9l.1-6.8m8 0l-.7.1h-1.7L37 42l.8.6.9-.2.6-.7-.1-1-1.8-3.4-.8.2m8.7-2.9l.9.1c.3-.1.6-.2.7-.5.2-.3.2-.6.1-1l-.5-.8-6.5-4v3.2l5.3 3M17 37.5l-1.6 3.3c-.2.3-.2.6-.1 1 .1.3.2.6.5.7.3.2.6.3.9.2l.8-.6 2.7-4.5H17M15.8 3.1c-.3.1-.4.4-.5.7-.1.3-.1.6.1.9l1.9 3.7h3.2l-3-4.9-.8-.6c-.3-.1-.6 0-.9.2m24.3 18.2v2.8l8.7-.2.8-.3c.3-.2.4-.5.4-.9 0-.3-.1-.6-.4-.8-.3-.3-.5-.4-.8-.4l-8.7-.2m0-7.7v3.3l6.5-3.9.5-.8c.1-.4.1-.7-.1-1-.1-.3-.4-.4-.7-.5l-.9.1-5.3 2.8M36.6 12c-.4-.4-.9-.6-1.5-.6h-33c-.5 0-1 .2-1.5.6-.4.5-.6 1-.6 1.5v19c0 .6.2 1.1.7 1.5.4.4.9.7 1.5.7h33c.6 0 1.1-.2 1.5-.7.4-.4.6-.9.6-1.5v-19c-.1-.5-.3-1-.7-1.5m-3.2 1.9c.4 0 .7.2.7.7v8.9c0 .4-.2.7-.7.7h-14L19 24l-.3-.5v-8.9c0-.2.1-.4.3-.5l.5-.2h13.9M23.1 25.5c.1-.1.2-.2.4-.2h1.8l.4.2.2.4v1.8l-.2.4-.4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6-.3-.2-.4c-.2.1-.4.3-.7.4l.1-.6m5.5 0h-.5v.6l-.6-.4-.2.4.5.3-.5.3.2.4.6-.3v.6h.5l-.1-.6.6.3.2-.4-.6-.3.6-.3-.2-.4-.6.4.1-.6m-2.7 0h-.5v.6l-.5-.4-.3.4.6.3-.6.3.3.4.5-.3v.6h.5l-.2-.6.7.3.2-.4-.6-.3.6-.3-.2-.4-.7.4.2-.6M37.7 2.9l-.7.6-3.1 4.9h2l1.1.2 2.1-3.9.1-.9-.6-.7c-.3-.2-.6-.3-.9-.2m-9.3-1.7c0-.4-.1-.7-.4-.9-.2-.2-.5-.3-.8-.3-.3 0-.6.1-.9.4-.2.2-.3.4-.3.8l-.2 7.1h2.8l-.2-7.1z"></path></symbol><symbol viewBox="0 0 16 16" id="i-down"><path shape-rendering="crispEdges" d="M4.5 5l3 3 3-3L12 6.5 7.5 11 3 6.5z"></path></symbol><symbol viewBox="0 0 16 16" id="i-down2"><path shape-rendering="crispEdges" d="M4.5 2l3 3 3-3L12 3.5 7.5 8 3 3.5 4.5 2zM3 8.5L7.5 13 12 8.5 10.5 7l-3 3-3-3L3 8.5z"></path></symbol><symbol viewBox="0 0 16 16" id="i-download"><path d="M4.5 5L7 7.5V1h2v6.5L11.5 5 13 6.5 8.5 11h-1L3 6.5zM3 11h2v2h6v-2h2v4H3z"></path></symbol><symbol viewBox="0 0 16 16" id="i-enter"><path shape-rendering="crispEdges" d="M13 4v3H5l3.5-3.5L7 2 1 8l6 6 1.5-1.5L5 9h10V4z"></path></symbol><symbol viewBox="0 0 16 16" id="i-equal"><path shape-rendering="crispEdges" d="M4 5h8v2H4zM4 8h8v2H4z"></path></symbol><symbol viewBox="0 0 16 16" id="i-expand"><path d="M9 0h7v7l-2-2V3.5L10.5 7 9 5.5 12.5 2H11zM7 16H0V9l2 2v1.5L5.5 9 7 10.5 3.5 14H5z"></path></symbol><symbol viewBox="0 0 16 12" id="i-eye"><path d="M8 0C3.6 0 0 5.9 0 5.9S3.6 12 8 12s8-6.1 8-6.1S12.4 0 8 0zm0 10c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"></path></symbol><symbol viewBox="0 0 512 512" id="i-fb"><path id="fb-facebook-icon" d="M204.067 184.692h-43.144v70.426h43.144V462h82.965V254.238h57.882l6.162-69.546h-64.044v-39.615c0-16.398 3.302-22.89 19.147-22.89h44.895V50h-57.44c-61.735 0-89.568 27.18-89.568 79.23v55.462z"></path></symbol><symbol viewBox="0 0 50 45.1" id="i-headshot"><path d="M38 10l5-2.6-5-2H24.3l-1.1-1.1-.6-.6-.9-.8-1.8-1.1-2.3-1-2.3-.6-3-.2-3.1.4-2.8.9c-.9.4-1.5.8-2 1.3L2.8 4.5c-.6.8-1.1 1.7-1.6 2.7s-.8 2.2-1 3.3-.3 2.4-.1 3.6l.7 3.5c.2 1.2.4 2.4.7 3.5l.7 3.3.3 2-.7 2.6-.6 4c-.2.9-.2 1.4-.1 1.7h.2l1.5 1.7 3.7 3.4 5 3.5c1.8 1.1 3.6 1.7 5.4
<div class="search">
<div class="content">
<div class="container">
<form>
<div class="form-group col-sm-8">
<input type="text" name="q" placeholder="Spielernamen eingeben..." class="form-control input-lg">
</div>
<input type="submit" class="btn btn-green col-sm-4" value="Senden">
</form>
</div>
</div>
</div>
<div class="player-header">
<div class="content">
<div class="container">
<div class="col-sm-2">
<a href="<?= $url; ?>" target="_blank">
<img src="<?= $avatar; ?>" alt="Avatar" class="img-fluid rounded" />
</a>
</div>
<div class="col-sm-7">
<a href="<?= $url; ?>" target="_blank">
<h1><?= $id; ?></h1>
<h3><?= $name; ?></h3>
<small><span class="flag-icon flag-icon-<?= strtolower($country); ?>"></span> <?= $location; ?></small>
</a>
</div>
<div class="col-sm-3">
<h2 class="<?= $onStat; ?>"><?= $status; ?></h2>
<small><?= $statusMes; ?></small>
</div>
</div>
</div>
</div>
<div class="stats">
<div class="content">
<div class="container">
<div class="col-sm-3">
<ul>
<li class="kills">
<svg><use xlink:href="#i-kills-alt"></use></svg>
<h4><?= lang('csgo_kills'); ?></h4>
<p class="value"><?= number_format($total_kills, 0, lang('csgo_comma'), lang('csgo_point')); ?></p>
</li>
<li class="time_played">
<svg><use xlink:href="#i-timer"></use></svg>
<h4><?= lang('csgo_time_played'); ?></h4>
<p class="value"><?= number_format($total_time_played, 0, lang('csgo_comma'), lang('csgo_point'));; ?>h</p>
</li>
</ul>
</div>
<div class="col-sm-3">
<ul>
<li class="accuracy">
<svg><use xlink:href="#i-target"></use></svg>
<h4><?= lang('csgo_accuracy'); ?></h4>
<p class="value"><?= number_format($total_shots_hit / $total_shots_fired * 100, 1, lang('csgo_comma'), lang('csgo_point')); ?>%</p>
</li>
<li class="accuracy">
<svg><use xlink:href="#i-headshot"></use></svg>
<h4><?= lang('csgo_headshots'); ?></h4>
<p class="value"><?= number_format($total_kills_headshot / $total_kills * 100, 1, lang('csgo_comma'), lang('csgo_point')); ?>%</p>
</li>
</ul>
</div>
<div class="col-sm-3">
<ul>
<li class="mvps">
<svg><use xlink:href="#i-star"></use></svg>
<h4><?= lang('csgo_mvp'); ?></h4>
<p class="value"><?= number_format($total_mvps, 0, lang('csgo_comma'), lang('csgo_point'));; ?></p>
</li>
<li class="wins">
<svg><use xlink:href="#i-win-cup"></use></svg>
<h4><?= lang('csgo_wins'); ?></h4>
<p class="value"><?= number_format($total_wins / $total_rounds_played * 100, 1, lang('csgo_comma'), lang('csgo_point')); ?>%</p>
</li>
</ul>
</div>
<div class="col-sm-3">
<ul>
<li class="bombs">
<svg><use xlink:href="#i-bomb"></use></svg>
<h4><?= lang('csgo_bombs_planted'); ?></h4>
<p class="value"><?= number_format($total_planted_bombs, 0, lang('csgo_comma'), lang('csgo_point')); ?></p>
</li>
<li class="hostages">
<svg><use xlink:href="#i-hostage"></use></svg>
<h4><?= lang('csgo_hostages_rescued'); ?></h4>
<p class="value"><?= number_format($total_rescued_hostages, 0, lang('csgo_comma'), lang('csgo_point')); ?></p>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container section-2">
<div class="col-sm-4">
<div class="lastmatch">
<div class="container">
<h3 class="heading"><?= lang('csgo_last_match'); ?></h3>
<div class="result <?= $win = $last_match_end_status == 2 ? 'win' : ''; ?>">
<h3><strong><?= lang('csgo_wins'); ?>: <?= $last_match_wins; ?></strong>/<?= $last_match_rounds; ?> <?= lang('csgo_rounds'); ?></h3>
<p class="outcome">
<?= lang('csgo_' . $last_match_end_status); ?>
<?php if($last_match_end_status == 2): ?>
<svg>
<use xlink:href="#i-win-cup"></use>
</svg>
<?php endif; ?>
</p>
</div>
<div class="content">
<div class="weapon">
<?php $weapon = $weapon_list[$last_match_favweapon_id]; ?>
<h4><?= lang('csgo_bestweapon'); ?></h4>
<svg class="icon">
<use xlink:href="#i-<?= $weapon[1]; ?>"></use>
</svg>
<p class="name">
<?= $weapon[0]; ?>
</p>
<div class="stats">
<p class="stat kills">
<?= $last_match_favweapon_kills; ?>
<svg>
<use xlink:href="#i-kills"></use>
</svg>
</p>
<p class="stat accuracy">
<?= number_format($last_match_favweapon_hits / $last_match_favweapon_shots * 100, 1, lang('csgo_comma'), lang('csgo_point')); ?>%
<svg>
<use xlink:href="#i-target-small"></use>
</svg>
</p>
</div>
</div>
<ul class="list">
<li>
<b><?= lang('csgo_kd'); ?></b>
<strong><?= number_format($last_match_kills / $last_match_deaths, 2, lang('csgo_comma'), lang('csgo_point')); ?></strong>
</li>
<li>
<b><?= lang('csgo_kills'); ?></b>
<strong><?= number_format($last_match_kills, 0, lang('csgo_comma'), lang('csgo_point')); ?></strong>
</li>
<li>
<b><?= lang('csgo_deaths'); ?></b>
<strong><?= number_format($last_match_deaths, 0, lang('csgo_comma'), lang('csgo_point')); ?></strong>
</li>
<li>
<b><?= lang('csgo_mvp'); ?></b>
<strong><?= number_format($last_match_mvps, 0, lang('csgo_comma'), lang('csgo_point')); ?></strong>
</li>
<li>
<b><?= lang('csgo_damage'); ?></b>
<strong><?= number_format($last_match_damage, 0, lang('csgo_comma'), lang('csgo_point')); ?> HP</strong>
</li>
<li>
<b><?= lang('csgo_money_spent'); ?></b>
<strong><?= number_format($last_match_money_spent, 0, lang('csgo_comma'), lang('csgo_point')); ?>$</strong>
</li>
<li>
<b><?= lang('csgo_dominations'); ?></b>
<strong><?= number_format($last_match_dominations, 0, lang('csgo_comma'), lang('csgo_point')); ?></strong>
</li>
<li>
<b><?= lang('csgo_revenges'); ?></b>
<strong><?= number_format($last_match_revenges, 0, lang('csgo_comma'), lang('csgo_point')); ?></strong>
</li>
<li>
<b><?= lang('csgo_score'); ?></b>
<strong><?= number_format($last_match_contribution_score, 0, lang('csgo_comma'), lang('csgo_point')); ?></strong>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="weapons">
<div class="container">
<h3 class="heading"><?= lang('csgo_favweapons'); ?></h3>
<ol class="content">
<?php for($i = 0; $i < 5; $i++){
$weapon = $kills[$i];
$killCount = explode('_', $weapon)[0];
$weaponName = explode('_', $weapon)[1];
?>
<li class="item <?= $weaponName; ?> <?= $i == 0 ? 'card' : 'line'; ?>">
<h3 class="title"><span class="number"><?= $i + 1; ?><?php if($i > 0): ?>. <?php endif; ?></span> <?= $weaponName; ?></h3>
<?php if($i == 0): ?><img src="<?= base_url('file/csgo/weapon/' . $weaponName); ?>" class="photo" alt="" /><?php else: ?>
<svg class="icon">
<use xlink:href="#i-<?= $weaponName; ?>"></use>
</svg>
<?php endif; ?>
<p class="stat kills">
<?= $killCount; ?>
<svg>
<use xlink:href="#i-kills"></use>
</svg>
</p>
</li>
<?php } ?>
</ol>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="maps">
<div class="container">
<h3 class="heading"><?= lang('csgo_favmaps'); ?></h3>
</div>
</div>
</div>
</div>
<div class="otherstats">
<div class="container">
<h4><?= lang('csgo_other_stats'); ?></h4>
<ul class="list">
<li><b><?= lang('csgo_kills'); ?></b> <span><?= number_format($total_kills, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_deaths'); ?></b> <span><?= number_format($total_deaths, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_kd'); ?></b> <span><?= number_format($total_kills / $total_deaths, 2, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_total_score'); ?></b> <span><?= number_format($total_contribution_score, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_damage'); ?></b> <span><?= number_format($total_damage_done, 0, lang('csgo_comma'), lang('csgo_point')); ?> HP</span></li>
<li><b><?= lang('csgo_shots'); ?></b> <span><?= number_format($total_shots_fired, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_hits'); ?></b> <span><?= number_format($total_shots_hit, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_accuracy'); ?></b> <span><?= number_format($total_shots_hit / $total_shots_fired * 100, 2, lang('csgo_comma'), lang('csgo_point')); ?>%</span></li>
<li><b><?= lang('csgo_headshots'); ?></b> <span><?= number_format($total_kills_headshot, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_headshot_percent'); ?></b> <span><?= number_format($total_kills_headshot / $total_kills * 100, 2, lang('csgo_comma'), lang('csgo_point')); ?>%</span></li>
<li><b><?= lang('csgo_dominations'); ?></b> <span><?= number_format($total_dominations, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_revenges'); ?></b> <span><?= number_format($total_revenges, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_time_played'); ?></b> <span><?= number_format($total_time_played, 0, lang('csgo_comma'), lang('csgo_point')); ?>h</span></li>
<li><b><?= lang('csgo_matches'); ?></b> <span><?= number_format($total_matches_played, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_matches_won'); ?></b> <span><?= number_format($total_matches_won, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_matches_won'); ?> (%)</b> <span><?= number_format($total_matches_won / $total_matches_played * 100, 2, lang('csgo_comma'), lang('csgo_point')); ?>%</span></li>
<li><b><?= lang('csgo_rounds'); ?></b> <span><?= number_format($total_rounds_played, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_rounds_won'); ?></b> <span><?= number_format($total_wins, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_rounds_won'); ?> (%)</b> <span><?= number_format($total_wins / $total_rounds_played * 100, 2, lang('csgo_comma'), lang('csgo_point')); ?>%</span></li>
<li><b><?= lang('csgo_mvp'); ?></b> <span><?= number_format($total_mvps, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_pistol_rounds_won'); ?></b> <span><?= number_format($total_wins_pistolround, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_bombs_planted'); ?></b> <span><?= number_format($total_planted_bombs, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_bombs_defused'); ?></b> <span><?= number_format($total_defused_bombs, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_headshots'); ?></b> <span><?= number_format($total_rescued_hostages, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_enemies_blinded_killed'); ?></b> <span><?= number_format($total_kills_enemy_blinded, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_knife_fights_won'); ?></b> <span><?= number_format($total_kills_knife_fight, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_aiming_snipers_killed'); ?></b> <span><?= number_format($total_kills_against_zoomed_sniper, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_taser_kills'); ?></b> <span><?= number_format($total_kills_taser, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_kills_enemy_weapon'); ?></b> <span><?= number_format($total_kills_enemy_weapon, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_money_earned'); ?></b> <span><?= number_format($total_money_earned, 0, lang('csgo_comma'), lang('csgo_point')); ?>$</span></li>
<li><b><?= lang('csgo_weapon_spent'); ?></b> <span><?= number_format($total_weapons_donated, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
<li><b><?= lang('csgo_windows_broken'); ?></b> <span><?= number_format($total_broken_windows, 0, lang('csgo_comma'), lang('csgo_point')); ?></span></li>
</ul>
</div>
</div>
</section>