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.
 
 
 
 
 
 

114 lines
4.8 KiB

{include file='elements/ads.tpl' ad=$site->adbrowse}
<div>
<br>
<p style="font-size:16px">
<b>Jump to</b>:&nbsp;&nbsp;[ {if $seriesletter == '0-9'}<b><u>{/if}<a href="{$smarty.const.WWW_TOP}/series/0-9">0-9</a>{if $seriesletter == '0-9'}</u></b>{/if}&nbsp;
{foreach $seriesrange as $range}
&nbsp;{if $range == $seriesletter}<b><u>{/if}<a href="{$smarty.const.WWW_TOP}/series/{$range}">{$range}</a>{if $range == $seriesletter}</u></b>{/if}&nbsp;
{/foreach} ]
</p>
</div>
<div>
<a class="btn btn-default" href="{$smarty.const.WWW_TOP}/myshows" title="List my watched shows">My Shows</a>&nbsp;&nbsp;
<a class="btn btn-default" href="{$smarty.const.WWW_TOP}/myshows/browse" title="browse your shows">Browse My Shows</a>
<form name="showsearch" 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="{$showname}">
<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>
<br>
{if $serieslist|@count > 0}
<table style="padding:0;" class="table table-striped table-condensed data " id="browsetable">
{foreach $serieslist as $sletter => $series}
<thead>
<tr>
<th colspan="5"><h3 style="margin:0 4px">{$sletter}...</h3></th>
</tr>
<tr>
<th><div class="text-left">Name</div></th>
<th style="width:80px"><div class="text-center">Network</div></th>
<th style="width:80px"><div class="text-center">Country</div></th>
<th style="width:120px"><div class="text-center">Option</div></th>
<th style="width:180px"><div class="text-center">View</div></th>
</tr>
</thead>
<tbody>
{foreach $series as $s}
<tr>
<td>
<div class="text-left">
<a class="title" title="View series" href="{$smarty.const.WWW_TOP}/series/{$s.id}">{$s.title|escape:"htmlall"}</a>
{if $s.prevdate != ''}
<br>
<span class="label label-default">Last: {$s.previnfo|escape:"htmlall"|wordwrap:60:"<br />\n"}</span>
<br>
<span class="label label-default">Aired: {$s.prevdate|date_format}</span>
{/if}
</div>
</td>
<td>
{if $s.publisher != ''}
<div class="text-center">{$s.publisher|escape:"htmlall"}</div>
{/if}
</td>
<td>
{if $s.country_id != ''}
<div class="text-center">{$s.country_id|escape:"htmlall"}</div>
{/if}
</td>
<td>
<div class="text-center">
{if $s.userseriesid != null}
<span class="label label-warning">
<a href="{$smarty.const.WWW_TOP}/myshows/edit/{$s.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" class="myshows" rel="edit" name="series{$s.id}" title="Edit">Edit</a>
</span>&nbsp;&nbsp;
<span class="label label-danger">
<a href="{$smarty.const.WWW_TOP}/myshows/delete/{$s.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" class="myshows" rel="remove" name="series{$s.id}" title="Remove from My Shows">Remove</a>
</span>
{else}
<span class="label label-success">
<a href="{$smarty.const.WWW_TOP}/myshows/add/{$s.id}?from={$smarty.server.REQUEST_URI|escape:"url"}" class="myshows" rel="add" name="series{$s.id}" title="Add to My Shows">Add</a>
</span>
{/if}
</div>
</td>
<td>
<div class="text-center">
<span class="label label-info"><a title="View series" href="{$smarty.const.WWW_TOP}/series/{$s.id}">Series</a></span>
{if $s.id > 0}
<span class="label label-danger">
{if $s.source == 1}
<a title="View at TVDB" target="_blank" href="{$site->dereferrer_link}http://thetvdb.com/?tab=series&id={$s.tvdb}">TVDB</a>
{else if $s.source == 2}
<a title="View at TVMaze" target="_blank" href="{$site->dereferrer_link}http://tvmaze.com/shows/{$s.tvmaze}">TVMaze</a>
{else if $s.source == 3}
<a title="View at TMDB" target="_blank" href="{$site->dereferrer_link}http://themoviedb.org/tv/{$s.tmdb}">TMDB</a>
{else if $s.source == 4}
<a title="View at Trakt" target="_blank" href="{$site->dereferrer_link}http://www.trakt.tv/shows/{$s.trakt}">Trakt</a>
{else if $s.source == 6}
<a title="View at TVRage" target="_blank" href="{$site->dereferrer_link}http://www.tvrage.com/shows/id-{$s.tvrage}">TVRage</a>
{/if}
</span>
<span class="label label-warning">
<a title="RSS Feed for {$s.title|escape:"htmlall"}" href="{$smarty.const.WWW_TOP}/rss?video={$s.id}&amp;dl=1&amp;i={$userdata.id}&amp;r={$userdata.rsstoken}">RSS</a>
</span>
{/if}
</div>
</td>
</tr>
{/foreach}
</tbody>
{/foreach}
</table>
{else}
<h2>No results</h2>
{/if}