mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
section basic
This commit is contained in:
+47
-48
@@ -102,15 +102,13 @@ if (isset($_GET['sort']) && $_GET['sort'] && isset($_GET['type']) && $_GET['type
|
||||
$addparam = "";
|
||||
$wherea = array();
|
||||
$wherecatina = array();
|
||||
if ($showsubcat){
|
||||
if ($showsource) $wheresourceina = array();
|
||||
if ($showmedium) $wheremediumina = array();
|
||||
if ($showcodec) $wherecodecina = array();
|
||||
if ($showstandard) $wherestandardina = array();
|
||||
if ($showprocessing) $whereprocessingina = array();
|
||||
if ($showteam) $whereteamina = array();
|
||||
if ($showaudiocodec) $whereaudiocodecina = array();
|
||||
}
|
||||
$wheresourceina = array();
|
||||
$wheremediumina = array();
|
||||
$wherecodecina = array();
|
||||
$wherestandardina = array();
|
||||
$whereprocessingina = array();
|
||||
$whereteamina = array();
|
||||
$whereaudiocodecina = array();
|
||||
//----------------- start whether show torrents from all sections---------------------//
|
||||
if ($_GET)
|
||||
$allsec = intval($_GET["allsec"] ?? 0);
|
||||
@@ -946,45 +944,46 @@ if ($allsec != 1 || $enablespecial != 'yes'){ //do not print searchbox if showin
|
||||
<tbody id="ksearchboxmain" style="display:none">
|
||||
<tr>
|
||||
<td class="rowfollow" align="left">
|
||||
<table>
|
||||
<?php
|
||||
function printcat($name, $listarray, $cbname, $wherelistina, $btname, $showimg = false)
|
||||
{
|
||||
global $catpadding,$catsperrow,$lang_torrents,$CURUSER,$CURLANGDIR,$catimgurl;
|
||||
|
||||
print("<tr><td class=\"embedded\" colspan=\"".$catsperrow."\" align=\"left\"><b>".$name."</b></td></tr><tr>");
|
||||
$i = 0;
|
||||
foreach($listarray as $list){
|
||||
if ($i && $i % $catsperrow == 0){
|
||||
print("</tr><tr>");
|
||||
}
|
||||
print("<td align=\"left\" class=\"bottom\" style=\"padding-bottom: 4px; padding-left: ".$catpadding."px;\"><input type=\"checkbox\" id=\"".$cbname.$list['id']."\" name=\"".$cbname.$list['id']."\"" . (in_array($list['id'],$wherelistina) ? " checked=\"checked\"" : "") . " value=\"1\" />".($showimg ? return_category_image($list['id'], "?") : "<a title=\"" .$list['name'] . "\" href=\"?".$cbname."=".$list['id']."\">".$list['name']."</a>")."</td>\n");
|
||||
$i++;
|
||||
}
|
||||
$checker = "<input name=\"".$btname."\" value='" . $lang_torrents['input_check_all'] . "' class=\"btn medium\" type=\"button\" onclick=\"javascript:SetChecked('".$cbname."','".$btname."','". $lang_torrents['input_check_all'] ."','" . $lang_torrents['input_uncheck_all'] . "',-1,10)\" />";
|
||||
print("<td colspan=\"2\" class=\"bottom\" align=\"left\" style=\"padding-left: 15px\">".$checker."</td>\n");
|
||||
print("</tr>");
|
||||
}
|
||||
printcat($lang_torrents['text_category'],$cats,"cat",$wherecatina,"cat_check",true);
|
||||
|
||||
if ($showsubcat){
|
||||
if ($showsource)
|
||||
printcat($lang_torrents['text_source'], $sources, "source", $wheresourceina, "source_check");
|
||||
if ($showmedium)
|
||||
printcat($lang_torrents['text_medium'], $media, "medium", $wheremediumina, "medium_check");
|
||||
if ($showcodec)
|
||||
printcat($lang_torrents['text_codec'], $codecs, "codec", $wherecodecina, "codec_check");
|
||||
if ($showaudiocodec)
|
||||
printcat($lang_torrents['text_audio_codec'], $audiocodecs, "audiocodec", $whereaudiocodecina, "audiocodec_check");
|
||||
if ($showstandard)
|
||||
printcat($lang_torrents['text_standard'], $standards, "standard", $wherestandardina, "standard_check");
|
||||
if ($showprocessing)
|
||||
printcat($lang_torrents['text_processing'], $processings, "processing", $whereprocessingina, "processing_check");
|
||||
if ($showteam)
|
||||
printcat($lang_torrents['text_team'], $teams, "team", $whereteamina, "team_check");
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<!-- <table>-->
|
||||
<!-- --><?php
|
||||
// function printcat($name, $listarray, $cbname, $wherelistina, $btname, $showimg = false)
|
||||
// {
|
||||
// global $catpadding,$catsperrow,$lang_torrents,$CURUSER,$CURLANGDIR,$catimgurl;
|
||||
//
|
||||
// print("<tr><td class=\"embedded\" colspan=\"".$catsperrow."\" align=\"left\"><b>".$name."</b></td></tr><tr>");
|
||||
// $i = 0;
|
||||
// foreach($listarray as $list){
|
||||
// if ($i && $i % $catsperrow == 0){
|
||||
// print("</tr><tr>");
|
||||
// }
|
||||
// print("<td align=\"left\" class=\"bottom\" style=\"padding-bottom: 4px; padding-left: ".$catpadding."px;\"><input type=\"checkbox\" id=\"".$cbname.$list['id']."\" name=\"".$cbname.$list['id']."\"" . (in_array($list['id'],$wherelistina) ? " checked=\"checked\"" : "") . " value=\"1\" />".($showimg ? return_category_image($list['id'], "?") : "<a title=\"" .$list['name'] . "\" href=\"?".$cbname."=".$list['id']."\">".$list['name']."</a>")."</td>\n");
|
||||
// $i++;
|
||||
// }
|
||||
// $checker = "<input name=\"".$btname."\" value='" . $lang_torrents['input_check_all'] . "' class=\"btn medium\" type=\"button\" onclick=\"javascript:SetChecked('".$cbname."','".$btname."','". $lang_torrents['input_check_all'] ."','" . $lang_torrents['input_uncheck_all'] . "',-1,10)\" />";
|
||||
// print("<td colspan=\"2\" class=\"bottom\" align=\"left\" style=\"padding-left: 15px\">".$checker."</td>\n");
|
||||
// print("</tr>");
|
||||
// }
|
||||
// printcat($lang_torrents['text_category'],$cats,"cat",$wherecatina,"cat_check",true);
|
||||
//
|
||||
// if ($showsubcat){
|
||||
// if ($showsource)
|
||||
// printcat($lang_torrents['text_source'], $sources, "source", $wheresourceina, "source_check");
|
||||
// if ($showmedium)
|
||||
// printcat($lang_torrents['text_medium'], $media, "medium", $wheremediumina, "medium_check");
|
||||
// if ($showcodec)
|
||||
// printcat($lang_torrents['text_codec'], $codecs, "codec", $wherecodecina, "codec_check");
|
||||
// if ($showaudiocodec)
|
||||
// printcat($lang_torrents['text_audio_codec'], $audiocodecs, "audiocodec", $whereaudiocodecina, "audiocodec_check");
|
||||
// if ($showstandard)
|
||||
// printcat($lang_torrents['text_standard'], $standards, "standard", $wherestandardina, "standard_check");
|
||||
// if ($showprocessing)
|
||||
// printcat($lang_torrents['text_processing'], $processings, "processing", $whereprocessingina, "processing_check");
|
||||
// if ($showteam)
|
||||
// printcat($lang_torrents['text_team'], $teams, "team", $whereteamina, "team_check");
|
||||
// }
|
||||
// ?>
|
||||
<!-- </table>-->
|
||||
<?php echo build_search_box_category_table($sectiontype, '1', '?', '?', 0, $_SERVER['QUERY_STRING'])?>
|
||||
</td>
|
||||
|
||||
<td class="rowfollow" valign="middle">
|
||||
|
||||
Reference in New Issue
Block a user