23 |
array_push($search, array( |
array_push($search, array( |
24 |
"field" => ${"field_".$i}, |
"field" => ${"field_".$i}, |
25 |
"not" => ${"not_".$i}, |
"not" => ${"not_".$i}, |
26 |
"query" => MyEscape(${"query_".$i}), |
"query" => MyEscape(${"query_".$i}, true), |
27 |
"logic" => ${"logic_".$i}, |
"logic" => ${"logic_".$i}, |
28 |
"concat" => ${"concat_".$i}, |
"concat" => ${"concat_".$i}, |
29 |
"case" => ${"case_".$i} |
"case" => ${"case_".$i} |
51 |
} else { |
} else { |
52 |
global $field, $query; |
global $field, $query; |
53 |
$tp->assign("field", $field?$field:$def_field); |
$tp->assign("field", $field?$field:$def_field); |
54 |
$tp->assign("query", MyEscape($query)); |
$tp->assign("query", MyEscape($query, true)); |
55 |
} |
} |
56 |
if (!$stype) $stype = 0; |
if (!$stype) $stype = 0; |
57 |
$tp->assign("stype", $stype); |
$tp->assign("stype", $stype); |
117 |
$flds = array(); |
$flds = array(); |
118 |
while (list($k, $v) = each($fields)) { |
while (list($k, $v) = each($fields)) { |
119 |
array_push($flds, array( |
array_push($flds, array( |
120 |
"name" => MyEscape($k), |
"name" => MyEscape($k, true), |
121 |
"caption" => MyEscape($v["caption"]) |
"caption" => MyEscape($v["caption"]) |
122 |
)); |
)); |
123 |
} |
} |