PHP Classes

File: teste.php

Recommend this page to a friend!
  Classes of Samuel Aiala Ferreira   BD Calendar   teste.php   Download  
File: teste.php
Role: Example script
Content type: text/plain
Description: A simple .php file for testing the calendar class
Class: BD Calendar
Output calendar with MySQL database integration
Author: By
Last change:
Date: 19 years ago
Size: 636 bytes
 

Contents

Class file image Download
<?PHP
include("CALENDARIO.class");

?>
<html>
<head>
</head>
<title>Agenda do Samuca :o)</title>
<?PHP
if ($HTTP_GET_VARS["dia"] != "") {
   
$dia = $HTTP_GET_VARS["dia"]; } else {
   
$dia = date("d"); }
   
if (
$HTTP_GET_VARS["mes"]) {
   
$mes = $HTTP_GET_VARS["mes"]; } else {
   
$mes = date("m"); }

if (
$HTTP_GET_VARS["ano"]) {
   
$ano = $HTTP_GET_VARS["ano"]; } else {
   
$ano = date("Y"); }
   
$cal = new CALENDARIO($dia,$mes,$ano);
$cal->HKSetaPaginaRaiz("?");
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?PHP
$cal
->HKShow();
?></body>
</html>