forked from metin2/web
Localized ranking and modified controllers to read data from cache tables.
This commit is contained in:
@ -364,13 +364,43 @@
|
||||
<h3 style="margin-top:0">{{ __('app/main.ranking.players') }}</h3>
|
||||
<div class="form-score">
|
||||
<div id="highscore-player">
|
||||
<ul><li><div class="empire2"><strong class="offset">1</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore" class="first">picyu3</a></div></li><li class="light"><div class="empire1"><strong class="offset">2</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">XXXMEN77</a></div></li><li><div class="empire1"><strong class="offset">3</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Spydy</a></div></li><li class="light"><div class="empire3"><strong class="offset">4</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">beLeSe</a></div></li><li><div class="empire2"><strong class="offset">5</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">alexdenis</a></div></li><li class="light"><div class="empire3"><strong class="offset">6</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Pixie03</a></div></li><li><div class="empire3"><strong class="offset">7</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">KingARAGORN</a></div></li><li class="light"><div class="empire1"><strong class="offset">8</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">SCORPIO1</a></div></li><li><div class="empire2"><strong class="offset">9</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Parazltu</a></div></li><li class="light"><div class="empire2"><strong>10</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/highscore">Sayana</a></div></li></ul> </div>
|
||||
<ul>
|
||||
@foreach ($topHighscore as $entry)
|
||||
<li @class(['light' => $loop->even])>
|
||||
<div
|
||||
@class([
|
||||
'empire1' => $entry->empire == \App\Models\Enums\EmpireEnum::SHINSOO,
|
||||
'empire2' => $entry->empire == \App\Models\Enums\EmpireEnum::CHUNJO,
|
||||
'empire3' => $entry->empire == \App\Models\Enums\EmpireEnum::JINNO
|
||||
])
|
||||
>
|
||||
<strong @class(['offset' => $entry->id < 10])>{{ $entry->id }}</strong>–<a href="{{ url('main/highscore') }}" @class(['first' => $loop->first])>{{ $entry->name }}</a>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{{ url('main/highscore') }}" class="btn" rel="nofollow">{{ __('app/main.ranking.btn_highscore') }}</a>
|
||||
</div>
|
||||
<h3 style="margin-top:0">{{ __('app/main.ranking.guilds') }}</h3>
|
||||
<div class="form-score">
|
||||
<div id="highscore-guild">
|
||||
<ul><li><div class="empire2"><strong class="offset">1</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore" class="first">InStyle</a></div></li><li class="light"><div class="empire3"><strong class="offset">2</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">ISENGARD</a></div></li><li><div class="empire2"><strong class="offset">3</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">TheRulers</a></div></li><li class="light"><div class="empire2"><strong class="offset">4</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">A55A55INII</a></div></li><li><div class="empire3"><strong class="offset">5</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">TheElfs</a></div></li><li class="light"><div class="empire3"><strong class="offset">6</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">MAESTRIIpur</a></div></li><li><div class="empire2"><strong class="offset">7</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">NeBuNaTiCii</a></div></li><li class="light"><div class="empire1"><strong class="offset">8</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">TheGoDs</a></div></li><li><div class="empire2"><strong class="offset">9</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">7UP</a></div></li><li class="light"><div class="empire2"><strong>10</strong>–<a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore">ReVoLuTioN</a></div></li></ul> </div>
|
||||
<ul>
|
||||
@foreach ($topGuildHighscore as $entry)
|
||||
<li @class(['light' => $loop->even])>
|
||||
<div
|
||||
@class([
|
||||
'empire1' => $entry->empire == \App\Models\Enums\EmpireEnum::SHINSOO,
|
||||
'empire2' => $entry->empire == \App\Models\Enums\EmpireEnum::CHUNJO,
|
||||
'empire3' => $entry->empire == \App\Models\Enums\EmpireEnum::JINNO
|
||||
])
|
||||
>
|
||||
<strong @class(['offset' => $entry->id < 10])>{{ $entry->id }}</strong>–<a href="{{ url('main/guildhighscore') }}" @class(['first' => $loop->first])>{{ $entry->name }}</a>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<a href="{{ url('main/guildhighscore') }}" class="btn" rel="nofollow">{{ __('app/main.ranking.btn_highscore') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -6,153 +6,131 @@
|
||||
<div class="content content-last">
|
||||
<div class="content-bg">
|
||||
<div class="content-bg-bottom">
|
||||
<h2>Metin2 - Listarea rangurilor</h2>
|
||||
<h2>{{ __('app/highscore.title') }}</h2>
|
||||
<div class="ranks-inner-content"><br/>
|
||||
<div class="ranks-dropdowns-box">
|
||||
<form action="{{ url('main/guildhighscore') }}" name="highscoreform" method="POST">
|
||||
<form action="{{ url('main/guildhighscore') }}" name="highscore-form" method="POST">
|
||||
@csrf
|
||||
|
||||
{{-- Temporarily disabled until multi-server support is implemented; added guild leader instead
|
||||
<div class="ranks-select-box">
|
||||
<label>Server:</label>
|
||||
<select name="serverchoice">
|
||||
<option value="1" selected="selected">Server name 1</option>
|
||||
<option value="2">Server name 2</option>
|
||||
<option value="3">Server name 3</option>
|
||||
</select>
|
||||
</div>
|
||||
--}}
|
||||
|
||||
<div class="ranks-select-box">
|
||||
<label>Server:</label>
|
||||
<select name="serverchoice">
|
||||
<option value="1" selected="selected">Leonis</option>
|
||||
<option value="2">Virgo</option>
|
||||
<option value="3">Pegasus</option>
|
||||
<option value="4">Sagitta</option>
|
||||
<option value="5">Corvus</option>
|
||||
<option value="6">Taurus</option>
|
||||
<option value="7">Hydra</option>
|
||||
<option value="8">Aries</option>
|
||||
<option value="9">Gemini</option>
|
||||
<option value="10">Lupus</option>
|
||||
<option value="11">Draco</option>
|
||||
<option value="12">Volans</option>
|
||||
<option value="13">Trianguli</option>
|
||||
<label>{{ __('app/highscore.search.select-empire') }}</label>
|
||||
<select name="empire-choice">
|
||||
<option value="-1" selected>{{ __('app/highscore.search.all-empires') }}</option>
|
||||
@foreach (\App\Models\Enums\EmpireEnum::cases() as $empire)
|
||||
<option value="{{ $empire->value }}" @selected($empireChoice === $empire->value)>
|
||||
{{ $empire->name() }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="ranks-select-box">
|
||||
<label>Arată imperiu:</label>
|
||||
<select name="empirechoice">
|
||||
<option value="-1" selected>[toate imperiile]</option>
|
||||
<option value="1">Imperiul Shinsoo</option>
|
||||
<option value="2">Imperiul Chunjo</option>
|
||||
<option value="3">Imperiul Jinno</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="ranks-select-box">
|
||||
<label>Caută breasla:</label>
|
||||
<label>{{ __('app/highscore.search.find-guild') }}</label>
|
||||
<div class="ranks-input">
|
||||
<input type="text" value="" name="guildchoice"/>
|
||||
<input type="text" value="{{ $guildChoice ?? '' }}" name="guild-choice"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ranks-select-box">
|
||||
<label>{{ __('app/highscore.search.find-guild-leader') }}</label>
|
||||
<div class="ranks-input">
|
||||
<input type="text" value="{{ $guildLeaderChoice ?? '' }}" name="guild-leader-choice"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ranks-select-box-btn">
|
||||
<a class="small-btn" href="#" onclick="document.forms['highscoreform'].submit();return false;">Căutare</a>
|
||||
<a class="small-btn" href="#" onclick="document.forms['highscore-form'].submit();return false;">
|
||||
{{ __('app/highscore.search') }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="clearfloat"></div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="ranks-nav prev prev-top"><a href="https://web.archive.org/web/20130715184054/http://www.metin2.ro/main/guildhighscore/1/-1/1/"><< anterioarele 10 ranguri</a></div>
|
||||
|
||||
<div class="ranks-nav next next-top"><a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore/1/-1/11/">urmatoarele 10 ranguri >></a></div>
|
||||
<br class="clearfloat"/>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="guildrank-th-1">Rang</th>
|
||||
<th class="guildrank-th-2">Breasla</th>
|
||||
<th class="guildrank-th-3">Lider Breaslă</th>
|
||||
<th class="guildrank-th-4">Regat</th>
|
||||
<th class="guildrank-th-5">Nivel</th>
|
||||
<th class="guildrank-th-6">Puncte</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="rankfirst">
|
||||
<td class="guildrank-td-1-1">1</td>
|
||||
<td class="guildrank-td-1-2">InStyle</td>
|
||||
<td class="guildrank-td-1-3">divolitzaTa</td>
|
||||
<td class="guildrank-td-1-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34px" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="guildrank-td-1-5">20</td>
|
||||
<td class="guildrank-td-1-6">119494</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-2-1">2</td>
|
||||
<td class="guildrank-td-2-2">ISENGARD</td>
|
||||
<td class="guildrank-td-2-3">Florin10</td>
|
||||
<td class="guildrank-td-2-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf2.geo.gfsrv.net/cdn17/202178f2cf7a2e45f4be61bb360228.png" width="34px" alt="Imperiul Jinno" title="Imperiul Jinno"/></td>
|
||||
<td class="guildrank-td-2-5">20</td>
|
||||
<td class="guildrank-td-2-6">113902</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-1-1">3</td>
|
||||
<td class="guildrank-td-1-2">TheRulers</td>
|
||||
<td class="guildrank-td-1-3">gabitza20</td>
|
||||
<td class="guildrank-td-1-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34px" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="guildrank-td-1-5">20</td>
|
||||
<td class="guildrank-td-1-6">76941</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-2-1">4</td>
|
||||
<td class="guildrank-td-2-2">A55A55INII</td>
|
||||
<td class="guildrank-td-2-3">AnA3634</td>
|
||||
<td class="guildrank-td-2-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34px" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="guildrank-td-2-5">20</td>
|
||||
<td class="guildrank-td-2-6">75729</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-1-1">5</td>
|
||||
<td class="guildrank-td-1-2">TheElfs</td>
|
||||
<td class="guildrank-td-1-3">SorrcerreR</td>
|
||||
<td class="guildrank-td-1-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf2.geo.gfsrv.net/cdn17/202178f2cf7a2e45f4be61bb360228.png" width="34px" alt="Imperiul Jinno" title="Imperiul Jinno"/></td>
|
||||
<td class="guildrank-td-1-5">20</td>
|
||||
<td class="guildrank-td-1-6">55547</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-2-1">6</td>
|
||||
<td class="guildrank-td-2-2">MAESTRIIpur</td>
|
||||
<td class="guildrank-td-2-3">MAESTRAiuby</td>
|
||||
<td class="guildrank-td-2-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf2.geo.gfsrv.net/cdn17/202178f2cf7a2e45f4be61bb360228.png" width="34px" alt="Imperiul Jinno" title="Imperiul Jinno"/></td>
|
||||
<td class="guildrank-td-2-5">15</td>
|
||||
<td class="guildrank-td-2-6">50908</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-1-1">7</td>
|
||||
<td class="guildrank-td-1-2">NeBuNaTiCii</td>
|
||||
<td class="guildrank-td-1-3">MANXL</td>
|
||||
<td class="guildrank-td-1-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34px" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="guildrank-td-1-5">20</td>
|
||||
<td class="guildrank-td-1-6">50164</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-2-1">8</td>
|
||||
<td class="guildrank-td-2-2">TheGoDs</td>
|
||||
<td class="guildrank-td-2-3">PaCaToaSa</td>
|
||||
<td class="guildrank-td-2-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf2.geo.gfsrv.net/cdn13/7211083d422c5dc6c70b198e850004.png" width="34px" alt="Imperiul Shinsoo" title="Imperiul Shinsoo"/></td>
|
||||
<td class="guildrank-td-2-5">12</td>
|
||||
<td class="guildrank-td-2-6">48107</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-1-1">9</td>
|
||||
<td class="guildrank-td-1-2">7UP</td>
|
||||
<td class="guildrank-td-1-3">KANNDY</td>
|
||||
<td class="guildrank-td-1-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34px" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="guildrank-td-1-5">20</td>
|
||||
<td class="guildrank-td-1-6">45964</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="guildrank-td-2-1">10</td>
|
||||
<td class="guildrank-td-2-2">ReVoLuTioN</td>
|
||||
<td class="guildrank-td-2-3">Tucson</td>
|
||||
<td class="guildrank-td-2-4"><img src="https://web.archive.org/web/20130621071508im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34px" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="guildrank-td-2-5">20</td>
|
||||
<td class="guildrank-td-2-6">42929</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="ranks-nav prev"><a href="https://web.archive.org/web/20130715184054/http://www.metin2.ro/main/guildhighscore/1/-1/1/"><< anterioarele 10 ranguri</a></div>
|
||||
@if ($highscore->isEmpty())
|
||||
<div class="error-mini error-mini-margin error-mini-maxwidth">{{ __("app/highscore.no-results") }}</div>
|
||||
@else
|
||||
@if ($highscore->lastPage() > 1)
|
||||
<div class="ranks-nav prev prev-top">
|
||||
@if ($highscore->currentPage() > 1)
|
||||
<a href="{{ route('guild-highscore-page', ['empireChoice' => $empireChoice, 'page' => $highscore->currentPage() - 1, 'guild-choice' => $guildChoice ?? null, 'guild-leader-choice' => $guildChoice ?? null]) }}"><< {{ __("app/highscore.pagination.prev", ['count' => $highscore->perPage()]) }}</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="ranks-nav next next-top">
|
||||
@if ($highscore->hasMorePages())
|
||||
<a href="{{ route('guild-highscore-page', ['empireChoice' => $empireChoice, 'page' => $highscore->currentPage() + 1, 'guild-choice' => $guildChoice ?? null, 'guild-leader-choice' => $guildChoice ?? null]) }}">{{ __("app/highscore.pagination.next", ['count' => $highscore->perPage()]) }} >></a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="ranks-nav next"><a href="https://web.archive.org/web/20130621071508/http://www.metin2.ro/main/guildhighscore/1/-1/11/">urmatoarele 10 ranguri >></a></div>
|
||||
<br class="clearfloat"/>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="guildrank-th-1">{{ __("app/highscore.header.rank") }}</th>
|
||||
<th class="guildrank-th-2">{{ __("app/highscore.header.guild-name") }}</th>
|
||||
<th class="guildrank-th-3">{{ __("app/highscore.header.guild-leader") }}</th>
|
||||
<th class="guildrank-th-4">{{ __("app/highscore.header.empire") }}</th>
|
||||
<th class="guildrank-th-5">{{ __("app/highscore.header.level") }}</th>
|
||||
<th class="guildrank-th-6">{{ __("app/highscore.header.guild-points") }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($highscore as $entry)
|
||||
<tr @class(["rankfirst" => $entry->id == 1, "zebra" => $loop->odd])>
|
||||
<td @class(["guildrank-td-1-1" => $loop->odd, "guildrank-td-2-1" => $loop->even])>
|
||||
{{ $entry->id }}
|
||||
</td>
|
||||
<td @class(["guildrank-td-1-2" => $loop->odd, "guildrank-td-2-2" => $loop->even])>
|
||||
{{ $entry->name }}
|
||||
</td>
|
||||
<td @class(["guildrank-td-1-3" => $loop->odd, "guildrank-td-2-3" => $loop->even])>
|
||||
{{ $entry->master }}
|
||||
</td>
|
||||
<td @class(["guildrank-td-1-4" => $loop->odd, "guildrank-td-2-4" => $loop->even])>
|
||||
@if ($entry->empire == \App\Models\Enums\EmpireEnum::SHINSOO)
|
||||
<img src="{{ asset("assets/main/img/empire1.png") }}" width="34" alt="{{ $entry->empire->longName() }}" title="{{ $entry->empire->longName() }}" />
|
||||
@elseif ($entry->empire == \App\Models\Enums\EmpireEnum::CHUNJO)
|
||||
<img src="{{ asset("assets/main/img/empire2.png") }}" width="34" alt="{{ $entry->empire->longName() }}" title="{{ $entry->empire->longName() }}" />
|
||||
@elseif ($entry->empire == \App\Models\Enums\EmpireEnum::JINNO)
|
||||
<img src="{{ asset("assets/main/img/empire3.png") }}" width="34" alt="{{ $entry->empire->longName() }}" title="{{ $entry->empire->longName() }}" />
|
||||
@endif
|
||||
</td>
|
||||
<td @class(["guildrank-td-1-5" => $loop->odd, "guildrank-td-2-5" => $loop->even])>
|
||||
{{ $entry->level }}
|
||||
</td>
|
||||
<td @class(["guildrank-td-1-6" => $loop->odd, "guildrank-td-2-6" => $loop->even])>
|
||||
{{ $entry->ladder_point }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="clearfloat"></div>
|
||||
<div class="ranks-update-time">Update: 21.06.2013 05:27:36</div>
|
||||
@if ($highscore->lastPage() > 1)
|
||||
<div class="ranks-nav prev">
|
||||
@if ($highscore->currentPage() > 1)
|
||||
<a href="{{ route('guild-highscore-page', ['empireChoice' => $empireChoice, 'page' => $highscore->currentPage() - 1, 'guild-choice' => $guildChoice ?? null, 'guild-leader-choice' => $guildChoice ?? null]) }}"><< {{ __("app/highscore.pagination.prev", ['count' => $highscore->perPage()]) }}</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="ranks-nav next">
|
||||
@if ($highscore->hasMorePages())
|
||||
<a href="{{ route('guild-highscore-page', ['empireChoice' => $empireChoice, 'page' => $highscore->currentPage() + 1, 'guild-choice' => $guildChoice ?? null, 'guild-leader-choice' => $guildChoice ?? null]) }}">{{ __("app/highscore.pagination.next", ['count' => $highscore->perPage()]) }} >></a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="clearfloat"></div>
|
||||
<div class="ranks-update-time">{{ __('app/highscore.update-time') }} {{ $highscore->max('date')->translatedFormat('d F Y H:i:s') }}</div>
|
||||
@endif
|
||||
<div class="box-foot"></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -160,9 +138,4 @@
|
||||
</div>
|
||||
<div class="shadow"> </div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#guildHighscore table tr:odd').addClass('zebra');
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
@ -6,143 +6,132 @@
|
||||
<div class="content content-last">
|
||||
<div class="content-bg">
|
||||
<div class="content-bg-bottom">
|
||||
<h2>Metin2 - Listarea rangurilor</h2>
|
||||
<h2>{{ __('app/highscore.title') }}</h2>
|
||||
<div class="ranks-inner-content"><br/>
|
||||
<div class="ranks-dropdowns-box">
|
||||
<form action="{{ url('main/highscore') }}" name="highscoreform" method="post">
|
||||
<form action="{{ url('main/highscore') }}" name="highscore-form" method="post">
|
||||
@csrf
|
||||
|
||||
{{-- Temporarily disabled until multi-server support is implemented; added empire choice instead
|
||||
<div class="ranks-select-box">
|
||||
<label>Server:</label>
|
||||
<select name="serverchoice">
|
||||
<option value="1" selected="selected">Server name 1</option>
|
||||
<option value="2">Server name 2</option>
|
||||
<option value="3">Server name 3</option>
|
||||
</select>
|
||||
</div>
|
||||
--}}
|
||||
|
||||
<div class="ranks-select-box">
|
||||
<label>Server:</label>
|
||||
<select name="serverchoice">
|
||||
<option value="1" selected="selected">Leonis</option>
|
||||
<option value="2">Virgo</option>
|
||||
<option value="3">Pegasus</option>
|
||||
<option value="4">Sagitta</option>
|
||||
<option value="5">Corvus</option>
|
||||
<option value="6">Taurus</option>
|
||||
<option value="7">Hydra</option>
|
||||
<option value="8">Aries</option>
|
||||
<option value="9">Gemini</option>
|
||||
<option value="10">Lupus</option>
|
||||
<option value="11">Draco</option>
|
||||
<option value="12">Volans</option>
|
||||
<option value="13">Trianguli</option>
|
||||
<label>{{ __('app/highscore.search.select-empire') }}</label>
|
||||
<select name="empire-choice">
|
||||
<option value="-1">{{ __('app/highscore.search.all-empires') }}</option>
|
||||
@foreach (\App\Models\Enums\EmpireEnum::cases() as $empire)
|
||||
<option value="{{ $empire->value }}" @selected($empireChoice === $empire->value)>
|
||||
{{ $empire->name() }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="ranks-select-box">
|
||||
<label>Arata categoriile:</label>
|
||||
<select name="classchoice">
|
||||
<option value="-1" selected="selected">[all classes]</option>
|
||||
<option value="0">Războinic</option>
|
||||
<option value="1">Ninja</option>
|
||||
<option value="2">Sura</option>
|
||||
<option value="3">Şaman</option>
|
||||
<label>{{ __('app/highscore.search.select-class') }}</label>
|
||||
<select name="class-choice">
|
||||
<option value="-1">{{ __('app/highscore.search.all-classes') }}</option>
|
||||
@foreach (\App\Models\Enums\CharacterClassEnum::cases() as $class)
|
||||
<option value="{{ $class->value }}" @selected($classChoice === $class->value)>
|
||||
{{ $class->name() }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="ranks-select-box">
|
||||
<label>Alege caracterul:</label>
|
||||
<label>{{ __('app/highscore.search.find-character') }}</label>
|
||||
<div class="ranks-input">
|
||||
<input type="text" value="" name="characterchoice"/>
|
||||
<input type="text" value="{{ $characterChoice ?? '' }}" name="character-choice"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ranks-select-box-btn">
|
||||
<a class="small-btn" href="#" onclick="document.forms['highscoreform'].submit();return false;">Căutare</a>
|
||||
<a class="small-btn" href="#" onclick="document.forms['highscore-form'].submit();return false;">
|
||||
{{ __('app/highscore.search') }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="clearfloat"></div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="ranks-nav prev prev-top"><a href="https://web.archive.org/web/20130715184054/http://www.metin2.ro/main/guildhighscore/1/-1/1/"><< anterioarele 10 ranguri</a></div>
|
||||
|
||||
<div class="ranks-nav next next-top"><a href="https://web.archive.org/web/20130708165425/http://www.metin2.ro/main/highscore/1/-1/11/">urmatoarele 10 ranguri >></a></div>
|
||||
<br class="clearfloat"/>
|
||||
<table border="0" style="table-layout:fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="rank-th-1">Rang</th>
|
||||
<th class="rank-th-2">Numele Caracterului</th>
|
||||
<th class="rank-th-3">Regat</th>
|
||||
<th class="rank-th-4">Nivel</th>
|
||||
<th class="rank-th-5">EXP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="rankfirst">
|
||||
<td class="rank-td-1-1">1</td>
|
||||
<td class="rank-td-1-2">picyu3</td>
|
||||
<td class="rank-td-1-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="rank-td-1-4">105</td>
|
||||
<td class="rank-td-1-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-2-1">2</td>
|
||||
<td class="rank-td-2-2">XXXMEN77</td>
|
||||
<td class="rank-td-2-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf2.geo.gfsrv.net/cdn13/7211083d422c5dc6c70b198e850004.png" width="34" alt="Imperiul Shinsoo" title="Imperiul Shinsoo"/></td>
|
||||
<td class="rank-td-2-4">105</td>
|
||||
<td class="rank-td-2-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-1-1">3</td>
|
||||
<td class="rank-td-1-2">Spydy</td>
|
||||
<td class="rank-td-1-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf2.geo.gfsrv.net/cdn13/7211083d422c5dc6c70b198e850004.png" width="34" alt="Imperiul Shinsoo" title="Imperiul Shinsoo"/></td>
|
||||
<td class="rank-td-1-4">105</td>
|
||||
<td class="rank-td-1-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-2-1">4</td>
|
||||
<td class="rank-td-2-2">beLeSe</td>
|
||||
<td class="rank-td-2-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf2.geo.gfsrv.net/cdn17/202178f2cf7a2e45f4be61bb360228.png" width="34" alt="Imperiul Jinno" title="Imperiul Jinno"/></td>
|
||||
<td class="rank-td-2-4">105</td>
|
||||
<td class="rank-td-2-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-1-1">5</td>
|
||||
<td class="rank-td-1-2">alexdenis</td>
|
||||
<td class="rank-td-1-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="rank-td-1-4">105</td>
|
||||
<td class="rank-td-1-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-2-1">6</td>
|
||||
<td class="rank-td-2-2">addygryg</td>
|
||||
<td class="rank-td-2-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf2.geo.gfsrv.net/cdn17/202178f2cf7a2e45f4be61bb360228.png" width="34" alt="Imperiul Jinno" title="Imperiul Jinno"/></td>
|
||||
<td class="rank-td-2-4">105</td>
|
||||
<td class="rank-td-2-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-1-1">7</td>
|
||||
<td class="rank-td-1-2">Pixie03</td>
|
||||
<td class="rank-td-1-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf2.geo.gfsrv.net/cdn17/202178f2cf7a2e45f4be61bb360228.png" width="34" alt="Imperiul Jinno" title="Imperiul Jinno"/></td>
|
||||
<td class="rank-td-1-4">105</td>
|
||||
<td class="rank-td-1-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-2-1">8</td>
|
||||
<td class="rank-td-2-2">KingARAGORN</td>
|
||||
<td class="rank-td-2-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf2.geo.gfsrv.net/cdn17/202178f2cf7a2e45f4be61bb360228.png" width="34" alt="Imperiul Jinno" title="Imperiul Jinno"/></td>
|
||||
<td class="rank-td-2-4">105</td>
|
||||
<td class="rank-td-2-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-1-1">9</td>
|
||||
<td class="rank-td-1-2">pauldpv2001</td>
|
||||
<td class="rank-td-1-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf3.geo.gfsrv.net/cdnbe/2bb161df7f13e26bd0545acc5967b2.png" width="34" alt="Imperiul Chunjo" title="Imperiul Chunjo"/></td>
|
||||
<td class="rank-td-1-4">105</td>
|
||||
<td class="rank-td-1-5">0</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="rank-td-2-1">10</td>
|
||||
<td class="rank-td-2-2">SCORPIO1</td>
|
||||
<td class="rank-td-2-3"><img src="https://web.archive.org/web/20130708165425im_/http://gf2.geo.gfsrv.net/cdn13/7211083d422c5dc6c70b198e850004.png" width="34" alt="Imperiul Shinsoo" title="Imperiul Shinsoo"/></td>
|
||||
<td class="rank-td-2-4">105</td>
|
||||
<td class="rank-td-2-5">0</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="ranks-nav prev"><a href="https://web.archive.org/web/20130715184054/http://www.metin2.ro/main/guildhighscore/1/-1/1/"><< anterioarele 10 ranguri</a></div>
|
||||
@if ($highscore->isEmpty())
|
||||
<div class="error-mini error-mini-margin error-mini-maxwidth">{{ __("app/highscore.no-results") }}</div>
|
||||
@else
|
||||
@if ($highscore->lastPage() > 1)
|
||||
<div class="ranks-nav prev prev-top">
|
||||
@if ($highscore->currentPage() > 1)
|
||||
<a href="{{ route('highscore-page', ['empireChoice' => $empireChoice, 'classChoice' => $classChoice, 'page' => $highscore->currentPage() - 1, 'character-choice' => $characterChoice ?? null]) }}"><< {{ __("app/highscore.pagination.prev", ['count' => $highscore->perPage()]) }}</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="ranks-nav next next-top">
|
||||
@if ($highscore->hasMorePages())
|
||||
<a href="{{ route('highscore-page', ['empireChoice' => $empireChoice, 'classChoice' => $classChoice, 'page' => $highscore->currentPage() + 1, 'character-choice' => $characterChoice ?? null]) }}">{{ __("app/highscore.pagination.next", ['count' => $highscore->perPage()]) }} >></a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="ranks-nav next"><a href="https://web.archive.org/web/20130708165425/http://www.metin2.ro/main/highscore/1/-1/11/">urmatoarele 10 ranguri >></a></div>
|
||||
<br class="clearfloat"/>
|
||||
<table border="0" style="table-layout:fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="rank-th-1">{{ __("app/highscore.header.rank") }}</th>
|
||||
<th class="rank-th-2">{{ __("app/highscore.header.character-name") }}</th>
|
||||
<th class="rank-th-3">{{ __("app/highscore.header.empire") }}</th>
|
||||
<th class="rank-th-4">{{ __("app/highscore.header.level") }}</th>
|
||||
<th class="rank-th-5">{{ __("app/highscore.header.exp") }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($highscore as $entry)
|
||||
<tr @class(["rankfirst" => $entry->id == 1, "zebra" => $loop->odd])>
|
||||
<td @class(["rank-td-1-1" => $loop->odd, "rank-td-2-1" => $loop->even])>
|
||||
{{ $entry->id }}
|
||||
</td>
|
||||
<td @class(["rank-td-1-2" => $loop->odd, "rank-td-2-2" => $loop->even])>
|
||||
{{ $entry->name }}
|
||||
</td>
|
||||
<td @class(["rank-td-1-3" => $loop->odd, "rank-td-2-3" => $loop->even])>
|
||||
@if ($entry->empire == \App\Models\Enums\EmpireEnum::SHINSOO)
|
||||
<img src="{{ asset("assets/main/img/empire1.png") }}" width="34" alt="{{ $entry->empire->longName() }}" title="{{ $entry->empire->longName() }}" />
|
||||
@elseif ($entry->empire == \App\Models\Enums\EmpireEnum::CHUNJO)
|
||||
<img src="{{ asset("assets/main/img/empire2.png") }}" width="34" alt="{{ $entry->empire->longName() }}" title="{{ $entry->empire->longName() }}" />
|
||||
@elseif ($entry->empire == \App\Models\Enums\EmpireEnum::JINNO)
|
||||
<img src="{{ asset("assets/main/img/empire3.png") }}" width="34" alt="{{ $entry->empire->longName() }}" title="{{ $entry->empire->longName() }}" />
|
||||
@endif
|
||||
</td>
|
||||
<td @class(["rank-td-1-4" => $loop->odd, "rank-td-2-4" => $loop->even])>
|
||||
{{ $entry->level }}
|
||||
</td>
|
||||
<td @class(["rank-td-1-5" => $loop->odd, "rank-td-2-5" => $loop->even])>
|
||||
{{ $entry->exp }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="clearfloat"></div>
|
||||
<div class="ranks-update-time">Update: 08.07.2013 14:57:16</div>
|
||||
@if ($highscore->lastPage() > 1)
|
||||
<div class="ranks-nav prev">
|
||||
@if ($highscore->currentPage() > 1)
|
||||
<a href="{{ route('highscore-page', ['empireChoice' => $empireChoice, 'classChoice' => $classChoice, 'page' => $highscore->currentPage() - 1, 'character-choice' => $characterChoice ?? null]) }}"><< {{ __("app/highscore.pagination.prev", ['count' => $highscore->perPage()]) }}</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="ranks-nav next">
|
||||
@if ($highscore->hasMorePages())
|
||||
<a href="{{ route('highscore-page', ['empireChoice' => $empireChoice, 'classChoice' => $classChoice, 'page' => $highscore->currentPage() + 1, 'character-choice' => $characterChoice ?? null]) }}">{{ __("app/highscore.pagination.next", ['count' => $highscore->perPage()]) }} >></a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="clearfloat"></div>
|
||||
<div class="ranks-update-time">{{ __('app/highscore.update-time') }} {{ $highscore->max('date')->translatedFormat('d F Y H:i:s') }}</div>
|
||||
@endif
|
||||
<div class="box-foot"></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -150,9 +139,4 @@
|
||||
</div>
|
||||
<div class="shadow"> </div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#highscore table tr:odd').addClass('zebra');
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
Reference in New Issue
Block a user