summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorSebastian Wagner2011-07-25 16:47:48 +0200
committerSebastian Wagner2011-07-25 16:47:48 +0200
commitec685937f00e04f4a13e3cb5ea62bc2ecae08563 (patch)
tree41896ca925d3452cbfb2609bb874972ca0ef505b /application
parentminor (diff)
downloadpoolctrl-ec685937f00e04f4a13e3cb5ea62bc2ecae08563.tar.gz
poolctrl-ec685937f00e04f4a13e3cb5ea62bc2ecae08563.tar.xz
poolctrl-ec685937f00e04f4a13e3cb5ea62bc2ecae08563.zip
calendar added
Diffstat (limited to 'application')
-rw-r--r--application/layouts/default.phtml5
-rw-r--r--application/views/scripts/event/index.phtml52
2 files changed, 56 insertions, 1 deletions
diff --git a/application/layouts/default.phtml b/application/layouts/default.phtml
index 21c433a..e2c414e 100644
--- a/application/layouts/default.phtml
+++ b/application/layouts/default.phtml
@@ -16,6 +16,11 @@ echo $this->headScript()."\n";
<script type="text/javascript" src='/media/js/jquery-ui-timepicker-addon.js'></script>
<script type="text/javascript" src='/media/js/script.js'></script>
<script type="text/javascript" src='/media/js/user.js'></script>
+
+<!-- files for calendar -->
+<script type='text/javascript' src='/media/js/jquery-1.5.2.min.js'></script>
+<script type='text/javascript' src='/media/js/jquery-ui-1.8.11.custom.min.js'></script>
+<script type='text/javascript' src='/media/js/fullcalendar.min.js'></script>
</head>
<body>
<div id='sidepannel'>
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 4076b08..15ef05b 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -1,4 +1,44 @@
-<h1>Events</h1>
+<head>
+ <title>Pool Control</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel='stylesheet' type='text/css' href='/media/css/fullcalendar.css' />
+
+<script type='text/javascript'>
+
+ $(document).ready(function() {
+
+ var date = new Date();
+ var d = date.getDate();
+ var m = date.getMonth();
+ var y = date.getFullYear();
+
+ $('#calendar').fullCalendar({
+ header: {
+ left: 'title',
+ center: 'prev,next today',
+ right: 'month,agendaWeek,agendaDay'
+ },
+ editable: true,
+// disableDragging: false,
+// droppable: true,
+
+ events: [
+ {
+ title: 'Thist is a TestEvent!',
+ start: new Date(y, m, d, 13, 15),
+ end: new Date(y, m, d, 14, 45),
+ allDay: false
+ }
+ ]
+ });
+ });
+</script>
+</head>
+<h1>Pool Control</h1>
+
+<!-- <input type="button" value="ShowCalender" onClick="showCalendar();"> -->
+
+
<?php echo $this->formButton('addEvent', 'Add Event', array(
'onclick' => 'self.location="/event/add/"',
'class' => 'addbutton'))
@@ -13,7 +53,17 @@
} else echo '<option> No Pools </option>';?>
</select>
</form>
+
+<div id='calendar' style='margin:3em 0;font-size:13px'></div>
+
<script type="text/javascript">
+ function showCalendar() {
+// document.write(document.getElementById(calendar).style.display);
+ document.getElementById("calendar").style.display = "block";
+// setVisible(document.getElementById("calendar"));
+ }
+
+
function selectPool() {
selectForm = document.PoolSelectForm;
selectBox = selectForm.PoolSelectbox;