* [story#69800,0.5h] finish custom search.

This commit is contained in:
qixinzhi
2024-12-06 16:58:23 +08:00
committed by 代婷婷
parent 99e06db2f0
commit 617612dcbc
2 changed files with 12 additions and 3 deletions
+4 -3
View File
@@ -13,7 +13,7 @@ set::zui();
$lowerType = strtolower($type);
include "zentaolist.{$lowerType}.html.php";
/* include "zentaolist.customsearch.html.php"; */
include "zentaolist.customsearch.html.php";
$isSetting = $view == 'setting';
@@ -39,7 +39,7 @@ formPanel
)
),
$fnGenerateFormRows(),
/* $fnGenerateCustomSearch(), */
$fnGenerateCustomSearch(),
to::footer
(
setClass('form-actions'),
@@ -51,7 +51,8 @@ formPanel
)
),
on::change('[name=product]', "changeProduct"),
on::click('#preview', "preview")
on::click('#preview', "preview"),
on::change('[name=condition]', "changeCondition")
);
$cols = array_values($cols);
+8
View File
@@ -1018,6 +1018,14 @@ class docZen extends doc
}
if(!isset($session['action'])) $session['action'] = '';
if(!isset($session['field']))
{
$session['andor'] = array('and');
$session['field'] = array('');
$session['operator'] = array('include');
$session['value'] = array('');
}
$idList = '';
if(isset($session['idList']))
{