Typos, fixes in prehash search and viewnzb.

This commit is contained in:
Darko
2014-04-02 15:06:38 +02:00
parent 4d8744534a
commit 1c67bffdee
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ if (isset($_GET["id"]))
$prehash = new PreHash();
$pre = $prehash->getForRelease($data["prehasID"]);
$pre = $prehash->getForRelease($data["prehashID"]);
$rf = new ReleaseFiles;
$releasefiles = $rf->get($data["ID"]);
@@ -2,9 +2,9 @@
{$site->adbrowse}
{/if}
<h1>{$page->title}</h1>
<form name="presearch" method="get" action="{$smarty.const.WWW_TOP}/prehash" id="custom-search-form" class="form-search form-horizontal col-4 col-lg-4 pull-right">
<form name="prehashsearch" method="get" action="{$smarty.const.WWW_TOP}/prehash" id="custom-search-form" class="form-search form-horizontal col-4 col-lg-4 pull-right">
<div id="search" class="input-group col-12 col-lg-12">
<input type="text" class="form-control" placeholder="Search prehash" id="presearch" name="presearch" value="{$lastSearch|escape:'html'}">
<input type="text" class="form-control" placeholder="Search prehash" id="prehashsearch" name="prehashsearch" value="{$lastSearch|escape:'html'}">
<span class="input-group-btn">
<button type="submit" value="Go" class="btn btn-default">
<i class="icon-search"></i>
@@ -157,7 +157,7 @@
{if $predb.nuketype != '' && $predb.nukereason != ''}<tr><th>{$predb.nuketype|lower|capitalize}:</th><td>{$predb.nukereason}</td></tr>{/if}
{/if}
{if $pre|@count > 0}
{if $prehash|@count > 0}
<tr>
<th>Prehash:</th>
<td style="padding:0;">
@@ -167,13 +167,17 @@
<th class="mid">Date</th>
<th class="mid">Source</th>
<th class="mid">Size</th>
<th class="mid">Files</th>
<th class="mid">Nukereason</th>
</tr>
{foreach from=$pre item=pd}
{foreach from=$prehash item=pd}
<tr>
<td>{$pd.title}</td>
<td class="mid">{$pd.predate|date_format}</td>
<td class="mid">{$pd.source}</td>
{if isset($pd.size)}{if $pd.size > 0}<td class="right">{$pd.size}</td>{/if}{/if}
{if isset($pd.files)}{if $pd.files != ''}<td class="right">{$pd.files}</td>{/if}{/if}
{if isset($pd.nuked) && $pd.nuked > 0 && $pd.nukereason !=''}<td class="right">{$pd.nukereason}</td>{/if}
</tr>
{/foreach}
</table>