You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

229 lines
9.7 KiB

{if $results|@count > 0}
{foreach $results as $result}
<div id="moviefull" style="min-height:340px;">
{if $result.cover == 1}<img class="shadow pic img-polaroid pull-right" style="margin-right:50px;" width="200px" alt="{$result.title|escape:"htmlall"} Logo" src="{$smarty.const.WWW_TOP}/covers/xxx/{$result.id}-cover.jpg" />{/if}
<h2 style="display:inline;">{$result.title|escape:"htmlall"}</h2>
<h4>{if isset($result.genre) && $result.genre != ''}{$result.genre|replace:"|":" / "}{/if}</h4>
{if $result.tagline != ''}
<p class="lead" style="margin-right:300px;">"{$result.tagline|escape:"htmlall"}"</p>
{/if}
<dl style="margin-right:300px;">
{if isset($result.plot) && $result.plot != ''}
<dt>Plot</dt>
<dd>{$result.plot|escape:"htmlall"}</dd>
{/if}
{if isset($result.rating) && $result.rating != ''}
<dt>Rating</dt>
<dd>{$result.rating}/10
{/if}
{if isset($result.director) && $result.director != ''}
<dt>Director</dt>
<dd>{$result.director|replace:"|":", "}</dd>
{/if}
{if isset($result.actor) && $result.actors != ''}
<dt>Actors</dt>
<dd>{$result.actors|replace:"|":", "}</dd>
{/if}
</dl>
</div>
<form id="nzb_multi_operations_form" action="get">
<div class="well well-sm">
<div class="nzb_multi_operations">
With Selected:
<div class="btn-group">
<input type="button" class="nzb_multi_operations_download btn btn-small btn-success" value="Download NZBs" />
<input type="button" class="nzb_multi_operations_cart btn btn-small btn-info" value="Send to my Download Basket" />
{if $sabintegrated}<input type="button" class="nzb_multi_operations_sab btn btn-small btn-primary" value="Send to queue" />{/if}
</div>
<div class="btn-group pull-right">
<div class="input-append">
<input class="span2" id="filter-text" type="text" placeholder="Filter">
</div>
</div>
<div class="btn-group pull-right" data-toggle="buttons-radio" id="filter-quality">
<button data-quality="" class="btn active">Any</button>
<button data-quality="720p" class="btn">720p</button>
<button data-quality="1080p" class="btn">1080p</button>
<button data-quality="2160p" class="btn">2160p</button>
</div>
{if isset($isadmin)}
<div class="pull-right">
Admin:
<div class="btn-group">
<input type="button" class="nzb_multi_operations_edit btn btn-small btn-warning" value="Edit" />
<input type="button" class="nzb_multi_operations_delete btn btn-small btn-danger" value="Delete" />
</div>
</div>
{/if}
</div>
</div>
<table style="width:100%;" class="data highlight icons table" id="browsetable">
<tr class="dont-filter">
<th>
<input id="chkSelectAll" type="checkbox" class="nzb_check_all" />
<label for="chkSelectAll" style="display:none;">Select All</label>
</th>
<th>name<br/>
<a title="Sort Descending" href="{$orderbyname_desc}">
<i class="fa fa-caret-down"></i>
</a>
<a title="Sort Ascending" href="{$orderbyname_asc}">
<i class="fa fa-caret-up"></i>
</a>
</th>
<th>category<br/>
<a title="Sort Descending" href="{$orderbycat_desc}">
<i class="fa fa-caret-down"></i>
</a>
<a title="Sort Ascending" href="{$orderbycat_asc}">
<i class="fa fa-caret-up"></i>
</a>
</th>
<th>posted<br/>
<a title="Sort Descending" href="{$orderbyposted_desc}">
<i class="fa fa-caret-down"></i>
</a>
<a title="Sort Ascending" href="{$orderbyposted_asc}">
<i class="fa fa-caret-up"></i>
</a>
</th>
<th>size<br/>
<a title="Sort Descending" href="{$orderbysize_desc}">
<i class="fa fa-caret-down"></i>
</a>
<a title="Sort Ascending" href="{$orderbysize_asc}">
<i class="fa fa-caret-up"></i>
</a>
</th>
<th>files<br/>
<a title="Sort Descending" href="{$orderbyfiles_desc}">
<i class="fa fa-caret-down"></i>
</a>
<a title="Sort Ascending" href="{$orderbyfiles_asc}">
<i class="fa fa-caret-up"></i>
</a>
</th>
<th>action</th>
</tr>
{assign var="msplits" value=","|explode:$result.grp_release_id}
{assign var="mguid" value=","|explode:$result.grp_release_guid}
{assign var="mnfo" value=","|explode:$result.grp_release_nfoid}
{assign var="mgrp" value=","|explode:$result.grp_release_grpname}
{assign var="mname" value="#"|explode:$result.grp_release_name}
{assign var="mpostdate" value=","|explode:$result.grp_release_postdate}
{assign var="msize" value=","|explode:$result.grp_release_size}
{assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts}
{assign var="mcomments" value=","|explode:$result.grp_release_comments}
{assign var="mgrabs" value=","|explode:$result.grp_release_comments}
{assign var="mpass" value=","|explode:$result.grp_release_password}
{assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount}
{assign var="mhaspreview" value=","|explode:$result.grp_haspreview}
{assign var="mcatname" value=","|explode:$result.grp_release_catname}
{foreach $msplits as $m}
<tr class="{cycle values=",alt"} filter"data-name="{$mname[$m@index]|escape:"htmlall"|replace:".":" "|lower}" id="guid{$mguid[$m@index]}">
<td class="check"><input id="chk{$mguid[$m@index]|substr:0:7}" type="checkbox" class="nzb_check" value="{$mguid[$m@index]}" /></td>
<td class="item">
<label for="chk{$mguid[$m@index]|substr:0:7}">
<a class="title" title="View details" href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}">{$mname[$m@index]|escape:"htmlall"|replace:".":" "}</a>
</label>
{if $mpass[$m@index] == 2}
<i class="fa fa-lock"></i>
{elseif $mpass[$m@index] == 1}
<i class="fa fa-lock"></i>
{/if}
<div class="resextra">
<div class="btns">{strip}
{if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0}<a href="{$smarty.const.WWW_TOP}/nfo/{$mguid[$m@index]}" title="View Nfo" class="modal_nfo rndbtn badge" rel="nfo">Nfo</a>{/if}
{if isset($mhaspreview[$m@index]) && $mhaspreview[$m@index] == 1 && $userdata.canpreview == 1}<a href="{$smarty.const.WWW_TOP}/covers/preview/{$mguid[$m@index]}_thumb.jpg" name="name{$mguid[$m@index]}" title="Screenshot" class="modal_prev rndbtn badge" rel="preview">Preview</a>{/if}
{/strip}</div>
</div>
</td>
<td class="less"><a title="Browse {$mcatname[$m@index]}" href="{$smarty.const.WWW_TOP}/browse?t={$mcat[$m@index]}">{$mcatname[$m@index]}</a></td>
<td class="less mid" title="{$mpostdate[$m@index]}">{$mpostdate[$m@index]|timeago}</td>
<td class="less right">{$msize[$m@index]|fsize_format:"MB"}</td>
<td class="less mid">
<a title="View file list" href="{$smarty.const.WWW_TOP}/filelist/{$mguid[$m@index]}">{$mtotalparts[$m@index]}</a>&nbsp;<i class="fa fa-file"></i>
</td>
<td class="icons" style='width:100px;'>
<ul class="inline">
<li>
<a class="icon icon_nzb fa fa-cloud-download" style="text-decoration: none; color: #7ab800;" title="Download Nzb" href="{$smarty.const.WWW_TOP}/getnzb/{$mguid[$m@index]}"></a>
</li>
<li>
<a href="#" class="icon icon_cart fa fa-shopping-basket" style="text-decoration: none; color: #5c5c5c;" title="Send to my Download Basket">
</a>
</li>
{if $sabintegrated}
<li>
<a class="icon icon_sab fa fa-share" style="text-decoration: none; color: #008ab8;" href="#" title="Send to queue">
</a>
</li>
{/if}
</ul>
</td>
</tr>
{/foreach}
</table>
<br/>
{$pager}
{if $results|@count > 10}
<div class="well well-sm">
<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-small btn-success" value="Download NZBs" />
<input type="button" class="nzb_multi_operations_cart btn btn-small btn-info" value="Send to my Download Basket" />
{if $sabintegrated}<input type="button" class="nzb_multi_operations_sab btn btn-small btn-primary" value="Send to queue" />{/if}
</div>
<div class="btn-group pull-right">
<div class="input-append">
<input class="span2" id="filter-text" type="text">
<span class="add-on"><i class="icon-search"></i></span>
</div>
</div>
{if isset($isadmin)}
<div class="pull-right">
Admin:
<div class="btn-group">
<input type="button" class="nzb_multi_operations_edit btn btn-small btn-warning" value="Edit" />
<input type="button" class="nzb_multi_operations_delete btn btn-small btn-danger" value="Delete" />
</div>
</div>
{/if}
</div>
</div>
</form>
{/if}
{/foreach}
{/if}
<script type="text/javascript">
$(document).ready(function(){
function filter(event){
var elements = $('table.data:visible tr.filter');
elements.hide();
/* quality filter */
x = event;
//if(event.currentTarget.at)
if(event.target.dataset.quality != undefined){
var quality = event.target.dataset.quality;
}else{
var quality = $('#filter-quality button.active').data('quality');
}
if(quality){
elements = elements.filter('[data-name*="' + quality + '"]');
}
var values = $('#filter-text').val().split(/\s+/);
var i = values.length;
while(i--){
var value = values[i];
//console.log('value', value);
if(value)elements = elements.filter('[data-name*="' + values[i] + '"]');
}
elements.show();
}
$('#filter-text').click(filter).blur(filter).keyup(filter);
$('#filter-quality button').mouseup(filter);
});
</script>