WIP Address BMD Export
This commit is contained in:
@@ -397,6 +397,35 @@ class AddressModel {
|
||||
$where .= " AND parent_id IS NULL";
|
||||
}
|
||||
}*/
|
||||
|
||||
if(array_key_exists("create>", $filter)) {
|
||||
$create = $filter['create>'];
|
||||
if(is_numeric($create)) {
|
||||
$where .= " AND Address.create > $create";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("create<", $filter)) {
|
||||
$create = $filter['create<'];
|
||||
if(is_numeric($create)) {
|
||||
$where .= " AND Address.create < $create";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("edit>", $filter)) {
|
||||
$edit = $filter['edit>'];
|
||||
if(is_numeric($edit)) {
|
||||
$where .= " AND Address.edit > $edit";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("edit<", $filter)) {
|
||||
$edit = $filter['edit<'];
|
||||
if(is_numeric($edit)) {
|
||||
$where .= " AND Address.edit < $edit";
|
||||
}
|
||||
}
|
||||
|
||||
//var_dump($filter, $where);exit;
|
||||
return $where;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user