The fastest easiest way to get it right.

htmlMacroGridWithData

NAME

htmlMacroGridWithData

FUNCTION

The PHP function htmlMacroGridWithData is a shortcut that creates a grid for editing existing data. The grid does not contain any buttons for [New], [Save], etc., it contains inputs that save immediately when the user changes a value.

In standard usage, you execute a query using SQL_AllRows, then call this macro to set up a grid allowing the user to edit the data.

This macro assumes the grid is the only element on the page. It will be high enough to leave space for an H1 above it and and blank space below it. It will be shifted about 1/3 across the screen horizontally.

INPUTS

array $dd - The data dictionary of the table being edited mixed $cols - comma-separated list of columns, or array of columns array $rows - an array of row arrays. The skey column must be included.

RETURNS

androHtml GRID object with inputs that save each value as the user changes them. Returns a free-standing HTML object, use addChild() to add it into an existing HTML object.

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2