summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
authorSebastian Wagner2011-08-23 16:00:54 +0200
committerSebastian Wagner2011-08-23 16:00:54 +0200
commitbc4933ee130f4c20562fe8e94a8f44ef057aa690 (patch)
tree0634feb7c49bcebac0033fc1d28a4526da60f56e /application/views/scripts/event/index.phtml
parentgitignor geƤndert (diff)
downloadpoolctrl-bc4933ee130f4c20562fe8e94a8f44ef057aa690.tar.gz
poolctrl-bc4933ee130f4c20562fe8e94a8f44ef057aa690.tar.xz
poolctrl-bc4933ee130f4c20562fe8e94a8f44ef057aa690.zip
some calendar changes
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rw-r--r--application/views/scripts/event/index.phtml33
1 files changed, 25 insertions, 8 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 899e1e8..50d530c 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -20,16 +20,12 @@
</select>
</form>
-<input type=checkbox name="shutdown" checked=ON><font style="background-color:#008800;">Lecture</font>
-<input type=checkbox name="shutdown" checked=ON><font style="background-color:#FFFF00">Maintenance</font>
-<input type=checkbox name="shutdown" checked=ON><font style="background-color:#0000FF">BootEvents</font>
-<input type=checkbox name="shutdown" checked=ON><font style="background-color:#FF0000">ShutdownEvents</font>
-
<div id='calendar' style='margin:3em 0;font-size:13px'></div>
<script type="text/javascript">
$(document).ready(function() {iniCalendar();});
+var lastview;
function showCalendar() {
$("#calendar").show();
@@ -67,7 +63,7 @@ $(document).ready(function() {iniCalendar();});
default: 'week',
left: 'title',
center: 'prev,next today',
- right: 'month,agendaWeek,agendaDay'
+ right: 'agendaWeek,agendaDay'
},
editable: true,
// disableDragging: false,
@@ -76,7 +72,10 @@ $(document).ready(function() {iniCalendar();});
selectHelper: true,
defaultView: 'agendaWeek',
allDay : false,
+ allowCalEventOverlap: true,
+
+
events: "/event/listevents",
dayClick: function(date, allDay, jsEvent, view) {
@@ -91,8 +90,26 @@ $(document).ready(function() {iniCalendar();});
'\nNote: ' + calEvent.note +
'\nCategory: ' + calEvent.category +
'\nParticipants ' + calEvent.participants);
- }
- });
+ },
+
+ viewDisplay: function(view) {
+ $('.lecture').remove();
+ $('.maintenance').remove();
+ $('.boot').remove();
+ $('.shutdown').remove();
+ $('.addbutton').remove();
+ $("#calendar .fc-header-center").append('<input type=checkbox class="lecture" checked=ON><font class="lecture" style="background-color:#008800;">Lecture</font>');
+ $("#calendar .fc-header-center").append('<input type=checkbox class="maintenance" checked=ON><font class="maintenance" style="background-color:#FFFF00">Maintenance</font>');
+ $("#calendar .fc-header-center").append('<input type=checkbox class="boot" checked=ON><font class="boot" style="background-color:#0000FF">Boot</font>');
+ $("#calendar .fc-header-center").append('<input type=checkbox class="shutdown" checked=ON><font class="shutdown" style="background-color:#FF0000">Shutdown</font>');
+ if (view.name == 'agendaWeek')
+ {
+ }
+ if (view.name == 'agendaDay')
+ {
+ }
+ }
+ });
}
</script>
<br />