-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewseries.tpl
executable file
·239 lines (237 loc) · 9.35 KB
/
viewseries.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{if isset($nodata) && $nodata != ""}
<div class="header">
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ TV Series
</ol>
</div>
</div>
<div class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Sorry!</strong>
{$nodata}
</div>
{else}
<div class="header">
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ TV Series
</ol>
</div>
</div>
<h1>
<div style="text-align: center;">{$seriestitles} ({$show.publisher})</div>
</h1>
<div class="tvseriesheading">
{if $show.image != 0}
<div style="text-align: center;">
<img class="shadow img img-polaroid" style="max-height:300px;" alt="{$seriestitles} Logo"
src="{$smarty.const.WWW_TOP}/covers/tvshows/{$show.id}.jpg"/>
</div>
<br/>
{/if}
<p>
<span class="descinitial">{$seriessummary|escape:"htmlall"|nl2br|magicurl}</span>
</p>
</div>
<div class="btn-group">
<a class="btn btn-sm btn-default"
href="{$smarty.const.WWW_TOP}/rss?show={$show.id}{if $category != ''}&t={$category}{/if}&dl=1&i={$userdata.id}&r={$userdata.rsstoken}">RSS
for TV Show <i class="zmdi zmdi-rss"></i></a>
{if $show.tvdb > 0}
<a class="btn btn-sm btn-info" target="_blank"
href="{$site->dereferrer_link}http://thetvdb.com/?tab=series&id={$show.tvdb}"
title="View at TheTVDB">TheTVDB</a>
{/if}
{if $show.tvmaze > 0}
<a class="btn btn-sm btn-info" target="_blank"
href="{$site->dereferrer_link}http://tvmaze.com/shows/{$show.tvmaze}"
title="View at TVMaze">TVMaze</a>
{/if}
{if $show.trakt > 0}
<a class="btn btn-sm btn-info" target="_blank"
href="{$site->dereferrer_link}http://www.trakt.tv/shows/{$show.trakt}"
title="View at TraktTv">Trakt</a>
{/if}
{if $show.tvrage > 0}
<a class="btn btn-sm btn-info" target="_blank"
href="{$site->dereferrer_link}http://www.tvrage.com/shows/id-{$show.tvrage}"
title="View at TV Rage">TV Rage</a>
{/if}
{if $show.tmdb > 0}
<a class="btn btn-sm btn-info" target="_blank"
href="{$site->dereferrer_link}https://www.themoviedb.org/tv/{$show.tmdb}"
title="View at TheMovieDB">TMDB</a>
{/if}
</div>
<br/>
<div class="box-body"
<form id="nzb_multi_operations_form" action="get">
<div class="well well-sm">
<div class="nzb_multi_operations">
With Selected:
<div class="btn-group">
<input type="button" class="nzb_multi_operations_download btn btn-sm btn-success"
value="Download NZBs"/>
<input type="button" class="nzb_multi_operations_cart btn btn-sm btn-info"
value="Send to my Download Basket"/>
{if isset($sabintegrated) && $sabintegrated !=""}
<input type="button" class="nzb_multi_operations_sab btn btn-sm btn-primary"
value="Send to Queue"/>
{/if}
</div>
{if isset($isadmin)}
<div class="pull-right">
Admin:
<div class="btn-group">
<input type="button" class="nzb_multi_operations_edit btn btn-sm btn-warning"
value="Edit"/>
<input type="button" class="nzb_multi_operations_delete btn btn-sm btn-danger"
value="Delete"/>
</div>
</div>
{/if}
</div>
<div>
<a title="Manage your shows" href="{$smarty.const.WWW_TOP}/myshows">My Shows</a> :
<div class="btn-group">
{if $myshows.id != ''}
<a class="btn btn-sm btn-warning"
href="{$smarty.const.WWW_TOP}/myshows/edit/{$show.id}?from={$smarty.server.REQUEST_URI|escape:"url"}"
class="myshows" rel="edit" name="series{$show.id}"
title="Edit Categories for this show">Edit</a>
<a class="btn btn-sm btn-danger"
href="{$smarty.const.WWW_TOP}/myshows/delete/{$show.id}?from={$smarty.server.REQUEST_URI|escape:"url"}"
class="myshows" rel="remove" name="series{$show.id}"
title="Remove from My Shows">Remove</a>
{else}
<a class="btn btn-sm btn-success"
href="{$smarty.const.WWW_TOP}/myshows/add/{$show.id}?from={$smarty.server.REQUEST_URI|escape:"url"}"
class="myshows" rel="add" name="series{$show.id}" title="Add to My Shows">Add</a>
{/if}
</div>
</div>
</div>
<br clear="all"/>
<a id="latest"></a>
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-body pagination2">
<div class="tabbable">
<ul class="nav nav-tabs">
{foreach $seasons as $seasonnum => $season}
<li {if $season@first}class="active"{/if}><a
title="View Season {$seasonnum}" href="#{$seasonnum}"
data-toggle="tab">{$seasonnum}</a></li>
{/foreach}
</ul>
<div class="tab-content">
{foreach $seasons as $seasonnum => $season}
{if empty($seasonnum)}{$seasonnum = 'Packs'}{/if}
<div class="tab-pane{if $season@first} active{/if} fade in"
id="{$seasonnum}">
<table class="tb_{$seasonnum} data table table-condensed table-bordered table-responsive table-hover"
id="browsetable">
<thead>
<tr>
<th>Ep</th>
<th>Name</th>
<th><input id="chkSelectAll{$seasonnum}" type="checkbox"
name="{$seasonnum}"
class="nzb_check_all_season"/><label
for="chkSelectAll{$seasonnum}"
style="display:none;">Select
All</label></th>
<th>Category</th>
<th>Posted</th>
<th>Size</th>
<th>Action</th>
</tr>
</thead>
{foreach $season as $episodes}
{foreach $episodes as $result}
<tr class="{cycle values=",alt"}"
id="guid{$result->guid}">
{if $result@total>1 && $result@index == 0}
<td rowspan="{$result@total}" width="30">
<h4>{$episodes@key}</h4></td>
{elseif $result@total == 1}
<td><h4>{$episodes@key}</h4></td>
{/if}
<td>
<a title="View details"
href="{$smarty.const.WWW_TOP}/details/{$result->guid}">{$result->searchname|escape:"htmlall"|replace:".":" "}</a>
<div>
{if $result->nfoid > 0}<span
class="label label-default">
<a href="{$smarty.const.WWW_TOP}/nfo/{$result->guid}"
class="text-muted">NFO</a>
</span>{/if}
{if $result->image == 1 && $userdata.canpreview == 1}
<a
href="{$smarty.const.WWW_TOP}/covers/preview/{$result->guid}_thumb.jpg"
name="name{$result->guid}"
title="View Screenshot"
class="modal_prev label label-default"
rel="preview">Preview</a>{/if}
<span class="label label-default">{$result->grabs}
Grab{if $result->grabs != 1}s{/if}</span>
{if $result->firstaired != ""}<span
class="label label-success"
title="{$result->title} Aired on {$result->firstaired|date_format}">
Aired {if $result->firstaired|strtotime > $smarty.now}in future{else}{$result->firstaired|daysago}{/if}</span>{/if}
{if $result->reid > 0}<span
class="mediainfo label label-default"
title="{$result->guid}">Media</span>{/if}
</div>
</td>
<td class="check" width="10"><input
id="chk{$result->guid|substr:0:7}"
type="checkbox"
class="square" name="{$seasonnum}"
value="{$result->guid}"/></td>
<td>
<span class="label label-default">{$result->category_name}</span>
</td>
<td width="40"
title="{$result->postdate}">{$result->postdate|timeago}</td>
<td>
{$result->size|filesize}
</td>
<td class="icons" style='width:100px;'>
<a title="Download Nzb"
href="{$smarty.const.WWW_TOP}/getnzb?id={$result->guid}"><i
class="zmdi zmdi-cloud-download text-muted"></i></a>
<a class="zmdi zmdi-shopping-basket icon_cart text-muted"
href="#"
title="Send to my Download Basket">
</a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a class="zmdi zmdi-share icon_sab text-muted"
href="#"
title="Send to my Queue">
</a>
{/if}
{if isset($isadmin)}
<br/>
<a class="label label-warning"
href="{$smarty.const.WWW_TOP}/admin/release-edit?id={$result->id}&from={$smarty.server.REQUEST_URI|escape:"url"}"
title="Edit Release">Edit</a>
<a class="label label-danger"
href="{$smarty.const.WWW_TOP}/admin/release-delete/{$result->id}&from={$smarty.server.REQUEST_URI|escape:"url"}"
title="Delete Release">Delete</a>
{/if}
</td>
</tr>
{/foreach}
{/foreach}
</table>
</div>
{/foreach}
</div>
</div>
</form>
{/if}