Technical Documentation

IDCategoryReq.Element Action
203stringno$zz['conditions'][n]['scope'] * record: with 'having' or 'where'; add['sql'], add['key_field_name'] * query: with 'sql' and 'key_field_name' * value: with 'sql' and 'field_name' * access: with 'function' and custom fields * upload (thought of, not yet implemented) * where: with 'field_name', triggers if a WHERE is set in the query for this field_name (shortcut in fields definition possible) * multi: if script is called via zzform_multi() * subrecord: with subrecord and where * noid: if an ID is so far not set (add before insert) * editing: checks where and POST value for a given field_name and if the adjoining query returns true, the condition is met (useful for adding/changing records, where a condition depends on a field value)Show
208string: SQLno$zz['conditions'][n]['sql'] Show
209string: fieldno$zz['conditions'][n]['key_field_name'] Show
943integerno$zz['conditions'][n]['subrecord'] index of subrecord in table definition this condition can be applied toShow
205string: SQLno$zz['conditions'][n]['where'] Show
948booleanno$zz['dont_show_h1'] if set to true, h1 will not be shownShow
235array: pathno$zz['dynamic_referer'] referer which links back to previous page, overwrites $zz_conf['referer'] and must be array with field1, string1 etc.

Relations: $zz['fields'][n]['path']; $zz_conf['referer']

Show
242stringno$zz['extra_action'] action to be performed after or before insert, update, delete array values: `before_update`, `before_insert`, `before_delete`, `after_update`, `after_insert`, `after_delete`, `upload` value: file to be included without ending ".inc.php"; alternatively this might also be the name of an existing function if you do insert/update/delete queries, you might want to add them to the logging table with zz_log_sql($sql, $user, $record_id); ($sql being the query, $user the username)

Relations: ACTION

Show
10arrayyes$zz['fields'][n] Description of all table fields which shall be shown to edit a record or in list display (array). 'n' is a number and may be chosen freely (no order required). First field definition must be PRIMARY_KEY For the display order in form and list view, the order in the code is important, not the order of the numbersShow
354stringno$zz['fields'][n]['access'] access on record basis `show`: makes a subrecord not editable, just viewable

Relations: $zz['access']

Show
983booleanno$zz['fields'][n]['add_details_destination'] paste input of main form to this field if a detail record is added via 'add_details'

Relations: $zz['fields'][n]['add_details']

Show
420stringno$zz['fields'][n]['add_details'] add detail records in different table, attention: current input will not be saved. Field gets ID #zz_add_details_x_y_z where x is table no [0...n], y is for subtable no [0 if main table, else 0...n] z is field number in zz-array

Relations: select

Show
437string: HTMLno$zz['fields'][n]['add_details_target'] HTML: target attribute for add_details link (target="")Show
866booleanno$zz['fields'][n]['always_check_select'] always perform check select, even if select/option-elements are sent with the formShow
409stringno$zz['fields'][n]['auto_value'] increment | ... // 1 will be added and inserted in 'default'

Relations: number

Show
430arrayno$zz['fields'][n]['calculation_fields'] fields which shall be used for calculation

Relations: calculated

Show
431stringno$zz['fields'][n]['calculation'] hours | sum (only supported modes)

Relations: calculated

Show
919stringno$zz['fields'][n]['character_set'] Character sets for search fields (if different collations among the database are used and table name is an alias); used for checking search query partsShow
199string: HTMLno$zz['fields'][n]['class_add'] class name that will be shown if a subrecord will be added

Relations: subtable

Show
176string: HTMLno$zz['fields'][n]['class'] class="" (some classes will be added by zzform, e. g. idrow, ...)Show

Export (CSV Excel)

348 records total

in