1
我正在使用此php代码来生成网格。如何从gqgrid获取滤镜数组
<?php
//ini_set("display_errors","1");
require_once 'grid/jq-config.php';
// include the jqGrid Class
require_once "grid/jqGrid.php";
// include the driver class
require_once "grid/jqGridArray.php";
// include the calendar
require_once "grid/jqCalendar.php";
// include the document class
require_once "lib/document.php";
// include heler.php which contain some helper functions
require_once "lib/helper.php";
// create the array connection
$conn = new jqGridArray();
// Create the jqGrid instance
$grid = new jqGridRender($conn);
echo $_REQUEST["filters"];
我想,当用户通过工具栏搜索采取由$ _REQUEST变量参数搜索和传递给我的功能,并返回新的结果。
echo $_REQUEST["filters"];
的
{\"groupOp\":\"AND\",\"rules\":[{\"field\":\"BatchNumber\",\"op\":\"bw\",\"data\":\"56\"},{\"field\":\"SenderCode\",\"op\":\"bw\",\"data\":\"string1\"},{\"field\":\"ReceiverCode\",\"op\":\"bw\",\"data\":\"string2\"}]}{"records":0,"page":0,"total":0,"rows":false}
结果我想要的结果是象
$filter = array("BatchNumber" => 56 ,
"SenderCode" => "string1",
"ReceiverCode" => "string2"
)
,也有,我想在他们和显示搜索在阵列像上面等领域。