grid12 framework

Example forms

Each form below is a single, self-contained PHP file: a $config array plus one include. Open any of them to see grid12 running against the live demo database.

Core CRUD
Lookups · Formatting · Search
Supplier Payments
payments_form.php

The full-featured example: a supplier lookup, European number and date formatting, per-column search, sorting, pagination and CSV export.

Open the form →
Dark theme
Suppliers
suppliers_form.php

A shorter example with no lookups, demonstrating the built-in dark visual theme.

Open the form →
Reporting (Pro)
Pro · Inline grouping
Supplier Payments — Grouped Summary
payments_form_group.php

Same data, grouped by supplier with collapsible sections, a per-group subtotal and a grand total — the Pro-only summary report.

Open the form →
Master-Detail (Pro)
Pro · Two tables, one screen
Orders — Master-Detail
orders_master_detail.php

A master table (Orders) with a repeatable grid of child rows (Order Items) edited on the same screen — add/remove line items and save both in one transaction.

Open the form →
Column Options
hidden: true
Supplier Payments — Hidden Column
payments_form_hidden.php

The Comments column is hidden from the grid, the CSV export and the delete confirmation screen, while staying editable in the create/update forms.

Open the form →
read_only: true
Supplier Payments — Read-Only Field
payments_form_ro.php

The Payment Date column stays visible everywhere but can never be edited — enforced on the server, not just in the browser.

Open the form →
Computed Columns
type: computed
Products — Calculated Line Total
products_form.php

A virtual column with no database field of its own: Line Total is calculated as Unit Price × Quantity on the fly. Add, subtract, multiply or divide any 2+ numeric columns.

Open the form →
Rich Content
WYSIWYG · Navy theme
Notes
notes_form.php

A rich-text (HTML) column edited with the Jodit WYSIWYG editor and sanitized on the server, shown here with the navy visual theme.

Open the form →