Subversion Repositories Applications.gtt

Rev

Rev 26 | Rev 45 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
//==================================== GTT v4 ==================================
// Niveau d'erreur
error_reporting(E_ALL);

// Identification
define('GTT_AUTH_SESSION_NOM', 'gtt_v4');
$tps = 3600*24*30;
define('GTT_AUTH_SESSION_DUREE', (int)$tps);

// Base de données
define('GTT_BDD_NOM', 'gestion_v4');
define('GTT_BDD_DSN', 'mysql://root:0000@localhost/'.GTT_BDD_NOM);

// Les constantes d'action
define ('GTT_ACTION_CONNEXION', 'gestion');
define ('GTT_ACTION_DECONNEXION', 'identification_deconnexion');
define ('GTT_ACTION_IDENTIFICATION', 'identification');
define ('GTT_ACTION_PREFERENCE', 'preferences');
define ('GTT_ACTION_PREFERENCE_VALIDER', 'preferences_valider');
define ('GTT_ACTION_GESTION', 'gestion');
define ('GTT_ACTION_GESTION_VALIDER', 'gestion_valider');
define ('GTT_ACTION_UTILISATEUR', 'utilisateur');

// Les chemins d'accès
define('GTT_CHEMIN_APPLI', '');
define('GTT_CHEMIN_CLASSE', GTT_CHEMIN_APPLI.'classes/');
define('GTT_CHEMIN_PEAR', GTT_CHEMIN_CLASSE.'pear/');
define('GTT_CHEMIN_METIER', GTT_CHEMIN_CLASSE.'metiers/');
define('GTT_CHEMIN_MODULE', GTT_CHEMIN_APPLI.'modules/');
define('GTT_CHEMIN_ACTION', GTT_CHEMIN_APPLI.'actions/');
define('GTT_CHEMIN_PRESENTATION', GTT_CHEMIN_APPLI.'presentation/');
define('GTT_CHEMIN_VUE', GTT_CHEMIN_APPLI.'vues/');

// Inclusion des chemins des bibliothèques
ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.GTT_CHEMIN_PEAR);

// Les valeur de la bdd
define('GTT_ABSCENCE_ID_CP', 1);
define('GTT_ABSCENCE_ID_RTT', 2);
define('GTT_ABSCENCE_ID_MALADIE', 3);
define('GTT_ABSCENCE_ID_GREVE', 4);

//==================================== GTT v3 ==================================
/* definition des chemins d'acces */
define ("CHEMIN",'');
define("CHEMIN_PRESENTATION",CHEMIN.'presentation/');
define("CHEMIN_CALENDRIER",CHEMIN_PRESENTATION);
define("CHEMIN_CSS",CHEMIN.'presentation/');
define("CHEMIN_CLASSES_METIER",CHEMIN.'classes_metier/');
define("CHEMIN_CLASSES",CHEMIN.'classes/');
define("CHEMIN_LANGUES",CHEMIN.'langues/');
define("CHEMIN_MENU",CHEMIN.'menu/');
define("CHEMIN_CONTROLEUR",CHEMIN.'controleur/');

// Définition des constantes d'action v3
define ('GESTION_TRAVAIL', 1);
define ('GESTION_ADMIN_UTILISATEUR', 13);
define ('GESTION_EDITER_UTILISATEUR', 14);
define ('GESTION_ADMIN_PROJET', 15);
define ('GESTION_ADMIN_CATEGORIE', 16);
define ('GESTION_ADMIN_MOTIF_ABSENCE', 17);
define ('GESTION_ADMIN_STATUT', 18);
define ('GESTION_ADMIN_FRAIS', 19);
define ('GESTION_ADMIN_TACHE', 20);
define ('GESTION_EDITER_PREFERENCES', 21);
define ('GESTION_DECONNEXION', 22);

/* definition des constantes de plusieurs tests et divers */
$GLOBALS['dsn_v3'] = 'mysql://root:0000@localhost/gestion_v3';
$GLOBALS['urlBase'] = 'http://localhost/gestion/index.php?action=';
//on suppose que le nombre d'heure maximum par jour de travail est 23
$GLOBALS['limiteJourTravail'] = 24;
//on suppose que le nombre d'heure maximumde par jour de recuperation partielle est 11
$GLOBALS['limiteJourRecupPart'] = 12;

/* definition des constantes de nom de table et de leurs champs */
define ("GEST_UTILISATEUR", "gestion_utilisateur");
define ("GEST_CHAMPS_ID_UTILISATEUR","gu_id_utilisateur");
define("GEST_CHAMPS_NOM","gu_nom");
define("GEST_CHAMPS_PRENOM", "gu_prenom");
define("GEST_CHAMPS_PASSWORD","gu_password");
define("GEST_CHAMPS_EMAIL","gu_email");
define("GEST_CHAMPS_TELEPHONE","gu_telephone");
define("GEST_CHAMPS_ADRESSE","gu_adresse");
define("GEST_CHAMPS_CODE_POSTAL","gu_code_postal");
define("GEST_CHAMPS_VILLE","gu_ville");
define("GEST_CHAMPS_QUOTA_HEURES_SUPP","gu_quota_heures_supp");
define("GEST_CHAMPS_CONGES_PAYES","gu_conges_payes");
define("GEST_CHAMPS_TEMPS_DE_TRAVAIL","gu_temps_de_travail");
define("GEST_CHAMPS_ADMIN","gu_admin");
define("GEST_CHAMPS_ADMIN2","gu_admin2");
define("GEST_CHAMPS_STATUT","gs_id_statut");
define("GEST_CHAMPS_NOTES", "gu_notes");

//******************motif absence***********************//

define("GEST_MOTIF_ABSENCE","gestion_motif_absence");
define("GEST_CHAMPS_ID_MOTIF","gma_id_motif");
define("GEST_CHAMPS_LIBELLE_MOTIF","gma_libelle_motif");
define("GEST_CHAMPS_TYPE_RTT","gma_type_rtt");

//******************note frais***********************//

define("GEST_FRAIS","gestion_note_frais");
define("GEST_CHAMPS_ID_FRAIS","gnf_if_frais");
define("GEST_CHAMPS_LIBELLE_FRAIS","gnf_libelle_frais");

//******************depenses***********************//

define("GEST_DEPENSE","gestion_depense");
define("GEST_CHAMPS_DATE_FRAIS","gd_date_depense");
define("GEST_CHAMPS_MONTANT_HT","gd_montant_ht");
define("GEST_CHAMPS_MONTANT_TTC","gd_montant_ttc");

//******************statut***********************//

define("GEST_STATUT","gestion_statut");
define("GEST_CHAMPS_ID_STATUT","gs_id_statut");
define("GEST_CHAMPS_LIBELLE_STATUT","gs_libelle_statut");

//******************categorie***********************//

define("GEST_CATEGORIE","gestion_categorie");
define("GEST_CHAMPS_ID_CATEGORIE","gc_id_categorie");
define("GEST_CHAMPS_LIBELLE_CATEGORIE","gc_libelle_categorie");

//******************projet***********************//

define("GEST_PROJET","gestion_projet");
define("GEST_CHAMPS_ID_PROJET","gp_id_projet");
define("GEST_CHAMPS_NOM_PROJET","gp_nom_projet");
define("GEST_CHAMPS_DESCRIPTION_PROJET","gp_description");
define("GEST_CHAMPS_DATE_DEBUT_PROJET","gp_date_debut");
define("GEST_CHAMPS_DUREE_PREVUE_PROJET","gp_duree_prevue");
define("GEST_CHAMPS_AVANCEMENT_PROJET","gp_avancement");

//******************absence***********************//

define("GEST_ABSENCE","gestion_absence");
define("GEST_CHAMPS_DATE_DEBUT_ABSENCE","ga_date_debut");
define("GEST_CHAMPS_DATE_FIN_ABSENCE","ga_date_fin");
define("GEST_CHAMPS_DATE_ENVOI_LETTRE","ga_date_envoi_lettre");

//******************travail***********************//

define("GEST_TRAVAIL","gestion_travail");
define("GEST_CHAMPS_DATE_TRAVAIL","gt_date_travail");
define("GEST_CHAMPS_DUREE_TRAVAIL","gt_duree_travail");

//******************preferences***********************//

define("GEST_PREFERENCES","gestion_preferences");

//******************taches***********************//

define("GEST_TACHES","gestion_taches");
define("GEST_CHAMPS_ID_TACHE","gt_id_tache");
define("GEST_CHAMPS_NOM_TACHE","gt_nom_tache");
define("GEST_CHAMPS_DESCRIPTION_TACHE","gt_description_tache");
define("GEST_CHAMPS_DATE_DEB_TACHE","gt_date_debut_tache");
define("GEST_CHAMPS_DUREE_PREVUE_TACHE","gt_duree_prevue");
define("GEST_CHAMPS_AVANCEMENT_TACHE","gt_avancement_tache");
define("GEST_CHAMPS_TEMPS_REEL_TACHE","gt_duree_reelle_tache");

//******************prevision***********************//
define ("GEST_PREVISION","gestion_prevision_tache");
define ("GEST_CHAMPS_DATE_PREVISION","gpt_date_prevision");
define ("GEST_CHAMPS_DUREE_PREVISION","gpt_duree_prevision");

?>