summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/add.phtml
blob: 11ac2714332d305debb8ffe10827acb47bd63d3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<h1>Add Event</h1>
<?php
$this->addForm->setAction($this->url());
$this->bootoslist = $this->addForm->getBootoslist();
$this->configlist = $this->addForm->getConfiglist();
if(isset($this->bootoslist)) {
	foreach($this->bootoslist as $bootos) {
		if(array_key_exists($bootos->getID(), $this->configlist)) {
			$bootosIDs[] = $bootos->getID();
		}
	}
}
echo "<script type=\"text/javascript\">";
$ids = implode(", ", $bootosIDs);
echo "var bootosIDs = new Array(" . $ids . ");\n";
echo "</script>";
echo $this->addForm;
echo "<script type=\"text/javascript\">\n";
if(isset($this->params['add'])) {
	echo "addeventcategoryfieldChanged('category', bootosIDs, '" . $this->params['add'] . "');\n";
} else {
	echo "addeventcategoryfieldChanged('category', bootosIDs);\n";
}
echo 'immediateChanged("immediate", bootosIDs);
		$(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>';
?>