Fix badly formed class setting

This commit is contained in:
DariusIII
2016-09-17 22:23:09 +02:00
parent 444d9d71ce
commit 2b413c4fda
4 changed files with 546 additions and 507 deletions
+1
View File
@@ -1,4 +1,5 @@
2016-09-17 DariusIII
* Fix: Badly formed class setting
* Chg: Reformat pager and move it to shared folder
2016-09-16 DariusIII
* Chg: Add back reporting of total releases to api response
+172 -156
View File
@@ -10,180 +10,196 @@
{$site->adbrowse}
{if $results|@count > 0}
<form id="nzb_multi_operations_form" action="get">
<div class="box-body"
<div class="row">
<div class="col-xlg-12 portlets">
<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&amp;dl=1&amp;i={$userdata.id}&amp;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}?t={$category}">Covers
</a>
|
<b>List</b>
<br/>
<div class="box-body">
<div class="row">
<div class="col-xlg-12 portlets">
<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&amp;dl=1&amp;i={$userdata.id}&amp;r={$userdata.rsstoken}">Rss
Feed</a>
</p>
{/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"/>
<div class="nzb_multi_operations">
{if isset($covgroup) && $covgroup != ''}View:
<a href="{$smarty.const.WWW_TOP}/{$covgroup}?t={$category}">Covers
</a>
|
<b>List</b>
<br/>
{/if}
{if isset($isadmin)}
With Selected:
<div class="btn-group">
<input type="button"
class="nzb_multi_operations_edit btn btn-sm btn-warning"
value="Edit"/>
class="nzb_multi_operations_download btn btn-sm btn-success"
value="Download NZBs"/>
<input type="button"
class="nzb_multi_operations_delete btn btn-sm btn-danger"
value="Delete"/>
{/if}
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>
<div class="col-md-4">
{$pager}
</div>
</div>
<div class="col-md-4">
{$pager}
</div>
</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 text-muted"> </i>
</a>
<a title="Sort Ascending" href="{$orderbyname_asc}">
<i class="fa-icon-caret-up text-muted"> </i>
</a>
</th>
<th>Category</th>
<th>Posted</th>
<th>Size</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{foreach $results 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="fa fa-exclamation-circle" 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/{$result.anidbid}">View Anime</a></span>{/if}
{if !empty($result.failed)}<span class="label label-default">
<i class ="fa fa-thumbs-o-up"></i> {$result.grabs} Grab{if $result.grabs != 1}s{/if} / <i class ="fa fa-thumbs-o-down"></i> {$result.failed} Failed Download{if $result.failed != 1}s{/if}</span>{/if} </td>
<td><span class="label label-default">{$result.category_name}</span>
</td>
<td>{$result.postdate|timeago}</td>
<td>{$result.size|fsize_format:"MB"}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}" class="icon_nzb text-muted"><i
class="fa fa-cloud-download text-muted"
title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments"><i
class="fa fa-comments-o text-muted"
title="Comments"></i></a>
<a href="#"><i
id="guid{$result.guid}"
class="icon_cart text-muted fa fa-shopping-basket" title="Send to my Download Basket">
</i>
<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 text-muted"> </i>
</a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a title="Sort Ascending" href="{$orderbyname_asc}">
<i class="fa-icon-caret-up text-muted"> </i>
</a>
</th>
<th>Category</th>
<th>Posted</th>
<th>Size</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{foreach $results 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="fa fa-exclamation-circle" 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/{$result.anidbid}">View Anime</a>
</span>{/if}
{if !empty($result.failed)}<span class="label label-default">
<i class="fa fa-thumbs-o-up"></i>
{$result.grabs} Grab{if $result.grabs != 1}s{/if} /
<i class="fa fa-thumbs-o-down"></i>
{$result.failed} Failed Download{if $result.failed != 1}s{/if}
</span>{/if} </td>
<td><span class="label label-default">{$result.category_name}</span>
</td>
<td>{$result.postdate|timeago}</td>
<td>{$result.size|fsize_format:"MB"}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}"
class="icon_nzb text-muted"><i
class="fa fa-cloud-download text-muted"
title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments"><i
class="fa fa-comments-o text-muted"
title="Comments"></i></a>
<a href="#"><i
id="guid{$result.guid}"
class="icon_sab text-muted fa fa-share"
title="Send to my Queue">
class="icon_cart text-muted fa fa-shopping-basket"
title="Send to my Download Basket">
</i>
</a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a href="#"><i
id="guid{$result.guid}"
class="icon_sab text-muted fa fa-share"
title="Send to my Queue">
</i>
</a>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex text-muted"><i
class="fa fa-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}/{$section}?t={$category}">Covers</a>
|
<b>List</b>
<br/>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex text-muted"><i
class="fa fa-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}/{$section}?t={$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 !=""}
With Selected:
<div class="btn-group">
<input type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
value="Send to Queue"/>
{/if}
{if isset($isadmin)}
class="nzb_multi_operations_download btn btn-sm btn-success"
value="Download NZBs"/>
<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}
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>
</div>
<div class="col-md-4">
{$pager}
<div class="col-md-4">
{$pager}
</div>
</div>
</div>
</div>
+201 -195
View File
@@ -10,209 +10,215 @@
{$site->adbrowse}
{if $results|@count > 0}
<form id="nzb_multi_operations_form" action="get">
<div class="box-body"
<div class="row">
<div class="col-xlg-12 portlets">
<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&amp;dl=1&amp;i={$userdata.id}&amp;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}?t={$category}">Covers
</a>
|
<b>List</b>
<br/>
<div class="box-body">
<div class="row">
<div class="col-xlg-12 portlets">
<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&amp;dl=1&amp;i={$userdata.id}&amp;r={$userdata.rsstoken}">Rss
Feed</a>
</p>
{/if}
With Selected:
<div class="btn-group">
<button type="button"
class="nzb_multi_operations_download btn btn-sm btn-success"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZBs">
<i class="fa fa-cloud-download"></i></button>
<button type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to my Download Basket">
<i class="fa fa-shopping-basket"></i></button>
{if isset($sabintegrated) && $sabintegrated !=""}
<button type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to Queue">
<i class="fa fa-share"></i></button>
{/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>
<div class="col-md-4">
{$pager}
</div>
</div>
<hr>
<table class="data table table-striped responsive-utilities jambo-table bulk-action">
<thead>
<tr class="headings">
<th><input id="check-all" type="checkbox" class="flat-all"/></th>
<th>Name
<a title="Sort Descending" href="{$orderbyname_desc}"><i
class="fa-icon-caret-down text-muted"> </i></a>
<a title="Sort Ascending" href="{$orderbyname_asc}"><i
class="fa-icon-caret-up text-muted"> </i></a>
</th>
<th class="column-title" style="display: table-cell;">Category</th>
<th class="column-title" style="display: table-cell;">Posted</th>
<th class="column-title" style="display: table-cell;">Size</th>
<th class="column-title no-link last" style="display: table-cell;">Action</th>
<th class="bulk-actions" colspan="7">
<a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span
class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
</th>
</tr>
</thead>
<tbody>
{foreach $results as $result}
<tr id="guid{$result.guid}">
<td><input id="chk{$result.guid|substr:0:7}"
type="checkbox" name="table_records" class="flat"
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="fa fa-exclamation-circle" style="color: red"
title="This release has failed to download for some users"></i>{/if}
<br/>
<span class="label label-primary">{$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-primary" 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-primary"
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-primary"
rel="preview">Preview</a></span>{/if}
{if $result.videos_id > 0}<span><a
href="{$smarty.const.WWW_TOP}/series/{$result.videos_id}"
class="label label-primary" rel="series">View TV</a></span>{/if}
{if !empty($result.firstaired)}<span
class="seriesinfo label label-primary" title="{$result.guid}">
Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}</span>{/if}
{if $result.anidbid > 0}<span><a class="label label-primary"
href="{$smarty.const.WWW_TOP}/anime/{$result.anidbid}">View
Anime</a></span>{/if}
{if !empty($result.failed)}<span class="label label-primary">
<i class="fa fa-thumbs-o-up"></i>
{$result.grabs} Grab{if $result.grabs != 1}s{/if} /
<i class="fa fa-thumbs-o-down"></i>
{$result.failed} Failed Download{if $result.failed != 1}s{/if}</span>{/if}
</td>
<td><span class="label label-primary">{$result.category_name}</span>
</td>
<td>{$result.postdate|timeago}</td>
<td>{$result.size|fsize_format:"MB"}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}" class="icon_nzb text-muted"><i
class="fa fa-cloud-download text-muted"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments"><i
class="fa fa-comments-o text-muted"
data-toggle="tooltip" data-placement="top" title
data-original-title="Comments"></i></a>
<a href="#"><i
id="guid{$result.guid}"
class="icon_cart text-muted fa fa-shopping-basket" data-toggle="tooltip"
data-placement="top" title
data-original-title="Send to my download basket"></i></a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a href="#">
<i id="guid{$result.guid}"
class="icon_sab text-muted fa fa-share"
data-toggle="tooltip"
data-placement="top" title
data-original-title="Send to my Queue">
</i>
<div class="nzb_multi_operations">
{if isset($covgroup) && $covgroup != ''}View:
<a href="{$smarty.const.WWW_TOP}/{$covgroup}?t={$category}">Covers
</a>
|
<b>List</b>
<br/>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex text-muted"><i
class="fa fa-share" data-toggle="tooltip" data-placement="top"
title data-original-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}/{$section}?t={$category}">Covers</a>
|
<b>List</b>
<br/>
{/if}
With Selected:
<div class="btn-group">
<button type="button"
class="nzb_multi_operations_download btn btn-sm btn-success"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZBs">
<i class="fa fa-cloud-download"></i></button>
<button type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to my Download Basket">
<i class="fa fa-shopping-basket"></i></button>
{if isset($sabintegrated) && $sabintegrated !=""}
With Selected:
<div class="btn-group">
<button type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
class="nzb_multi_operations_download btn btn-sm btn-success"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to Queue">
<i class="fa fa-share"></i></button>
{/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}
data-original-title="Download NZBs">
<i class="fa fa-cloud-download"></i></button>
<button type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to my Download Basket">
<i class="fa fa-shopping-basket"></i></button>
{if isset($sabintegrated) && $sabintegrated !=""}
<button type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to Queue">
<i class="fa fa-share"></i></button>
{/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>
<div class="col-md-4">
{$pager}
</div>
</div>
<div class="col-md-4">
{$pager}
<hr>
<table class="data table table-striped responsive-utilities jambo-table bulk-action">
<thead>
<tr class="headings">
<th><input id="check-all" type="checkbox" class="flat-all"/></th>
<th>Name
<a title="Sort Descending" href="{$orderbyname_desc}"><i
class="fa-icon-caret-down text-muted"> </i></a>
<a title="Sort Ascending" href="{$orderbyname_asc}"><i
class="fa-icon-caret-up text-muted"> </i></a>
</th>
<th class="column-title" style="display: table-cell;">Category</th>
<th class="column-title" style="display: table-cell;">Posted</th>
<th class="column-title" style="display: table-cell;">Size</th>
<th class="column-title no-link last" style="display: table-cell;">Action</th>
<th class="bulk-actions" colspan="7">
<a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span
class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
</th>
</tr>
</thead>
<tbody>
{foreach $results as $result}
<tr id="guid{$result.guid}">
<td><input id="chk{$result.guid|substr:0:7}"
type="checkbox" name="table_records" class="flat"
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="fa fa-exclamation-circle" style="color: red"
title="This release has failed to download for some users"></i>{/if}
<br/>
<span class="label label-primary">{$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-primary" 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-primary"
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-primary"
rel="preview">Preview</a></span>{/if}
{if $result.videos_id > 0}<span><a
href="{$smarty.const.WWW_TOP}/series/{$result.videos_id}"
class="label label-primary" rel="series">View TV</a></span>{/if}
{if !empty($result.firstaired)}<span
class="seriesinfo label label-primary" title="{$result.guid}">
Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}</span>{/if}
{if $result.anidbid > 0}<span><a class="label label-primary"
href="{$smarty.const.WWW_TOP}/anime/{$result.anidbid}">View
Anime</a></span>{/if}
{if !empty($result.failed)}<span class="label label-primary">
<i class="fa fa-thumbs-o-up"></i>
{$result.grabs} Grab{if $result.grabs != 1}s{/if} /
<i class="fa fa-thumbs-o-down"></i>
{$result.failed} Failed Download{if $result.failed != 1}s{/if}
</span>{/if}
</td>
<td><span class="label label-primary">{$result.category_name}</span>
</td>
<td>{$result.postdate|timeago}</td>
<td>{$result.size|fsize_format:"MB"}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}"
class="icon_nzb text-muted"><i
class="fa fa-cloud-download text-muted"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments"><i
class="fa fa-comments-o text-muted"
data-toggle="tooltip" data-placement="top" title
data-original-title="Comments"></i></a>
<a href="#"><i
id="guid{$result.guid}"
class="icon_cart text-muted fa fa-shopping-basket"
data-toggle="tooltip"
data-placement="top" title
data-original-title="Send to my download basket"></i></a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a href="#">
<i id="guid{$result.guid}"
class="icon_sab text-muted fa fa-share"
data-toggle="tooltip"
data-placement="top" title
data-original-title="Send to my Queue">
</i>
</a>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex text-muted"><i
class="fa fa-share" data-toggle="tooltip"
data-placement="top"
title data-original-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}/{$section}?t={$category}">Covers</a>
|
<b>List</b>
<br/>
{/if}
With Selected:
<div class="btn-group">
<button type="button"
class="nzb_multi_operations_download btn btn-sm btn-success"
data-toggle="tooltip" data-placement="top" title
data-original-title="Download NZBs">
<i class="fa fa-cloud-download"></i></button>
<button type="button"
class="nzb_multi_operations_cart btn btn-sm btn-info"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to my Download Basket">
<i class="fa fa-shopping-basket"></i></button>
{if isset($sabintegrated) && $sabintegrated !=""}
<button type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
data-toggle="tooltip" data-placement="top" title
data-original-title="Send to Queue">
<i class="fa fa-share"></i></button>
{/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>
<div class="col-md-4">
{$pager}
</div>
</div>
</div>
</div>
+172 -156
View File
@@ -10,180 +10,196 @@
{$site->adbrowse}
{if $results|@count > 0}
<form id="nzb_multi_operations_form" action="get">
<div class="box-body"
<div class="row">
<div class="col-xlg-12 portlets">
<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&amp;dl=1&amp;i={$userdata.id}&amp;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}?t={$category}">Covers
</a>
|
<b>List</b>
<br/>
<div class="box-body">
<div class="row">
<div class="col-xlg-12 portlets">
<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&amp;dl=1&amp;i={$userdata.id}&amp;r={$userdata.rsstoken}">Rss
Feed</a>
</p>
{/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"/>
<div class="nzb_multi_operations">
{if isset($covgroup) && $covgroup != ''}View:
<a href="{$smarty.const.WWW_TOP}/{$covgroup}?t={$category}">Covers
</a>
|
<b>List</b>
<br/>
{/if}
{if isset($isadmin)}
With Selected:
<div class="btn-group">
<input type="button"
class="nzb_multi_operations_edit btn btn-sm btn-warning"
value="Edit"/>
class="nzb_multi_operations_download btn btn-sm btn-success"
value="Download NZBs"/>
<input type="button"
class="nzb_multi_operations_delete btn btn-sm btn-danger"
value="Delete"/>
{/if}
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>
<div class="col-md-4">
{$pager}
</div>
</div>
<div class="col-md-4">
{$pager}
</div>
</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="check-all" type="checkbox" class="square-all"/></th>
<th>Name
<a title="Sort Descending" href="{$orderbyname_desc}">
<i class="fa-icon-caret-down text-muted"> </i>
</a>
<a title="Sort Ascending" href="{$orderbyname_asc}">
<i class="fa-icon-caret-up text-muted"> </i>
</a>
</th>
<th>Category</th>
<th>Posted</th>
<th>Size</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{foreach $results 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="fa fa-exclamation-circle" 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/{$result.anidbid}">View Anime</a></span>{/if}
{if !empty($result.failed)}<span class="label label-default">
<i class ="fa fa-thumbs-o-up"></i> {$result.grabs} Grab{if $result.grabs != 1}s{/if} / <i class ="fa fa-thumbs-o-down"></i> {$result.failed} Failed Download{if $result.failed != 1}s{/if}</span>{/if} </td>
<td><span class="label label-default">{$result.category_name}</span>
</td>
<td>{$result.postdate|timeago}</td>
<td>{$result.size|fsize_format:"MB"}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}" class="icon_nzb text-muted"><i
class="fa fa-cloud-download text-muted"
title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments"><i
class="fa fa-comments-o text-muted"
title="Comments"></i></a>
<a href="#"><i
id="guid{$result.guid}"
class="icon_cart text-muted fa fa-shopping-basket" title="Send to my Download Basket">
</i>
<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="check-all" type="checkbox" class="square-all"/></th>
<th>Name
<a title="Sort Descending" href="{$orderbyname_desc}">
<i class="fa-icon-caret-down text-muted"> </i>
</a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a title="Sort Ascending" href="{$orderbyname_asc}">
<i class="fa-icon-caret-up text-muted"> </i>
</a>
</th>
<th>Category</th>
<th>Posted</th>
<th>Size</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{foreach $results 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="fa fa-exclamation-circle" 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/{$result.anidbid}">View Anime</a>
</span>{/if}
{if !empty($result.failed)}<span class="label label-default">
<i class="fa fa-thumbs-o-up"></i>
{$result.grabs} Grab{if $result.grabs != 1}s{/if} /
<i class="fa fa-thumbs-o-down"></i>
{$result.failed} Failed Download{if $result.failed != 1}s{/if}
</span>{/if} </td>
<td><span class="label label-default">{$result.category_name}</span>
</td>
<td>{$result.postdate|timeago}</td>
<td>{$result.size|fsize_format:"MB"}</td>
<td>
<a href="{$smarty.const.WWW_TOP}/getnzb/{$result.guid}"
class="icon_nzb text-muted"><i
class="fa fa-cloud-download text-muted"
title="Download NZB"></i></a>
<a href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments"><i
class="fa fa-comments-o text-muted"
title="Comments"></i></a>
<a href="#"><i
id="guid{$result.guid}"
class="icon_sab text-muted fa fa-share"
title="Send to my Queue">
class="icon_cart text-muted fa fa-shopping-basket"
title="Send to my Download Basket">
</i>
</a>
{if isset($sabintegrated) && $sabintegrated !=""}
<a href="#"><i
id="guid{$result.guid}"
class="icon_sab text-muted fa fa-share"
title="Send to my Queue">
</i>
</a>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex text-muted"><i
class="fa fa-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}/{$section}?t={$category}">Covers</a>
|
<b>List</b>
<br/>
{/if}
{if $weHasVortex}
<a href="#" class="icon_vortex text-muted"><i
class="fa fa-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}/{$section}?t={$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 !=""}
With Selected:
<div class="btn-group">
<input type="button"
class="nzb_multi_operations_sab btn btn-sm btn-primary"
value="Send to Queue"/>
{/if}
{if isset($isadmin)}
class="nzb_multi_operations_download btn btn-sm btn-success"
value="Download NZBs"/>
<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}
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>
</div>
<div class="col-md-4">
{$pager}
<div class="col-md-4">
{$pager}
</div>
</div>
</div>
</div>