0=Sunday....6=Saturday format, independent from the
visual display of the week. :-)
It uses the "firstdayofweek" string in every languaje pack
(defaults to 0-Sunday)
} else {
$strchecked = "";
}
- $check_names[] = "<input type=\"checkbox\" name=\"dayofweek_$i\" value=\"1\"$strchecked>";
+ //Calculate standard day of week (0=Sunday......6=Saturday)
+ //to store info in that exact order in DB
+ $stddayofweek = ($i+$firstdayofweek) % 7;
+ $check_names[] = "<input type=\"checkbox\" name=\"dayofweek_$stddayofweek\" value=\"1\"$strchecked>";
$i++;
}
$table->align = array("center","center","center","center","center","center","center");