summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/event/add.phtml
blob: 64fcc32c422645cbef86a5d78474a253219b6db9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

                  
                                        










                                                          
                    




















                                                                    
 
<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>';
?>