jqGrid PHP按日期过滤 - 今天&今天+30天?

时间:2012-02-10 21:06:51

标签: date jqgrid jqgrid-php

我正在使用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 )
));

0 个答案:

没有答案