function makeFormFooter($main, $others = null) { if (!is_array($main)) { $main = array($main); } if (!empty($others) && !is_array($others)) { $others = array($others); } $mainButtons = new CDiv(); foreach ($main as $button) { $button->useJQueryStyle('main'); $mainButtons->addItem($button); } $othersButtons = new CDiv($others); $othersButtons->useJQueryStyle(); return new CDiv(new CDiv(array(empty($others) ? new CDiv($mainButtons, 'dt right') : new CDiv($mainButtons, 'dt floatleft right'), new CDiv(array($othersButtons), 'dd left')), 'formrow'), 'objectgroup footer min-width ui-widget-content ui-corner-all'); }
function makeFormFooter($main = null, $others = null) { if ($main) { $main = new CDiv($main); } $othersButtons = new CDiv($others); $othersButtons->useJQueryStyle(); return new CDiv(new CDiv(new CDiv(array(new CDiv($main, 'dt right'), new CDiv($othersButtons, 'dd left')), 'formrow'), 'formtable'), 'objectgroup footer ui-widget-content ui-corner-all'); }