pieforms-commit Mailing List for Pieforms
Status: Alpha
Brought to you by:
oracleshinoda
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(73) |
Dec
(83) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(16) |
Feb
(19) |
Mar
(12) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
(2) |
Oct
(1) |
Nov
(2) |
Dec
(45) |
2008 |
Jan
(20) |
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(7) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
(1) |
18
(30) |
19
(11) |
20
(13) |
21
(9) |
22
(3) |
23
(2) |
24
|
25
(1) |
26
|
27
|
28
(2) |
29
(1) |
30
|
|
|
From: <ora...@us...> - 2006-11-23 10:41:27
|
Revision: 69 http://svn.sourceforge.net/pieforms/?rev=69&view=rev Author: oracleshinoda Date: 2006-11-23 02:41:27 -0800 (Thu, 23 Nov 2006) Log Message: ----------- Implemented ignoring properly, unsetting the elements while going around the default setting loop wasn't working properly Modified Paths: -------------- pieforms-php5/trunk/src/pieform.php Modified: pieforms-php5/trunk/src/pieform.php =================================================================== --- pieforms-php5/trunk/src/pieform.php 2006-11-23 01:06:00 UTC (rev 68) +++ pieforms-php5/trunk/src/pieform.php 2006-11-23 10:41:27 UTC (rev 69) @@ -397,15 +397,28 @@ if (!is_array($data['elements']) || count($data['elements']) == 0) { throw new PieformException('Forms must have a list of elements'); } + + // Remove elements to ignore + foreach ($data['elements'] as $name => $element) { + if (isset($element['type']) && $element['type'] == 'fieldset') { + foreach ($element['elements'] as $subname => $subelement) { + if (!empty($subelement['ignore'])) { + unset ($data['elements'][$name]['elements'][$subname]); + } + } + } + else { + if (!empty($element['ignore'])) { + unset($data['elements'][$name]); + } + } + } + $this->elements = $data['elements']; // Set some attributes for all elements $autofocusadded = false; foreach ($this->elements as $name => &$element) { - if (!empty($element['ignore'])) { - unset($this->elements[$name]); - continue; - } // The name can be in the element itself. This is compatibility for the perl version if (isset($element['name'])) { $name = $element['name']; @@ -432,10 +445,6 @@ } if ($element['type'] == 'fieldset') { foreach ($element['elements'] as $subname => &$subelement) { - if (!empty($subelement['ignore'])) { - unset($element['elements'][$subname]); - continue; - } // The name can be in the element itself. This is compatibility for the perl version if (isset($subelement['name'])) { $subname = $subelement['name']; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ora...@us...> - 2006-11-23 01:06:00
|
Revision: 68 http://svn.sourceforge.net/pieforms/?rev=68&view=rev Author: oracleshinoda Date: 2006-11-22 17:06:00 -0800 (Wed, 22 Nov 2006) Log Message: ----------- Removed reference to undefined variable Modified Paths: -------------- pieforms-php5/trunk/src/pieform/elements/expiry.php Modified: pieforms-php5/trunk/src/pieform/elements/expiry.php =================================================================== --- pieforms-php5/trunk/src/pieform/elements/expiry.php 2006-11-22 20:54:03 UTC (rev 67) +++ pieforms-php5/trunk/src/pieform/elements/expiry.php 2006-11-23 01:06:00 UTC (rev 68) @@ -88,7 +88,7 @@ </script> EOJS; - return $numberinput . $uselect . $hidden . $script; + return $numberinput . $uselect . $script; } function pieform_render_expire_get_expiry_units() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |