我正在使用JqGrid PHP。
这是有效的 - 但是我如何用今天代替第一个“02/10/2012”和今天+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 )
));