91豆麻精品91久久久久久,中文在线资源,国产精品女视频,yw.139尤物在线精品视频

?
  歡迎訪問(wèn)全國(guó)企業(yè)網(wǎng)站設(shè)計(jì)NO.1網(wǎng)站開發(fā)商平臺(tái) 付款方式
主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > 織夢(mèng)搜索指定多個(gè)欄目的文檔

織夢(mèng)搜索指定多個(gè)欄目的文檔

POST TIME:2020-10-09

在搜索框表單里加個(gè)typeid提交過(guò)去

1
2
3
<form name="formsearch" action="/plus/search.php">
<input type="hidden" name="typeid" value="1,2,3">
</form>

在/plus/search.php 找到

$typeid = (isset($typeid) && is_numeric($typeid)) ? $typeid : 0;

注銷或者刪除它

繼續(xù)找到

$typeid = intval($typeid);

注銷或者刪除它

最后打開 \include\arc.searchview.class.php 找到

$ksqls[] = " typeid IN (".GetSonIds($this->TypeID).") ";

改成

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//指定了多個(gè)欄目時(shí)
if( preg_match('#,#', $this->TypeID) )
{
    $typeids = explode(',', $this->TypeID);
    foreach($typeids as $ttid) {
        $typeidss[] = GetSonIds($ttid);
    }
    $typeidStr = join(',', $typeidss);
    $typeidss = explode(',', $typeidStr);
    $typeidssok = array_unique($typeidss);
    $typeid = join(',', $typeidssok);
    $ksqls[] = " arc.typeid IN ($typeid) ";
}
else
{
    $ksqls[] = " arc.typeid IN (".GetSonIds($this->TypeID).") ";
}

完成


? 主站蜘蛛池模板: 鹤壁市| 眉山市| 共和县| 且末县| 岳西县| 中江县| 宁德市| 永州市| 云林县| 城口县| 称多县| 易门县| 铁岭县| 师宗县| 庄浪县| 河北省| 芮城县| 胶南市| 会昌县| 新化县| 南昌市| 隆尧县| 新竹县| 贵德县| 蓝田县| 江陵县| 崇义县| 鄂托克旗| 元朗区| 拜城县| 会昌县| 罗田县| 彰武县| 甘德县| 成安县| 景洪市| 儋州市| 金阳县| 来凤县| 新野县| 长宁区|