Login Retreive lost passwordRegister
Search

Forum Index / General / Empty table in Fieldset

[ This topic is solved ]

  xymod 27 March 10 / 11:40  
Hi
Using:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$form->setMask("<label for='%name%'>%title% %seperator%</label> \n %field% %help% \n %error%\n\n", true);
// datefield
$form -> useTable(false);
$form -> borderStart("Browser");
....
$form -> borderStop();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This seems to add an empty table at before the </fieldset> tag.
Do I need to modify the config file to remove all table markup manually?

  Johan Wiegel (Admin) 27 March 10 / 11:51  
Changed at 27 March 10 / 12:01
Checkout the config line 71 in the current version:

<?php
// When borderStart() and borderEnd() are used, this fieldset is inserted
fh_conf('FH_FIELDSET_MASK',
  
"  <tr>\n".
  
"    <td valign='top' colspan='3'>\n".
  
"      <br />\n".
  
"      <fieldset id='%name%' %extra%>\n".
  
"      <legend>%caption%</legend>\n".
  
"      <!-- content of fieldset %name%  -->\n".
  
"      <table cellspacing='0' cellpadding='3' id='%name%'>\n".
  
"        %content%\n".
  
"      </table>\n".
  
"      <!-- end of fieldset %name% -->\n".
  
"      </fieldset>\n".
  
"    </td>\n".
  
"  </tr>\n"
);
?>


you can change the config or use following code in you script:

<?php
define
('FH_FIELDSET_MASK',
  
"      <fieldset id='%name%' %extra%>\n".
  
"      <legend>%caption%</legend>\n".
  
"      <!-- content of fieldset %name%  -->\n".
  
"        %content%\n".
  
"      <!-- end of fieldset %name% -->\n".
  
"      </fieldset>\n"
);
?>

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license