mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update search
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
2018-04-12 DariusIII
|
||||
* Chg: Update search
|
||||
2018-04-11 DariusIII
|
||||
* Chg: Add SearchController
|
||||
* Chg: Add MusicController
|
||||
|
||||
@@ -14,7 +14,7 @@ class SearchController extends BasePageController
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function search($id, Request $request)
|
||||
public function search(Request $request)
|
||||
{
|
||||
$this->setPrefs();
|
||||
$releases = new Releases(['Groups' => null, 'Settings' => $this->settings]);
|
||||
@@ -41,15 +41,15 @@ class SearchController extends BasePageController
|
||||
]
|
||||
);
|
||||
|
||||
if ($searchType === 'basic' && ! $request->has('searchadvr') && (! empty($id) || $request->has('subject'))) {
|
||||
if ($searchType === 'basic' && ! $request->has('searchadvr') && ($request->has('id') || $request->has('subject'))) {
|
||||
$searchString = '';
|
||||
switch (true) {
|
||||
case $request->has('subject'):
|
||||
$searchString = (string) $request->input('subject');
|
||||
$this->smarty->assign('subject', $searchString);
|
||||
break;
|
||||
case ! empty($id):
|
||||
$searchString = (string) $id;
|
||||
case $request->has('id'):
|
||||
$searchString = (string) $request->input('id');
|
||||
$this->smarty->assign('search', $searchString);
|
||||
break;
|
||||
}
|
||||
@@ -119,7 +119,7 @@ class SearchController extends BasePageController
|
||||
$this->smarty->assign($searchVarKey, $searchVars[$searchVarKey]);
|
||||
}
|
||||
|
||||
if ($searchType !== 'basic' && empty($id) && $request->has('searchadvr') && ! $request->has('subject')) {
|
||||
if ($searchType !== 'basic' && ! $request->has('id') && $request->has('searchadvr') && ! $request->has('subject')) {
|
||||
$orderByString = '';
|
||||
foreach ($searchVars as $searchVarKey => $searchVar) {
|
||||
$orderByString .= "&$searchVarKey=".htmlentities($searchVar, ENT_QUOTES | ENT_HTML5);
|
||||
|
||||
@@ -563,7 +563,7 @@ jQuery(function($){
|
||||
// search.tpl
|
||||
$('#search_search_button').click(function(){
|
||||
if ($('#search').val())
|
||||
document.location=WWW_TOP + "/search/" + $('#search').val() + ($("#search_cat").val()!=-1 ? "?t="+$("#search_cat").val() : "");
|
||||
document.location=WWW_TOP + "/search?id=" + $('#search').val() + ($("#search_cat").val()!=-1 ? "?t="+$("#search_cat").val() : "");
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
@@ -751,7 +751,7 @@ jQuery(function($){
|
||||
// search.tpl
|
||||
$('#search_search_button').click(function(){
|
||||
if ($('#search').val())
|
||||
document.location=WWW_TOP + "/search/" + $('#search').val() + ($("#search_cat").val()!=-1 ? "?t="+$("#search_cat").val() : "");
|
||||
document.location=WWW_TOP + "/search?id=" + $('#search').val() + ($("#search_cat").val()!=-1 ? "?t="+$("#search_cat").val() : "");
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
@@ -301,7 +301,7 @@ jQuery(function ($) {
|
||||
// search.tpl
|
||||
$('#search_search_button').click(function () {
|
||||
if ($('#search').val())
|
||||
document.location = WWW_TOP + "/search/" + $('#search').val() + ($("#search_cat").val() != -1 ? "?t=" + $("#search_cat").val() : "");
|
||||
document.location = WWW_TOP + "/search?id=" + $('#search').val() + ($("#search_cat").val() != -1 ? "?t=" + $("#search_cat").val() : "");
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
{/foreach}
|
||||
<ul class="nav navbar-left">
|
||||
<li class="">
|
||||
<form class="navbar-form" id="headsearch_form" action="{$smarty.const.WWW_TOP}/search/" method="get">
|
||||
<form class="navbar-form" id="headsearch_form" action="{$smarty.const.WWW_TOP}/search?id=" method="get">
|
||||
<select class="form-control" id="headcat" name="t">
|
||||
<option class="grouping" value="-1">All</option>
|
||||
{foreach $parentcatlist as $parentcat}
|
||||
|
||||
@@ -293,7 +293,7 @@
|
||||
</td>
|
||||
<td class="category">
|
||||
<a title="Browse {$result.category_name}"
|
||||
href="{$smarty.const.WWW_TOP}/browse?t={$result.categories_id}">{$result.category_name}</a>
|
||||
href="{$smarty.const.WWW_TOP}/browse/{$result.category_name}">{$result.category_name}</a>
|
||||
</td>
|
||||
<td class="posted" title="{$result.postdate}">
|
||||
{$result.postdate|timeago}
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
{/if}
|
||||
<ul class="nav navbar-left">
|
||||
<li class="">
|
||||
<form class="navbar-form" id="headsearch_form" action="{$smarty.const.WWW_TOP}/search/"
|
||||
<form class="navbar-form" id="headsearch_form" action="{$smarty.const.WWW_TOP}/search?id="
|
||||
method="get">
|
||||
<select class="form-control" id="headcat" name="t">
|
||||
<option class="grouping" value="-1">All</option>
|
||||
|
||||
@@ -24,407 +24,416 @@
|
||||
</div>
|
||||
<br>
|
||||
<div class="well well-sm">
|
||||
<div style="text-align: center">{$search_description}<div>
|
||||
<div style="text-align: center">{$search_description}
|
||||
<div>
|
||||
<br>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
{{csrf_field()}}
|
||||
<div id="sbasic" class="row" style="text-align:center;{if $sadvanced} display:none;{/if}">
|
||||
<div class="col-md-6">
|
||||
<input id="search" class="form-control" maxlength="500" name="search" value="{$search|escape:'htmlall'}"
|
||||
type="search" placeholder="What are you looking for?"/>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="hidden" name="t" value="{if $category[0]!=""}{$category[0]}{else}-1{/if}"
|
||||
id="search_cat"/>
|
||||
<input type="hidden" name="search_type" value="basic" id="search_type"/>
|
||||
<input id="search_search_button" class="btn btn-primary" type="submit" value="Search"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
<div id="sadvanced" {if not $sadvanced}style="display:none"{/if}>
|
||||
<div style="text-align: center;">
|
||||
<table class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th><label for="searchadvr">Release Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvr" name="searchadvr"
|
||||
value="{$searchadvr|escape:'html'}"
|
||||
type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsubject">Usenet Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvsubject" name="searchadvsubject"
|
||||
value="{$searchadvsubject|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvposter">Poster:</label></th>
|
||||
<td><input class="searchadv" id="searchadvposter" name="searchadvposter"
|
||||
value="{$searchadvposter|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvfilename">Filename:</label></th>
|
||||
<td><input class="searchadv" id="searchadvfilename" name="searchadvfilename"
|
||||
value="{$searchadvfilename|escape:'html'}" type="text"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysnew">Min age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysnew" name="searchadvdaysnew"
|
||||
value="{$searchadvdaysnew|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysold">Max age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysold" name="searchadvdaysold"
|
||||
value="{$searchadvdaysold|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvgroups">Group:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvgroups" name="searchadvgroups" options=$grouplist selected=$selectedgroup}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvcat">Category:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvcat" name="searchadvcat" options=$catlist selected=$selectedcat}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsizefrom">Min/Max Size:</label></th>
|
||||
<td>
|
||||
{html_options id="searchadvsizefrom" name="searchadvsizefrom" options=$sizelist selected=$selectedsizefrom}
|
||||
{html_options id="searchadvsizeto" name="searchadvsizeto" options=$sizelist selected=$selectedsizeto}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvhasnfo">NFO/Comments:</label></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchadvhasnfo" value="0">
|
||||
<input type="checkbox" name="searchadvhasnfo" value="1">
|
||||
<input type="hidden" name="searchadvhascomments" value="0">
|
||||
<input type="checkbox" name="searchadvhascomments" value="1">
|
||||
<div style="float:right;"><input type="hidden" name="search_type" value="adv"
|
||||
id="search_type">
|
||||
<input id="search_adv_button" class="btn btn-primary" type="submit" value="Search">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{if $results|@count == 0 && ($search || $subject|| $searchadvr|| $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) != ""}
|
||||
<div style="text-align: center;">
|
||||
<div class="nosearchresults">
|
||||
Your search did not match any releases.
|
||||
<br><br>
|
||||
Suggestions:
|
||||
<br><br>
|
||||
<ul>
|
||||
<div style="text-align: center;">
|
||||
<li>Make sure all words are spelled correctly.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try different keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try more general keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try fewer keywords.</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{elseif ($search || $subject || $searchadvr || $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) == ""}
|
||||
{else}
|
||||
<div class="well well-sm">
|
||||
<form style="padding-top:10px;" id="nzb_multi_operations_form" method="get"
|
||||
action="{$smarty.const.WWW_TOP}/search">
|
||||
<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($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>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
{{csrf_field()}}
|
||||
<div id="sbasic" class="row" style="text-align:center;{if $sadvanced} display:none;{/if}">
|
||||
<div class="col-md-6">
|
||||
<input id="search" class="form-control" maxlength="500" name="search"
|
||||
value="{$search|escape:'htmlall'}"
|
||||
type="search" placeholder="What are you looking for?"/>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="hidden" name="t" value="{if $category[0]!=""}{$category[0]}{else}-1{/if}"
|
||||
id="search_cat"/>
|
||||
<input type="hidden" name="search_type" value="basic" id="search_type"/>
|
||||
<input id="search_search_button" class="btn btn-primary" type="submit" value="Search"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</form>
|
||||
</div>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
<div id="sadvanced" {if not $sadvanced}style="display:none"{/if}>
|
||||
<div style="text-align: center;">
|
||||
<table class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th><label for="searchadvr">Release Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvr" name="searchadvr"
|
||||
value="{$searchadvr|escape:'html'}"
|
||||
type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsubject">Usenet Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvsubject" name="searchadvsubject"
|
||||
value="{$searchadvsubject|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvposter">Poster:</label></th>
|
||||
<td><input class="searchadv" id="searchadvposter" name="searchadvposter"
|
||||
value="{$searchadvposter|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvfilename">Filename:</label></th>
|
||||
<td><input class="searchadv" id="searchadvfilename" name="searchadvfilename"
|
||||
value="{$searchadvfilename|escape:'html'}" type="text"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysnew">Min age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysnew" name="searchadvdaysnew"
|
||||
value="{$searchadvdaysnew|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysold">Max age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysold" name="searchadvdaysold"
|
||||
value="{$searchadvdaysold|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvgroups">Group:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvgroups" name="searchadvgroups" options=$grouplist selected=$selectedgroup}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvcat">Category:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvcat" name="searchadvcat" options=$catlist selected=$selectedcat}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsizefrom">Min/Max Size:</label></th>
|
||||
<td>
|
||||
{html_options id="searchadvsizefrom" name="searchadvsizefrom" options=$sizelist selected=$selectedsizefrom}
|
||||
{html_options id="searchadvsizeto" name="searchadvsizeto" options=$sizelist selected=$selectedsizeto}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvhasnfo">NFO/Comments:</label></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchadvhasnfo" value="0">
|
||||
<input type="checkbox" name="searchadvhasnfo" value="1">
|
||||
<input type="hidden" name="searchadvhascomments" value="0">
|
||||
<input type="checkbox" name="searchadvhascomments" value="1">
|
||||
<div style="float:right;"><input type="hidden" name="search_type" value="adv"
|
||||
id="search_type">
|
||||
<input id="search_adv_button" class="btn btn-primary" type="submit"
|
||||
value="Search">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<table class="data table table-striped responsive-utilities jambo-table" id="browsetable">
|
||||
<thead>
|
||||
<tr>
|
||||
<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>Category</th>
|
||||
<th>Posted</th>
|
||||
<th>Size</th>
|
||||
<th>Files</th>
|
||||
<th>Downloads</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $results as $result}
|
||||
<tr class="{cycle values=",alt"}{if $lastvisit|strtotime<$result.adddate|strtotime} new{/if}"
|
||||
id="guid{$result.guid}">
|
||||
<td>
|
||||
<input id="chk{$result.guid|substr:0:7}" type="checkbox" class="flat"
|
||||
value="{$result.guid}">
|
||||
</td>
|
||||
<td class="item">
|
||||
<label for="chk{$result.guid|substr:0:7}">
|
||||
<a class="title" title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}">{$result.searchname|escape:"htmlall"|truncate:150:"...":true}</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}
|
||||
</label value="Searchname">
|
||||
<div class="resextra">
|
||||
<div class="btns" style="float:right">
|
||||
{release_flag($result.searchname, browse)}
|
||||
{if $result.passwordstatus == 1}
|
||||
<img title="RAR/ZIP Possibly Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock2.png"
|
||||
alt="RAR/ZIP Possibly Passworded.">
|
||||
{elseif $result.passwordstatus == 2}
|
||||
<img title="RAR/ZIP Possibly Damaged."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/broken.png"
|
||||
alt="RAR/ZIP Possibly Damaged.">
|
||||
{elseif $result.passwordstatus == 10}
|
||||
<img title="RAR/ZIP is Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock.gif"
|
||||
alt="RAR/ZIP is Passworded.">
|
||||
</form>
|
||||
{if $results|@count == 0 && ($search || $subject|| $searchadvr|| $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) != ""}
|
||||
<div style="text-align: center;">
|
||||
<div class="nosearchresults">
|
||||
Your search did not match any releases.
|
||||
<br><br>
|
||||
Suggestions:
|
||||
<br><br>
|
||||
<ul>
|
||||
<div style="text-align: center;">
|
||||
<li>Make sure all words are spelled correctly.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try different keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try more general keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try fewer keywords.</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{elseif ($search || $subject || $searchadvr || $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) == ""}
|
||||
{else}
|
||||
<div class="well well-sm">
|
||||
<form style="padding-top:10px;" id="nzb_multi_operations_form" method="get"
|
||||
action="{$smarty.const.WWW_TOP}/search">
|
||||
<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($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 $result.videostatus > 0}
|
||||
<a
|
||||
class="model_prev label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}"
|
||||
title="This release has a video preview."
|
||||
rel="preview"
|
||||
><i class="icon-youtube-play"></i>
|
||||
</a>
|
||||
{/if}
|
||||
{if $result.nfoid > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/nfo/{$result.guid}" title="View Nfo"
|
||||
class="modal_nfo label label-primary" rel="nfo">Nfo</a>
|
||||
{/if}
|
||||
{if $result.imdbid > 0}
|
||||
<a href="#" name="name{$result.imdbid}" title="View movie info"
|
||||
class="modal_imdb label label-primary" rel="movie">Cover</a>
|
||||
{/if}
|
||||
{if $result.haspreview == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/preview/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}"
|
||||
data-fancybox
|
||||
title="Screenshot of {$result.searchname|escape:"htmlall"}"
|
||||
class="label label-primary" rel="preview">Preview</a>{/if}
|
||||
{if $result.jpgstatus == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/sample/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}"
|
||||
data-fancybox
|
||||
title="Sample of {$result.searchname|escape:"htmlall"}"
|
||||
class="label label-primary" rel="preview">Sample</a>{/if}
|
||||
{if $result.musicinfo_id > 0}
|
||||
<a href="#" name="name{$result.musicinfo_id}" title="View music info"
|
||||
class="modal_music label label-primary" rel="music">Cover</a>
|
||||
{/if}
|
||||
{if $result.consoleinfo_id > 0}
|
||||
<a href="#" name="name{$result.consoleinfo_id}" title="View console info"
|
||||
class="modal_console label label-primary" rel="console">Cover</a>
|
||||
{/if}
|
||||
{if $result.videos_id > 0}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/series/{$result.videos_id}"
|
||||
title="View all episodes">View
|
||||
Series</a>
|
||||
{/if}
|
||||
{if $result.anidbid > 0}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/anime/{$result.anidbid}"
|
||||
title="View all episodes">View
|
||||
Anime</a>
|
||||
{/if}
|
||||
{if isset($result.firstaired) && $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.group_name != ""}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/browse?g={$result.group_name|escape:"htmlall"}"
|
||||
title="Browse {$result.group_name}">{$result.group_name|escape:"htmlall"|replace:"alt.binaries.":"a.b."}</a>
|
||||
{/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 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>
|
||||
</td>
|
||||
<td class="category">
|
||||
<a title="Browse {$result.category_name}"
|
||||
href="{$smarty.const.WWW_TOP}/browse?t={$result.categories_id}">{$result.category_name}</a>
|
||||
</td>
|
||||
<td class="posted" title="{$result.postdate}">
|
||||
{$result.postdate|timeago}
|
||||
</td>
|
||||
<td class="size">
|
||||
{$result.size|fsize_format:"MB"}
|
||||
{if $result.completion > 0}
|
||||
<br>
|
||||
{if $result.completion < 100}
|
||||
<span class="warning">{$result.completion}%</span>
|
||||
{else}
|
||||
{$result.completion}%
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="files">
|
||||
<a title="View file list"
|
||||
href="{$smarty.const.WWW_TOP}/filelist/{$result.guid}">{$result.totalpart}</a>
|
||||
{if $result.rarinnerfilecount > 0}
|
||||
<div class="rarfilelist">
|
||||
<img src="{$smarty.const.WWW_ASSETS}/images/icons/magnifier.png"
|
||||
alt="{$result.guid}">
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="stats">
|
||||
<a title="View comments"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments">{$result.comments}
|
||||
cmt{if $result.comments != 1}s{/if}</a>
|
||||
<br>{$result.grabs} grab{if $result.grabs != 1}s{/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$smarty.const.WWW_TOP}/getnzb?id={$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>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
<small>With Selected:</small>
|
||||
<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 class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
<hr>
|
||||
<table class="data table table-striped responsive-utilities jambo-table" id="browsetable">
|
||||
<thead>
|
||||
<tr>
|
||||
<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>Category</th>
|
||||
<th>Posted</th>
|
||||
<th>Size</th>
|
||||
<th>Files</th>
|
||||
<th>Downloads</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $results as $result}
|
||||
<tr class="{cycle values=",alt"}{if $lastvisit|strtotime<$result.adddate|strtotime} new{/if}"
|
||||
id="guid{$result.guid}">
|
||||
<td>
|
||||
<input id="chk{$result.guid|substr:0:7}" type="checkbox" class="flat"
|
||||
value="{$result.guid}">
|
||||
</td>
|
||||
<td class="item">
|
||||
<label for="chk{$result.guid|substr:0:7}">
|
||||
<a class="title" title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}">{$result.searchname|escape:"htmlall"|truncate:150:"...":true}</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}
|
||||
</label value="Searchname">
|
||||
<div class="resextra">
|
||||
<div class="btns" style="float:right">
|
||||
{release_flag($result.searchname, browse)}
|
||||
{if $result.passwordstatus == 1}
|
||||
<img title="RAR/ZIP Possibly Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock2.png"
|
||||
alt="RAR/ZIP Possibly Passworded.">
|
||||
{elseif $result.passwordstatus == 2}
|
||||
<img title="RAR/ZIP Possibly Damaged."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/broken.png"
|
||||
alt="RAR/ZIP Possibly Damaged.">
|
||||
{elseif $result.passwordstatus == 10}
|
||||
<img title="RAR/ZIP is Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock.gif"
|
||||
alt="RAR/ZIP is Passworded.">
|
||||
{/if}
|
||||
{if $result.videostatus > 0}
|
||||
<a
|
||||
class="model_prev label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}"
|
||||
title="This release has a video preview."
|
||||
rel="preview"
|
||||
><i class="icon-youtube-play"></i>
|
||||
</a>
|
||||
{/if}
|
||||
{if $result.nfoid > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/nfo/{$result.guid}"
|
||||
title="View Nfo"
|
||||
class="modal_nfo label label-primary" rel="nfo">Nfo</a>
|
||||
{/if}
|
||||
{if $result.imdbid > 0}
|
||||
<a href="#" name="name{$result.imdbid}" title="View movie info"
|
||||
class="modal_imdb label label-primary" rel="movie">Cover</a>
|
||||
{/if}
|
||||
{if $result.haspreview == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/preview/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}"
|
||||
data-fancybox
|
||||
title="Screenshot of {$result.searchname|escape:"htmlall"}"
|
||||
class="label label-primary" rel="preview">Preview</a>{/if}
|
||||
{if $result.jpgstatus == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/sample/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}"
|
||||
data-fancybox
|
||||
title="Sample of {$result.searchname|escape:"htmlall"}"
|
||||
class="label label-primary" rel="preview">Sample</a>{/if}
|
||||
{if $result.musicinfo_id > 0}
|
||||
<a href="#" name="name{$result.musicinfo_id}"
|
||||
title="View music info"
|
||||
class="modal_music label label-primary" rel="music">Cover</a>
|
||||
{/if}
|
||||
{if $result.consoleinfo_id > 0}
|
||||
<a href="#" name="name{$result.consoleinfo_id}"
|
||||
title="View console info"
|
||||
class="modal_console label label-primary" rel="console">Cover</a>
|
||||
{/if}
|
||||
{if $result.videos_id > 0}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/series/{$result.videos_id}"
|
||||
title="View all episodes">View
|
||||
Series</a>
|
||||
{/if}
|
||||
{if $result.anidbid > 0}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/anime/{$result.anidbid}"
|
||||
title="View all episodes">View
|
||||
Anime</a>
|
||||
{/if}
|
||||
{if isset($result.firstaired) && $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.group_name != ""}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/browse?g={$result.group_name|escape:"htmlall"}"
|
||||
title="Browse {$result.group_name}">{$result.group_name|escape:"htmlall"|replace:"alt.binaries.":"a.b."}</a>
|
||||
{/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}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="category">
|
||||
<a title="Browse {$result.category_name}"
|
||||
href="{$smarty.const.WWW_TOP}/browse/{$result.category_name}">{$result.category_name}</a>
|
||||
</td>
|
||||
<td class="posted" title="{$result.postdate}">
|
||||
{$result.postdate|timeago}
|
||||
</td>
|
||||
<td class="size">
|
||||
{$result.size|fsize_format:"MB"}
|
||||
{if $result.completion > 0}
|
||||
<br>
|
||||
{if $result.completion < 100}
|
||||
<span class="warning">{$result.completion}%</span>
|
||||
{else}
|
||||
{$result.completion}%
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="files">
|
||||
<a title="View file list"
|
||||
href="{$smarty.const.WWW_TOP}/filelist/{$result.guid}">{$result.totalpart}</a>
|
||||
{if $result.rarinnerfilecount > 0}
|
||||
<div class="rarfilelist">
|
||||
<img src="{$smarty.const.WWW_ASSETS}/images/icons/magnifier.png"
|
||||
alt="{$result.guid}">
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="stats">
|
||||
<a title="View comments"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments">{$result.comments}
|
||||
cmt{if $result.comments != 1}s{/if}</a>
|
||||
<br>{$result.grabs} grab{if $result.grabs != 1}s{/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$smarty.const.WWW_TOP}/getnzb?id={$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>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
<small>With Selected:</small>
|
||||
<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>
|
||||
<br><br><br>
|
||||
</form>
|
||||
</div>
|
||||
<br><br><br>
|
||||
</form>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,392 +1,439 @@
|
||||
{if {$site->adbrowse} != ''}
|
||||
{$site->adbrowse}
|
||||
{/if}
|
||||
<div class="header">
|
||||
<h2>{$site->title} > <strong>Search</strong></h2>
|
||||
<div class="breadcrumb-wrapper">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
|
||||
/ Search
|
||||
</ol>
|
||||
<div class="well well-sm">
|
||||
{if {$site->adbrowse} != ''}
|
||||
{$site->adbrowse}
|
||||
{/if}
|
||||
<div class="header">
|
||||
<h2>{$site->title} > <strong>Search</strong></h2>
|
||||
<div class="breadcrumb-wrapper">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
|
||||
/ Search
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div style="text-align: center;">
|
||||
<a href="#" onclick="if (jQuery(this).text() == 'Advanced Search')
|
||||
<div>
|
||||
<div style="text-align: center;">
|
||||
<a href="#" onclick="if (jQuery(this).text() == 'Advanced Search')
|
||||
jQuery(this).text('Basic Search');
|
||||
else
|
||||
jQuery(this).text('Advanced Search');
|
||||
jQuery('#sbasic,#sadvanced').toggle();
|
||||
return false;">{if $sadvanced}Basic{else}Click For Advanced{/if} Search
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="well well-sm">
|
||||
<div style="text-align: center">{$search_description}<div>
|
||||
<br>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
{{csrf_field()}}
|
||||
<div id="sbasic" class="row" style="text-align:center;{if $sadvanced} display:none;{/if}">
|
||||
<div class="col-md-6">
|
||||
<input id="search" class="form-control" maxlength="500" name="search" value="{$search|escape:'htmlall'}"
|
||||
type="search" placeholder="What are you looking for?"/>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="hidden" name="t" value="{if $category[0]!=""}{$category[0]}{else}-1{/if}" id="search_cat"/>
|
||||
<input type="hidden" name="search_type" value="basic" id="search_type"/>
|
||||
<input id="search_search_button" class="btn btn-primary" type="submit" value="Search"/>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
<div id="sadvanced" {if not $sadvanced}style="display:none"{/if}>
|
||||
<div style="text-align: center;">
|
||||
<table class="data table table-striped table-condensed table-responsive">
|
||||
<tr>
|
||||
<th><label for="searchadvr">Release Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvr" name="searchadvr" value="{$searchadvr|escape:'html'}"
|
||||
type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsubject">Usenet Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvsubject" name="searchadvsubject"
|
||||
value="{$searchadvsubject|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvposter">Poster:</label></th>
|
||||
<td><input class="searchadv" id="searchadvposter" name="searchadvposter"
|
||||
value="{$searchadvposter|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvfilename">Filename:</label></th>
|
||||
<td><input class="searchadv" id="searchadvfilename" name="searchadvfilename" value="{$searchadvfilename|escape:'html'}" type="text"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysnew">Min age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysnew" name="searchadvdaysnew"
|
||||
value="{$searchadvdaysnew|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysold">Max age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysold" name="searchadvdaysold"
|
||||
value="{$searchadvdaysold|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvgroups">Group:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvgroups" name="searchadvgroups" options=$grouplist selected=$selectedgroup}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvcat">Category:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvcat" name="searchadvcat" options=$catlist selected=$selectedcat}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsizefrom">Min/Max Size:</label></th>
|
||||
<td>
|
||||
{html_options id="searchadvsizefrom" name="searchadvsizefrom" options=$sizelist selected=$selectedsizefrom}
|
||||
{html_options id="searchadvsizeto" name="searchadvsizeto" options=$sizelist selected=$selectedsizeto}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvhasnfo">NFO/Comments:</label></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchadvhasnfo" value="0">
|
||||
<input type="checkbox" name="searchadvhasnfo" value="1">
|
||||
<input type="hidden" name="searchadvhascomments" value="0">
|
||||
<input type="checkbox" name="searchadvhascomments" value="1">
|
||||
<div style="float:right;"><input type="hidden" name="search_type" value="adv" id="search_type">
|
||||
<input id="search_adv_button" class="btn btn-primary" type="submit" value="Search">
|
||||
</div>
|
||||
<br>
|
||||
<div class="well well-sm">
|
||||
<div style="text-align: center">{$search_description}
|
||||
<div>
|
||||
<br>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
{{csrf_field()}}
|
||||
<div id="sbasic" class="row" style="text-align:center;{if $sadvanced} display:none;{/if}">
|
||||
<div class="col-md-6">
|
||||
<input id="search" class="form-control" maxlength="500" name="search"
|
||||
value="{$search|escape:'htmlall'}"
|
||||
type="search" placeholder="What are you looking for?"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{if $results|@count == 0 && ($search || $subject|| $searchadvr|| $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) != ""}
|
||||
<div style="text-align: center;">
|
||||
<div class="nosearchresults">
|
||||
Your search did not match any releases.
|
||||
<br><br>
|
||||
Suggestions:
|
||||
<br><br>
|
||||
<ul>
|
||||
<div style="text-align: center;">
|
||||
<li>Make sure all words are spelled correctly.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try different keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try more general keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try fewer keywords.</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{elseif ($search || $subject || $searchadvr || $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) == ""}
|
||||
{else}
|
||||
<form style="padding-top:10px;" id="nzb_multi_operations_form" method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
<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($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 !=""}
|
||||
<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 class="col-md-6">
|
||||
<input type="hidden" name="t" value="{if $category[0]!=""}{$category[0]}{else}-1{/if}"
|
||||
id="search_cat"/>
|
||||
<input type="hidden" name="search_type" value="basic" id="search_type"/>
|
||||
<input id="search_search_button" class="btn btn-primary" type="submit" value="Search"/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<form method="get" action="{$smarty.const.WWW_TOP}/search">
|
||||
<div id="sadvanced" {if not $sadvanced}style="display:none"{/if}>
|
||||
<div style="text-align: center;">
|
||||
<table class="data table table-striped responsive-utilities jambo-table">
|
||||
<tr>
|
||||
<th><label for="searchadvr">Release Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvr" name="searchadvr"
|
||||
value="{$searchadvr|escape:'html'}"
|
||||
type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsubject">Usenet Name:</label></th>
|
||||
<td><input class="searchadv" id="searchadvsubject" name="searchadvsubject"
|
||||
value="{$searchadvsubject|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvposter">Poster:</label></th>
|
||||
<td><input class="searchadv" id="searchadvposter" name="searchadvposter"
|
||||
value="{$searchadvposter|escape:'html'}" type="text"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvfilename">Filename:</label></th>
|
||||
<td><input class="searchadv" id="searchadvfilename" name="searchadvfilename"
|
||||
value="{$searchadvfilename|escape:'html'}" type="text"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysnew">Min age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysnew" name="searchadvdaysnew"
|
||||
value="{$searchadvdaysnew|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvdaysold">Max age(days):</label></th>
|
||||
<td>
|
||||
<input class="searchdaysinput" id="searchadvdaysold" name="searchadvdaysold"
|
||||
value="{$searchadvdaysold|escape:'html'}" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvgroups">Group:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvgroups" name="searchadvgroups" options=$grouplist selected=$selectedgroup}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvcat">Category:</label></th>
|
||||
<td>{html_options class="searchadvbtns" id="searchadvcat" name="searchadvcat" options=$catlist selected=$selectedcat}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvsizefrom">Min/Max Size:</label></th>
|
||||
<td>
|
||||
{html_options id="searchadvsizefrom" name="searchadvsizefrom" options=$sizelist selected=$selectedsizefrom}
|
||||
{html_options id="searchadvsizeto" name="searchadvsizeto" options=$sizelist selected=$selectedsizeto}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="searchadvhasnfo">NFO/Comments:</label></th>
|
||||
<td>
|
||||
<input type="hidden" name="searchadvhasnfo" value="0">
|
||||
<input type="checkbox" name="searchadvhasnfo" value="1">
|
||||
<input type="hidden" name="searchadvhascomments" value="0">
|
||||
<input type="checkbox" name="searchadvhascomments" value="1">
|
||||
<div style="float:right;"><input type="hidden" name="search_type" value="adv"
|
||||
id="search_type">
|
||||
<input id="search_adv_button" class="btn btn-primary" type="submit"
|
||||
value="Search">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<table class="data table table-condensed table-striped table-responsive table-hover" id="browsetable">
|
||||
<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>Files</th>
|
||||
<th>Downloads</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $results as $result}
|
||||
<tr class="{cycle values=",alt"}{if $lastvisit|strtotime<$result.adddate|strtotime} new{/if}"
|
||||
id="guid{$result.guid}">
|
||||
<td class="check">
|
||||
<input id="chk{$result.guid|substr:0:7}" type="checkbox" class="square"
|
||||
value="{$result.guid}">
|
||||
</td>
|
||||
<td class="item">
|
||||
<label for="chk{$result.guid|substr:0:7}">
|
||||
<a class="title" title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}/{$result.searchname|escape:"htmlall"}">{$result.searchname|escape:"htmlall"|truncate:150:"...":true}</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}</label value="Searchname">
|
||||
<div class="resextra">
|
||||
<div class="btns" style="float:right">
|
||||
{release_flag($result.searchname, browse)}
|
||||
{if $result.passwordstatus == 1}
|
||||
<img title="RAR/ZIP Possibly Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock2.png"
|
||||
alt="RAR/ZIP Possibly Passworded.">
|
||||
{elseif $result.passwordstatus == 2}
|
||||
<img title="RAR/ZIP Possibly Damaged."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/broken.png"
|
||||
alt="RAR/ZIP Possibly Damaged.">
|
||||
{elseif $result.passwordstatus == 10}
|
||||
<img title="RAR/ZIP is Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock.gif"
|
||||
alt="RAR/ZIP is Passworded.">
|
||||
</form>
|
||||
{if $results|@count == 0 && ($search || $subject|| $searchadvr|| $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) != ""}
|
||||
<div style="text-align: center;">
|
||||
<div class="nosearchresults">
|
||||
Your search did not match any releases.
|
||||
<br><br>
|
||||
Suggestions:
|
||||
<br><br>
|
||||
<ul>
|
||||
<div style="text-align: center;">
|
||||
<li>Make sure all words are spelled correctly.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try different keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try more general keywords.</li>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<li>Try fewer keywords.</li>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{elseif ($search || $subject || $searchadvr || $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) == ""}
|
||||
{else}
|
||||
<div class="well well-sm">
|
||||
<form style="padding-top:10px;" id="nzb_multi_operations_form" method="get"
|
||||
action="{$smarty.const.WWW_TOP}/search">
|
||||
<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}
|
||||
{if $result.videostatus > 0}
|
||||
<a
|
||||
class="model_prev label label-default"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}"
|
||||
title="This release has a video preview."
|
||||
rel="preview"
|
||||
><i class="icon-youtube-play"></i>
|
||||
<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>
|
||||
<hr>
|
||||
<table class="data table table-striped responsive-utilities jambo-table" id="browsetable">
|
||||
<thead>
|
||||
<tr>
|
||||
<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>
|
||||
{/if}
|
||||
{if $result.nfoid > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/nfo/{$result.guid}" title="View Nfo"
|
||||
class="modal_nfo label label-default" rel="nfo">Nfo</a>
|
||||
{/if}
|
||||
{if $result.imdbid > 0}
|
||||
<a href="#" name="name{$result.imdbid}" title="View movie info"
|
||||
class="modal_imdb label label-default" rel="movie">Cover</a>
|
||||
{/if}
|
||||
{if $result.haspreview == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/preview/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}" title="Screenshot of {$result.searchname|escape:"htmlall"}"
|
||||
class="modal_prev label label-default" rel="preview">Preview</a>{/if}
|
||||
{if $result.jpgstatus == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/sample/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}" title="Sample of {$result.searchname|escape:"htmlall"}"
|
||||
class="modal_prev label label-default" rel="preview">Sample</a>{/if}
|
||||
{if $result.musicinfo_id > 0}
|
||||
<a href="#" name="name{$result.musicinfo_id}" title="View music info"
|
||||
class="modal_music label label-default" rel="music">Cover</a>
|
||||
{/if}
|
||||
{if $result.consoleinfo_id > 0}
|
||||
<a href="#" name="name{$result.consoleinfo_id}" title="View console info"
|
||||
class="modal_console label label-default" rel="console">Cover</a>
|
||||
{/if}
|
||||
{if $result.videos_id > 0}
|
||||
<a class="label label-default"
|
||||
href="{$smarty.const.WWW_TOP}/series/{$result.videos_id}" title="View all episodes">View
|
||||
Series</a>
|
||||
{/if}
|
||||
{if $result.anidbid > 0}
|
||||
<a class="label label-default"
|
||||
href="{$smarty.const.WWW_TOP}/anime/{$result.anidbid}" title="View all episodes">View
|
||||
Anime</a>
|
||||
{/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.group_name != ""}
|
||||
<a class="label label-default"
|
||||
href="{$smarty.const.WWW_TOP}/browse?g={$result.group_name|escape:"htmlall"}"
|
||||
title="Browse {$result.group_name}">{$result.group_name|escape:"htmlall"|replace:"alt.binaries.":"a.b."}</a>
|
||||
{/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}
|
||||
<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>Files</th>
|
||||
<th>Downloads</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $results as $result}
|
||||
<tr class="{cycle values=",alt"}{if $lastvisit|strtotime<$result.adddate|strtotime} new{/if}"
|
||||
id="guid{$result.guid}">
|
||||
<td>
|
||||
<input id="chk{$result.guid|substr:0:7}" type="checkbox" class="flat"
|
||||
value="{$result.guid}">
|
||||
</td>
|
||||
<td class="item">
|
||||
<label for="chk{$result.guid|substr:0:7}">
|
||||
<a class="title" title="View details"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}">{$result.searchname|escape:"htmlall"|truncate:150:"...":true}</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}
|
||||
</label value="Searchname">
|
||||
<div class="resextra">
|
||||
<div class="btns" style="float:right">
|
||||
{release_flag($result.searchname, browse)}
|
||||
{if $result.passwordstatus == 1}
|
||||
<img title="RAR/ZIP Possibly Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock2.png"
|
||||
alt="RAR/ZIP Possibly Passworded.">
|
||||
{elseif $result.passwordstatus == 2}
|
||||
<img title="RAR/ZIP Possibly Damaged."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/broken.png"
|
||||
alt="RAR/ZIP Possibly Damaged.">
|
||||
{elseif $result.passwordstatus == 10}
|
||||
<img title="RAR/ZIP is Passworded."
|
||||
src="{$smarty.const.WWW_ASSETS}/images/icons/lock.gif"
|
||||
alt="RAR/ZIP is Passworded.">
|
||||
{/if}
|
||||
{if $result.videostatus > 0}
|
||||
<a
|
||||
class="model_prev label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}"
|
||||
title="This release has a video preview."
|
||||
rel="preview"
|
||||
><i class="icon-youtube-play"></i>
|
||||
</a>
|
||||
{/if}
|
||||
{if $result.nfoid > 0}
|
||||
<a href="{$smarty.const.WWW_TOP}/nfo/{$result.guid}"
|
||||
title="View Nfo"
|
||||
class="modal_nfo label label-primary" rel="nfo">Nfo</a>
|
||||
{/if}
|
||||
{if $result.imdbid > 0}
|
||||
<a href="#" name="name{$result.imdbid}" title="View movie info"
|
||||
class="modal_imdb label label-primary" rel="movie">Cover</a>
|
||||
{/if}
|
||||
{if $result.haspreview == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/preview/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}"
|
||||
data-fancybox
|
||||
title="Screenshot of {$result.searchname|escape:"htmlall"}"
|
||||
class="label label-primary" rel="preview">Preview</a>{/if}
|
||||
{if $result.jpgstatus == 1 && $userdata.canpreview == 1}
|
||||
<a href="{$smarty.const.WWW_TOP}/covers/sample/{$result.guid}_thumb.jpg"
|
||||
name="name{$result.guid}"
|
||||
data-fancybox
|
||||
title="Sample of {$result.searchname|escape:"htmlall"}"
|
||||
class="label label-primary" rel="preview">Sample</a>{/if}
|
||||
{if $result.musicinfo_id > 0}
|
||||
<a href="#" name="name{$result.musicinfo_id}"
|
||||
title="View music info"
|
||||
class="modal_music label label-primary" rel="music">Cover</a>
|
||||
{/if}
|
||||
{if $result.consoleinfo_id > 0}
|
||||
<a href="#" name="name{$result.consoleinfo_id}"
|
||||
title="View console info"
|
||||
class="modal_console label label-primary" rel="console">Cover</a>
|
||||
{/if}
|
||||
{if $result.videos_id > 0}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/series/{$result.videos_id}"
|
||||
title="View all episodes">View
|
||||
Series</a>
|
||||
{/if}
|
||||
{if $result.anidbid > 0}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/anime/{$result.anidbid}"
|
||||
title="View all episodes">View
|
||||
Anime</a>
|
||||
{/if}
|
||||
{if isset($result.firstaired) && $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.group_name != ""}
|
||||
<a class="label label-primary"
|
||||
href="{$smarty.const.WWW_TOP}/browse?g={$result.group_name|escape:"htmlall"}"
|
||||
title="Browse {$result.group_name}">{$result.group_name|escape:"htmlall"|replace:"alt.binaries.":"a.b."}</a>
|
||||
{/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}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="category">
|
||||
<a title="Browse {$result.category_name}"
|
||||
href="{$smarty.const.WWW_TOP}/browse/{$result.category_name}">{$result.category_name}</a>
|
||||
</td>
|
||||
<td class="posted" title="{$result.postdate}">
|
||||
{$result.postdate|timeago}
|
||||
</td>
|
||||
<td class="size">
|
||||
{$result.size|fsize_format:"MB"}
|
||||
{if $result.completion > 0}
|
||||
<br>
|
||||
{if $result.completion < 100}
|
||||
<span class="warning">{$result.completion}%</span>
|
||||
{else}
|
||||
{$result.completion}%
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="files">
|
||||
<a title="View file list"
|
||||
href="{$smarty.const.WWW_TOP}/filelist/{$result.guid}">{$result.totalpart}</a>
|
||||
{if $result.rarinnerfilecount > 0}
|
||||
<div class="rarfilelist">
|
||||
<img src="{$smarty.const.WWW_ASSETS}/images/icons/magnifier.png"
|
||||
alt="{$result.guid}">
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="stats">
|
||||
<a title="View comments"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments">{$result.comments}
|
||||
cmt{if $result.comments != 1}s{/if}</a>
|
||||
<br>{$result.grabs} grab{if $result.grabs != 1}s{/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$smarty.const.WWW_TOP}/getnzb?id={$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>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
<small>With Selected:</small>
|
||||
<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>
|
||||
</td>
|
||||
<td class="category">
|
||||
<a title="Browse {$result.category_name}"
|
||||
href="{$smarty.const.WWW_TOP}/browse?t={$result.categories_id}">{$result.category_name}</a>
|
||||
</td>
|
||||
<td class="posted" title="{$result.postdate}">
|
||||
{$result.postdate|timeago}
|
||||
</td>
|
||||
<td class="size">
|
||||
{$result.size|fsize_format:"MB"}
|
||||
{if $result.completion > 0}
|
||||
<br>
|
||||
{if $result.completion < 100}
|
||||
<span class="warning">{$result.completion}%</span>
|
||||
{else}
|
||||
{$result.completion}%
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="files">
|
||||
<a title="View file list"
|
||||
href="{$smarty.const.WWW_TOP}/filelist/{$result.guid}">{$result.totalpart}</a>
|
||||
{if $result.rarinnerfilecount > 0}
|
||||
<div class="rarfilelist">
|
||||
<img src="{$smarty.const.WWW_ASSETS}/images/icons/magnifier.png"
|
||||
alt="{$result.guid}">
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="stats">
|
||||
<a title="View comments"
|
||||
href="{$smarty.const.WWW_TOP}/details/{$result.guid}/#comments">{$result.comments}
|
||||
cmt{if $result.comments != 1}s{/if}</a>
|
||||
<br>{$result.grabs} grab{if $result.grabs != 1}s{/if}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$smarty.const.WWW_TOP}/getnzb?id={$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>
|
||||
</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>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="nzb_multi_operations">
|
||||
<small>With Selected:</small>
|
||||
<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>
|
||||
<br><br><br>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{$pager}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<br><br><br>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
+2
-2
@@ -133,9 +133,9 @@ Route::post('/profile_delete', function () {
|
||||
redirect('/login');
|
||||
})->middleware('guest');
|
||||
|
||||
Route::get('search/{id}', 'SearchController@search');
|
||||
Route::get('search', 'SearchController@search');
|
||||
|
||||
Route::post('search/{id}', 'SearchController@search');
|
||||
Route::post('search', 'SearchController@search');
|
||||
|
||||
Route::get('filelist/{guid}', 'FileListController@show');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user