Location: PHPKode > scripts > KoolAutoComplete - Great PHP Ajax AutoComplete > koolautocomplete-great-php-ajax-autocomplete/Examples/KoolCalendar/Calendar/MultiSelection/example.xml
<?xml version="1.0" encoding="utf-8"?>
<example id="MultiSelection" usedb="false">
	<title>MultiSelection</title>
	<metakeywords>php calendar,php ajax calendar,php date picker,php date time picker,</metakeywords>	 
	<metadescription>KoolCalendar support ajax MultiSelection.</metadescription>
	<description>
		<![CDATA[ 
<p>
KoolCalendar support multi date selection.
</p>
	 	]]>		
	</description>
	
	<samplecodes>
		<code header="Example.php">
			<![CDATA[
<?php
	require $KoolControlsFolder."/KoolCalendar/koolcalendar.php";
	require $KoolControlsFolder."/KoolAjax/koolajax.php";
	$koolajax->scriptFolder = $KoolControlsFolder."/KoolAjax";
	
	
	$cal = new KoolCalendar("cal"); //Create calendar object
	$cal->scriptFolder = $KoolControlsFolder."/KoolCalendar";//Set scriptFolder
	$cal->styleFolder="default";
	
	//Enable Ajax
	$cal->AjaxEnabled = true;
	$cal->AjaxLoadingImage = $KoolControlsFolder."/KoolAjax/loading/2.gif";

	//MultiView setting
	$cal->MultiViewColumns = 2;
	$cal->MultiViewRows = 1;	

	//Multi Selection setting
	$cal->EnableMultiSelect = true; //Enable MultiSelection
	$cal->UseColumnHeadersAsSelectors = true; //Able to select multi date by clicking to column header
	$cal->UseRowHeadersAsSelectors = true; //Able to select multi date by clicking to row header
	$cal->ShowViewSelector = true;
	
	//Init calendar before render
	$cal->Init();
?>

<form id="form1" method="post">	
	<div style="padding-top:20px;padding-bottom:40px;width:650px;<?php if ($style_select=="black") echo "background:#333"; ?>">
		<?php echo $koolajax->Render();?>
		<?php echo $cal->Render();?>
	</div>
</form>
			]]>			
		</code>			
	</samplecodes>
	<docs>
		<doc link="http://doc.koolphp.net/Controls/KoolCalendar/PHP/KoolCalendar_Class/index.php">KoolCalendar</doc>
	</docs>
</example>
Return current item: KoolAutoComplete - Great PHP Ajax AutoComplete