当前位置: 首页>>代码示例>>PHP>>正文


PHP GridConnector::set_options方法代码示例

本文整理汇总了PHP中GridConnector::set_options方法的典型用法代码示例。如果您正苦于以下问题:PHP GridConnector::set_options方法的具体用法?PHP GridConnector::set_options怎么用?PHP GridConnector::set_options使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GridConnector的用法示例。


在下文中一共展示了GridConnector::set_options方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GridConnector

<?php

require_once "../config.php";
$res = mysql_connect($mysql_server, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res);
$grid->dynamic_loading(100);
/*$filter1 = new OptionsConnector($res);
	$filter1->render_table("countries","item_id","item_id(value),item_nm(label)");
	$grid->set_options("item_nm",$filter1);*/
$filter1 = new OptionsConnector($res);
$filter1->render_table("countries", "item_id", "item_id(value),item_nm(label)");
$grid->set_options("item_nm", $filter1);
$grid->render_table("grid50000", "item_id", "item_nm,item_cd");
开发者ID:elsonvinicius,项目名称:framework,代码行数:15,代码来源:06_combo_connector.php

示例2: GridConnector

<?php

require_once "../config.php";
$res = mysql_connect($mysql_server, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res);
$grid->enable_log("temp.log", true);
$grid->dynamic_loading(100);
/*$filter1 = new OptionsConnector($res);
	$filter1->render_table("countries","item_id","item_id(value),item_nm(label)");
	$grid->set_options("item_nm",$filter1);*/
$grid->set_options("item_nm", array("1", "two", "3"));
$grid->set_options("item_cd", array("91" => "one", "75" => "two"));
$grid->sql->set_transaction_mode("record");
$grid->render_table("grid50", "item_id", "item_nm,item_cd");
开发者ID:quantrocket,项目名称:planlogiq,代码行数:16,代码来源:06a_combo_connector.php

示例3: change_filter

<?php

require_once "../config.php";
$res = mysql_connect($mysql_server, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res);
$grid->enable_log("temp.log", true);
$grid->dynamic_loading(100);
function change_filter($set)
{
    $ind = $set->index("item_ch");
    if ($ind !== false) {
        $set->rules[$ind]["value"] = $set->rules[$ind]["value"] == "checked" ? 1 : 0;
        print_r($set->rules[$ind]["value"]);
        die;
    }
}
$grid->event->attach("beforeFilter", "change_filter");
//$grid->set_options("item_nm",array("1","two","3"));
$grid->set_options("item_ch", array("checked" => true, "unchecked" => true));
$grid->render_table("countries", "item_id", "item_nm,item_cd,item_ch");
开发者ID:quantrocket,项目名称:planlogiq,代码行数:22,代码来源:05_select_filter_connector.php


注:本文中的GridConnector::set_options方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。