mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Updated Technical Wiki (markdown)
@@ -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 "";
|
||||
}
|
||||
|
||||
````
|
||||
|
Reference in New Issue
Block a user