|
@@ -334,7 +334,8 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
334
|
334
|
|
335
|
335
|
<div class="thin">
|
336
|
336
|
<div class="header">
|
337
|
|
- <h2><a href="user.php?id=<?= $UserID ?>"><?= $User['Username'] ?></a><?= "'s $Action torrents" ?></h2>
|
|
337
|
+ <h2><a href="user.php?id=<?= $UserID ?>"><?= $User['Username'] ?></a><?= "'s $Action torrents" ?>
|
|
338
|
+ </h2>
|
338
|
339
|
</div>
|
339
|
340
|
<div class="box pad">
|
340
|
341
|
<form class="search_form" name="torrents" action="" method="get">
|
|
@@ -344,20 +345,26 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
344
|
345
|
<tr>
|
345
|
346
|
<td class="label"><strong>Search Terms</strong></td>
|
346
|
347
|
<td>
|
347
|
|
- <input type="hidden" name="type" value="<?= $_GET['type'] ?>" />
|
348
|
|
- <input type="hidden" name="userid" value="<?= $UserID ?>" />
|
349
|
|
- <input type="search" name="search" size="60" value="<?php Format::form('search') ?>" />
|
|
348
|
+ <input type="hidden" name="type"
|
|
349
|
+ value="<?= $_GET['type'] ?>" />
|
|
350
|
+ <input type="hidden" name="userid"
|
|
351
|
+ value="<?= $UserID ?>" />
|
|
352
|
+ <input type="search" name="search" size="60"
|
|
353
|
+ value="<?php Format::form('search') ?>" />
|
350
|
354
|
</td>
|
351
|
355
|
</tr>
|
352
|
356
|
|
353
|
|
- <!-- Specifics -->
|
|
357
|
+ <!--
|
|
358
|
+ Specifics
|
|
359
|
+ todo: Make like the Seq/Img Format fields in browse.php
|
|
360
|
+ -->
|
354
|
361
|
<tr>
|
355
|
362
|
<td class="label"><strong>Specifics</strong></td>
|
356
|
363
|
<td class="nobr" colspan="3">
|
357
|
364
|
<select id="container" name="container" class="ft_container">
|
358
|
365
|
<option value="">Format</option>
|
359
|
|
- <?php foreach ($Containers as $ContainerName) { ?>
|
360
|
|
- <option value="<?= display_str($ContainerName); ?>"<?php Format::selected('container', $ContainerName) ?>><?= display_str($ContainerName); ?>
|
|
366
|
+ <?php foreach ($Containers as $Key => $ContainerName) { ?>
|
|
367
|
+ <option value="<?= display_str($Key); ?>" <?php Format::selected('container', $Key) ?>><?= display_str($Key); ?>
|
361
|
368
|
</option>
|
362
|
369
|
<?php } ?>
|
363
|
370
|
</select>
|
|
@@ -365,7 +372,7 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
365
|
372
|
<select id="codec" name="codec" class="ft_codec">
|
366
|
373
|
<option value="">License</option>
|
367
|
374
|
<?php foreach ($Codecs as $CodecName) { ?>
|
368
|
|
- <option value="<?= display_str($CodecName); ?>"<?php Format::selected('codec', $CodecName) ?>><?= display_str($CodecName); ?>
|
|
375
|
+ <option value="<?= display_str($CodecName); ?>" <?php Format::selected('codec', $CodecName) ?>><?= display_str($CodecName); ?>
|
369
|
376
|
</option>
|
370
|
377
|
<?php } ?>
|
371
|
378
|
</select>
|
|
@@ -373,7 +380,8 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
373
|
380
|
<select id="resolution" name="resolution" class="ft_resolution">
|
374
|
381
|
<option value="">Assembly Level</option>
|
375
|
382
|
<?php foreach ($Resolutions as $ResolutionName) { ?>
|
376
|
|
- <option value="<?= display_str($ResolutionName); ?>"<?php Format::selected('resolution', $ResolutionName) ?>><?= display_str($ResolutionName); ?>
|
|
383
|
+ <option value="<?= display_str($ResolutionName); ?>"
|
|
384
|
+ <?php Format::selected('resolution', $ResolutionName) ?>><?= display_str($ResolutionName); ?>
|
377
|
385
|
</option>
|
378
|
386
|
<?php } ?>
|
379
|
387
|
</select>
|
|
@@ -381,7 +389,7 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
381
|
389
|
<select name="media" class="ft_media">
|
382
|
390
|
<option value="">Platform</option>
|
383
|
391
|
<?php foreach ($Media as $MediaName) { ?>
|
384
|
|
- <option value="<?= display_str($MediaName); ?>"<?php Format::selected('media', $MediaName) ?>><?= display_str($MediaName); ?>
|
|
392
|
+ <option value="<?= display_str($MediaName); ?>" <?php Format::selected('media', $MediaName) ?>><?= display_str($MediaName); ?>
|
385
|
393
|
</option>
|
386
|
394
|
<?php } ?>
|
387
|
395
|
</select>
|
|
@@ -394,8 +402,10 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
394
|
402
|
<td class="nobr" colspan="3">
|
395
|
403
|
<select name="censored" class="ft_censored">
|
396
|
404
|
<option value="3">Alignment</option>
|
397
|
|
- <option value="1"<?Format::selected('censored', 1)?>>Aligned</option>
|
398
|
|
- <option value="0"<?Format::selected('censored', 0)?>>Unaligned</option>
|
|
405
|
+ <option value="1" <?Format::selected('censored', 1)?>>Aligned
|
|
406
|
+ </option>
|
|
407
|
+ <option value="0" <?Format::selected('censored', 0)?>>Unaligned
|
|
408
|
+ </option>
|
399
|
409
|
</select>
|
400
|
410
|
</td>
|
401
|
411
|
</tr>
|
|
@@ -404,9 +414,12 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
404
|
414
|
<tr>
|
405
|
415
|
<td class="label"><strong>Tags</strong></td>
|
406
|
416
|
<td>
|
407
|
|
- <input type="search" name="tags" size="60" value="<?php Format::form('tags') ?>" />
|
408
|
|
- <input type="radio" name="tags_type" id="tags_type0" value="0"<?php Format::selected('tags_type', 0, 'checked') ?> /><label for="tags_type0"> Any</label>
|
409
|
|
- <input type="radio" name="tags_type" id="tags_type1" value="1"<?php Format::selected('tags_type', 1, 'checked') ?> /><label for="tags_type1"> All</label><br />
|
|
417
|
+ <input type="search" name="tags" size="60"
|
|
418
|
+ value="<?php Format::form('tags') ?>" />
|
|
419
|
+ <input type="radio" name="tags_type" id="tags_type0" value="0" <?php Format::selected('tags_type', 0, 'checked') ?>
|
|
420
|
+ /><label for="tags_type0"> Any</label>
|
|
421
|
+ <input type="radio" name="tags_type" id="tags_type1" value="1" <?php Format::selected('tags_type', 1, 'checked') ?>
|
|
422
|
+ /><label for="tags_type1"> All</label><br />
|
410
|
423
|
Use !tag to exclude tags
|
411
|
424
|
</td>
|
412
|
425
|
</tr>
|
|
@@ -417,14 +430,14 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
417
|
430
|
<td>
|
418
|
431
|
<select name="order" class="ft_order_by">
|
419
|
432
|
<?php foreach ($Orders as $OrderText) { ?>
|
420
|
|
- <option value="<?= $OrderText ?>"<?php Format::selected('order', $OrderText) ?>><?= $OrderText ?>
|
|
433
|
+ <option value="<?= $OrderText ?>" <?php Format::selected('order', $OrderText) ?>><?= $OrderText ?>
|
421
|
434
|
</option>
|
422
|
435
|
<?php } ?>
|
423
|
436
|
</select>
|
424
|
437
|
|
425
|
438
|
<select name="way" class="ft_order_way">
|
426
|
439
|
<?php foreach ($Ways as $WayKey=>$WayText) { ?>
|
427
|
|
- <option value="<?= $WayKey ?>"<?php Format::selected('way', $WayKey) ?>><?= $WayText ?>
|
|
440
|
+ <option value="<?= $WayKey ?>" <?php Format::selected('way', $WayKey) ?>><?= $WayText ?>
|
428
|
441
|
</option>
|
429
|
442
|
<?php } ?>
|
430
|
443
|
</select>
|
|
@@ -434,7 +447,7 @@ $Pages = Format::get_pages($Page, $TorrentCount, TORRENTS_PER_PAGE);
|
434
|
447
|
|
435
|
448
|
<!-- Categories -->
|
436
|
449
|
<table class="layout cat_list">
|
437
|
|
-<?php
|
|
450
|
+ <?php
|
438
|
451
|
$x = 0;
|
439
|
452
|
reset($Categories);
|
440
|
453
|
foreach ($Categories as $CatKey => $CatName) {
|
|
@@ -442,17 +455,20 @@ foreach ($Categories as $CatKey => $CatName) {
|
442
|
455
|
if ($x > 0) {
|
443
|
456
|
?>
|
444
|
457
|
</tr>
|
445
|
|
-<?php
|
|
458
|
+ <?php
|
446
|
459
|
} ?>
|
447
|
460
|
<tr>
|
448
|
|
-<?php
|
|
461
|
+ <?php
|
449
|
462
|
}
|
450
|
463
|
$x++; ?>
|
451
|
464
|
<td>
|
452
|
|
- <input type="checkbox" name="categories[<?= ($CatKey+1) ?>]" id="cat_<?= ($CatKey+1) ?>" value="1"<?php if (isset($_GET['categories'][$CatKey + 1])) { ?> checked="checked"<?php } ?> />
|
|
465
|
+ <input type="checkbox"
|
|
466
|
+ name="categories[<?= ($CatKey+1) ?>]"
|
|
467
|
+ id="cat_<?= ($CatKey+1) ?>" value="1" <?php if (isset($_GET['categories'][$CatKey + 1])) { ?>
|
|
468
|
+ checked="checked"<?php } ?> />
|
453
|
469
|
<label for="cat_<?= ($CatKey + 1) ?>"><?= $CatName ?></label>
|
454
|
470
|
</td>
|
455
|
|
-<?php
|
|
471
|
+ <?php
|
456
|
472
|
}
|
457
|
473
|
?>
|
458
|
474
|
</tr>
|
|
@@ -460,45 +476,63 @@ foreach ($Categories as $CatKey => $CatName) {
|
460
|
476
|
|
461
|
477
|
<!-- Submit -->
|
462
|
478
|
<div class="submit">
|
463
|
|
- <span class="float_left"><?= number_format($TorrentCount) ?> Results</span>
|
|
479
|
+ <span class="float_left"><?= number_format($TorrentCount) ?>
|
|
480
|
+ Results</span>
|
464
|
481
|
<input type="submit" value="Search" />
|
465
|
482
|
</div>
|
466
|
483
|
</form>
|
467
|
484
|
</div>
|
468
|
485
|
|
469
|
486
|
<!-- Results table -->
|
470
|
|
-<?php if (count($GroupIDs) === 0) { ?>
|
|
487
|
+ <?php if (count($GroupIDs) === 0) { ?>
|
471
|
488
|
<div class="center">
|
472
|
489
|
Nothing found!
|
473
|
490
|
</div>
|
474
|
|
-<?php } else { ?>
|
475
|
|
- <div class="linkbox"><?=$Pages?></div>
|
|
491
|
+ <?php } else { ?>
|
|
492
|
+ <div class="linkbox"><?=$Pages?>
|
|
493
|
+ </div>
|
476
|
494
|
<div class="box">
|
477
|
|
- <table class="torrent_table cats" width="100%">
|
478
|
|
- <tr class="colhead">
|
479
|
|
- <td class="cats_col"></td>
|
480
|
|
- <td><a href="<?= header_link('Name', 'ASC') ?>">Torrent</a></td>
|
481
|
|
- <td><a href="<?= header_link('Time') ?>">Time</a></td>
|
482
|
|
- <td><a href="<?= header_link('Size') ?>">Size</a></td>
|
483
|
|
- <td class="sign snatches">
|
484
|
|
- <a href="<?= header_link('Snatched') ?>">
|
485
|
|
- <svg width="15" height="15" fill="black" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg>
|
486
|
|
- </a>
|
487
|
|
- </td>
|
488
|
|
- <td class="sign seeders">
|
489
|
|
- <a href="<?= header_link('Seeders') ?>">
|
490
|
|
- <svg width="11" height="15" fill="black" class="tooltip" alt="Seeders" title="Seeders"><polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon></svg>
|
491
|
|
- </a>
|
492
|
|
- </td>
|
493
|
|
- <td class="sign leechers">
|
494
|
|
- <a href="<?= header_link('Leechers') ?>">
|
495
|
|
- <svg width="11" height="15" fill="black" class="tooltip" alt="Leechers" title="Leechers"><polygon points="0,8 5.5,15 11,8 8,8 8,0 3,0 3,8"></polygon></svg>
|
496
|
|
- </a>
|
497
|
|
- </td>
|
498
|
|
- </tr>
|
499
|
|
-
|
500
|
|
- <!-- Results list -->
|
501
|
|
-<?php
|
|
495
|
+ <table class="torrent_table cats" width="100%">
|
|
496
|
+ <tr class="colhead">
|
|
497
|
+ <td class="cats_col"></td>
|
|
498
|
+ <td><a
|
|
499
|
+ href="<?= header_link('Name', 'ASC') ?>">Torrent</a>
|
|
500
|
+ </td>
|
|
501
|
+ <td><a
|
|
502
|
+ href="<?= header_link('Time') ?>">Time</a>
|
|
503
|
+ </td>
|
|
504
|
+ <td><a
|
|
505
|
+ href="<?= header_link('Size') ?>">Size</a>
|
|
506
|
+ </td>
|
|
507
|
+ <td class="sign snatches">
|
|
508
|
+ <a
|
|
509
|
+ href="<?= header_link('Snatched') ?>">
|
|
510
|
+ <svg width="15" height="15" fill="black" class="tooltip" alt="Snatches" title="Snatches"
|
|
511
|
+ viewBox="3 0 88 98">
|
|
512
|
+ <path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path>
|
|
513
|
+ </svg>
|
|
514
|
+ </a>
|
|
515
|
+ </td>
|
|
516
|
+ <td class="sign seeders">
|
|
517
|
+ <a
|
|
518
|
+ href="<?= header_link('Seeders') ?>">
|
|
519
|
+ <svg width="11" height="15" fill="black" class="tooltip" alt="Seeders" title="Seeders">
|
|
520
|
+ <polygon points="0,7 5.5,0 11,7 8,7 8,15 3,15 3,7"></polygon>
|
|
521
|
+ </svg>
|
|
522
|
+ </a>
|
|
523
|
+ </td>
|
|
524
|
+ <td class="sign leechers">
|
|
525
|
+ <a
|
|
526
|
+ href="<?= header_link('Leechers') ?>">
|
|
527
|
+ <svg width="11" height="15" fill="black" class="tooltip" alt="Leechers" title="Leechers">
|
|
528
|
+ <polygon points="0,8 5.5,15 11,8 8,8 8,0 3,0 3,8"></polygon>
|
|
529
|
+ </svg>
|
|
530
|
+ </a>
|
|
531
|
+ </td>
|
|
532
|
+ </tr>
|
|
533
|
+
|
|
534
|
+ <!-- Results list -->
|
|
535
|
+ <?php
|
502
|
536
|
$PageSize = 0;
|
503
|
537
|
foreach ($TorrentsInfo as $TorrentID => $Info) {
|
504
|
538
|
list($GroupID, , $Time) = array_values($Info);
|
|
@@ -532,31 +566,48 @@ foreach ($Categories as $CatKey => $CatName) {
|
532
|
566
|
$DisplayName .= " - $ExtraInfo";
|
533
|
567
|
} ?>
|
534
|
568
|
|
535
|
|
- <tr class="torrent torrent_row<?= ($Torrent['IsSnatched'] ? ' snatched_torrent' : '') . ($GroupFlags['IsSnatched'] ? ' snatched_group' : '') ?>">
|
536
|
|
- <td class="center cats_col">
|
537
|
|
- <div title="<?= Format::pretty_category($GroupCategoryID) ?>" class="tooltip <?= Format::css_category($GroupCategoryID) ?>"></div>
|
538
|
|
- </td>
|
539
|
|
- <td class="big_info">
|
540
|
|
- <div class="group_info clear">
|
541
|
|
- <span class="torrent_links_block">
|
542
|
|
- [ <a href="torrents.php?action=download&id=<?= $TorrentID ?>&authkey=<?= $LoggedUser['AuthKey'] ?>&torrent_pass=<?= $LoggedUser['torrent_pass'] ?>" class="tooltip" title="Download">DL</a>
|
543
|
|
- | <a href="reportsv2.php?action=report&id=<?= $TorrentID ?>" class="tooltip" title="Report">RP</a> ]
|
544
|
|
- </span>
|
545
|
|
- <?php echo "$DisplayName\n"; ?>
|
546
|
|
- <div class="tags"><?= $TorrentTags->format('torrents.php?type='.$Action.'&userid='.$UserID.'&tags=') ?></div>
|
547
|
|
- </div>
|
548
|
|
- </td>
|
549
|
|
- <td class="nobr"><?= time_diff($Time, 1) ?></td>
|
550
|
|
- <td class="number_column nobr"><?= Format::get_size($Torrent['Size']) ?></td>
|
551
|
|
- <td class="number_column"><?= number_format($Torrent['Snatched']) ?></td>
|
552
|
|
- <td class="number_column<?= (($Torrent['Seeders'] === 0) ? ' r00' : '') ?>"><?= number_format($Torrent['Seeders']) ?></td>
|
553
|
|
- <td class="number_column"><?= number_format($Torrent['Leechers']) ?></td>
|
554
|
|
- </tr>
|
555
|
|
-<?php
|
|
569
|
+ <tr
|
|
570
|
+ class="torrent torrent_row<?= ($Torrent['IsSnatched'] ? ' snatched_torrent' : '') . ($GroupFlags['IsSnatched'] ? ' snatched_group' : '') ?>">
|
|
571
|
+ <td class="center cats_col">
|
|
572
|
+ <div
|
|
573
|
+ title="<?= Format::pretty_category($GroupCategoryID) ?>"
|
|
574
|
+ class="tooltip <?= Format::css_category($GroupCategoryID) ?>">
|
|
575
|
+ </div>
|
|
576
|
+ </td>
|
|
577
|
+ <td class="big_info">
|
|
578
|
+ <div class="group_info clear">
|
|
579
|
+ <span class="torrent_links_block">
|
|
580
|
+ [ <a
|
|
581
|
+ href="torrents.php?action=download&id=<?= $TorrentID ?>&authkey=<?= $LoggedUser['AuthKey'] ?>&torrent_pass=<?= $LoggedUser['torrent_pass'] ?>"
|
|
582
|
+ class="tooltip" title="Download">DL</a>
|
|
583
|
+ | <a
|
|
584
|
+ href="reportsv2.php?action=report&id=<?= $TorrentID ?>"
|
|
585
|
+ class="tooltip" title="Report">RP</a> ]
|
|
586
|
+ </span>
|
|
587
|
+ <?php echo "$DisplayName\n"; ?>
|
|
588
|
+ <div class="tags"><?= $TorrentTags->format('torrents.php?type='.$Action.'&userid='.$UserID.'&tags=') ?>
|
|
589
|
+ </div>
|
|
590
|
+ </div>
|
|
591
|
+ </td>
|
|
592
|
+ <td class="nobr"><?= time_diff($Time, 1) ?>
|
|
593
|
+ </td>
|
|
594
|
+ <td class="number_column nobr"><?= Format::get_size($Torrent['Size']) ?>
|
|
595
|
+ </td>
|
|
596
|
+ <td class="number_column"><?= number_format($Torrent['Snatched']) ?>
|
|
597
|
+ </td>
|
|
598
|
+ <td
|
|
599
|
+ class="number_column<?= (($Torrent['Seeders'] === 0) ? ' r00' : '') ?>">
|
|
600
|
+ <?= number_format($Torrent['Seeders']) ?>
|
|
601
|
+ </td>
|
|
602
|
+ <td class="number_column"><?= number_format($Torrent['Leechers']) ?>
|
|
603
|
+ </td>
|
|
604
|
+ </tr>
|
|
605
|
+ <?php
|
556
|
606
|
} ?>
|
557
|
|
- </table>
|
|
607
|
+ </table>
|
|
608
|
+ </div>
|
|
609
|
+ <?php } ?>
|
|
610
|
+ <div class="linkbox"><?= $Pages ?>
|
558
|
611
|
</div>
|
559
|
|
-<?php } ?>
|
560
|
|
- <div class="linkbox"><?= $Pages ?></div>
|
561
|
612
|
</div>
|
562
|
|
-<?php View::show_footer(); ?>
|
|
613
|
+<?php View::show_footer();
|