Fixed preferences for calendar app

This commit is contained in:
skeeter 2000-10-17 01:40:13 +00:00
parent 21ff215242
commit e1c60e9daf
3 changed files with 10 additions and 8 deletions

View File

@ -554,8 +554,8 @@
$phpgw->db->query($sql);
$hour_arr = Array();
$first_hour = ($phpgw_info["user"]["preferences"]["common"]["workdaystarts"] + 1);
$last_hour = ($phpgw_info["user"]["preferences"]["common"]["workdayends"] + 1);
$first_hour = ($phpgw_info["user"]["preferences"]["calendar"]["workdaystarts"] + 1);
$last_hour = ($phpgw_info["user"]["preferences"]["calendar"]["workdayends"] + 1);
$rowspan_arr = Array();

View File

@ -145,10 +145,10 @@
print_date_entries($date,$friendly,$phpgw_info["user"]["sessionid"]);
$thirsday=$i+24*3600*4;
if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "Sunday" && $j == 0) {
if ($phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"] == "Sunday" && $j == 0) {
echo "<font size=\"-2\"><a href=\"".$phpgw->link("week.php","date=".date("Ymd",$date))."\">week " .(int)((date("z",$thirsday)+7)/7) . "</a></font>";
}
if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "Monday" && $j == 1) {
if ($phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"] == "Monday" && $j == 1) {
echo "<font size=\"-2\"><a href=\"".$phpgw->link("week.php","date=" . date("Ymd",$date)) . "\">week " . (int)((date("z",$thirsday)+7)/7) . "</a></font>";
}

View File

@ -76,9 +76,11 @@
<TABLE BORDER=0 WIDTH=100%>
<TR>
<?php if (! $friendly) { ?>
<TD ALIGN="left"><A HREF="week.php?sessionid=<?php echo $phpgw_info["user"]["sessionid"]; ?>&year=<?php echo $prevyear;?>&month=<?php echo $prevmonth;?>&day=<?php echo $prevday;?>">&lt;&lt;</A></TD>
<?php } ?>
<?php
if (! $friendly) {
echo "<td align=\"left\"><a href=\"".$phpgw->link("week.php","year=$prevyear&month=$prevmonth&day=$prevday")."\">&lt;&lt;</a></td>";
}
?>
<TD ALIGN="middle"><FONT SIZE="+2" COLOR="<?php echo $H2COLOR;?>"><B>
<?php
if (date("m", $sun) == date("m", $sat)) {
@ -144,7 +146,7 @@
echo "<TD VALIGN=\"top\" WIDTH=75 HEIGHT=75 ID=\"tablecell\"";
if (date("Ymd", $date) == date("Ymd", $today))
echo "BGCOLOR=\"".$phpgw_info["theme"][cal_today]."\">";
echo "BGCOLOR=\"".$phpgw_info["theme"]["cal_today"]."\">";
else
echo "BGCOLOR=\"$CELLBG\">";