Update of /cvsroot/logicampus/logicampus/src/logicreate/lib
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv4932
Modified Files:
LC_form.php
Log Message:
Move the hidden fields so they don't break the table HTML.
Index: LC_form.php
===================================================================
RCS file: /cvsroot/logicampus/logicampus/src/logicreate/lib/LC_form.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** LC_form.php 8 Oct 2007 14:35:28 -0000 1.16
--- LC_form.php 8 Oct 2007 16:14:55 -0000 1.17
***************
*** 892,895 ****
--- 892,896 ----
# not sure the best way to handle it
+ $hiddenFieldsHtml = '';
$HTML = '<form action="'.$this->action.'" method="'.$this->method.'" enctype="'.$this->enctype.'">';
$HTML .= "\n";
***************
*** 966,970 ****
#}
! $HTML .= '<tr><td valign="'.$this->lvalign.'" class="'.$this->cssLeft.'">'.$title.'</td><td valign="'.$this->rvalign.'" class="'.$this->cssRight.'">'.$tmpForm.' '.$msg.'</td></tr>';
$HTML .= "\n";
unset($tmpForm);
--- 967,971 ----
#}
! $HTML .= '<tr>'."\n\t\t".'<td valign="'.$this->lvalign.'" class="'.$this->cssLeft.'">'.$title.'</td><td valign="'.$this->rvalign.'" class="'.$this->cssRight.'">'.$tmpForm.' '.$msg.'</td>'."\n".'</tr>'."\n\t";
$HTML .= "\n";
unset($tmpForm);
***************
*** 987,995 ****
#echo $func;
$func = $tmp.'ToHTML';
!
! $HTML .= $this->$func($v);
}
! $HTML .= '</table></form>';
if ($this->showRequiredMessage)
--- 988,999 ----
#echo $func;
$func = $tmp.'ToHTML';
! if ($v['type'] == 'hidden') {
! $hiddenFieldsHtml .= $this->$func($v);
! } else {
! $HTML .= $this->$func($v)."\n\t";
! }
}
! $HTML .= '</table>'.$hiddenFieldsHtml.'</form>';
if ($this->showRequiredMessage)
|