From 52d4757d87550a7a83616cc456f52f23b275de17 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 25 Nov 2000 20:07:22 +0000 Subject: [PATCH] minor fixes - refresh button on timematrix screen --- calendar/matrixselect.php | 8 ++++++-- calendar/templates/default/matrix_query.tpl | 4 ++-- calendar/timematrix.php | 9 +++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/calendar/matrixselect.php b/calendar/matrixselect.php index c11bd781d1..b9ac184568 100755 --- a/calendar/matrixselect.php +++ b/calendar/matrixselect.php @@ -48,7 +48,6 @@ $phpgw->template->set_block("matrix_query_begin","list","matrix_query_end","form_button"); -// $phpgw->template->set_var("bg_color",$phpgw_info["theme"]["bg_text"]); $phpgw->template->set_var("matrix_action",lang("Daily Matrix View")); $phpgw->template->set_var("action_url",$phpgw->link("timematrix.php")); @@ -106,7 +105,12 @@ $phpgw->template->set_var("data",$str); $phpgw->template->parse("output","list",True); - $phpgw->template->set_var("submit_button",lang("Submit")); + $phpgw->template->set_var("action_url_button",""); + $phpgw->template->set_var("action_text_button",lang("Submit")); + $phpgw->template->set_var("action_confirm_button","onClick=\"document.matrixform.submit();\""); + + $phpgw->template->parse("submit_button","form_button"); + $phpgw->template->set_var("action_url_button",""); $phpgw->template->set_var("action_text_button",lang("Cancel")); diff --git a/calendar/templates/default/matrix_query.tpl b/calendar/templates/default/matrix_query.tpl index e1554269f0..44134426cd 100755 --- a/calendar/templates/default/matrix_query.tpl +++ b/calendar/templates/default/matrix_query.tpl @@ -3,7 +3,7 @@

{matrix_action}

-
+ @@ -11,8 +11,8 @@
-
+{submit_button} {cancel_button}
diff --git a/calendar/timematrix.php b/calendar/timematrix.php index 191522758f..85caaad67a 100755 --- a/calendar/timematrix.php +++ b/calendar/timematrix.php @@ -39,5 +39,14 @@ $date = $thisyear.$thismonth.$thisday; echo $phpgw->calendar->timematrix($phpgw->calendar->date_to_epoch($date),0,0,$participants); + echo "
"; + echo "
link("timematrix.php")."\" method=\"post\" name=\"matrixform\" target=\"timematrix\">"; + echo ""; + for ($i=0;$i"; + echo ""; + echo ""; + echo "
"; + $phpgw->common->phpgw_footer(); ?>