Subversion Repositories Applications.gtt

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jpm 1
<?php
2
 
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
22
// |@author ABDOOL RAHEEM shaheen   shaheenar50@hotmail.com                                                 |
23
// |@version 3                                                                                            |
24
 
25
// +------------------------------------------------------------------------------------------------------+
26
/*
27
*fichier contenant le menu principal de l'application de gestion du temps de travail
28
*@package gtt_general
29
//Auteur original :
30
*@author        Dorian Bannier <dbannier@aol.com>
31
//Autres auteurs :
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@copyright     Copyright (C) 2003 Tela-Botanica
34
*/
35
// +------------------------------------------------------------------------------------------------------+
36
// |                                            INCLUSION DE FICHIERS                                       |
37
// +------------------------------------------------------------------------------------------------------+
38
 
39
//fichiers de la bibliotheque PEAR
40
include_once "Auth/Auth.php";
41
include_once "DB.php";
42
 
43
//fichiers de configuration
44
/*include_once '/home/shaheen/Documents/projet_tela_timesheet/specification_detaillee/classes_metier/gtt_config.inc.php';
45
include_once CHEMIN_LANGUES.'gtt_langue_fr.inc.php';
46
 
47
//classes metier
48
include_once CHEMIN_CLASSES_METIER.'gtt_utilisateur.class.php';
49
 
50
 
51
//classes
52
include_once CHEMIN_CLASSES.'gtt_authentification.php';
53
include_once CHEMIN_MENU.'gtt_menu_admin_utilisateur.php';
54
include_once CHEMIN_MENU.'gtt_menu_admin_categorie.php';
55
include_once CHEMIN_MENU.'gtt_menu_admin_motif_absence.php';
56
include_once CHEMIN_MENU.'gtt_menu_admin_statut.php';
57
include_once CHEMIN_MENU.'gtt_menu_admin_projet.php';
58
include_once CHEMIN_PRESENTATION.'gtt_calendrier.class.php';
59
 
60
 
61
//fonctions generiques
62
include_once '/home/shaheen/Documents/projet_tela_timesheet/specification_detaillee/presentation/gtt_fonctions_generique_affichage.php';
63
//creation du dsn
64
//$dsn="mysql://root:@localhost/gestion_test_v3";
65
$dsn="mysql://shaheen:shaheen@162.38.234.6/gestion_test_v3";
66
//connexion a la base de donnees
67
$GLOBALS['db']=DB::connect($dsn);
68
*/
69
include_once 'gtt_calendrier.class.php';
70
include_once 'gtt_config.inc.php';
71
 
72
$c=new Calendrier($PHP_SELF,31,2004);
73
//echo " mois :$c->mois";
74
echo "<br />";
75
 
76
//echo "no de semaine";
77
//echo date("W",mktime(0,0,0,7,29,2004));
78
 
79
$d=mktime(0,0,0,7,16,2004);
80
echo "<br />";
81
$l=$c->afficherCalendrier(2004);
82
 
83
echo $l;
84
$f=$c->isFerie($d);
85
echo "ferie : ".intval($f);
86
 
87
//$t=&Calendrier::lundiEtDimancheSemaine(33,2004);
88
//$b=date('d-M-Y',mktime(0,0,0,1,$t[0],2004));
89
//$d=date('d-M-Y',mktime(0,0,0,1,$t[1],2004));
90
//echo "lundi : $b";
91
//echo "dimanche : $d";
92
echo "timestamp: ".date('d-m-Y',$d)." <br />";
93
$dplus=$d+(3600*24*18);
94
echo "timestamp: ".date('d-m-Y',$dplus)." <br />";
95
 
96
?>