-
+ | onclick="javascript:location.href='@items.add_url@';">
-
+ | onclick="javascript:location.href='@items.add_url@';">
- @items.day_number@
+ @items.day_number@@items.day_number@
Index: openacs-4/packages/calendar/www/view-month-display.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-month-display.tcl,v
diff -u -N -r1.17 -r1.17.2.1
--- openacs-4/packages/calendar/www/view-month-display.tcl 6 May 2004 15:21:41 -0000 1.17
+++ openacs-4/packages/calendar/www/view-month-display.tcl 19 Jun 2005 07:49:35 -0000 1.17.2.1
@@ -1,8 +1,14 @@
+if {![info exists add_p] || [string equal "" $add_p]} {
+ set add_p t
+}
+if {![info exists link_day_p] || [string equal "" $link_day_p]} {
+ set link_day_p t
+}
if {![info exists date] || [empty_string_p $date]} {
# Default to todays date in the users (the connection) timezone
set server_now_time [dt_systime]
set user_now_time [lc_time_system_to_conn $server_now_time]
- set date [lc_time_fmt $user_now_time "%x"]
+ set date $user_now_time
}
dt_get_info $date
@@ -14,20 +20,26 @@
set portlet_mode_p 1
}
+set url_stub_callback ""
+set page_num_urlvar ""
+set base_url ""
if {[info exists portlet_mode_p] && $portlet_mode_p} {
set page_num_urlvar "&page_num=$page_num"
set item_template "\${url_stub}cal-item-view?show_cal_nav=0&return_url=[ad_urlencode "../"]&action=edit&cal_item_id=\$item_id"
set prev_month_template "?view=month&date=\[ad_urlencode \$prev_month\]&page_num=$page_num"
set next_month_template "?view=month&date=\[ad_urlencode \$next_month\]&page_num=$page_num"
set url_stub_callback "calendar_portlet_display::get_url_stub"
-} else {
+} elseif {![info exists item_template] || [string equal "" $item_template]} {
+ # allow item_template to be passed in as a parameter
set item_template "cal-item-view?cal_item_id=\$item_id"
- set prev_month_template "view?view=month&\date=[ad_urlencode $prev_month]"
- set next_month_template "view?view=month&\date=[ad_urlencode $next_month]"
- set url_stub_callback ""
- set page_num_urlvar ""
- set base_url ""
+}
+# allow prev_month_template and next_month_template to be passed in
+if {![info exists prev_month_template] || [string equal "" $prev_month_template]} {
+ set prev_month_template "view?view=month&date=\[ad_urlencode \$prev_month\]"
}
+if {![info exists next_month_template] || [string equal "" $next_month_template]} {
+ set next_month_template "view?view=month&date=\[ad_urlencode \$next_month\]"
+}
if { ![info exists show_calendar_name_p] } {
set show_calendar_name_p 1
@@ -148,6 +160,11 @@
-current_day $current_day \
-today_julian_date $today_julian_date \
-first_julian_date_of_month $first_julian_date_of_month]
+ if {$link_day_p} {
+ set day_link "?view=day&date=[dt_julian_to_ansi $current_day]&$page_num_urlvar"
+ } else {
+ set day_link ""
+ }
multirow append items \
"" \
"" \
@@ -161,7 +178,7 @@
f \
0 \
"${base_url}cal-item-new?date=[dt_julian_to_ansi $current_day]&start_time=&end_time" \
- "?view=day&date=[dt_julian_to_ansi $current_day]&$page_num_urlvar"
+ $day_link
}
}
@@ -187,7 +204,11 @@
-current_day $current_day \
-today_julian_date $today_julian_date \
-first_julian_date_of_month $first_julian_date_of_month]
-
+ if {$link_day_p} {
+ set day_link "?view=day&date=[dt_julian_to_ansi $current_day]&$page_num_urlvar"
+ } else {
+ set day_link ""
+ }
multirow append items \
$name \
[subst $item_template] \
@@ -201,7 +222,7 @@
f \
$time_p \
"${base_url}cal-item-new?date=[dt_julian_to_ansi $current_day]&start_time=&end_time" \
- "?view=day&date=[dt_julian_to_ansi $current_day]&$page_num_urlvar"
+ $day_link
}
# Add cells for remaining days inside the month
@@ -212,6 +233,12 @@
-today_julian_date $today_julian_date \
-first_julian_date_of_month $first_julian_date_of_month]
+ if {$link_day_p} {
+ set day_link "?view=day&date=[dt_julian_to_ansi $current_day]&$page_num_urlvar"
+ } else {
+ set day_link ""
+ }
+
multirow append items \
"" \
"" \
@@ -225,7 +252,7 @@
f \
0 \
"${base_url}cal-item-new?date=[dt_julian_to_ansi $current_day]&start_time=&end_time" \
- "?view=day&date=[dt_julian_to_ansi $current_day]&$page_num_urlvar"
+ $day_link
}
# Add cells for remaining days outside the month
Index: openacs-4/packages/calendar/www/view-one-day-display.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-one-day-display.adp,v
diff -u -N -r1.17 -r1.17.2.1
--- openacs-4/packages/calendar/www/view-one-day-display.adp 11 May 2005 17:53:44 -0000 1.17
+++ openacs-4/packages/calendar/www/view-one-day-display.adp 19 Jun 2005 07:49:35 -0000 1.17.2.1
@@ -1,7 +1,6 @@
-
@dates@
@@ -15,7 +14,7 @@
|
|
- |
+ |
-
Index: openacs-4/packages/calendar/www/view-one-day-display.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-one-day-display.tcl,v
diff -u -N -r1.32 -r1.32.2.1
--- openacs-4/packages/calendar/www/view-one-day-display.tcl 11 May 2005 17:53:44 -0000 1.32
+++ openacs-4/packages/calendar/www/view-one-day-display.tcl 19 Jun 2005 07:49:35 -0000 1.32.2.1
@@ -85,7 +85,6 @@
set day_current_hour 0
set localized_day_current_hour ""
-set localized_date_current ""
set item_add_without_time [subst $hour_template]
# Now items with time
@@ -95,7 +94,6 @@
calendar_name \
status_summary \
add_url \
- add_title \
localized_current_hour \
current_hour \
start_time \
@@ -161,26 +159,23 @@
for { } { $day_current_hour < $item_start_hour } { incr day_current_hour } {
set localized_day_current_hour [lc_time_fmt "$current_date $day_current_hour:00:00" "%X"]
- set localized_date_current [lc_time_fmt "$current_date $day_current_hour:00:00" "%x"]
multirow append items \
"" \
"" \
"" \
"" \
[subst $hour_template] \
- "[_ calendar.Add_item_beginning_at]" \
$localized_day_current_hour \
$day_current_hour \
0 \
0 \
"" \
- ""
+ ""
}
}
set day_current_hour [lindex $this_item 0]
set localized_day_current_hour [lc_time_fmt "$current_date $day_current_hour:00:00" "%X"]
- set localized_date_current [lc_time_fmt "$current_date $day_current_hour:00:00" "%x"]
# reset url stub
set url_stub ""
@@ -208,7 +203,6 @@
[lindex $this_item 3] \
[lindex $this_item 4] \
$current_hour_link \
- "[_ calendar.Add_item_beginning_at]" \
$localized_day_current_hour \
$day_current_hour \
[lindex $this_item 7] \
@@ -223,14 +217,12 @@
# need to add dummy entries to show all hours
for { } { $day_current_hour < $end_display_hour } { incr day_current_hour } {
set localized_day_current_hour [lc_time_fmt "$current_date $day_current_hour:00:00" "%X" [ad_conn locale]]
- set localized_date_current [lc_time_fmt "$current_date $day_current_hour:00:00" "%x" [ad_conn locale]]
multirow append items \
"" \
"" \
"" \
"" \
"[subst $hour_template]" \
- "[_ calendar.Add_item_beginning_at]" \
$localized_day_current_hour \
$day_current_hour \
"" \
Index: openacs-4/packages/calendar/www/view-week-display.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/view-week-display.adp,v
diff -u -N -r1.10 -r1.10.2.1
--- openacs-4/packages/calendar/www/view-week-display.adp 11 May 2005 16:12:57 -0000 1.10
+++ openacs-4/packages/calendar/www/view-week-display.adp 19 Jun 2005 07:49:35 -0000 1.10.2.1
@@ -17,10 +17,11 @@
|
- [@items.start_date@ |
- #calendar.Add_Item#
- ]
-
+
+
+
+ @items.start_date@
|
Index: openacs-4/packages/calendar/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/admin/index.tcl,v
diff -u -N -r1.6 -r1.6.2.1
--- openacs-4/packages/calendar/www/admin/index.tcl 1 Mar 2005 00:01:26 -0000 1.6
+++ openacs-4/packages/calendar/www/admin/index.tcl 19 Jun 2005 07:49:35 -0000 1.6.2.1
@@ -9,7 +9,7 @@
}
# find out the user_id
-set user_id [ad_conn user_id]
+set user_id [ad_verify_and_get_user_id]
set package_id [ad_conn package_id]
set page_title [_ calendar.lt_Calendar_Administrati]
Index: openacs-4/packages/calendar/www/resources/calendar.css
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/resources/calendar.css,v
diff -u -N -r1.7 -r1.7.2.1
--- openacs-4/packages/calendar/www/resources/calendar.css 13 Jan 2005 13:56:31 -0000 1.7
+++ openacs-4/packages/calendar/www/resources/calendar.css 19 Jun 2005 07:49:36 -0000 1.7.2.1
@@ -1,5 +1,5 @@
-.cal-table-header {
- background: #99CCFF;
+ca.cal-table-header {
+ background: #587d91;
color: #000000;
margin: 0px;
padding: 0px;
@@ -9,7 +9,7 @@
.cal-month-title-text {
font-size: 140%;
font-weight: bold;
- background-color: #003366;
+ background-color: #003b53;
text-align: center;
color: #FFFFFF;
}
@@ -27,7 +27,7 @@
font-weight: bold;
border-width: 0px 0px 1px 0px;
border-style: solid;
- border-color: #99CCFF;
+ border-color: #dfe2e5;
}
.cal-week {
@@ -36,11 +36,11 @@
font-weight: bold;
border-width: 0px 0px 1px 0px;
border-style: solid;
- border-color: #99CCFF;
+ border-color: #dfe2e5;
}
.cal-month-day {
- background: #DDEEFF;
+ background: #dfe2e5;
border: 0px none;
color: #003366;
font-weight: bold;
@@ -56,7 +56,7 @@
.cal-month-today {
font-weight: bold;
- background-color: #003366;
+ background-color: #587d91;
text-align: left;
color: #FFFFFF;
border: 0px solid;
@@ -69,7 +69,7 @@
cursor: pointer;
}
.cal-month-today a {
- color: #DDEEFF;
+ color: #dfe2e5;
}
.cal-no-border {
@@ -82,10 +82,10 @@
font-size: 8pt;
white-space: nowrap;
font-weight: bold;
- border-top: 0px solid #99CCFF;
- border-right: 0px solid #99CCFF;
- border-bottom: 1px solid #99CCFF;
- border-left: 0px solid #99CCFF;
+ border-top: 0px solid #dfe2e5;
+ border-right: 0px solid #dfe2e5;
+ border-bottom: 1px solid #dfe2e5;
+ border-left: 0px solid #dfe2e5;
}
.mini-calendar .view-list td {
@@ -97,7 +97,7 @@
}
.mini-calendar .view-list .selected {
- background-color: #CEE6FF;
+ background-color: #6b96ad;
}
.mini-calendar .view-list a {
@@ -130,7 +130,7 @@
color: #000000;
margin: 0px;
padding: 0px;
- border: 1px solid #99CCFF;
+ border: 1px solid #dfe2e5;
background-color: #FFFFFF;
}
@@ -192,7 +192,7 @@
white-space: nowrap;
border-width: 0px 0px 0px 1px;
border-style: solid;
- border-color: #99CCFF;
+ border-color: #dfe2e5;
}
.cal-navbar-spacer-start {
@@ -247,7 +247,7 @@
}
.cal-row-dark {
- background: #DDEEFF;
+ background: #dfe2e5;
}
.cal-row-light {
@@ -256,12 +256,12 @@
.cal-row-hi {
font-weight: bold;
- border: 0px solid #7D7DFF;
+ border: 0px solid #6b96ad;
}
.cal-row-lo {
color: #999999;
- border: 0px solid #7D7DFF;
+ border: 0px solid #6b96ad;
}
#at-a-glance {
@@ -275,7 +275,7 @@
padding: 1px;
width: 30px;
border: 1px solid #ffffff;
- background-color: #DDEEFF;
+ background-color: #Dfe2e5;
}
#at-a-glance td.months {
@@ -316,7 +316,7 @@
}
#at-a-glance td.inactive {
- background-color: #DDEEFF;
+ background-color: #dfe2e5;
text-align: right;
}
@@ -325,7 +325,7 @@
}
#at-a-glance td.active {
- background-color: #DDEEFF;
+ background-color: #dfe2e5;
text-align: right;
}
#at-a-glance td.active:hover {
@@ -344,7 +344,7 @@
}
#jump {
- background: #99CCFF;
+ background: #6b96ad;
color: #000000;
margin: 0px;
padding: 0px;
@@ -388,34 +388,34 @@
}
.mini-calendar .header td.back {
- background-color: #003366;
+ background-color: #003b53;
vertical-align: middle;
text-align: left;
}
.mini-calendar .header td.forward {
- background-color: #003366;
+ background-color: #003b53;
vertical-align: middle;
text-align: right;
}
.mini-calendar .header td.current_view {
font-size: 140%;
font-weight: bold;
- background-color: #003366;
+ background-color: #003b53;
text-align: center;
color: #FFFFFF;
}
.mini-calendar {
- border: 1px solid #99CCFF;
+ border: 1px solid #dfe2e5;
font-size: 90%;
width: 240px;
}
.cal-month {
font-weight: bold;
- background-color: #DDEEFF;
+ background-color: #Dfe2e5;
text-align: center;
line-height: 160%;
@@ -434,7 +434,7 @@
}
.cal-week-events {
width: 100%;
- background-color: #DDEEFF;
+ background-color: #dfe2e5;
}
@@ -487,7 +487,6 @@
}
.cal-day-time {
- white-space: nowrap;
font-weight: bold;
text-align: right;
font-size: 80%;
@@ -500,12 +499,12 @@
}
.cal-week-event-notime {
- background-color: #DDEEFF;
+ background-color: #dfe2e5;
font-weight: bold;
}
.cal-week-event-notime a {
- background-color: #DDEEFF;
+ background-color: #dfe2e5;
}
.cal-day-event-notime {
@@ -528,17 +527,18 @@
.cal-table-data-title {
background: #FFFFFF;
font-weight: bold;
- border: 0px solid #99CCFF;
+ border: 0px solid #dfe2e5;
text-align: right;
padding-top: 0px 10px 0px 0px;
width: 1%;
white-space: nowrap;
+ vertical-align: top;
}
.cal-table-data-action {
- background: #DDEEFF;
+ background: #dfe2e5;
font-weight: bold;
- border: 1px solid #99CCFF;
+ border: 1px solid #dfe2e5;
text-align: center;
width: 1%;
white-space: nowrap;
| |