newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Missing clause in online documentation code #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. see:
http://localhost/php-form-builder-class/documentation/index.php#Form-Elements-Da
te

<?php
/* addDateRange Function Declaration
public function addDateRange($label, $name, $value="", $additionalParams="") {}
*/

$form->addDateRange("My Date Range", "DateRange");
$form->addDateRange("My Prefilled Date Range", "DateRange", date("F j, Y", 
strtotime("-1 month")) . " - " . date("F j, Y"));
$form->addDateRange("My Date Range w/Custom Hint", "DateRange", "", 
array("hint" => "To select a date range, click here..."));
$form->addDateRange("My Date Range w/MySQL Formatting", "DateRange", "", 
array("jqueryOptions" => array(
    "dateFormat" => "yy-mm-dd"
)));
$form->addDateRange("My Date Range w/Multiple Months & Restricted Range", 
"DateRange", "", array("jqueryOptions" => array(
    "minDate" => "-60",
    "maxDate" => "+60"
<-- here are 3 closing clauses and semicolon missing
?>

Original issue reported on code.google.com by developm...@orca-services.ch on 24 Nov 2010 at 1:55

GoogleCodeExporter commented 8 years ago
Sorry the link should be:
http://localhost/php-form-builder-class/documentation/index.php#Form-Elements-Da
te-Range

Original comment by developm...@orca-services.ch on 24 Nov 2010 at 2:01

GoogleCodeExporter commented 8 years ago
Yep, right again.  Looks like a copy-and-paste error from the addDate section 
that also contained this same syntax issue.  This has been corrected in my 
local working copy and will be pushed out in the next version release.

Thanks again,
Andrew

Original comment by ajporterfield@gmail.com on 24 Nov 2010 at 4:15

GoogleCodeExporter commented 8 years ago

Original comment by ajporterfield@gmail.com on 24 Nov 2010 at 4:15