summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/event/index.phtml')
-rw-r--r--application/views/scripts/event/index.phtml38
1 files changed, 20 insertions, 18 deletions
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index afc1e19..e858338 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -10,17 +10,16 @@
?>
<form name="PoolSelectForm"><select name="PoolSelectbox"
- onChange="deselectAll();selectPool();addEventSource()">
- <option>Please choose a Pool</option>
- <?php if(count($this->poollist)>0){
- foreach($this->poollist as $pool => $p){
- echo "<option value='" . $p->getID() . "'>" . $p->getTitle() . "</option>";
- }
- } else echo '<option> No Pools </option>';?>
+ onChange="deselectAll();selectPool();">
+ <option>Please choose a Pool</option>
+ <?php if(count($this->poollist)>0){
+ foreach($this->poollist as $pool => $p){
+ echo "<option value='" . $p->getID() . "'>" . $p->getTitle() . "</option>";
+ }
+ } else echo '<option> No Pools </option>';?>
</select></form>
-<div
- id='calendar' style='margin: 3em 0; font-size: 13px'></div>
+<div id='calendar' style='margin: 3em 0; font-size: 13px'></div>
<script type="text/javascript">
@@ -35,8 +34,9 @@ var lastview;
$("#calendar").hide();
}
- function getPoolID(poolID){
- poolID = selectedOption.value;
+ function getPoolID() {
+ poolID = 1;
+ //poolID = selectedOption.value;
return poolID;
}
@@ -48,6 +48,7 @@ var lastview;
poolID = selectedOption.value;
setVisible('pool' + poolID);
}
+
function deselectAll() {
selectForm = document.PoolSelectForm;
selectBox = selectForm.PoolSelectbox;
@@ -83,8 +84,8 @@ var lastview;
slotMinutes: 30,
defaultEventMinutes: 5,
-
- events: "/event/eventlist",
+
+ events: "/event/eventlist/poolID/" + getPoolID(),
@@ -111,12 +112,13 @@ var lastview;
select: function( startDate, endDate, allDay, jsEvent, view ) {
- //$.post("/event/add/evstart" + startDate + "/evend" + endDate);
- //self.location="/event/add/evstart" + startDate + "/evend" + endDate;
- //alert(startDate + "\n" + endDate);
if (!confirm("Are you sure to add an Event from " + startDate + " to " + endDate + " ?")) {
-
- }else {self.location="/event/add/";}
+ $('#calendar').fullCalendar( 'unselect' );
+ }else {
+ self.location="/event/add/";
+ //self.location="/event/add/evstart" + startDate + "/evend" + endDate;
+ //$.post("/event/add/evstart" + startDate + "/evend" + endDate);
+ }
},