summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/event/add.phtml
blob: 65c08d5a18a01e724d2e42e9f034d1b261ecae57 (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->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">
		bootosfieldChanged("pbs_bootosID", bootosIDs);
		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>';
?>