[Pieforms-commit] SF.net SVN: pieforms: [289] pieforms-php5/trunk/src/pieform/renderers/table .php
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2008-02-26 03:28:16
|
Revision: 289 http://pieforms.svn.sourceforge.net/pieforms/?rev=289&view=rev Author: oracleshinoda Date: 2008-02-25 19:28:20 -0800 (Mon, 25 Feb 2008) Log Message: ----------- Allow the description line to be output as two cells rather than just one with a colspan if the user wants. Modified Paths: -------------- pieforms-php5/trunk/src/pieform/renderers/table.php Modified: pieforms-php5/trunk/src/pieform/renderers/table.php =================================================================== --- pieforms-php5/trunk/src/pieform/renderers/table.php 2008-01-30 02:33:29 UTC (rev 288) +++ pieforms-php5/trunk/src/pieform/renderers/table.php 2008-02-26 03:28:20 UTC (rev 289) @@ -80,7 +80,12 @@ // Description - optional description of the element, or other note that should be visible // on the form itself (without the user having to hover over contextual help if ((!$form->has_errors() || $form->get_property('showdescriptiononerror')) && !empty($element['description'])) { - $result .= "\t<tr>\n\t\t<td colspan=\"2\" class=\"description\">"; + if ($form->get_property('descriptionintwocells')) { + $result .= "\t<tr>\n\t\t<td></td><td class=\"description\">"; + } + else { + $result .= "\t<tr>\n\t\t<td colspan=\"2\" class=\"description\">"; + } $result .= $element['description']; $result .= "</td>\n\t</tr>\n"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |