Problems displaying list from array
Posted: Fri Sep 24, 2010 3:37 pm
Work in progress, but all is paying off. This is one of the few problems that are left. Picture of problem is below, followed by suspected code.
Anyway I have took out ALL comments, except a few that I am not sure if should be there or not, more like different variables you could choose.
Took out alot of double spaces, and tried to go through and remove the stuff that is not applied to the problem at hand. Still over a 1000 lines of code. So I wont post that. However I am going to post these two snippets, since it seems to be directly involved. And if there is a fix I can try to apply to all of the ones similar to it.
/lib/forms.php line 5
/lib/forms.php lines 1108 - 1131
Now as far as numbers, like those for the dates and years, I cant seem to find a list defined like it was defined for months on line 5. Can those numbers be automated some how, if so how would that code look?
by the way, there is what appears to be a very big empty space, need to scroll all the way over to see it.
Anyway I have took out ALL comments, except a few that I am not sure if should be there or not, more like different variables you could choose.
Took out alot of double spaces, and tried to go through and remove the stuff that is not applied to the problem at hand. Still over a 1000 lines of code. So I wont post that. However I am going to post these two snippets, since it seems to be directly involved. And if there is a fix I can try to apply to all of the ones similar to it.
/lib/forms.php line 5
Code: Select all
$form_months = array (1 => "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December");
/lib/forms.php lines 1108 - 1131
Code: Select all
case "month":
if (($field["fields"]["month"]["empty"] == "true")) {
$months[0] = "--" ;
}
global $form_months;
if (is_array($months))
$formmonths = array_merge($months, $form_months);
else
$formmonths = $form_months;
$current_field .= $html->FormSelect(
$field["name"]."_month" ,
$formmonths,
$this->templates ,
"DateSelect",
$month_selected,
array() ,
array("DISABLED" => ($field["fields"]["month"]["editable"] == "false") ? "DISABLED" : "")
);
$current_field .= $val["separator"];
break;
by the way, there is what appears to be a very big empty space, need to scroll all the way over to see it.