我正在使用 JqGrid PHP。
这行得通---但是我如何用今天代替第一个“2012 年 2 月 10 日”和今天 +30 天代替第二个日期?
$arr = <<< FILTERDATE
{
"groupOp":"AND",
"rules":[
{"field":"ExpDate","op":"ge","data": "02/10/2012"},
{"field":"ExpDate","op":"le","data": "03/10/2012"}
]
}
FILTERDATE;
$grid->setGridOptions(array(
"caption"=>"NATDA Members Expiring in the Next 30 Days",
"rownumbers"=>true,
"rownumWidth"=>35,
"sortname"=>"ExpDate",
"autowidth"=> true,
"multiselect"=>true,
"hoverrows"=>true,
"scroll"=>1,
"search"=>true,
"postData"=>array( "filters"=> $arr )
));