diff --git a/src/admin/freelist_add.php b/src/admin/freelist_add.php index e57511d4..9ac924cd 100644 --- a/src/admin/freelist_add.php +++ b/src/admin/freelist_add.php @@ -42,6 +42,6 @@ if (empty($dopost)) { VALUES ('$title','$namerule','$listdir','$defaultpage','$nodefault','$templet','$edtime', '$maxpage','0','$listTag','$keywords','$description'); "; $dsql->ExecuteNoneQuery($inquery); - ShowMsg("成功增加一个自由列表!", "freelist_main.php"); + ShowMsg("成功增加一个自由列表", "freelist_main.php"); exit(); } \ No newline at end of file diff --git a/src/system/archive/freelist.class.php b/src/system/archive/freelist.class.php index 81c50d42..95184dab 100755 --- a/src/system/archive/freelist.class.php +++ b/src/system/archive/freelist.class.php @@ -148,7 +148,7 @@ class FreeList if ($channelid > 0 && !preg_match("#spec#i", $listtype)) { $addSql .= " AND channel = '$channelid' "; } - //推荐文档 带缩略图 专题文档 + //推荐文档,带缩略图,专题文档 if (preg_match("#commend#i", $listtype)) { $addSql .= " AND FIND_IN_SET('c',flag) > 0 "; } @@ -164,6 +164,7 @@ class FreeList } $keyword = $this->ListObj->GetAtt('keyword'); if (!empty($keyword)) { + $keyword = str_replace(',', '|', $keyword); $addSql .= " AND CONCAT(title,keywords) REGEXP '$keyword' "; } $cquery = "SELECT COUNT(*) AS dd FROM `{$this->maintable}` WHERE $addSql"; @@ -428,7 +429,7 @@ class FreeList if ($channelid > 0 && !preg_match("#spec#i", $listtype)) { $orwhere .= " AND arc.channel = '$channelid' "; } - //推荐文档 带缩略图 专题文档 + //推荐文档,带缩略图,专题文档 if (preg_match("#commend#i", $listtype)) { $orwhere .= " AND FIND_IN_SET('c',flag) > 0 "; } @@ -444,6 +445,7 @@ class FreeList } $keyword = $this->ListObj->GetAtt('keyword'); if (!empty($keyword)) { + $keyword = str_replace(',', '|', $keyword); $orwhere .= " AND CONCAT(arc.title,arc.keywords) REGEXP '$keyword' "; } $orderby = $this->ListObj->GetAtt('orderby'); @@ -659,10 +661,10 @@ class FreeList } else { $indexpage = "
  • 首页
  • \r\n"; } - //下一页,未页的链接 + //下一页和未页的链接 if ($this->PageNo != $totalpage && $totalpage > 1) { - $nextpage .= "下一页\r\n"; - $endpage = "末页\r\n"; + $nextpage .= "
  • 下一页
  • \r\n"; + $endpage = "
  • 末页
  • \r\n"; } else { $endpage = "
  • 末页
  • \r\n"; } @@ -758,14 +760,14 @@ class FreeList $purl .= "?".$geturl; //获得上一页和下一页的链接 if ($this->PageNo != 1) { - $prepage .= "
  • 上一页\r\n"; + $prepage .= "
  • 上一页
  • \r\n"; $indexpage = "
  • 首页\r\n"; } else { $indexpage = "
  • 首页
  • \r\n"; } if ($this->PageNo != $totalpage && $totalpage > 1) { - $nextpage .= "
  • 下一页\r\n"; - $endpage = "
  • 末页\r\n"; + $nextpage .= "
  • 下一页
  • \r\n"; + $endpage = "
  • 末页
  • \r\n"; } else { $endpage = "
  • 末页
  • \r\n"; } diff --git a/src/system/archive/rssview.class.php b/src/system/archive/rssview.class.php index cbbbce5e..ce309fa4 100755 --- a/src/system/archive/rssview.class.php +++ b/src/system/archive/rssview.class.php @@ -192,7 +192,6 @@ class RssView if (is_array($dtp2->CTags)) { foreach ($dtp2->CTags as $k => $ctag) { if ($ctag->GetName() == 'array') { - //传递整个数组,在runphp模式中有特殊作用 $dtp2->Assign($k, $row); } else { diff --git a/src/system/archive/sglistview.class.php b/src/system/archive/sglistview.class.php index 417bc550..9329b1fb 100755 --- a/src/system/archive/sglistview.class.php +++ b/src/system/archive/sglistview.class.php @@ -710,7 +710,7 @@ class SgListView } else { $indexpage = "
  • 首页
  • \r\n"; } - //下一页,未页的链接 + //下一页和未页的链接 if ($this->PageNo != $totalpage && $totalpage > 1) { $nextpage .= "
  • 下一页
  • \r\n"; $endpage = "
  • 末页
  • \r\n";