-
-
Save simonegrid/81d929c1c34c36be426a193007ddfedd to your computer and use it in GitHub Desktop.
gridphp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$col = array(); | |
$col["title"] = "Targa"; | |
$col["name"] = "id_targa"; | |
$col["dbname"] = "id_targa"; | |
$col["width"] = "20"; | |
$col["edittype"] = "select"; | |
$str = $g->get_dropdown_values("select id as k, targa as v from veicoli order by targa"); | |
$col["editoptions"] = array( | |
"value"=>":;".$str, | |
"onload" => array( "sql"=>"SELECT id as k, targa as v FROM veicoli WHERE id='{id_targa}' ORDER BY targa", | |
"update_field" => "id_targa" ) | |
); | |
$col["editable"] = true; | |
$col["formatter"] = "select"; | |
$col["export"] = false; | |
$col["stype"] = "select"; // enable dropdown search | |
$col["searchoptions"] = array("value" => ":;".$str); | |
$cols[] = $col; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment