From fabe6864db8fbb7f2923b598e68f14688ee8d411 Mon Sep 17 00:00:00 2001 From: pyg77 Date: Wed, 13 Mar 2013 18:29:48 +0100 Subject: [PATCH] =?UTF-8?q?Meilleure=20int=C3=A9gration=20de=20la=20framan?= =?UTF-8?q?av?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitmodules | 3 + bandeaux.php | 10 +-- choix_date.php | 7 +- framanav | 1 + install.postresql.sql.bak | 147 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 161 insertions(+), 7 deletions(-) create mode 100644 .gitmodules create mode 160000 framanav create mode 100644 install.postresql.sql.bak diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8334e1c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "framanav"] + path = framanav + url = https://github.com/framasoft/framanav.git diff --git a/bandeaux.php b/bandeaux.php index bcd2b20..dbc0c85 100644 --- a/bandeaux.php +++ b/bandeaux.php @@ -41,11 +41,11 @@ include_once('fonctions.php'); function framanav() { - if (file_exists($_SERVER['DOCUMENT_ROOT']."/framanav/nav.inc.html")) { - echo "\n".' '."\n";; - echo ''."\n"; - include_once($_SERVER['DOCUMENT_ROOT']."/framanav/nav.inc.html"); - echo ' '."\n"; + if (file_exists($_SERVER['DOCUMENT_ROOT']."/framanav/nav.php")) { + //echo "\n".' '."\n";; + //echo ''."\n"; + include_once($_SERVER['DOCUMENT_ROOT']."/framanav/nav.php"); + //echo ' '."\n"; } } diff --git a/choix_date.php b/choix_date.php index b58e4ca..0349ef7 100644 --- a/choix_date.php +++ b/choix_date.php @@ -41,7 +41,7 @@ session_start(); include_once('creation_sondage.php'); -if (file_exists('bandeaux_local.php')) { +if (is_readable('bandeaux_local.php')) { include_once('bandeaux_local.php'); } else { include_once('bandeaux.php'); @@ -224,11 +224,14 @@ if (!issetAndNoEmpty('nom', $_SESSION) && !issetAndNoEmpty('adresse', $_SESSION) echo ''."\n"; //Debut du formulaire et bandeaux de tete - echo '
'."\n"; + framanav(); logo(); bandeau_tete(); bandeau_titre(_("Poll dates (2 on 2)")); sous_bandeau_choix(); + + echo ''."\n"; + //ajout pyg pour la cohérence graphique echo '
'; diff --git a/framanav b/framanav new file mode 160000 index 0000000..637d5e6 --- /dev/null +++ b/framanav @@ -0,0 +1 @@ +Subproject commit 637d5e6ffa33c5bc11e87dee893c76cbdbb005fb diff --git a/install.postresql.sql.bak b/install.postresql.sql.bak new file mode 100644 index 0000000..b02c955 --- /dev/null +++ b/install.postresql.sql.bak @@ -0,0 +1,147 @@ +--========================================================================== +-- +--Université de Strasbourg - Direction Informatique +--Auteur : Guilhem BORGHESI +--Création : Février 2008 +-- +--borghesi@unistra.fr +-- +--Ce logiciel est régi par la licence CeCILL-B soumise au droit français et +--respectant les principes de diffusion des logiciels libres. Vous pouvez +--utiliser, modifier et/ou redistribuer ce programme sous les conditions +--de la licence CeCILL-B telle que diffusée par le CEA, le CNRS et l'INRIA +--sur le site "http://www.cecill.info". +-- +--Le fait que vous puissiez accéder à cet en-tête signifie que vous avez +--pris connaissance de la licence CeCILL-B, et que vous en avez accepté les +--termes. Vous pouvez trouver une copie de la licence dans le fichier LICENCE. +-- +--========================================================================== +-- +--Université de Strasbourg - Direction Informatique +--Author : Guilhem BORGHESI +--Creation : Feb 2008 +-- +--borghesi@unistra.fr +-- +--This software is governed by the CeCILL-B license under French law and +--abiding by the rules of distribution of free software. You can use, +--modify and/ or redistribute the software under the terms of the CeCILL-B +--license as circulated by CEA, CNRS and INRIA at the following URL +--"http://www.cecill.info". +-- +--The fact that you are presently reading this means that you have had +--knowledge of the CeCILL-B license and that you accept its terms. You can +--find a copy of this license in the file LICENSE. +-- +--========================================================================== + +-- +-- PostgreSQL database dump +-- + +-- +-- Name: sondage; Type: TABLE; +-- + +CREATE TABLE sondage ( + id_sondage text NOT NULL, + commentaires text, + mail_admin text, + nom_admin text, + titre text, + id_sondage_admin text, + date_fin text, + format text, + mailsonde text +); + + +-- +-- Name: sujet_studs; Type: TABLE; +-- + +CREATE TABLE sujet_studs ( + id_sondage text, + sujet text +); + + +-- +-- Name: user_studs; Type: TABLE; +-- + +CREATE TABLE user_studs ( + nom text, + id_sondage text, + reponses text, + id_users serial NOT NULL +); + + +-- +-- Name: comments; Type: TABLE; +-- + +CREATE TABLE comments ( + id_sondage text, + comment text, + usercomment text, + id_comment serial NOT NULL +); + +CREATE OR REPLACE FUNCTION from_unixtime(integer) RETURNS timestamp AS +'SELECT $1::abstime::timestamp without time zone AS result' LANGUAGE 'SQL'; + +-- +-- Data for Name: sondage; Type: TABLE DATA; +-- + +COPY sondage (id_sondage, commentaires, mail_admin, nom_admin, titre, id_sondage_admin, date_fin, format, mailsonde) FROM stdin; +aqg259dth55iuhwm Repas de Noel du service Stephanie@saillard.com Stephanie Repas de Noel aqg259dth55iuhwmy9d8jlwk 1627100361 D+ +\. + + +-- +-- Data for Name: sujet_studs; Type: TABLE DATA; +-- + +COPY sujet_studs (id_sondage, sujet) FROM stdin; +aqg259dth55iuhwm 1225839600@12h,1225839600@19h,1226012400@12h,1226012400@19h,1226876400@12h,1226876400@19h,1227049200@12h,1227049200@19h,1227826800@12h,1227826800@19h +\. + + +-- +-- Data for Name: user_studs; Type: TABLE DATA; +-- + +COPY user_studs (nom, id_sondage, reponses, id_users) FROM stdin; +marcel aqg259dth55iuhwm 0110111101 933 +paul aqg259dth55iuhwm 1011010111 935 +sophie aqg259dth55iuhwm 1110110000 945 +barack aqg259dth55iuhwm 0110000 948 +takashi aqg259dth55iuhwm 0000110100 951 +albert aqg259dth55iuhwm 1010110 975 +alfred aqg259dth55iuhwm 0110010 1135 +marcs aqg259dth55iuhwm 0100001010 1143 +laure aqg259dth55iuhwm 0011000 1347 +benda aqg259dth55iuhwm 1101101100 1667 +Albert aqg259dth55iuhwm 1111110011 1668 +\. + + +-- +-- Name: sondage_pkey; Type: CONSTRAINT; +-- + +ALTER TABLE ONLY sondage + ADD CONSTRAINT sondage_pkey PRIMARY KEY (id_sondage); + + +-- +-- Name: user_studs_pkey; Type: CONSTRAINT; +-- + +ALTER TABLE ONLY user_studs + ADD CONSTRAINT user_studs_pkey PRIMARY KEY (id_users); +