Subversion Repositories Applications.gtt

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1 → Rev 2

/trunk/test.php
New file
0,0 → 1,96
<?php
 
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU Lesser General Public |
// | License as published by the Free Software Foundation; either |
// | version 2.1 of the License, or (at your option) any later version. |
// | |
// | This library is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
// | Lesser General Public License for more details. |
// | |
// | You should have received a copy of the GNU Lesser General Public |
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// |@author ABDOOL RAHEEM shaheen shaheenar50@hotmail.com |
// |@version 3 |
 
// +------------------------------------------------------------------------------------------------------+
/*
*fichier contenant le menu principal de l'application de gestion du temps de travail
*@package gtt_general
//Auteur original :
*@author Dorian Bannier <dbannier@aol.com>
//Autres auteurs :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright Copyright (C) 2003 Tela-Botanica
*/
// +------------------------------------------------------------------------------------------------------+
// | INCLUSION DE FICHIERS |
// +------------------------------------------------------------------------------------------------------+
 
//fichiers de la bibliotheque PEAR
include_once "Auth/Auth.php";
include_once "DB.php";
 
//fichiers de configuration
/*include_once '/home/shaheen/Documents/projet_tela_timesheet/specification_detaillee/classes_metier/gtt_config.inc.php';
include_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
 
//classes metier
include_once CHEMIN_CLASSES_METIER.'gtt_utilisateur.class.php';
 
 
//classes
include_once CHEMIN_CLASSES.'gtt_authentification.php';
include_once CHEMIN_MENU.'gtt_menu_admin_utilisateur.php';
include_once CHEMIN_MENU.'gtt_menu_admin_categorie.php';
include_once CHEMIN_MENU.'gtt_menu_admin_motif_absence.php';
include_once CHEMIN_MENU.'gtt_menu_admin_statut.php';
include_once CHEMIN_MENU.'gtt_menu_admin_projet.php';
include_once CHEMIN_PRESENTATION.'gtt_calendrier.class.php';
 
 
//fonctions generiques
include_once '/home/shaheen/Documents/projet_tela_timesheet/specification_detaillee/presentation/gtt_fonctions_generique_affichage.php';
//creation du dsn
//$dsn="mysql://root:@localhost/gestion_test_v3";
$dsn="mysql://shaheen:shaheen@162.38.234.6/gestion_test_v3";
//connexion a la base de donnees
$GLOBALS['db']=DB::connect($dsn);
*/
include_once 'gtt_calendrier.class.php';
include_once 'gtt_config.inc.php';
 
$c=new Calendrier($PHP_SELF,31,2004);
//echo " mois :$c->mois";
echo "<br />";
 
//echo "no de semaine";
//echo date("W",mktime(0,0,0,7,29,2004));
 
$d=mktime(0,0,0,7,16,2004);
echo "<br />";
$l=$c->afficherCalendrier(2004);
 
echo $l;
$f=$c->isFerie($d);
echo "ferie : ".intval($f);
 
//$t=&Calendrier::lundiEtDimancheSemaine(33,2004);
//$b=date('d-M-Y',mktime(0,0,0,1,$t[0],2004));
//$d=date('d-M-Y',mktime(0,0,0,1,$t[1],2004));
//echo "lundi : $b";
//echo "dimanche : $d";
echo "timestamp: ".date('d-m-Y',$d)." <br />";
$dplus=$d+(3600*24*18);
echo "timestamp: ".date('d-m-Y',$dplus)." <br />";
 
?>
Property changes:
Added: svn:executable