summaryrefslogblamecommitdiffstats
path: root/application/views/scripts/event/add.phtml
blob: e65720fe33f3dafe63762119a1e3e0bed4b23dac (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">';
if(isset($this->params['add'])) {
	echo 'addeventcategoryfieldChanged("category", bootosIDs);\n';
} else {
	echo 'addeventcategoryfieldChanged("category", bootosIDs, true);\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>';
?>