0

Hello, I have a problem that I'm pretty sure I already got done before but I got lost since I didn't note down my changes with my code. My problem is that I need my displayed calendar to move fluidly showing the next 4 months and the previous 4 months. This is my calendar php.

</table></td>
    </tr>
    <tr> 
      <td align=center> 
        <?

print "<table cellpadding=1 cellspacing=0 border=0>";

for($i=0;$i<1;$i++) {

  print "<tr>";

  for($j=0;$j<4;$j++) {

    print "<td>";

    $cal->SetDate($month,$year);

    $cal->Show();

    $month++;

    if ($month==13) {

      $month=1;

      $year++;

    }

    print "</td>";

  }

  print "</tr>";

}

print "</table>";



if ($page>1) {

  $prev=$page-1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$prev\">Prev</a>&nbsp;";

}

if ($page>=1) {

  $next=$page+1;

  print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$next\">Next</a>";

}

?>
      </td>
    </tr>
  </form>
</table>

Can anyone help? Please...

2
Contributors
1
Reply
19
Views
4 Years
Discussion Span
Last Post by diafol
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.