标签:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//以下为ecstore filter条件所代表的含义
$FilterArray= array(
‘than‘=>‘ > ‘.$var,
‘lthan‘=>‘ < ‘.$var,
‘nequal‘=>‘ = \‘‘.$var.‘\‘‘,
‘noequal‘=>‘ <> \‘‘.$var.‘\‘‘,
‘tequal‘=>‘ = \‘‘.$var.‘\‘‘,
‘sthan‘=>‘ <= ‘.$var,
‘bthan‘=>‘ >= ‘.$var,
‘has‘=>‘ like \‘%‘.$var.‘%\‘‘,
‘head‘=>‘ like \‘‘.$var.‘%\‘‘,
‘foot‘=>‘ like \‘%‘.$var.‘\‘‘,
‘nohas‘=>‘ not like \‘%‘.$var.‘%\‘‘,
‘between‘=>‘ {field}>=‘.$var[0].‘ and ‘.‘ {field}<‘.$var[1],
‘in‘ =>" in (‘".implode("‘,‘",(array)$var)."‘) ",
‘notin‘ =>" not in (‘".implode("‘,‘",(array)$var)."‘) ",
);
|
标签:
原文地址:http://www.cnblogs.com/CHEUNGKAMING/p/4560301.html