Q: "Tableform" with checkboxes in front of every line

From: Date: Sun, 20 Feb 2005 19:15:39 +0000
Subject: Q: "Tableform" with checkboxes in front of every line
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17584@lists.php.net to get a copy of this message
Hello, i need a explaination to create following: 1. form should look like a table 2. a checkbox in front of every line 3. one checkbox to check all boxes 4. two buttons "submit" & "abort" My problem is that with this source ----- $form =& new HTML_QuickForm('myForm'); foreach($data AS $x) { $form->addElement('checkbox', 'is_installed'); $form->addElement('hidden', 'is_installed', $x['ID']); $form->addElement('static', 'hostname', ' ', $x['hostname']); $form->addElement('static', 'herst', ' ', $x['herst_bez_lang']); $form->addElement('static', 'bez', ' ', $x['bez']); $form->addElement('static', 'typ', ' ', $x['typ_bez_lang']); $form->addElement('static', 'snr', ' ', $x['snr']); $form->addElement('static', 'invnr', ' ', $x['invnr']); } ----- $form->display(); output works with all datasets, but looks :(( with SmartyRenderer only the hidden and the last will be shown, because Smartyrenderer overwrites objectnames, but defaultrenderer not How to solve that? Thx for help MfG Thomas

« previous php.pear.general (#17584) next »