我一直在努力让这个工作。我正在使用 Joomla 和 directphp,所以在文章中我可以直接在文章中输入我的 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/');
}
?>