J
|
Jane 3/12/2007 |
Hi, function ListOnLoad() { global $strSQL; $today = getdate(); $mons=$today["mon"]+4; $newdata=$today["year"]."-".$mons."-".$today["mday"]; $_SESSION["new_date"] = $newdata; } |
M
|
matteor author 3/12/2007 |
Hi, you can calculate end date in the ListOnLoad event on the Events tab, save it in the $_SESSION variable and then use $_SESSION["new_date"] as default value on the "Edit as" settings dialog on the Visual Editor tab. Here is a sample code of the ListOnLoad event:
|