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.
 
 
 
 
 
 

253 lines
11 KiB

{include file='elements/ads.tpl' ad=$site->adbrowse}
<div class="panel">
<div class="panel-heading">
<h4 class="panel-title">
<a
class="accordion-toggle"
data-toggle="collapse"
data-parent="#accordion"
href="#searchtoggle"
><i class="fa fa-search"></i> Search Filter</a>
</h4>
</div>
<div id="searchtoggle" class="panel-collapse collapse">
<div class="panel-body">
{include file='search-filter.tpl'}
</div>
</div>
</div>
{if $results|@count > 0}
<form id="nzb_multi_operations_form" action="get">
{include file='elements/admin-buttons-browse.tpl'}
{include file='multi-operations.tpl'}
<table class="table table-condensed table-striped data" id="coverstable">
<thead>
<tr>
<th><input type="checkbox" class="nzb_check_all"></th>
<th>author<a title="Sort Descending" href="{$orderbyauthor_desc}"><i class="fa fa-chevron-down"></i></a><a
title="Sort Ascending" href="{$orderbyauthor_asc}"><i class="fa fa-chevron-up"></i></a></th>
<th>genre<a title="Sort Descending" href="{$orderbygenre_desc}"><i class="fa fa-chevron-down"></i></a><a
title="Sort Ascending" href="{$orderbygenre_asc}"><i class="fa fa-chevron-up"></i></a></th>
<th>posted<a title="Sort Descending" href="{$orderbyposted_desc}"><i class="fa fa-chevron-down"></i></a><a
title="Sort Ascending" href="{$orderbyposted_asc}"><i class="fa fa-chevron-up"></i></a></th>
</tr>
</thead>
<tbody>
{foreach $results as $result}
<tr>
<td style="text-align:center;width:150px;padding:10px;">
<div class="bookcover">
<a
class="title thumbnail"
title="View amazon page"
href="{$site->dereferrer_link}{$result.url}"
><img
class="shadow img-responsive"
src="{$smarty.const.WWW_TOP}/covers/book/{if $result.cover == 1}{$result.bookinfo_id}.jpg{else}no-cover.jpg{/if}"
width="120"
border="0"
alt="{$result.title|escape:"htmlall"}"
></a>
<div class="relextra" style="margin-top:5px;">
<a
class="label"
target="_blank"
href="{$site->dereferrer_link}{$result.url}"
name="amazon{$result.bookinfo_id}"
title="View amazon page"
><img src="{$smarty.const.WWW_TOP}/themes/shared/img/icons/amazon.png"></a>
<a
class="label"
target="_blank"
href="{$site->dereferrer_link}http://www.goodreads.com/search?query={if $result.author != ""}{$result.author|escape:"url"}{"+-+"}{/if}{$result.title|escape:"url"}"
name="goodreads{$result.id}"
title="Find book on Goodreads"
><img src="{$smarty.const.WWW_TOP}/themes/shared/img/icons/goodreads.png"></a>
<a
class="label"
target="_blank"
href="{$site->dereferrer_link}http://www.shelfari.com/search/books?Keywords={if $result.author != ""}{$result.author|escape:"url"}{"+-+"}{/if}{$result.title|escape:"url"}"
name="shelfari{$result.id}"
title="Find book on Shelfari"
><img src="{$smarty.const.WWW_TOP}/themes/shared/img/icons/shelfari.png"></a>
<hr>
<div>
<a
class="label label-info"
href="{$smarty.const.WWW_TOP}/books?author={$result.author|escape:"url"}&title="
title="View books from this genre"
>Similar</a>
</div>
</div>
</div>
</td>
<td colspan="8" class="left" id="guid{$result.guid}">
<h4>{if $result.author != ""}{$result.author}{" - "}{/if}{$result.title}</h4>
{if $result.genre != "null"}
<b>Genre:</b> {$result.genre|escape:'htmlall'}<br>
{/if}
{if $result.publisher != ""}
<b>Publisher:</b> {$result.publisher}<br>
{/if}
{if $result.publishdate != ""}
<b>Released:</b> {$result.publishdate|date_format}<br>
{/if}
{if $result.pages != ""}
<b>Pages:</b> {$result.pages}<br>
{/if}
{if $result.salesrank != ""}
<b>Amazon Rank:</b> {$result.salesrank}<br>
{/if}
{if $result.overview != "null"}
<b>Overview:</b> {$result.overview|escape:'htmlall'}<br>
{/if}
<br>
<div class="relextra">
<table class="table table-condensed table-hover data">
{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_grabs}
{assign var="mfailed" value=","|explode:$result.grp_release_failed}
{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}
<tbody>
{foreach $msplits as $m}
<tr id="guid{$mguid[$m@index]}" {if $m@index > 1}class="mlextra"{/if}>
<td style="width: 27px;">
<input type="checkbox" class="nzb_check" value="{$mguid[$m@index]}">
</td>
<td class="name">
<a href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}">
<b>{$mname[$m@index]|escape:"htmlall"|wordwrap:80:"\n":true}</b>
</a>
<br>
<div class="resextra">
<div class="pull-left">
<i class="fa fa-calendar"></i> Posted {$mpostdate[$m@index]|timeago} |
<i class="fa fa-hdd"></i> {$msize[$m@index]|fsize_format:"MB"} |
<i class="fa fa-file"></i>
<a
title="View file list"
href="{$smarty.const.WWW_TOP}/filelist/{$mguid[$m@index]}">{$mtotalparts[$m@index]}
files
</a> |
<i class="fa fa-comments"></i>
<a
title="View comments for {$mname[$m@index]|escape:"htmlall"}"
href="{$smarty.const.WWW_TOP}/details/{$mguid[$m@index]}#comments">{$mcomments[$m@index]}
cmt{if $mcomments[$m@index] != 1}s{/if}
</a> |
<i class="fa fa-download"></i> {$mgrabs[$m@index]} grab{if $mgrabs[$m@index] > 1}s{/if}
</div>
<div class="pull-right">
{if $mnfo[$m@index] > 0}
<span class="label label-default">
<a
href="{$smarty.const.WWW_TOP}/nfo/{$mguid[$m@index]}"
title="View Nfo"
class="modal_nfo"
rel="nfo"
><i class="fa fa-info"></i></a></span>
{/if}
{if $mhaspreview[$m@index] == 1 && $userdata.canpreview == 1}
<span class="label label-default">
<a
href="{$smarty.const.WWW_TOP}/covers/preview/{$mguid[$m@index]}_thumb.jpg"
name="name{$mguid[$m@index]}"
title="Screenshot of {$mname[$m@index]|escape:"htmlall"}"
class="modal_prev" rel="preview"
><i class="fa fa-camera"></i></a></span
>
{/if}
{if $minnerfiles[$m@index] > 0}
<span class="label label-default">
<a
href="#" onclick="return false;"
class="mediainfo"
title="{$mguid[$m@index]}"
><i class="fa fa-list-alt"></i></a></span
>
{/if}
<span class="label label-default">
<a
href="{$smarty.const.WWW_TOP}/browse?g={$mgrp[$m@index]}"
title="Browse releases in {$mgrp[$m@index]}"
><i class="fa fa-share-alt"></i></a></span
>
{if $mpass[$m@index] == 1}
<span class="fa fa-stack" title="Potentially Passworded"><i class="fa fa-square-o fa-stack-base"></i><i class="fa fa-unlock-alt"></i></span>
{elseif $mpass[$m@index] == 2}
<span class="fa fa-stack" title="Broken Post"><i class="fa fa-square-o fa-stack-base"></i><i class="fa fa-chain-broken"></i></span>
{elseif $mpass[$m@index] == 10}
<span class="fa fa-stack" title="Passworded Archive"><i class="fa fa-square-o fa-stack-base"></i><i class="fa fa-lock"></i></span>
{/if}
{if isset($mfailed[$m@index]) && $mfailed[$m@index] > 0}
<span class="btn btn-hover btn-default btn-xs"><i class="fa fa-thumbs-o-down"></i><span
class="badge"> {$mfailed[$m@index]}
Failed Download{if $mfailed[$m@index] > 1}s{/if}</span>
{/if}
</div>
</div>
</td>
<td class="icons" style="width:90px;">
<div class="icon icon_nzb float-right">
<a
title="Download Nzb"
href="{$smarty.const.WWW_TOP}/getnzb/{$mguid[$m@index]}"
></a>
</div>
{if $sabintegrated}
<div class="icon icon_sab float-right" title="Send to my Queue"></div>
{/if}
<div class="icon icon_cart float-right" title="Add to Cart"></div>
<br>
{*s{if $isadmin || $ismod}
<a class="label label-warning" href="{$smarty.const.WWW_TOP}/admin/release-edit.php?id={$result.id}&amp;from={$smarty.server.REQUEST_URI|escape:"url"}" title="Edit Release">Edit</a>
<a class="label confirm_action label-danger" href="{$smarty.const.WWW_TOP}/admin/release-delete.php?id={$result.id}&amp;from={$smarty.server.REQUEST_URI|escape:"url"}" title="Delete Release">Delete</a>
{/if}*}
</td>
</tr>
{if $m@index == 1 && $m@total > 2}
<tr>
<td colspan="5"><a class="mlmore" href="#">{$m@total-2} more...</a></td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
{if $results|@count > 10}
<div class="nzb_multi_operations">
{include file='multi-operations.tpl'}
</div>
{/if}
</form>
{else}
<div class="alert alert-link" style="vertical-align:middle;">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<div class="pull-left" style="margin-right: 15px;">
<h2 style="margin-top: 7px;"> ಠ_ಠ </h2>
</div>
<p>No book releases have amazon covers.
<br>This might mean the Administrator's Amazon API keys are wrong, or he has file permission issues, or he has disabled looking up Amazon.
<br>This could also mean there are no book releases.
<br>Please try looking in the
<a href="{$smarty.const.WWW_TOP}/browse?t={$category}" style="font-weight:strong;text-decoration:underline;"
>list view</a>, which does not require Amazon covers.
</p>
</div>
{/if}