diff --git a/calendar/matrixselect.php b/calendar/matrixselect.php index b9ac184568..a0737ab7d7 100755 --- a/calendar/matrixselect.php +++ b/calendar/matrixselect.php @@ -49,7 +49,7 @@ $phpgw->template->set_block("matrix_query_begin","list","matrix_query_end","form_button"); $phpgw->template->set_var("matrix_action",lang("Daily Matrix View")); - $phpgw->template->set_var("action_url",$phpgw->link("timematrix.php")); + $phpgw->template->set_var("action_url",$phpgw->link("viewmatrix.php")); $phpgw->template->parse("out","matrix_query_begin"); @@ -63,7 +63,7 @@ $month_html = ""; + $str .= "\n"; + $str .= "\n"; + $str .= "\n"; + $phpgw->template->set_var("data",$str); + $phpgw->template->parse("output","list",True); + + $phpgw->template->set_var("field",lang("Participants")); $db2 = $phpgw->db; $db2->query("select account_id,account_lastname,account_firstname " diff --git a/calendar/templates/default/matrix_query.tpl b/calendar/templates/default/matrix_query.tpl index 44134426cd..320b82d6e3 100755 --- a/calendar/templates/default/matrix_query.tpl +++ b/calendar/templates/default/matrix_query.tpl @@ -3,7 +3,7 @@

{matrix_action}

-
+ diff --git a/calendar/timematrix.php b/calendar/viewmatrix.php similarity index 80% rename from calendar/timematrix.php rename to calendar/viewmatrix.php index 85caaad67a..18863bf097 100755 --- a/calendar/timematrix.php +++ b/calendar/viewmatrix.php @@ -38,10 +38,18 @@ $date = $thisyear.$thismonth.$thisday; - echo $phpgw->calendar->timematrix($phpgw->calendar->date_to_epoch($date),0,0,$participants); + switch($view) { + case "free/busy" : + echo $phpgw->calendar->timematrix($phpgw->calendar->date_to_epoch($date),0,0,$participants); + break; + case "weekly" : + echo $phpgw->calendar->display_large_week($thisday,$thismonth,$thisyear,true,$participants); + break; + } echo "
"; - echo "link("timematrix.php")."\" method=\"post\" name=\"matrixform\" target=\"timematrix\">"; + echo "link("viewmatrix.php")."\" method=\"post\" name=\"matrixform\" target=\"viewmatrix\">"; echo ""; + echo ""; for ($i=0;$i"; echo ""; diff --git a/setup/phpgw_en.lang b/setup/phpgw_en.lang index 88a5d92a92..a2aec122cc 100644 --- a/setup/phpgw_en.lang +++ b/setup/phpgw_en.lang @@ -146,6 +146,7 @@ folder email en Folder forum common en Forum forward email en Forward fr calendar en F +free/busy calendar en Free/Busy frequency calendar en Frequency fri calendar en Fri friday common en Friday