summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/add.phtml
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-14 13:28:03 +0200
committerBjörn Geiger2011-10-14 13:28:03 +0200
commitf872fa5c2be8a459e6a3bddb99fc8f71a84d8930 (patch)
tree218a5394eb6ef4eb70b05c361fd6006dbca8a3bb /application/views/scripts/event/add.phtml
parentKleinen Fehler behoben (diff)
downloadpoolctrl-f872fa5c2be8a459e6a3bddb99fc8f71a84d8930.tar.gz
poolctrl-f872fa5c2be8a459e6a3bddb99fc8f71a84d8930.tar.xz
poolctrl-f872fa5c2be8a459e6a3bddb99fc8f71a84d8930.zip
js korrigiert
Diffstat (limited to 'application/views/scripts/event/add.phtml')
-rwxr-xr-xapplication/views/scripts/event/add.phtml32
1 files changed, 32 insertions, 0 deletions
diff --git a/application/views/scripts/event/add.phtml b/application/views/scripts/event/add.phtml
index 8f06093..64fcc32 100755
--- a/application/views/scripts/event/add.phtml
+++ b/application/views/scripts/event/add.phtml
@@ -1,5 +1,37 @@
<h1>Add Event</h1>
<?php
$this->addForm->setAction($this->url());
+$this->bootoslist = $this->addForm->getBootoslist();
+if(isset($this->bootoslist)) {
+ foreach($this->bootoslist as $bootos) {
+ $bootosIDs[] = $bootos->getID();
+ }
+}
+echo "<script type=\"text/javascript\">";
+$ids = implode(", ", $bootosIDs);
+echo "var bootosIDs = new Array(" . $ids . ");\n";
+echo "bootosfieldChanged(\"pbs_bootosID\", bootosIDs);\n";
+echo "</script>";
echo $this->addForm;
+echo '<script type="text/javascript">
+ addeventcategoryfieldChanged("category", bootosIDs);
+ immediateChanged("immediate");
+ $(function() {
+ $("#start").datetimepicker({
+ dateFormat: "mm/dd/yy",
+ timeFormat: "hh:mm tt",
+ ampm: true
+ });
+ $("#end").datetimepicker({
+ dateFormat: "mm/dd/yy",
+ timeFormat: "hh:mm tt",
+ ampm: true
+ });
+ $("#repeatdate").datetimepicker({
+ dateFormat: "mm/dd/yy",
+ timeFormat: "hh:mm tt",
+ ampm: true
+ });
+ });
+ </script>';
?> \ No newline at end of file