Re: PEAR:HTML_QuickForm

From: Date: Fri, 26 Sep 2003 14:25:02 +0000
Subject: Re: PEAR:HTML_QuickForm
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8057@lists.php.net to get a copy of this message
Dan, I made some changes to mine, line 805-810 are shown.
    function display($class='table')
    {
        $arrname = 'HTTP_'.strtoupper($this->method).'_VARS';
        $arr = &$GLOBALS[$arrname];
        $this->start();
        print "<table class='$class'>\n";
You could do something similiar if you want. For instance,
    function display($class='table', $cellpadding='2', $cellspacing='2')
    {
        $arrname = 'HTTP_'.strtoupper($this->method).'_VARS';
        $arr = &$GLOBALS[$arrname];
        $this->start();
        print "<table class='$class' cellpadding='$cellpadding' cellspacing='$cellspacing'>\n";
And then use this to set it:
    $form->display('h5',0,0);
Good luck! Steve Daniel Demacek wrote:
Hi, Thanks for previous reply. One more question, when using '$form = new HTML_QuickForm' and addElement(), I noticed that <table is automatically generated now, how would I specify that I want table with cellpadding="2" ? Or how would I insert an empty row? (<tr><td colspan="x">&nbsp;</td></tr>) ? Thanks, Dan.


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