From 50f43777527a004e92bc39d80e6edd5a0205fc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= Date: Sat, 11 Jan 2025 17:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=9E=83=E5=9C=BE=E6=B3=A8?= =?UTF-8?q?=E9=87=8A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/archive/freelist.class.php | 7 +++---- src/system/archive/listview.class.php | 6 +++--- src/system/archive/searchview.class.php | 7 +++---- src/system/archive/sglistview.class.php | 6 +++--- src/system/archive/specview.class.php | 7 +++---- src/system/archive/taglist.class.php | 6 +++--- 6 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/system/archive/freelist.class.php b/src/system/archive/freelist.class.php index 158e5803..75f6a3e7 100755 --- a/src/system/archive/freelist.class.php +++ b/src/system/archive/freelist.class.php @@ -595,21 +595,20 @@ class FreeList } } $artlist .= $indtp->GetResult(); - } //if hasRow - else { + } else { $artlist .= ''; } if ($col > 1) { $artlist .= ""; } - } //Loop Col + } if ($col > 1) { $i += $col - 1; } if ($col > 1) { $artlist .= ""; } - } //Loop Line + } if ($col > 1) { $artlist .= ""; } diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index 36624c62..285ba90d 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -1009,13 +1009,13 @@ class ListView } } $artlist .= $this->dtp2->GetResult(); - }//if hasRow - }//Loop Col + } + } if ($col > 1) { $i += $col - 1; $artlist .= ""; } - }//Loop Line + } $t3 = ExecTime(); $this->dsql->FreeResult('al'); return $artlist; diff --git a/src/system/archive/searchview.class.php b/src/system/archive/searchview.class.php index 31264144..61bee5d5 100755 --- a/src/system/archive/searchview.class.php +++ b/src/system/archive/searchview.class.php @@ -607,16 +607,15 @@ class SearchView } } $artlist .= $this->dtp2->GetResult(); - } //if hasRow - else { + } else { $artlist .= ''; } if ($col > 1) $artlist .= ""; - } //Loop Col + } if ($col > 1) { $artlist .= ""; } - } //Loop Line + } if ($col > 1) { $artlist .= ""; } diff --git a/src/system/archive/sglistview.class.php b/src/system/archive/sglistview.class.php index ef6180ff..bc756048 100755 --- a/src/system/archive/sglistview.class.php +++ b/src/system/archive/sglistview.class.php @@ -842,13 +842,13 @@ class SgListView } } $artlist .= $this->dtp2->GetResult(); - } //if hasRow - }//Loop Col + } + } if ($col > 1) { $i += $col - 1; $artlist .= ""; } - }//Loop Line + } $t3 = ExecTime(); $this->dsql->FreeResult('al'); return $artlist; diff --git a/src/system/archive/specview.class.php b/src/system/archive/specview.class.php index 70b072d5..61126bd1 100755 --- a/src/system/archive/specview.class.php +++ b/src/system/archive/specview.class.php @@ -403,18 +403,17 @@ class SpecView } } $artlist .= $this->dtp2->GetResult(); - }//if hasRow - else { + } else { $artlist .= ''; } if ($col > 1) { $artlist .= ""; } - }//Loop Col + } if ($col > 1) { $artlist .= ""; } - }//Loop Line + } if ($col > 1) { $artlist .= ""; } diff --git a/src/system/archive/taglist.class.php b/src/system/archive/taglist.class.php index 03b4745d..ccaa4405 100755 --- a/src/system/archive/taglist.class.php +++ b/src/system/archive/taglist.class.php @@ -379,13 +379,13 @@ class TagList } } $artlist .= $this->dtp2->GetResult(); - }//if hasRow - }//Loop Col + } + } if ($col > 1) { $i += $col - 1; $artlist .= ""; } - }//Loop Line + } $this->dsql->FreeResult('al'); return $artlist; }