From efbcc0bc6a3af21b792bfd1ba3d44816f288d001 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?=
<93301500+xushubieli@users.noreply.github.com>
Date: Mon, 22 May 2023 11:02:44 +0800
Subject: [PATCH] Update searchview.class.php
---
src/system/archive/searchview.class.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/system/archive/searchview.class.php b/src/system/archive/searchview.class.php
index 136e4c36..e24b6a97 100755
--- a/src/system/archive/searchview.class.php
+++ b/src/system/archive/searchview.class.php
@@ -273,9 +273,9 @@ class SearchView
$this->dsql->Execute('l');
while ($row = $this->dsql->GetArray('l')) {
if ($row['count'] > 1000) {
- $fstyle = " style='font-size:11pt;color:red'";
+ $fstyle = " style='color:red'";
} else if ($row['count'] > 300) {
- $fstyle = " style='font-size:10pt;color:green'";
+ $fstyle = " style='color:green'";
} else {
$style = "";
}
@@ -285,7 +285,7 @@ class SearchView
}
}
/**
- * 加粗关键词
+ * 关键词加粗标红
*
* @access private
* @param string $fstr 关键词字符
@@ -302,9 +302,9 @@ class SearchView
if (ord($k[0]) > 0x80 && strlen($k) < 2) {
continue;
}
- //这里不区分大小写进行关键词替换
- $fstr = str_ireplace($k, "$k", $fstr);
- //速度更快,效率更高$fstr = str_replace($k, "$k", $fstr);
+ //不区分大小$fstr = str_ireplace($k, "$k", $fstr);
+ //速度效率更快
+ $fstr = str_replace($k, "$k", $fstr);
}
return $fstr;
}