|
 |
|
มีท่านใดเคยใช้ PHP - Calendar, Datepicker Calendar ตัวนี้ป่าวครับ สงสัยตอนแสดงวันที่ echo |
|
 |
|
|
 |
 |
|
มีท่านใดเคยใช้ PHP - Calendar, Datepicker Calendar ตัวนี้ป่าวครับ สงสัยตอนแสดงวันที่ echo
ผมไปดูโค๊ดที่ลักษณคล้ายๆกัน จะเป็นประมาณนี้ครับ
Code ของ FCKeditor
$oFCKeditor->Value =$row['text'] ;
Code ของ KoolCalendar - Advanced PHP CalendarKoolCalendar - Advanced PHP Calendar
$datepicker->Value=$row['date'] ;
แต่ถ้าเป็นโค๊ด PHP - Calendar, Datepicker Calendar ผมไม่รู้ว่าจะใช้คำสั่งอะไร ผมลองหลายคำสั่งแล้ว
รบกวนเพื่อนช่วยนำไปทดสอบหน่อยครับ
Code (PHP)
<link href="calendar/calendar.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="calendar/calendar.js"></script>
<?php
require_once('calendar/classes/tc_calendar.php');
$myCalendar = new tc_calendar("created", true, false);
$myCalendar->setIcon("calendar/images/iconCalendar.gif");
$myCalendar->setDate(date('d'), date('m'), date('Y'));
$myCalendar->setPath("calendar/");
$myCalendar->setYearInterval(2000, 2015);
$myCalendar->dateAllow('2008-05-13', '2015-03-01');
$myCalendar->setDateFormat('j F Y');
$myCalendar->setAlignment('left', 'bottom');
$myCalendar->setSpecificDate(array("2011-04-01", "2011-04-04", "2011-12-25"), 0, 'year');
$myCalendar->setSpecificDate(array("2011-04-10", "2011-04-14"), 0, 'month');
$myCalendar->setSpecificDate(array("2011-06-01"), 0, '');
$myCalendar->writeScript();
?>
ข้อมูลจาก : http://www.triconsole.com/php/calendar_datepicker.php
Tag : PHP, MySQL, JavaScript, Ajax, jQuery, CakePHP

|
ประวัติการแก้ไข 2012-07-31 17:15:49
|
 |
 |
 |
 |
Date :
2012-07-31 17:12:49 |
By :
nattkhanesha |
View :
1519 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
คือ ผมอยากได้ คำสั้งแบบนี้ อะไรประมาณนี้ครับ เพื่อจะนำไปใช้ในการแก้ไขวันที่
Code (PHP)
$myCalendar->Value=$row['date'] ;
|
 |
 |
 |
 |
Date :
2012-08-01 07:53:27 |
By :
nattkhanesha |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|