summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/event/edit.phtml
blob: c6a69f9a9038a5f53ade8b7f9901fb21753db284 (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
<h1>Edit Event</h1>
<?php
$this->editForm->setAction($this->url());
$this->bootoslist = $this->editForm->getBootoslist();
$this->configlist = $this->editForm->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 "bootosIDs = new Array(" . $ids . ");\n";
echo "</script>";
echo $this->editForm;
?>
<script type="text/javascript">
		bootosfieldChanged("pbs_bootosID", bootosIDs);
		$(function() {
			$("#start").datetimepicker({
				minDate: new Date(),
				dateFormat: "mm/dd/yy",
				timeFormat: "hh:mm tt",
				ampm: true
			});
			$("#end").datetimepicker({
				minDate: new Date(),
				dateFormat: "mm/dd/yy",
				timeFormat: "hh:mm tt",
				ampm: true
			});
			$("#repeatdate").datetimepicker({
				minDate: new Date(),
				dateFormat: "mm/dd/yy",
				timeFormat: "hh:mm tt",
				ampm: true
			});
		});
</script>