[Pieforms-commit] SF.net SVN: pieforms:[310] pieforms-php5/trunk/src/pieform.php
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2009-06-27 09:32:10
|
Revision: 310 http://pieforms.svn.sourceforge.net/pieforms/?rev=310&view=rev Author: oracleshinoda Date: 2009-06-27 09:32:08 +0000 (Sat, 27 Jun 2009) Log Message: ----------- Allow form tag to have user-defined classes set on it. Modified Paths: -------------- pieforms-php5/trunk/src/pieform.php Modified: pieforms-php5/trunk/src/pieform.php =================================================================== --- pieforms-php5/trunk/src/pieform.php 2009-06-13 06:54:06 UTC (rev 309) +++ pieforms-php5/trunk/src/pieform.php 2009-06-27 09:32:08 UTC (rev 310) @@ -529,6 +529,9 @@ if ($this->has_errors()) { $result .= ' error'; } + if (isset($this->data['class'])) { + $result .= ' ' . $this->data['class']; + } $result .= '"'; foreach (array('name', 'method', 'action') as $attribute) { $result .= ' ' . $attribute . '="' . $this->data[$attribute] . '"'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |