View Full Version : Not sure how it should work
prozak76
01-19-2004, 01:27 PM
The calendar itself appears on my page no problem. Only thing I am not sure about is, should I be able to change months on that page? IE should the calendar look like the demo? If this is what it should look like, what might I be doing wrong?
Thanks in advance.
oh yeah the url for my site is
Kozak Family Online (http://www.kozakfamilyonline.com)
Brian
01-19-2004, 01:32 PM
There is some code that should be added from the demo.php file to your web page just below the require("escal.php") script:
<?php
if (!$mo) $mo=date("m");
if (!$yr) $yr=date("Y");
$yb=$yr;
$yf=$yr;
$mb=$mo-1;
if ($mb<1) {$mb=12; $yb=$yr-1;}
$mf=$mo+1;
if ($mf>12) {$mf=1; $yf=$yr+1;}
?>
<table width="175" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="<? echo "$PHP_SELF?mo=$mb&yr=$yb" ?>"><<</a></font></td>
<td align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="<? echo $PHP_SELF ?>">-=-</a></font></td>
<td align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><a href="<? echo "$PHP_SELF?mo=$mf&yr=$yf" ?>">>></a></font></td>
</tr>
</table>
If this doesn't work, delete each <? echo $PHP_SELF ?> and change it to the name of your web page.
prozak76
01-19-2004, 01:35 PM
Thank you so much! It works great.
prozak76
01-19-2004, 01:39 PM
Ok, it works like it should, but now I have an invalid xhtml page.
These are the errors I am getting.
Line 133, column 92: cannot generate system identifier for general entity "yr"
...f" size="1"><< (/index.php?mo=1&yr=2004)</font></td>
^
Line 133, column 92: general entity "yr" not defined and no default entity (explain...).
...f" size="1"><< (/index.php?mo=1&yr=2004)</font></td>
^
Line 133, column 94: reference not terminated by REFC delimiter
... size="1"><< (/index.php?mo=1&yr=2004)</font></td>
^
Line 133, column 94: reference to external entity in attribute value
... size="1"><< (/index.php?mo=1&yr=2004)</font></td>
^
Line 133, column 94: reference to entity "yr" for which no system identifier could be generated
... size="1"><< (/index.php?mo=1&yr=2004)</font></td>
^
Line 133, column 91: entity was defined here
...if" size="1"><< (/index.php?mo=1&yr=2004)</font></td>
^
Line 135, column 108: reference not terminated by REFC delimiter
... size="1">>> (/index.php?mo=3&yr=2004)</font></td>
^
Line 135, column 108: reference to external entity in attribute value
... size="1">>> (/index.php?mo=3&yr=2004)</font></td>
^
Line 135, column 108: reference to entity "yr" for which no system identifier could be generated
... size="1">>> (/index.php?mo=3&yr=2004)</font></td>
^
Line 133, column 91: entity was defined here
...if" size="1"><< (/index.php?mo=1&yr=2004)</font></td>
^
Brian
01-25-2004, 09:23 PM
Version 5.0 will include the function to add navigational features below the calendar.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.