-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewanimelist.tpl
executable file
·64 lines (64 loc) · 2.59 KB
/
viewanimelist.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<div class="well well-sm">
<div class="header">
<h2>Anime > <strong>List</strong></h2>
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ Anime List
</ol>
</div>
</div>
{$site->adbrowse}
<p><b>Jump to</b>:
[ {if $animeletter == '0-9'}<b><u>{/if}<a
href="{$smarty.const.WWW_TOP}/animelist/0-9">0-9</a>{if $animeletter == '0-9'}</u></b>{/if}
{foreach $animerange as $range}
{if $range == $animeletter}<b><u>{/if}<a
href="{$smarty.const.WWW_TOP}/animelist?id={$range}">{$range}</a>{if $range == $animeletter}</u></b>{/if}
{/foreach}]
</p>
{$site->adbrowse}
{if $animelist|@count > 0}
<table style="width:100%;" class="data table table-striped responsive-utilities jambo-table" id="browsetable">
{foreach $animelist as $aletter => $anime}
<tr>
<td colspan="10">
<h2>{$aletter}...</h2>
{{Form::open(['class' => 'form pull-right', 'method' => 'get', 'name' => 'anidbsearch', 'style' =>'margin-top:-35px;'])}}
{{Form::label('title', 'Search:')}}
{{Form::text('title', $animetitle, ['class' => 'form-control', 'style' => 'width: 150px;', 'id'=> 'title appendedInputButton',
'placeholder' => 'Search here'])}}
{{Form::button('Search', ['class' => 'btn btn-default', 'type' => 'submit'])}}
{{Form::close()}}
</td>
</tr>
<tr>
<th width="35%">Name</th>
<th>Type</th>
<th width="35%">Categories</th>
<th>Rating</th>
<th>View</th>
</tr>
{foreach $anime as $a}
<tr>
<td><a class="title" title="View anime"
href="{$smarty.const.WWW_TOP}/anime?id={$a.anidbid}">{$a.title|escape:"htmlall"}</a>{if {$a.startdate} != ''}
<br/><span class="label label-info">({$a.startdate|date_format}
- {/if}{if $a.enddate != ''}{$a.enddate|date_format}){/if}</span></td>
<td>{if {$a.type} != ''}{$a.type|escape:"htmlall"}{/if}</td>
<td>{if {$a.categories} != ''}{$a.categories|escape:"htmlall"|replace:'|':', '}{/if}</td>
<td>{if {$a.rating} != ''}{$a.rating}{/if}</td>
<td><a title="View at AniDB" target="_blank" class="label label-primary"
href="{$site->dereferrer_link}http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$a.anidbid}">AniDB</a>
</td>
</tr>
{/foreach}
{/foreach}
</table>
{else}
<div class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Hmm!</strong> No results for this query.
</div>
{/if}
</div>