Reply Review

Reply to:

krishna wrote on 2014-03-30 02:54:36

i hv used this
$myCalendar->dateAllow(date('Y-m-d'), '2016-12-31' );
but it disables all selection process :/
the i click javascript ...it say
the local host say : 0000:00:00
i hv used below code
<form name="form1" method="post" action="">
<?php
$myCalendar = new tc_calendar("date2");
$myCalendar->setIcon("calendar/images/iconCalendar.gif");

$myCalendar->setDate(date('d'), date('m'), date('Y'));
$myCalendar->setPath("calendar/");

$myCalendar->setYearInterval(2010, 2020);
//$myCalendar->dateAllow('2012-01-10', '2016-12-31', true);
$myCalendar->dateAllow(date('Y-m-d'), '2016-12-31' );

$myCalendar->startDate(7);
$myCalendar->autoSubmit(true, "form1");
$myCalendar->showWeeks(true);
//Tooltips
$myCalendar->setToolTips(array("2013-12-25"), "Merry Chirstmas", "year");
$myCalendar->setToolTips(array("2013-01-01"), "New Year", "year");

$myCalendar->setTimezone("Asia/Calcutta");
$myCalendar->writeScript();
?>
<p>
<input type="button" name="button3" id="button3" value="Check the Date" onClick="javascript:alert(this.form.date2.value);">
<input type="button" name="button4" id="button4" value="Set Date to today" onClick="javascript:setCalendarValue1();">
<script type="text/javascript">
<!--
function setCalendarValue1(){
setValue('date2', '<?=date("Y-m-d");?>');
}
//-->
</script>
</p>
-----------------------------------------
php calender date picker ...version 3.71
thanks

Message:
Name:
Email:
(optional)
(Your email that entered here will not show anywhere on website and will use only reference when someone reply your post)
  I want to receive a copy of email on this post (your email is needed)
 
Code:
 
 
Search this site
Programming Tutorial
CSharp (21)
PHP (12)
HTML (12)
ASP (14)