blessing-skin-server/resources/views/skinlib/index.tpl

90 lines
3.4 KiB
Smarty
Raw Normal View History

2016-07-21 22:01:57 +08:00
@extends('skinlib.master')
@section('title', '皮肤库')
@section('content')
<!-- Full Width Column -->
<div class="content-wrapper">
<div class="container">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
皮肤库
<small>Skin Library</small>
</h1>
<ol class="breadcrumb">
<li><i class="fa fa-tags"></i> 当前正显示</li>
<li>
@if ($filter == "skin")
2016-07-23 15:20:10 +08:00
皮肤<small>(任意模型)</small>
2016-07-21 22:01:57 +08:00
@elseif ($filter == "steve")
2016-07-23 15:20:10 +08:00
皮肤<small>Steve 模型)</small>
2016-07-21 22:01:57 +08:00
@elseif ($filter == "alex")
2016-07-23 15:20:10 +08:00
皮肤<small>Alex 模型)</small>
2016-07-21 22:01:57 +08:00
@elseif ($filter == "cape")
2016-07-23 15:20:10 +08:00
披风
2016-07-21 22:01:57 +08:00
@elseif ($filter == "user")
2016-07-23 15:20:10 +08:00
用户uid.{{ $_GET['uid'] or 0 }})上传
2016-07-21 22:01:57 +08:00
@endif
</li>
<li class="active">
@if ($sort == "time")
2016-07-23 15:20:10 +08:00
最新上传
2016-07-21 22:01:57 +08:00
@elseif ($sort == "likes")
2016-07-23 15:20:10 +08:00
最多收藏
2016-07-21 22:01:57 +08:00
@endif
</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="box box-default">
<div class="box-body">
@forelse ($textures as $texture)
<a href="./skinlib/show?tid={{ $texture['tid'] }}">
2016-08-13 22:07:28 +08:00
@include('skinlib.item')
2016-07-21 22:01:57 +08:00
</a>
@empty
<p style="text-align: center; margin: 30px 0;">无结果</p>
@endforelse
</div><!-- /.box-body -->
<div class="box-footer">
2016-07-23 15:20:10 +08:00
<!-- Pagination -->
2016-07-21 22:01:57 +08:00
<ul class="pagination pagination-sm no-margin pull-right">
2016-07-24 15:19:21 +08:00
<?php $base_url = ($filter != "" && $sort != "") ? "?filter=$filter&sort=$sort&" : "?"; ?>
2016-07-21 22:01:57 +08:00
<li><a href="?page=1">«</a></li>
2016-07-24 15:19:21 +08:00
2016-07-21 22:01:57 +08:00
@if ($page != 1)
2016-07-24 15:19:21 +08:00
<li><a href="{{ $base_url }}page={{ $page-1 }}">{{ $page - 1 }}</a></li>
2016-07-21 22:01:57 +08:00
@endif
2016-07-24 15:19:21 +08:00
<li><a href="{{ $base_url }}page={{ $page }}" class="active">{{ $page }}</a></li>
2016-07-21 22:01:57 +08:00
@if ($total_pages > $page)
2016-07-24 15:19:21 +08:00
<li><a href="{{ $base_url }}page={{ $page+1 }}">{{ $page+1 }}</a></li>
2016-07-21 22:01:57 +08:00
@endif
2016-07-24 15:19:21 +08:00
<li><a href="{{ $base_url }}page={{ $total_pages }}">»</a></li>
2016-07-21 22:01:57 +08:00
</ul>
2016-07-23 12:15:36 +08:00
<select id="page-select" class="pull-right">
@for ($i = 1; $i <= $total_pages; $i++)
@if ($i == $page)
<option value='{{ $i }}' selected="selected">{{ $i }}</option>
@else
<option value='{{ $i }}'>{{ $i }}</option>
@endif
@endfor
</select>
2016-07-21 22:01:57 +08:00
<p class="pull-right">第 {{ $page }} 页,共 {{ $total_pages }} 页</p>
</div>
</div><!-- /.box -->
</section><!-- /.content -->
</div><!-- /.container -->
</div><!-- /.content-wrapper -->
@endsection