私はこれを機能させるのに苦労してきました。私は directphp で Joomla を使用しているので、記事内で自分の php コードを直接入力できます。ダウンロードしたこのカレンダー (http://www.rainforestnet.com/datetimepicker/datetimepicker-tutorial.htm) を取得しましたが、正しく表示されますが、カレンダーの画像/アイコンをクリックしても何も起こりません。
<head>
<script src="datetimepicker_css.js"></script>
</head>
<?php
error_reporting(E_ALL);
session_start();
echo "</BR>";
echo "</BR>";
if ($_SESSION['authman'] || $_SESSION['authhod']) {
include 'datalogin.php';
$manid1 = $_SESSION['manid'];
if (($manid1 == 113) || ($manid1 == 114)) {
$data10 = $_SESSION['views10'];
echo $data10;
echo "<form method='post'>";
echo "<label for='demo1'>Please enter a date here </label>";
echo "<input type='Text' id='demo1' maxlength='25' size='25'/>";
echo "<img src='images2/cal.gif' onclick='javascript:NewCssCal(demo1)' style='cursor:pointer'/>";
echo "</form>";
} else {
echo "You are not authorised to view this";
}
} else {
include 'ses_end.php';
header('Location: http://localhost/');
}
?>