summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/event/add.phtml
blob: a84e8b57cb536a7632530241c3854dc9f59b612f (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                  
                                        

                                                     

                                               


                                                                           






                                                          
                    




















                                                                    
 
<h1>Add Event</h1>
<?php
$this->addForm->setAction($this->url());
$this->bootoslist = $this->addForm->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 "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>';
?>