PHP Generator Feature Demo
  • Themes
    • Default
    • Default compact
    • Cerulean
    • Cerulean compact
    • Cosmo
    • Cyborg
    • Darkly
    • Darkly compact
    • Facebook
    • Flatly
    • Journal
    • Lumen
    • Paper
    • Readable
    • Sandstone
    • Simplex
    • Slate
    • Slate compact
    • Spacelab
    • Superhero
    • Superhero compact
    • United
    • United compact
    • Yeti
    • Yeti compact
  • English
    • German
    • Brazilian
    • Czech
    • Danish
    • Spanish
    • Finnish
    • French
    • Hungarian
    • Italian
    • Dutch
    • Polish
    • Russian
    • Swedish
    • Slovak
    • Slovenian
    • Serbian
    • Turkish
    • Arabic
  • Learn more
    • PHP Generator Feature Demo
    • About this demo
    • Download project file for this demo
    • Check out other PHP Generator demos
    • NBA Database Demo
    • Security Demo
    • MySQL Schema Browser Demo
    • Learn more about our products
    • Try PHP Generator for free
    • SQL Maestro Group website
    • Follow us
    • Facebook
    • Twitter
    • YouTube
  • Recently added/updated
    • Grid Toolbar
    • Tabbed Forms
    • Stepped Area Chart
    • Candlestick Chart
    • Histogram Chart
    • Bubble Chart
    • Timeline Chart
    • Gantt Chart
    • Scatter Chart
    • Tree Map Chart
    • Export options
    • Invoice generation
    • Inline Button
    • HTML Wysiwyg
    • Watermarks
  • Data Grid
    • Table View
    • Card View
    • Autohiding Columns
    • Totals
    • Grid Header
    • Column Grouping
    • Record Comparison
    • Unicode Support
    • RSS
    • Custom Drawing
    • Custom Table Template
    • Custom Card Template
    • Custom Toolbar Template
    • Custom View Form
  • Grid Columns
    • Column Types
    • Text Truncating
    • Column Fixed Width
    • Formatting
    • Null Label
    • Hyperlinks
    • Html Display
    • Lookup Data View
    • Custom Rendering
  • Grid Options
    • Fixed Grid Width
    • Fixed Column Header
    • Bordered Table
    • Condensed Table
    • Line Numbers
    • Control Buttons Position
  • Data Sources
    • Table
    • View
    • Non-Updatable Query
    • Updatable Query
    • Updatable View
  • Master-Detail Views
    • Master/Detail Basics
    • Multiple Details
    • Nested Details
    • Card Mode Details
  • Data Input Forms
    • Separate Page
    • Modal Window
    • Inline Editing
    • Form Layouts
    • Tabbed Forms
    • Custom Separate Page
    • Custom Modal Dialog
    • Custom Inline Form
    • Wizard Form
    • Adding multiple records
    • Editors Overview
    • Validation
    • Client-side API
    • Dependent Lookups
    • On-the-Fly Adding
    • Quick Edit
    • Multi Edit
    • Custom Default Values
  • Editors
    • Text
    • Autocomplete
    • Text Area
    • HTML Wysiwyg
    • Spin & Range
    • Upload To Folder
    • Radio Group
    • Combobox
    • Dynamic Combobox
    • Cascading Combobox
    • Dynamic Cascading Combobox
    • Multiple Select
    • Checkbox Group
    • Common Properties
  • Data Filtering
    • Quick Filter
    • Filter Builder
    • Column Filter
    • Preliminary Filter
    • Selection Filters
    • Custom Filter - 1
    • Custom Filter - 2
  • Sorting
    • Sort By Click
    • Sort By Dialog
    • Default Sort Order
  • Partitioning
    • Range
    • List
    • Custom
  • Exporting & Printing
    • Grid
    • Single Record
    • Export Options
    • Custom Grid
    • Custom Single Record
    • User Defined Styles
  • Image Management
    • Image Galleries
    • Thumbnails
    • Linked Images
    • Multi Upload - 1
    • Multi Upload - 2
    • Watermarks
  • Charts
    • Pie Chart
    • Column Chart
    • Bar Chart
    • Line Chart
    • Area Chart
    • Geo Charts
    • Stepped Area
    • Candlestick
    • Histogram
    • Bubble
    • Timeline
    • Gantt
    • Scatter
    • Tree Map
    • Multiple Charts
    • Chart Placement
    • Customizing Charts
    • Dashboard
  • Many-to-Many Relations
    • Classic Junction Table
    • Handling Extra Columns
  • Fine-tuning & Tweaking
    • Custom Icons
    • Custom Theme
    • Custom Editor
    • Page Embedding
    • Ajax-based Validation
    • Color Themes
    • Barcodes Generation
    • Inline Button
    • Conditional Details
    • Using Ajax in Forms
  • Emailing
    • Basic Usage
    • Advanced Usage
  • Calculated Columns
    • Example - 1
    • Example - 2
  • Custom Templates
    • Grid View
    • Card View
    • Grid Toolbar
    • Single Record View
    • Separate Page Editing
    • Modal Dialog Editing
    • Inline Form Editing
    • Wizard Form
    • Custom Filter - 1
    • Custom Filter - 2
    • Export & Print: Data Grid
    • Invoice generation
  1. Data Input Forms
  2. Data Input Forms.Custom Form Layouts
    • Separate Page
    • Modal Window
    • Inline Editing
    • Tabbed Forms
    • Custom Separate Page
    • Custom Modal Dialog
    • Custom Inline Form
    • Wizard Form
    • Adding multiple records
    • Editors Overview
    • Validation
    • Client-side API
    • Dependent Lookups
    • On-the-Fly Adding
    • Quick Edit
    • Multi Edit
    • Custom Default Values

Data Input Forms.Custom Form Layouts

Page settings

Appearance

Here you can select the number of cards to be placed in a row for each of supported screen resolutions. Your current resolution is highlighted in this way.

Page size

Total record count: 21.

page(s).
Cancel Save changes
×

PHP Generator allows you to customize layouts for Edit, Insert, View and Multi-Edit forms with just a few lines of code. All you need to customize the layout for a form is to define the appropriate OnGetCustomFormLayout event handler.

You can group related input controls in a form as well as manage the location of the controls within the groups. Both horizontal and vertical forms are supported as well as all the editing modes (separate page, modal window, and inline editing).

Click Insert or any of Edit or View buttons to see the customized template in action. Click the button to get familiar with the event handler code.

Add new
Refresh
Export
  • Export to Pdf
  • Export to Excel
  • Export to Word
  • Export to Xml
  • Export to Csv
Print
  • Print current page
  • Print all pages
  • Clear
  • Selection filter
    • Show selected only
    • Show unselected only
    • Show all
  • Export
    • Export to Pdf
    • Export to Excel
    • Export to Word
    • Export to Xml
    • Export to Csv
  • Print
  • Update
        protected function doGetCustomFormLayout($mode, FixedKeysArray $columns, FormLayout $layout)
        {
            $layout->setMode(FormLayoutMode::VERTICAL);
            
            $commonGroup = $layout->addGroup('Common info', 5);
            $commonGroup->addRow()->addCol($columns['model_name']);
            $commonGroup->addRow()->addCol($columns['colors']);
            $commonGroup->addRow()->addCol($columns['release_year']);
            $commonGroup->addRow()->addCol($columns['release_month']);
            $photoGroup = $layout->addGroup('Photos', 7);
            $photoGroup->addRow()
                ->addCol($columns['photo_large'], 7)
                ->addCol($columns['photo_back'], 5);
            
            $dimensionGroup = $layout->addGroup('Dimensions');
            $dimensionGroup->addRow()
                ->addCol($columns['height'], 6)
                ->addCol($columns['length'], 6);
            $dimensionGroup->addRow()
                ->addCol($columns['width'], 6)
                ->addCol($columns['weight'], 6);
            
            
            $displayGroup = $layout->addGroup('Display');
            $displayGroup->addRow()
                ->addCol($columns['display_type'], 6)
                ->addCol($columns['display_size'], 6);
            $displayGroup->addRow()
                ->addCol($columns['display_resolution_x'], 6)
                ->addCol($columns['display_resolution_y'], 6);
            
            // Placing multiple groups in a row
            $hardwareGroup = $layout->addGroup('Hardware', 6);
            $hardwareGroup->addRow()->addCol($columns['chipset'], 12);
            $hardwareGroup->addRow()->addCol($columns['cpu'], 12);
            $hardwareGroup->addRow()->addCol($columns['gpu'], 12);
            
            $softwareGroup = $layout->addGroup('Software', 6);
            $softwareGroup->addRow()->addCol($columns['os_basic'], 12);
            $softwareGroup->addRow()->addCol($columns['os_upgradable'], 12);
            $softwareGroup->addRow()->addCol($columns['web_browser'], 12);
            
            // Placing 3 editors in a row
            $storageGroup = $layout->addGroup('Storage', 12);
            $storageGroup->addRow()
                ->addCol($columns['storage_min'], 4)
                ->addCol($columns['storage_max'], 4)
                ->addCol($columns['storage_external'], 4);
            
            $cameraGroup = $layout->addGroup('Camera', 12);
            $cameraGroup->addRow()
                ->addCol($columns['camera_resolution'], 4)
                ->addCol($columns['camera_video_max_x'], 4)
                ->addCol($columns['camera_video_max_y'], 4);
            
            
            $batteryGroup = $layout->addGroup('Battery', 12);
            $batteryGroup->addRow()
                ->addCol($columns['battery_type'], 6)
                ->addCol($columns['battery_standby_max_time'], 6);
            $batteryGroup->addRow()
                ->addCol($columns['battery_talk_max_time'], 6)
                ->addCol($columns['battery_music_play_max_time'], 6);
        }

 
Actions Model Name Release Year Display Size Colors Photo
Apple iPhone 12 Pro Max 2020 6.7 Gold,Silver,Graphite,Pacific Blue
Apple iPhone 12 Pro 2020 6.1 Gold,Silver,Graphite,Pacific Blue
Apple iPhone 12 2020 6.1 Black,Blue,Green,Red,White
Apple iPhone 12 mini 2020 5.4 Black,Blue,Green,Red,White
Apple iPhone SE (2020) 2020 4.7 Black,Red,White
Apple iPhone 11 Pro Max 2019 6.5 Gold,Midnight Green,Silver,Space Gray
Apple iPhone 11 Pro 2019 5.8 Gold,Midnight Green,Silver,Space Gray
Apple iPhone 11 2019 6.1 Black,Green,Purple,Red,Yellow,White
Apple iPhone XS Max 2018 6.5 Gold,Silver,Space Gray
Apple iPhone XS 2018 5.8 Gold,Silver,Space Gray
There are no records to display

Multiple Sort

Column Order
Sort by

Filter builder

  • «
  • 1
  • 2
  • 3
  • »

About this demo

This demo application contains 100+ pages and illustrates most of features provided by PHP Generator. Hope it will help you to create even more powerful websites for your users.

You can download the demo project from our website and run the demo on your webserver as described in readme.txt.

Download PHP Generator Free Trial

Legend
New Recently added or significantly updated pages.
Pro Pages illustrating features available only in the Professional edition of PHP Generator.

© 2002- SQL Maestro Group. Follow us:

Created with PHP Generator for MySQL. Want to learn more? Download the demo project!

Change your password

Change password for user ''

Passwords do not match. Please try again.

Close Change password