fixes to defaultcalendar usage

This commit is contained in:
skeeter 2001-01-21 13:15:21 +00:00
parent d364cb446a
commit 3353064e3b
3 changed files with 6 additions and 3 deletions

View File

@ -16,7 +16,7 @@
$pref->change("calendar","weekstarts","Monday"); $pref->change("calendar","weekstarts","Monday");
$pref->change("calendar","workdaystarts","9"); $pref->change("calendar","workdaystarts","9");
$pref->change("calendar","workdayends","17"); $pref->change("calendar","workdayends","17");
$pref->change("calendar","defaultcalendar","index.php"); $pref->change("calendar","defaultcalendar","month.php");
$pref->change("calendar","defaultfilter","all"); $pref->change("calendar","defaultfilter","all");
$pref->change("calendar","mainscreen_showevents","Y"); $pref->change("calendar","mainscreen_showevents","Y");
?> ?>

View File

@ -22,6 +22,9 @@
$phpgw_info["flags"]["nofooter"] = True; $phpgw_info["flags"]["nofooter"] = True;
include("../header.inc.php"); include("../header.inc.php");
Header("Location: ".$phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"]."?".$QUERY_STRING); $newpage = $phpgw_info["user"]["preferences"]["calendar"]["defaultcalendar"];
if ($namepage=="index.php") $newpage = "month.php";
Header("Location: ".$newpage."?".$QUERY_STRING);
$phpgw->common->phpgw_exit(); $phpgw->common->phpgw_exit();
?> ?>

View File

@ -115,7 +115,7 @@
} }
?> ?>
<option value="year.php"<?php echo $selected["year.php"] . ">" . lang("Yearly"); ?></option> <option value="year.php"<?php echo $selected["year.php"] . ">" . lang("Yearly"); ?></option>
<option value="index.php"<?php echo $selected["month.php"] . ">" . lang("Monthly"); ?></option> <option value="month.php"<?php echo $selected["month.php"] . ">" . lang("Monthly"); ?></option>
<option value="week.php"<?php echo $selected["week.php"] . ">" . lang("Weekly"); ?></option> <option value="week.php"<?php echo $selected["week.php"] . ">" . lang("Weekly"); ?></option>
<option value="day.php"<?php echo $selected["day.php"] . ">" . lang("Daily"); ?></option> <option value="day.php"<?php echo $selected["day.php"] . ">" . lang("Daily"); ?></option>
</select> </select>