You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
2.3 KiB

{include file='elements/ads.tpl' ad=$site->adbrowse}
<div>
<br>
<p style="font-size:16px">
<b>Jump to</b>:&nbsp;&nbsp;[ {if $animeletter == '0-9'}<b><u>{/if}<a href="{$smarty.const.WWW_TOP}/anime/0-9">0-9</a>{if $animeletter == '0-9'}</u></b>{/if}&nbsp;
{foreach $animerange as $range}
&nbsp;{if $range == $animeletter}<b><u>{/if}<a href="{$smarty.const.WWW_TOP}/anime/{$range}">{$range}</a>{if $range == $animeletter}</u></b>{/if}&nbsp;
{/foreach} ]
</p>
</div>
<div>
<form name="anidbsearch" action="" method="get" id="custom-search-form" class="form-inline form-horizontal col-4 col-lg-4 pull-right">
<div class="input-group col-12 col-lg-12">
<input type="text" class="form-control" placeholder="Search" id="title" name="title" value="{$animetitle}">
<span class="input-group-btn">
<button type="submit" value="Go" class="btn btn-default"><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
{if $animelist|@count > 0}
<table class="table table-highlight table-condensed table-striped data" id="browsetable">
{foreach $animelist as $aletter => $anime}
<tr>
<td style="padding-top:15px;" colspan="10"><a href="#top" class="top_link">Top</a><h2>{$animeletter}...</h2></td>
</tr>
<thead>
<tr>
<th width="40%">Name</th>
<th width="10%">Type</th>
<th width="35%">Categories</th>
<th width="5%">Rating</th>
<th>View</th>
</tr>
</thead>
<tbody>
{foreach $anime as $a}
<tr>
<td><a class="title" title="View anime" href="{$smarty.const.WWW_TOP}/anime/{$a.anidbid}">{$a.title|escape:"htmlall"}</a>{if {$a.startdate} != ''}<br />({$a.startdate|date_format} - {if $a.enddate != ''}{$a.enddate|date_format}){/if}{/if}</td>
<td style="text-align: center;">{if {$a.type} != ''}{$a.type|escape:"htmlall"}{/if}</td>
<td>{if {$a.categories} != ''}{$a.categories|escape:"htmlall"|replace:'|':', '}{/if}</td>
<td style="text-align: center;">{if {$a.rating} != ''}{$a.rating}{/if}</td>
<td><a title="View anime" href="{$smarty.const.WWW_TOP}/anime/{$a.anidbid}">Anime</a>&nbsp;&nbsp;{if $a.anidbid > 0}<a title="View at AniDB" target="_blank" href="{$site->dereferrer_link}http://anidb.net/perl-bin/animedb.pl?show=anime&aid={$a.anidbid}">AniDB</a>{/if}</td>
</tr>
{/foreach}
</tbody>
{/foreach}
</table>
{else}
<h2>No results</h2>
{/if}