The fastest easiest way to get it right.

addTRInput

NAME

androHtml.addTRInput

FUNCTION

The PHP method androHtml.addInput adds a TR and two TD elements to a TABLE. The left side has class "x6Caption" and contains the caption/label for the field. The right side contains an input for the field and as class 'x6Input'.

INPUTS

array $dd - the table's complete data dictionary string $column - name of the database column (field)

SOURCE

function addTrInput(&$dd,$column,$options=array()) {
    # something we need for b/w compatibility that is
    # easier to declare and ignore than it is to
    # try to get rid of. (Also, getting rid of it will
    # break some of my older apps).
    $tabLoop=array();
    
    $tr = $this->inputsTable->h('tr');
    $td = $tr->h('td',$dd['flat'][$column]['description']);
    $td->addClass('x6Caption');
    
    $input=input($dd['flat'][$column],$tabLoop,$options);
    if(!$this->firstFocus) {
        $input->hp['x6firstFocus'] = 'Y';
        $this->firstFocus = true;
    }
    $td = $tr->h('td');
    $td->setHtml($input->bufferedRender());
    $td->addClass('x6Input');
    
}

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