-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowse.tpl
executable file
·219 lines (217 loc) · 8.65 KB
/
browse.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
<div class="header">
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/
<a href="{$smarty.const.WWW_TOP}/browse/{if ($parentcat == 'music')}Audio{else}{$parentcat}{/if}">{$parentcat}</a>
/ {if ($catname != '' && $catname != 'All')} <a
href="{$smarty.const.WWW_TOP}/browse/{$parentcat}/{$catname}">{$catname}</a>{/if}
</ol>
</div>
</div>
{$site->adbrowse}
{if $results|@count > 0}
<form id="nzb_multi_operations_form" action="get">
<div class="box-body">
<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="row">
<div class="col-md-8">
{if isset($shows)}
<p>
<a href="{$smarty.const.WWW_TOP}/series"
title="View available TV series">Series List</a> |
<a title="Manage your shows" href="{$smarty.const.WWW_TOP}/myshows">Manage
My Shows</a> |
<a title="All releases in your shows as an RSS feed"
href="{$smarty.const.WWW_TOP}/rss?t=-3&dl=1&i={$userdata.id}&r={$userdata.rsstoken}">Rss
Feed</a>
</p>
{/if}
<div class="nzb_multi_operations">
{if isset($covgroup) && $covgroup != ''}View:
<a href="{$smarty.const.WWW_TOP}/{$covgroup}/{$category}">Covers
</a>
|
<b>List</b>
<br/>
{/if}
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}
{if isset($isadmin)}
<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"/>
{/if}
</div>
</div>
</div>
{if count($results) > 0}
<div class="col-md-4">
{$results->links()}
</div>
{/if}
</div>
<hr>
<table class="data table table-condensed table-striped table-responsive table-hover"
cellspacing="0"
cellpadding="0" style="table-layout: auto;">
<thead>
<tr>
<th><input id="chkSelectAll" type="checkbox" class="square-all"/></th>
<th>Name
<a title="Sort Descending" href="{$orderbyname_desc}">
<i class="fa-icon-caret-down"> </i>
</a>
<a title="Sort Ascending" href="{$orderbyname_asc}">
<i class="fa-icon-caret-up"> </i>
</a>
</th>
<th>Category</th>
<th>Posted</th>
<th>Size</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{foreach $resultsadd as $result}
<tr id="guid{$result->guid}">
<td class="check"><input id="chk{$result->guid|substr:0:7}"
type="checkbox" class="square"
value="{$result->guid}"/></td>
<td>
<a href="{$smarty.const.WWW_TOP}/details/{$result->guid}"
class="title">{$result->searchname|escape:"htmlall"|replace:".":" "}</a>{if !empty($result->failed)}
<i class="zmdi zmdi-alarm" style="color: red"
title="This release has failed to download for some users"></i>{/if}
<br/>
<span class="label label-default">{$result->grabs}
Grab{if $result->grabs != 1}s{/if}</span>
{if $result->nfoid > 0}<span><a
href="{$smarty.const.WWW_TOP}/nfo/{$result->guid}"
class="modal_nfo label label-default" rel="nfo">NFO</a>
</span>{/if}
{if $result->jpgstatus == 1 && $userdata.canpreview == 1}<span><a
href="{$smarty.const.WWW_TOP}/covers/sample/{$result->guid}_thumb.jpg"
name="name{$result->guid}" class="modal_prev label label-default"
rel="preview">Sample</a></span>{/if}
{if $result->haspreview == 1 && $userdata.canpreview == 1}<span><a
href="{$smarty.const.WWW_TOP}/covers/preview/{$result->guid}_thumb.jpg"
name="name{$result->guid}" class="modal_prev label label-default"
rel="preview">Preview</a></span>{/if}
{if $result->videos_id > 0}<span class="label label-default"><a
href="{$smarty.const.WWW_TOP}/series/{$result->videos_id}">View TV</a>
</span>{/if}
{if isset($result->firstaired) && $result->firstaired != ""}<span
class="seriesinfo label label-default" title="{$result->guid}">
Aired {if $result->firstaired|strtotime > $smarty.now}in future{else}{$result->firstaired|daysago}{/if}</span>{/if}
{if $result->anidbid > 0}<span class="label label-default"><a
href="{$smarty.const.WWW_TOP}/anime?id={$result->anidbid}">View Anime</a>
</span>{/if}
{if !empty($result->failed)}<span class="label label-default">
<i class="zmdi zmdi-thumbs-o-up"></i>
{$result->grabs} Grab{if $result->grabs != 1}s{/if} /
<i class="zmdi zmdi-thumbs-o-down"></i>
{$result->failed} Failed Download{if $result->failed != 1}s{/if}
</span>{/if}
<span class="label label-primary">{$result->group_name}</span>
<span class="label label-primary">{$result->fromname}</span>
</td>
<td><span class="label label-default">{$result->category_name}</span>
</td>
<td>{$result->postdate|timeago}</td>
<td>{$result->size|filesize}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb?id={$result->guid}"
class="icon_nzb"><i
class="zmdi zmdi-cloud-download"
title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result->guid}/#comments"><i
class="zmdi zmdi-comments-o"
title="Comments"></i></a>
<a href="#"><i
id="guid{$result->guid}"
class="icon_cart zmdi zmdi-shopping-basket"
title="Send to my Download Basket">
</i>
</a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a href="#"><i
id="guid{$result->guid}"
class="icon_sab zmdi zmdi-share"
title="Send to my Queue">
</i>
</a>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex"><i
class="zmdi zmdi-share" title="Send to NZBVortex"></i></a>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
<hr>
<div class="row">
<div class="col-md-8">
<div class="nzb_multi_operations">
{if isset($section) && $section != ''}View:
<a href="{$smarty.const.WWW_TOP}/{$covgroup}/{$category}">Covers</a>
|
<b>List</b>
<br/>
{/if}
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}
{if isset($isadmin)}
<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"/>
{/if}
</div>
</div>
</div>
{if count($results) > 0}
<div class="col-md-4">
{$results->links()}
</div>
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
</form>
{/if}