What I am trying to do is use datepicker for multple date required in a single form. Here is my code:
$datepicker = new KoolDatePicker("datetimepicker"); //Create calendar object
$datepicker->scriptFolder = "KoolPHPSuite/KoolControls/KoolCalendar/";//Set scriptFolder
$datepicker->styleFolder="default";
$datepicker->DateFormat = "M jS, Y";
$datepicker->Value = $this->convert_date($cutoff); // converts the database stored format yyyymmdd to a human date format of Aug 27, 2015
$eodpicker = new KoolDatePicker("datetimepicker");
$eodpicker->scriptFolder = 'KoolPHPSuite/KoolControls/KoolCalendar/';
$eodpicker->styleFolder = 'default';
$eodpicker->DateFormat = "M jS, Y";
$eodpicker->Value = $this->convert_date($erDate);
//Change date and time format
$datepicker->Init();
$eodpicker->Init();
.......
<tr>
<td width = '50px'> </td>
<td align = 'right' valign = 'center'><b>Commodity: </b></td>
<td align = 'left' valign = 'center'><input type = 'text' name = 'commodity' value = '<?php echo $commodity; ?>' /></td>
<td align = 'right' valign = 'center'><b>Early Return Date: </b></td>
<td align = 'left' valign = 'center'><?php echo $eodpicker->Render(); ?></td>
<td align = 'right' valign = 'center'><b>Cutoff: </b></td>
<td align = 'left' valign = 'center'><?php echo $datepicker->Render();?></td>
</tr>
The form displays properly however when I select the eodpicker I see date for both of the datepickers highlighted, and then the original datepicker I am unable to access.... If anyone has any insite into this it would be greatly appreciated.