Am I doing something wrong?
Hello All,
I've setup my calendar page to show two months, however, the first event on the 2nd month always shows the event as being multiple on the ALT text (im using pop-ups rather than mouse over for now), even tho there is only one event (ive checked, deleted and re-added etc). The ALT text displayed is ">> MULTIPLE EVENTS <<". It does however show the correct category colour and doesnt say anything about being multiple on the pop-up.
If you navigate to make the 2nd month the first month so to speak, it shows as I would expect. Can anyone advise what I'm doing wrong?
I've attached a couple of screenshots which may help explain easier. The first screenshot shows September as my 2nd month and then the second shows September my 1st month. The same thing happens for October.
Sorry its kinda hard to explain the problem.
Also here is the entire code I'm using (the first half was taken from a previous thread which lets the visitor change the date)
Code:
<?php
$mo=$_REQUEST[mo];
$yr=$_REQUEST[yr];
if (!isset($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
if (!isset($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
?>
<p>Change the date if required: </p>
<form name="form3" method="post" action="<?php echo $PHP_SELF ?>">
<select name="mo" id="mo">
<?php
for ($N=1; $N<=12; $N++) {
echo "<option value='$N'";
if ($N==$mo) echo " SELECTED";
echo ">$mth[$N]</option>";
}
?>
</select>
<select name="yr" id="yr">
<?php
for ($N=2000; $N<=2036; $N++) {
echo "<option";
if ($N==$yr) echo " SELECTED";
echo ">$N</option>";
}
?>
</select>
<br>
<input type="submit" name="Submit" value="Go">
</form>
<?php
echo "<table><tr>";
echo "<td align=\"center\">";
require("../test/calendar/calendar.php");
if (++$mo > 12) {
$mo = 1;
$yr++;
}
echo "</td>";
echo "<td width='25'></td>";
echo "<td align=\"center\">";
require("../test/calendar/calendar.php");
echo "</td>";
echo "</tr>";
echo "</table>"
?>
Apart from that it appears to be working a treat at the moment!
|