1
저는이 PHP 코드를 사용하여 격자를 생성하고 있습니다. 사용자가 $ _REQUEST 변수에 의해 매개 변수 검색을 도구 모음으로 검색 내 함수에 전달하고 새로운 결과를 반환 할 때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"];
나는 원한다.
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"
)
처럼되고 싶어 나는 위와 같이 배열에 그들과 디스플레이에 검색하고자하는 다른 분야도 있습니다.