PK nH tml/html/calendar/cal-body.tml## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
var key = request.getParameter('event')
if(key){
var event = context("docid:"+key, false);
if(event){
var start = WGA.createCalendar(event.start)
portlet.root.cal_year = start.get(start.YEAR);
portlet.root.cal_month = start.get(start.MONTH);
portlet.root.cal_date = start.get(start.DAY_OF_MONTH);
}
}
PK,/8 PK nH ! tml/html/calendar/event/event.tmlB## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
-
-
var parts = url.split("://");
_url = parts.length>1 ? url : "http://"+url
">
,
PKz4mG B PK nH tml/html/calendar/event/form.tml$## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
PKdN;) $ PK nH % tml/html/calendar/event/mode-edit.tml## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
portlet.context=context("parent");
HDBModel.deleteContent(content());
PK7h PK nH $ tml/html/calendar/event/mode-new.tmlJ## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
var cf = tmlformbyid("event-form-controller");
if(cf.start){
var c = WGA.createCalendar(WGA.createDate());
var h = c.get(c.HOUR_OF_DAY);
c.setTimeInMillis(cf.start)
if(c.get(c.HOUR_OF_DAY)==0)
c.set(c.HOUR_OF_DAY, h);
tmlform.start = c.time;
c.add(c.HOUR_OF_DAY, 1);
tmlform.end = c.time;
}
PK$qE{O J PK nH % tml/html/calendar/event/mode-view.tml}## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
PK 1͇ PK nH # tml/html/calendar/event/portlet.tml
## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
var event = context("docid:"+tmlform.key).content();
var date = WGA.createDate();
date.time = tmlform.start;
event.setItemValue("start", date);
date = WGA.createDate();
date.time = tmlform.end;
event.setItemValue("end", date);
HDBModel.updateContent(event);
portlet.setMode("edit");
portlet.context = context("docid:"+tmlform.key);
PK
PK nH ! tml/html/calendar/header-form.tml
## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
...
if(!tmlform.admins)
tmlform.admins = content().getStructEntry().getPageEditors();
spellcheck="false"
if(!tmlform.authors)
tmlform.authors = content().getStructEntry().getChildEditors();
spellcheck="false"
if(!tmlform.readers)
tmlform.readers = content().getStructEntry().getReaders()
spellcheck="false"
PKU(
PK nH % tml/html/calendar/portlet-sidebar.tmlt## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
content.contentclass='event'
AND content.structentry.parententry.key = ''
AND content.items['show_in_overview'].boolean = 1
AND content.items['start'].date >= ' 00:00:00'
order by content.items['start'].date
var mn = [];
var d = WGA.createCalendar(start);
_year = d.get(d.YEAR);
_month = d.get(d.MONTH);
_month_name = mn[_month]
_day = d.get(d.DAY_OF_MONTH);
var now = WGA.createCalendar(WGA.createDate());
_diff = (WGA.Utils.dateOnly(start).time - WGA.Utils.dateOnly(WGA.createDate()).time)/(1000*60*60*24);
PK@y t PK nH tml/html/calendar/portlet.tmlL## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
var me = meta("database", "username");
var struct = content().getStructEntry();
var admins = tmlform.fieldlist("admins")
if(!admins.contains(me))
admins.add(me);
struct.setPageEditors(admins)
tmlform.admins = admins;
if(tmlform.read_protected){
var readers = tmlform.fieldlist("readers")
if (!readers.contains(me))
readers.add(me);
struct.setReaders(readers);
tmlform.readers = readers;
}
else struct.setReaders([])
if(tmlform.write_protected){
var authors = tmlform.fieldlist("authors");
if(!authors.contains(me))
authors.add(me);
struct.setChildEditors(authors)
tmlform.authors = authors;
}
else struct.setChildEditors([])
struct.save();
HDBModel.updateContent(tmlform)
WGA.redirectTo(context("parent").contenturl())
HDBModel.deleteContent(content());
')">
PK|uQ L PK nH tml/html/calendars/dropdown.tml7
">
">
PKp m PK nH tml/html/calendars/portlet.tml>## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
PK\[ PK nH # tml/html/content-modules/config.tmlr## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
{
id: 'ig_events',
category: '',
title: '',
icon: '',
tml: 'content-modules:render',
settingstml: 'content-modules:settings',
includes: {
tml: "content-modules:includes",
css: "content-modules:css"
}
}
PKAD PK nH tml/html/content-modules/css.tml$## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
,
textarea: {
font: "inherit"
},
h2:{
font_size: 24
},
h3: {
font_size: 18,
line_height: 27
},
".close": {
color: "#000000",
"float": "right",
font_size: 20,
font_weight: "bold",
line_height: 18,
opacity: "0.2",
text_shadow: "0 1px 0 #FFFFFF",
cursor: "pointer"
}
PK: PK nH % tml/html/content-modules/includes.tmlPKY~f PK nH # tml/html/content-modules/render.tml~## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
_dbkey = CMM.setting("dbkey");
_calendar = CMM.setting("calendar");
_editable = CMM.setting("editable")
if(CONTENTCLASS=="calendar")
_mode = (_editable!=false && AFW.content().mayEditContent()) ? "edit" : "view"
else _mode = "view"
PK%;Ά PK nH % tml/html/content-modules/settings.tml## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
_dbkeys_options = AFW.Util.getAppKeysBasedOnPlugin(WGA.design().plugin().name);
_dbkeys_options.remove("plugin-event-manager")
PKIb< PK nH tml/html/layout/appnav.tmlH## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
PKYDl PK nH tml/html/layout/body.tml$## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
use to include the default page layout:
+------------------------------
| #page
| overlay:header
| overlay:appnav
| overlay:content
| overlay:footer
+------------------------------
PKQua7) $ PK nH tml/html/layout/footer.tml!## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
OpenWGA Event Manager
var plugin = WGA.design("plugin-event-manager").plugin()
return plugin.version
PK`" PK nH tml/html/layout/head.tmlk## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
-
">
">
">
PK PK nH tml/html/layout/header.tml## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
var doc = HDBModel.createContent("calendar", content());
var struct = doc.getStructEntry();
var user = meta("database", "username");
struct.setPageEditors([user]); // admin this calendar: me
struct.setChildEditors([user]); // authors this calendar: me
struct.save();
doc.setTitle("no title");
doc.save();
WGA.redirectTo(context(doc).contenturl())
PKՌ] PK nH tml/html/layout/includes.tmlF## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
PK@K F PK nH tml/html/main.tmlL## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
This is a sample static TML Module.
Note that that body of the module must be contained on an option "static-body".
Options "header" and "footer" are optional and are used as content-header and content-footer
(the global page header and footer are defined in layout:header and layout:footer).
OpenWGA Event Manager
PK_ƑxQ L PK nH # tml/html/metadata/main.metadata.xml jtruefalsePK"Ś PK nH tml/html/templates/content.tml
My Body ...
header
PK0b_ PK nH tml/html/templates/form.tml7
*Title,TITLE,text
label,name,type default,options
...
label,name,type default,options
PKP<< 7 PK nH " tml/html/templates/hdb-content.tmlM
My Body ...
My title
My tools ...
My Action
My Other Action
PKSCs PK nH tml/html/templates/views.tml
TITLE
AUTHOR
CREATED
content.authorAUTHOR
TITLE
CREATED
content.createdcontent.titleAFW.Util.dateGroup(CREATED).text
AUTHOR
PK
PK nH tml/ical/calendar.tmlg ## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
BEGIN:VCALENDAR
PRODID:-//OpenWGA//Event-Manager 1.0//DE
VERSION:2.0
METHOD:PUBLISH
_from = WGA.createCalendar(WGA.createDate())
_from.add(_from.DAY_OF_MONTH, -30)
_from = _from.time;
_all = content().isDummy();
content.contentclass='event'
AND content.structentry.parententry.key = ''
AND content.items['start'].date > ' 00:00:00'
order by content.items['start'].date
BEGIN:VEVENT
UID:-
SUMMARY::
DESCRIPTION:
LOCATION:
// we have to add one day to the end-date bc. iCal want's this
var e = WGA.createCalendar(end)
e.add(e.DAY_OF_MONTH, 1);
return e.time;
DTSTART;VALUE=DATE:
DTEND;VALUE=DATE:
DTSTART;VALUE=DATE-TIME:
DTEND;VALUE=DATE-TIME:
END:VEVENT
END:VCALENDAR
PK[1l g PK nH ' tml/ical/metadata/calendar.metadata.xml jtruefalsePK"Ś PK nH , tml/javascript/metadata/scripts.metadata.xml jtruefalsePK"Ś PK nH tml/javascript/scripts.tml## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
E= {
createEvent: function(key){
var d = new Date();
d.setMinutes(0);
WGA.event.fireEvent("show-event", "*", {key: key, cmd: "new", start: d.getTime()});
},
openEvent: function(key){
WGA.event.fireEvent("show-event", "*", {key:key, cmd: "edit"})
}
}
PKH9q` PK nH tml/json/events.tmlH## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
//log.info("json events " + KEY + ", " + request.getParameter("start") + "/" + request.getParameter("end"));
_from = WGA.createDate();
_from.setTime(Number(request.getParameter("start"))*1000)
_to = WGA.createDate();
_to.setTime(Number(request.getParameter("end"))*1000)
//log.info("read events from " + _from + " to " + _to);
_now = WGA.createDate();
[
content.contentclass='event'
AND content.structentry.parententry.key = ''
AND content.items['show_in_overview'].boolean = 1
AND (
content in
(
select item.parentcontent from ContentItem as item
where item.name='start'
and item.date between ' 00:00:00' and ' 23:59:59'
)
or
content in
(
select item.parentcontent from ContentItem as item
where item.name='end'
and item.date between ' 00:00:00' and ' 23:59:59'
)
or
(
content in
(
select item.parentcontent from ContentItem as item
where item.name='start'
and item.date < ' 00:00:00'
)
and content in
(
select item.parentcontent from ContentItem as item
where item.name='end'
and item.date > ' 23:59:59'
)
)
)
{
"id": "",
"editable": ,
"color": "",
"textColor": "",
"title": "",
"start": "",
"end": "",
"allDay":
},
]
log.info(CONTENTCLASS + ": " + tagInfo("events", "count") + " events found");
PKX\M H PK nH % tml/json/metadata/events.metadata.xml jtruefalsePK"Ś PK nH tml/stylesheet/calendar.tml=## LICENSE START ###############################################################
## Copyright 2011 Innovation Gate GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## LICENSE END #################################################################
textarea: {
height: 20,
resize: "none"
},
".sidebar": {
margin_right: -10,
border: "solid silver 1px",
background: "#DEE4EA",
border_radius_: {
"topleft,bottomleft": 10
},
".inner": {
padding: 10,
"h1": {
font_weight: "bold",
font_size: 16,
line_height: 20,
border_bottom: "dotted silver 1px",
color: "#76859C"
},
".location": {
font_weight: "bold",
},
".calendar": {
cursor: "pointer",
padding: "0 4px",
border_radius: 4
},
".event": {
margin: "10px 0",
".date-content": {
font_size: 12,
margin_left: 80,
overflow: "hidden"
},
".date-info": {
cursor: "pointer",
width: 60,
margin_right: 10,
margin_bottom: 5,
padding: 5,
"float": "left",
border_radius: 5,
box_shadow: "1px 1px 5px gray",
text_align: "center",
".day": {
line_height: 26,
font_size: 20,
text_shadow: "0px 0px 3px gray",
padding: "0px 10px",
background: "white"
},
".month": {
font_size: 12,
text_align: "center",
background_color: "red",
background_image: JSS.linearGradient("red", "red 40%", "brown 60%"),
color: "white",
border_radius_: {
"topleft,topright": 3
},
padding: "1px 0"
},
".year": {
font_size: 12,
border_top: "solid #DEE4EA 1px",
background: "white"
}
}
}
}
},
"#full-calendar": {
margin_top: 10,
font_size: 12,
".fc-header h2": {
font_size: 20
},
".fc-event": {
cursor: "pointer"
},
".fc-event-time, .fc-event-title": {
font_size: 10
},
".fc-event-skin": {
background_color: "#94A7C3",
border_color: "gray"
},
".fc-state-highlight": {
background_color: "#DEE4EA"
}
},
"#event-overlay": {
h2: {
color: "#76859C",
font_weight: "normal"
},
".metainfo": {
margin: "10px 0 -10px",
font_style: "italic",
color: "#76859C",
text_align: "right"
},
"input[type=checkbox]": {
margin_top: 3
},
".form-label": {
color: "#76859C"
},
"label,input,select,textarea,.input-append,.input-prepend": {
font: "inherit"
},
}
PK}B = PK nH tml/stylesheet/globals.tml "
/*
* set global vars to be used in included styles:
*/
_appnav_width = 250;
_header_height = 40;
_footer_height = 20;
_content_header_height = 40;
_content_footer_height = 40;
PK1 PK nH tml/stylesheet/styles.tml5
"#appnav": {
".info": {
"float": "right",
border_radius: 10,
width: 15,
line_height: 15,
text_align: "center"
},
"a.calendar": {
background_image: "url()",
"&.protected": {
background_image: "url()"
}
}
},
"#header": {},
"#content": {
".content-header": {},
".content-body": {
},
".content-footer": {}
},
"#footer": {}
.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year{
height: auto;
padding: 0;
}
PKH% PK nH ' scripts/js/jquery.ui.touch-punch.min.js6/*!
* jQuery UI Touch Punch 0.1.0
*
* Copyright 2010, Dave Furfero
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
*/
(function(c){c.support.touch=typeof Touch==="object";if(!c.support.touch){return;}var f=c.ui.mouse.prototype,g=f._mouseInit,a=f._mouseDown,e=f._mouseUp,b={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"};function d(h){var i=h.originalEvent.changedTouches[0];return c.extend(h,{type:b[h.type],which:1,pageX:i.pageX,pageY:i.pageY,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});}f._mouseInit=function(){var h=this;h.element.bind("touchstart."+h.widgetName,function(i){return h._mouseDown(d(i));});g.call(h);};f._mouseDown=function(j){var h=this,i=a.call(h,j);h._touchMoveDelegate=function(k){return h._mouseMove(d(k));};h._touchEndDelegate=function(k){return h._mouseUp(d(k));};c(document).bind("touchmove."+h.widgetName,h._touchMoveDelegate).bind("touchend."+h.widgetName,h._touchEndDelegate);return i;};f._mouseUp=function(i){var h=this;c(document).unbind("touchmove."+h.widgetName,h._touchMoveDelegate).unbind("touchend."+h.widgetName,h._touchEndDelegate);return e.call(h,i);};})(jQuery);PKwL^ PK nH * scripts/tmlscript/hdbmodel/event.tmlscriptg/*******************************************************************************
*Copyright 2011 Innovation Gate GmbH
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
******************************************************************************/
this.preUpdate = this.preCreate = function(e) {
var tmlform = e.getForm();
if(tmlform && tmlform.start_time){
var start = WGA.createCalendar(tmlform.start)
var start_time = WGA.createCalendar(tmlform.start_time)
start.set(start.HOUR_OF_DAY, start_time.get(start.HOUR_OF_DAY));
start.set(start.MINUTE, start_time.get(start.MINUTE));
tmlform.start = start.time;
}
if(tmlform && tmlform.end_time){
var end = WGA.createCalendar(tmlform.end)
var end_time = WGA.createCalendar(tmlform.end_time)
end.set(end.HOUR_OF_DAY, end_time.get(end.HOUR_OF_DAY));
end.set(end.MINUTE, end_time.get(end.MINUTE));
tmlform.end = end.time;
}
}
PKgAl g PK nH # files/fullcalendar/fullcalendar.css+t/*!
* FullCalendar v1.6.4 Stylesheet
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
.fc {
direction: ltr;
text-align: left;
}
.fc table {
border-collapse: collapse;
border-spacing: 0;
}
html .fc,
.fc table {
font-size: 1em;
}
.fc td,
.fc th {
padding: 0;
vertical-align: top;
}
/* Header
------------------------------------------------------------------------*/
.fc-header td {
white-space: nowrap;
}
.fc-header-left {
width: 25%;
text-align: left;
}
.fc-header-center {
text-align: center;
}
.fc-header-right {
width: 25%;
text-align: right;
}
.fc-header-title {
display: inline-block;
vertical-align: top;
}
.fc-header-title h2 {
margin-top: 0;
white-space: nowrap;
}
.fc .fc-header-space {
padding-left: 10px;
}
.fc-header .fc-button {
margin-bottom: 1em;
vertical-align: top;
}
/* buttons edges butting together */
.fc-header .fc-button {
margin-right: -1px;
}
.fc-header .fc-corner-right, /* non-theme */
.fc-header .ui-corner-right { /* theme */
margin-right: 0; /* back to normal */
}
/* button layering (for border precedence) */
.fc-header .fc-state-hover,
.fc-header .ui-state-hover {
z-index: 2;
}
.fc-header .fc-state-down {
z-index: 3;
}
.fc-header .fc-state-active,
.fc-header .ui-state-active {
z-index: 4;
}
/* Content
------------------------------------------------------------------------*/
.fc-content {
clear: both;
zoom: 1; /* for IE7, gives accurate coordinates for [un]freezeContentHeight */
}
.fc-view {
width: 100%;
overflow: hidden;
}
/* Cell Styles
------------------------------------------------------------------------*/
.fc-widget-header, /*