participants);$i++)
@@ -1737,21 +1656,21 @@ class calendar extends calendar_
'data' => $phpgw->common->grab_owner_name($event->owner)
);
$p->set_var($var);
- $p->parse('output','list',True);
+ $p->parse('row','list',True);
$var = Array(
'field' => lang('Updated'),
'data' => $phpgw->common->show_date($event->mdatetime)
);
$p->set_var($var);
- $p->parse('output','list',True);
+ $p->parse('row','list',True);
$var = Array(
'field' => lang('Private'),
'data' => $event->public==True?'False':'True'
);
$p->set_var($var);
- $p->parse('output','list',True);
+ $p->parse('row','list',True);
if($event->groups[0])
{
@@ -1770,7 +1689,7 @@ class calendar extends calendar_
'data' => $cal_grps
);
$p->set_var($var);
- $p->parse('output','list',True);
+ $p->parse('row','list',True);
}
$str = '';
@@ -1801,7 +1720,7 @@ class calendar extends calendar_
'data' => $str
);
$p->set_var($var);
- $p->parse('output','list',True);
+ $p->parse('row','list',True);
// Repeated Events
$rpt_type = Array(
@@ -1875,7 +1794,7 @@ class calendar extends calendar_
}
if($event->recur_interval)
{
- $str .= lang('frequency').': '.$event->recur_interval;
+ $str .= lang('Interval').': '.$event->recur_interval;
}
$str .= ')';
@@ -1884,10 +1803,10 @@ class calendar extends calendar_
'data' => $str
);
$p->set_var($var);
- $p->parse('output','list',True);
+ $p->parse('row','list',True);
}
- return $p->finish($p->parse('out','view_end'));
+ return $p->fp('out','view_event');
}
function get_response()
diff --git a/calendar/templates/default/day_cal.tpl b/calendar/templates/default/day_cal.tpl
index a71e562fa1..4582cd7f85 100755
--- a/calendar/templates/default/day_cal.tpl
+++ b/calendar/templates/default/day_cal.tpl
@@ -1,10 +1,10 @@
-
+
-
+
+
+ {item}
+
+
+
+ {event} |
+
+
+ {open_link}{time}{close_link} |
+
diff --git a/calendar/templates/default/day_row.tpl b/calendar/templates/default/day_row.tpl
deleted file mode 100755
index 729c1c6535..0000000000
--- a/calendar/templates/default/day_row.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
- {event} |
- {open_link}{time}{close_link} |
-
-
diff --git a/calendar/templates/default/day_row_event.tpl b/calendar/templates/default/day_row_event.tpl
deleted file mode 100755
index f0f8c7023b..0000000000
--- a/calendar/templates/default/day_row_event.tpl
+++ /dev/null
@@ -1,3 +0,0 @@
-
- {event} |
-
diff --git a/calendar/templates/default/day_row_time.tpl b/calendar/templates/default/day_row_time.tpl
deleted file mode 100755
index 7e1142f88c..0000000000
--- a/calendar/templates/default/day_row_time.tpl
+++ /dev/null
@@ -1,3 +0,0 @@
-
- {open_link}{time}{close_link} |
|
-
diff --git a/calendar/templates/default/head.tpl b/calendar/templates/default/head.tpl
index bb9cc2d59c..95ae38f434 100755
--- a/calendar/templates/default/head.tpl
+++ b/calendar/templates/default/head.tpl
@@ -1,6 +1,10 @@
+
-
+
+
+{str}
+
diff --git a/calendar/templates/default/head_col.tpl b/calendar/templates/default/head_col.tpl
deleted file mode 100755
index 7e562e4a89..0000000000
--- a/calendar/templates/default/head_col.tpl
+++ /dev/null
@@ -1,2 +0,0 @@
-
-{str}
diff --git a/calendar/templates/default/header.inc.php b/calendar/templates/default/header.inc.php
index 60c59c1962..eeee49f371 100755
--- a/calendar/templates/default/header.inc.php
+++ b/calendar/templates/default/header.inc.php
@@ -25,12 +25,13 @@
$tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('calendar'));
$tpl->set_unknowns('remove');
$templates = Array(
- 'head' => 'head.tpl',
- 'head_col' => 'head_col.tpl',
+ 'head_tpl' => 'head.tpl',
'form_button_dropdown' => 'form_button_dropdown.tpl',
'form_button_script' => 'form_button_script.tpl'
);
$tpl->set_file($templates);
+ $tpl->set_block('head_tpl','head','head');
+ $tpl->set_block('head_tpl','head_col','head_col');
$tpl->set_block('form_button_script','form_button');
$tpl->set_var('cols',$cols);
diff --git a/calendar/templates/default/images/high.gif b/calendar/templates/default/images/high.gif
index 933250dd4e..2e69c1748c 100755
Binary files a/calendar/templates/default/images/high.gif and b/calendar/templates/default/images/high.gif differ
diff --git a/calendar/templates/default/link_pict.tpl b/calendar/templates/default/link_pict.tpl
index d193a3d785..48dc9c3461 100755
--- a/calendar/templates/default/link_pict.tpl
+++ b/calendar/templates/default/link_pict.tpl
@@ -1,4 +1,16 @@
-
- {picture}
-
+
+{picture}
+
+
+
+
+
+
+
+
+ {text}
+
+
+
+
diff --git a/calendar/templates/default/mini_cal.tpl b/calendar/templates/default/mini_cal.tpl
index 0f998e8a4d..d90e1df8a0 100755
--- a/calendar/templates/default/mini_cal.tpl
+++ b/calendar/templates/default/mini_cal.tpl
@@ -1,6 +1,5 @@
-
-
+
{month} |
{prevmonth} {nextmonth} |
@@ -37,11 +36,17 @@
|
-
-
+
+
{daynames} {display_monthweek}
|
-
+
+ |
{monthweek_day}
+
+
+
+ {dayname} |
+
diff --git a/calendar/templates/default/month_day.tpl b/calendar/templates/default/month_day.tpl
index 231edc8af3..cec77e278c 100755
--- a/calendar/templates/default/month_day.tpl
+++ b/calendar/templates/default/month_day.tpl
@@ -1,3 +1,18 @@
+
+
+
+
[ {day_number} ]{new_event_link}
-
+ {daily_events}
+
+
+
+{events}
+
+
+
+{day_events}
+
diff --git a/calendar/templates/default/month_header.tpl b/calendar/templates/default/month_header.tpl
index 996b81916d..2d39092c05 100755
--- a/calendar/templates/default/month_header.tpl
+++ b/calendar/templates/default/month_header.tpl
@@ -1,3 +1,14 @@
-
+
+
{column_header}
+
+
+ {col_title} |
+
+
+
+{column_data}
+ |
+
+
diff --git a/calendar/templates/default/pict.tpl b/calendar/templates/default/pict.tpl
deleted file mode 100755
index b4bf4f1058..0000000000
--- a/calendar/templates/default/pict.tpl
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/calendar/templates/default/view.tpl b/calendar/templates/default/view.tpl
index 561242f8c5..2978666e5f 100755
--- a/calendar/templates/default/view.tpl
+++ b/calendar/templates/default/view.tpl
@@ -1,19 +1,19 @@
-
+
-
-
- {name}
-
-
-
+
+
+ {name}
+
+
+
-
-
-
+
+
+
+ {field}: |
+ {data} |
+
+
diff --git a/calendar/templates/idsociety/header.inc.php b/calendar/templates/idsociety/header.inc.php
index 60c59c1962..eeee49f371 100755
--- a/calendar/templates/idsociety/header.inc.php
+++ b/calendar/templates/idsociety/header.inc.php
@@ -25,12 +25,13 @@
$tpl = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('calendar'));
$tpl->set_unknowns('remove');
$templates = Array(
- 'head' => 'head.tpl',
- 'head_col' => 'head_col.tpl',
+ 'head_tpl' => 'head.tpl',
'form_button_dropdown' => 'form_button_dropdown.tpl',
'form_button_script' => 'form_button_script.tpl'
);
$tpl->set_file($templates);
+ $tpl->set_block('head_tpl','head','head');
+ $tpl->set_block('head_tpl','head_col','head_col');
$tpl->set_block('form_button_script','form_button');
$tpl->set_var('cols',$cols);
diff --git a/calendar/templates/idsociety/images/high.gif b/calendar/templates/idsociety/images/high.gif
index 933250dd4e..2e69c1748c 100755
Binary files a/calendar/templates/idsociety/images/high.gif and b/calendar/templates/idsociety/images/high.gif differ