|
@@ -139,6 +139,7 @@ if ($AdvancedSearch) {
|
139
|
139
|
$HideAdvanced = ' hidden';
|
140
|
140
|
}
|
141
|
141
|
|
|
142
|
+# Start the search form
|
142
|
143
|
View::show_header('Browse Torrents', 'browse');
|
143
|
144
|
|
144
|
145
|
?>
|
|
@@ -173,7 +174,7 @@ View::show_header('Browse Torrents', 'browse');
|
173
|
174
|
<tr id="catalogue_number"
|
174
|
175
|
class="ftr_advanced<?=$HideAdvanced?>">
|
175
|
176
|
<td class="label">
|
176
|
|
- <!--Catalogue number:-->
|
|
177
|
+ <!-- Catalogue Number -->
|
177
|
178
|
</td>
|
178
|
179
|
<td class="ft_cataloguenumber">
|
179
|
180
|
<input type="search" size="19" name="cataloguenumber" class="inputtext smallest fti_advanced"
|
|
@@ -185,7 +186,7 @@ View::show_header('Browse Torrents', 'browse');
|
185
|
186
|
<tr id="album_torrent_name"
|
186
|
187
|
class="ftr_advanced<?=$HideAdvanced?>">
|
187
|
188
|
<td class="label">
|
188
|
|
- <!--Torrent name:-->
|
|
189
|
+ <!-- Torrent Name -->
|
189
|
190
|
</td>
|
190
|
191
|
<td class="ft_groupname">
|
191
|
192
|
<input type="search" spellcheck="false" size="65" name="advgroupname"
|
|
@@ -197,7 +198,7 @@ View::show_header('Browse Torrents', 'browse');
|
197
|
198
|
<tr id="artist_name"
|
198
|
199
|
class="ftr_advanced<?=$HideAdvanced?>">
|
199
|
200
|
<td class="label">
|
200
|
|
- <!--Artist name:-->
|
|
201
|
+ <!-- Artist Name -->
|
201
|
202
|
</td>
|
202
|
203
|
<td class="ft_artistname">
|
203
|
204
|
<input type="search" spellcheck="false" size="65" id="artist" name="artistname"
|
|
@@ -209,7 +210,7 @@ View::show_header('Browse Torrents', 'browse');
|
209
|
210
|
|
210
|
211
|
<tr id="year" class="ftr_advanced<?=$HideAdvanced?>">
|
211
|
212
|
<td class="label">
|
212
|
|
- <!--Year:-->
|
|
213
|
+ <!-- Year -->
|
213
|
214
|
</td>
|
214
|
215
|
<td class="ft_year">
|
215
|
216
|
<input type="search" name="year" class="inputtext smallest fti_advanced" placeholder="Year"
|
|
@@ -221,7 +222,7 @@ View::show_header('Browse Torrents', 'browse');
|
221
|
222
|
<tr id="torrent_description"
|
222
|
223
|
class="ftr_advanced<?=$HideAdvanced?>">
|
223
|
224
|
<td class="label">
|
224
|
|
- <!--<span title="Search torrent descriptions (not group information)" class="tooltip">Torrent description:</span>-->
|
|
225
|
+ <!-- Torrent Description -->
|
225
|
226
|
</td>
|
226
|
227
|
<td class="ft_description">
|
227
|
228
|
<input type="search" spellcheck="false" size="65" name="description" class="inputtext fti_advanced"
|
|
@@ -233,7 +234,7 @@ View::show_header('Browse Torrents', 'browse');
|
233
|
234
|
|
234
|
235
|
<tr id="file_list" class="ftr_advanced<?=$HideAdvanced?>">
|
235
|
236
|
<td class="label">
|
236
|
|
- <!--File list:-->
|
|
237
|
+ <!-- File List -->
|
237
|
238
|
</td>
|
238
|
239
|
<td class="ft_filelist">
|
239
|
240
|
<input type="search" spellcheck="false" size="65" name="filelist" class="inputtext fti_advanced"
|
|
@@ -242,13 +243,14 @@ View::show_header('Browse Torrents', 'browse');
|
242
|
243
|
</td>
|
243
|
244
|
</tr>
|
244
|
245
|
|
|
246
|
+ <!-- Platforms -->
|
245
|
247
|
<tr id="rip_specifics"
|
246
|
248
|
class="ftr_advanced<?=$HideAdvanced?>">
|
247
|
|
- <td class="label">Specifics</td>
|
|
249
|
+ <td class="label">Platforms</td>
|
248
|
250
|
<td class="nobr ft_ripspecifics">
|
249
|
251
|
|
250
|
252
|
<select name="media" class="ft_media fti_advanced">
|
251
|
|
- <option value="">Seq Platform</option>
|
|
253
|
+ <option value="">DNA/RNA/Proteins</option>
|
252
|
254
|
<?php foreach ($Media as $MediaName) { ?>
|
253
|
255
|
<option value="<?=display_str($MediaName); ?>"
|
254
|
256
|
<?Format::selected('media', $MediaName)?>><?=display_str($MediaName); ?>
|
|
@@ -256,8 +258,25 @@ View::show_header('Browse Torrents', 'browse');
|
256
|
258
|
<?php } ?>
|
257
|
259
|
</select>
|
258
|
260
|
|
|
261
|
+ <select name="media" class="ft_media fti_advanced">
|
|
262
|
+ <option value="">Imaging</option>
|
|
263
|
+ <?php foreach ($MediaManga as $MediaName) { ?>
|
|
264
|
+ <option value="<?=display_str($MediaName); ?>"
|
|
265
|
+ <?Format::selected('media', $MediaName)?>><?=display_str($MediaName); ?>
|
|
266
|
+ </option>
|
|
267
|
+ <?php } ?>
|
|
268
|
+ </select>
|
|
269
|
+ </td>
|
|
270
|
+ </tr>
|
|
271
|
+
|
|
272
|
+ <!-- Formats -->
|
|
273
|
+ <tr id="rip_specifics"
|
|
274
|
+ class="ftr_advanced<?=$HideAdvanced?>">
|
|
275
|
+ <td class="label">Formats</td>
|
|
276
|
+ <td class="nobr ft_ripspecifics">
|
|
277
|
+
|
259
|
278
|
<select id=" container" name="container" class="ft_container fti_advanced">
|
260
|
|
- <option value="">Seq Format</option>
|
|
279
|
+ <option value="">DNA/RNA</option>
|
261
|
280
|
<?php foreach ($Containers as $Key => $Container) { ?>
|
262
|
281
|
<option value="<?=display_str($Key);?>" <?Format::selected('container', $Key)?>><?=display_str($Key);?>
|
263
|
282
|
</option>
|
|
@@ -265,64 +284,41 @@ View::show_header('Browse Torrents', 'browse');
|
265
|
284
|
</select>
|
266
|
285
|
|
267
|
286
|
<select id=" container" name="container" class="ft_container fti_advanced">
|
268
|
|
- <option value="">Prot Format</option>
|
|
287
|
+ <option value="">Proteins</option>
|
269
|
288
|
<?php foreach ($ContainersProt as $Key => $Container) { ?>
|
270
|
289
|
<option value="<?=display_str($Key);?>" <?Format::selected('container', $Key)?>><?=display_str($Key);?>
|
271
|
290
|
</option>
|
272
|
291
|
<?php } ?>
|
273
|
292
|
</select>
|
274
|
293
|
|
275
|
|
- <select name="media" class="ft_media fti_advanced">
|
276
|
|
- <option value="">Img Platform</option>
|
277
|
|
- <?php foreach ($MediaManga as $MediaName) { ?>
|
278
|
|
- <option value="<?=display_str($MediaName); ?>"
|
279
|
|
- <?Format::selected('media', $MediaName)?>><?=display_str($MediaName); ?>
|
|
294
|
+ <select id=" container" name="container" class="ft_container fti_advanced">
|
|
295
|
+ <option value="">Imaging</option>
|
|
296
|
+ <?php foreach ($ContainersGames as $Key => $Container) { ?>
|
|
297
|
+ <option value="<?=display_str($Key);?>" <?Format::selected('container', $Key)?>><?=display_str($Key);?>
|
280
|
298
|
</option>
|
281
|
299
|
<?php } ?>
|
282
|
300
|
</select>
|
283
|
301
|
|
284
|
302
|
<select id=" container" name="container" class="ft_container fti_advanced">
|
285
|
|
- <option value="">Img Format</option>
|
286
|
|
- <?php foreach ($ContainersGames as $Key => $Container) { ?>
|
|
303
|
+ <option value="">Extras</option>
|
|
304
|
+ <?php foreach ($ContainersExtra as $Key => $Container) { ?>
|
287
|
305
|
<option value="<?=display_str($Key);?>" <?Format::selected('container', $Key)?>><?=display_str($Key);?>
|
288
|
306
|
</option>
|
289
|
307
|
<?php } ?>
|
290
|
308
|
</select>
|
291
|
309
|
</td>
|
292
|
310
|
</tr>
|
293
|
|
- <tr id="size" class="ftr_advanced<?=$HideAdvanced?>">
|
294
|
|
- <td class="label">Size</td>
|
295
|
|
- <td class="ft_size">
|
296
|
|
- <input type="size_min" spellcheck="false" size="6" name="size_min" class="inputtext smaller fti_advanced"
|
297
|
|
- placeholder="Min"
|
298
|
|
- value="<?Format::form('size_min')?>" />
|
299
|
|
- –
|
300
|
|
- <input type="size_max" spellcheck="false" size="6" name="size_max" class="inputtext smaller fti_advanced"
|
301
|
|
- placeholder="Max"
|
302
|
|
- value="<?Format::form('size_max')?>" />
|
303
|
|
- <select name="size_unit" class="ft_size fti_advanced">
|
304
|
|
- <option value="">Unit</option>
|
305
|
|
- <option value="0" <?Format::selected('size_unit', 0)?>>B
|
306
|
|
- </option>
|
307
|
|
- <option value="1" <?Format::selected('size_unit', 1)?>>KiB
|
308
|
|
- </option>
|
309
|
|
- <option value="2" <?Format::selected('size_unit', 2)?>>MiB
|
310
|
|
- </option>
|
311
|
|
- <option value="3" <?Format::selected('size_unit', 3)?>>GiB
|
312
|
|
- </option>
|
313
|
|
- <option value="4" <?Format::selected('size_unit', 4)?>>TiB
|
314
|
|
- </option>
|
315
|
|
- </select>
|
316
|
|
- </td>
|
317
|
|
- </tr>
|
|
311
|
+
|
|
312
|
+ <!-- Misc -->
|
318
|
313
|
<tr id="misc" class="ftr_advanced<?=$HideAdvanced?>">
|
319
|
314
|
<td class="label">Misc</td>
|
320
|
315
|
<td class="nobr ft_misc">
|
|
316
|
+
|
321
|
317
|
<select name="resolution" class="ft_resolution fti_advanced">
|
322
|
318
|
<option value="">Assembly Level</option>
|
323
|
319
|
<?php foreach ($Resolutions as $Resolution) { ?>
|
324
|
320
|
<option value="<?=display_str($Resolution); ?>"
|
325
|
|
- <?Format::selected('resolution', $Resolution)?>><?=display_str($Resolution); ?>
|
|
321
|
+ <?Format::selected('resolution', $Resolution)?>><?=display_str($Resolution); ?>"
|
326
|
322
|
</option>
|
327
|
323
|
<?php } ?>
|
328
|
324
|
</select>
|
|
@@ -356,9 +352,38 @@ View::show_header('Browse Torrents', 'browse');
|
356
|
352
|
</select>
|
357
|
353
|
</td>
|
358
|
354
|
</tr>
|
|
355
|
+
|
|
356
|
+ <!-- Size -->
|
|
357
|
+ <tr id="size" class="ftr_advanced<?=$HideAdvanced?>">
|
|
358
|
+ <td class="label">Size</td>
|
|
359
|
+ <td class="ft_size">
|
|
360
|
+ <input type="size_min" spellcheck="false" size="6" name="size_min" class="inputtext smaller fti_advanced"
|
|
361
|
+ placeholder="Min"
|
|
362
|
+ value="<?Format::form('size_min')?>" />
|
|
363
|
+ –
|
|
364
|
+ <input type="size_max" spellcheck="false" size="6" name="size_max" class="inputtext smaller fti_advanced"
|
|
365
|
+ placeholder="Max"
|
|
366
|
+ value="<?Format::form('size_max')?>" />
|
|
367
|
+ <select name="size_unit" class="ft_size fti_advanced">
|
|
368
|
+ <option value="">Unit</option>
|
|
369
|
+ <option value="0" <?Format::selected('size_unit', 0)?>>B
|
|
370
|
+ </option>
|
|
371
|
+ <option value="1" <?Format::selected('size_unit', 1)?>>KiB
|
|
372
|
+ </option>
|
|
373
|
+ <option value="2" <?Format::selected('size_unit', 2)?>>MiB
|
|
374
|
+ </option>
|
|
375
|
+ <option value="3" <?Format::selected('size_unit', 3)?>>GiB
|
|
376
|
+ </option>
|
|
377
|
+ <option value="4" <?Format::selected('size_unit', 4)?>>TiB
|
|
378
|
+ </option>
|
|
379
|
+ </select>
|
|
380
|
+ </td>
|
|
381
|
+ </tr>
|
|
382
|
+
|
|
383
|
+ <!-- Start basic search options -->
|
359
|
384
|
<tr id="search_terms" class="ftr_basic<?=$HideBasic?>">
|
360
|
385
|
<td class="label">
|
361
|
|
- <!--Search terms:-->
|
|
386
|
+ <!-- Search Terms -->
|
362
|
387
|
</td>
|
363
|
388
|
<td class="ftb_searchstr">
|
364
|
389
|
<input type="search" spellcheck="false" size="48" name="searchstr" class="inputtext fti_basic"
|
|
@@ -367,9 +392,10 @@ View::show_header('Browse Torrents', 'browse');
|
367
|
392
|
aria-label="Terms to search">
|
368
|
393
|
</td>
|
369
|
394
|
</tr>
|
|
395
|
+
|
370
|
396
|
<tr id="tagfilter">
|
371
|
397
|
<td class="label">
|
372
|
|
- <!--<span title="Use !tag to exclude tag" class="tooltip">Tags (comma-separated):</span>-->
|
|
398
|
+ <!-- Tags (comma-separated) -->
|
373
|
399
|
</td>
|
374
|
400
|
<td class="ft_taglist">
|
375
|
401
|
<input type="search" size="37" id="tags" name="taglist" class="inputtext smaller"
|
|
@@ -384,6 +410,7 @@ View::show_header('Browse Torrents', 'browse');
|
384
|
410
|
Use !tag to exclude tags
|
385
|
411
|
</td>
|
386
|
412
|
</tr>
|
|
413
|
+
|
387
|
414
|
<tr id="order">
|
388
|
415
|
<td class="label">Order By</td>
|
389
|
416
|
<td class="ft_order">
|
|
@@ -405,6 +432,7 @@ View::show_header('Browse Torrents', 'browse');
|
405
|
432
|
<option value="random" <?Format::selected('order_by', 'random')?>>Random
|
406
|
433
|
</option>
|
407
|
434
|
</select>
|
|
435
|
+
|
408
|
436
|
<select name="order_way" class="ft_order_way" aria-label="Direction to order">
|
409
|
437
|
<option value="desc" <?Format::selected('order_way', 'desc')?>>Descending
|
410
|
438
|
</option>
|
|
@@ -413,6 +441,7 @@ View::show_header('Browse Torrents', 'browse');
|
413
|
441
|
</select>
|
414
|
442
|
</td>
|
415
|
443
|
</tr>
|
|
444
|
+
|
416
|
445
|
<tr id="search_group_results">
|
417
|
446
|
<td class="label">
|
418
|
447
|
<label for="group_results">Group Torrents</label>
|
|
@@ -423,6 +452,7 @@ View::show_header('Browse Torrents', 'browse');
|
423
|
452
|
</td>
|
424
|
453
|
</tr>
|
425
|
454
|
</table>
|
|
455
|
+
|
426
|
456
|
<table class="layout cat_list ft_cat_list">
|
427
|
457
|
<?php
|
428
|
458
|
$x = 0;
|
|
@@ -521,7 +551,9 @@ View::show_header('Browse Torrents', 'browse');
|
521
|
551
|
<p>Make sure all names are spelled correctly, or try making your search less specific.</p>
|
522
|
552
|
</div>
|
523
|
553
|
</div>
|
524
|
|
-<?php View::show_footer();die();
|
|
554
|
+<?php
|
|
555
|
+View::show_footer();
|
|
556
|
+die();
|
525
|
557
|
}
|
526
|
558
|
|
527
|
559
|
if ($NumResults < ($Page - 1) * TORRENTS_PER_PAGE + 1) {
|
|
@@ -712,7 +744,7 @@ $ShowGroups = !(!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGr
|
712
|
744
|
$Data['CategoryID'] = $CategoryID;
|
713
|
745
|
// All of the individual torrents in the group
|
714
|
746
|
|
715
|
|
- // Get report info for each torrent, use the cache if available, if not, add to it.
|
|
747
|
+ // Get report info for each torrent, use the cache if available, if not, add to it
|
716
|
748
|
$Reported = false;
|
717
|
749
|
$Reports = Torrents::get_reports($TorrentID);
|
718
|
750
|
if (count($Reports) > 0) {
|