1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

Updated Technical Wiki (markdown)

Ap.Muthu
2016-03-17 17:57:20 +00:00
parent 727ee113aa
commit 0142611a26

@@ -152,3 +152,27 @@ $field = Array
foreach ($row as $key => $val) {
if (isset($names[$key])) {
````
* Hide Auto-increment Primary Key in New Record Form
````
function fieldName($field, $order = 0) {
..
..
..
// Hide AutoInc Primary keys during Insert
if (isset($_GET['edit'])) {
$hidePKfields = Array(
Array('htable' => 'cheques', 'hfield' => 'ChqID')
, Array('htable' => 'chq_batches', 'hfield' => 'ORID')
);
foreach ($hidePKfields as $val) {
if ($_GET['edit'] == $val['htable'] && $field['field'] == $val['hfield'] && !isset($_GET['where'][$val['hfield']]))
return "";
}
}
..
..
..
return "";
}
````