[opendebitdeboisson-commits] r363 - in branches/1.x: . dyn

0 views
Skip to first unread message

fray...@adullact.net

unread,
Apr 25, 2019, 8:43:00 AM4/25/19
to openmairie-ope...@googlegroups.com
Author: fraynaud
Date: 2019-04-25 14:42:57 +0200 (Thu, 25 Apr 2019)
New Revision: 363

Added:
branches/1.x/dyn/
branches/1.x/dyn/actions.inc.php
branches/1.x/dyn/comboaffichage.inc.php
branches/1.x/dyn/comboparametre.inc.php
branches/1.x/dyn/comboretour.inc.php
branches/1.x/dyn/config.inc.php
branches/1.x/dyn/database.inc.php
branches/1.x/dyn/debug.inc.php
branches/1.x/dyn/footer.inc.php
branches/1.x/dyn/include.inc.php
branches/1.x/dyn/index.php
branches/1.x/dyn/locales.inc.php
branches/1.x/dyn/menu.inc.php
branches/1.x/dyn/recherche.inc
branches/1.x/dyn/shortlinks.inc.php
branches/1.x/dyn/tdb.inc
branches/1.x/dyn/var.inc
branches/1.x/dyn/var_adresse_postale.inc
branches/1.x/dyn/var_point.inc
branches/1.x/dyn/varetatpdf.inc
branches/1.x/dyn/varlettretypepdf.inc
branches/1.x/dyn/varpdf.inc
branches/1.x/dyn/version.inc.php
Log:
dyn




Added: branches/1.x/dyn/actions.inc.php
===================================================================
--- branches/1.x/dyn/actions.inc.php (rev 0)
+++ branches/1.x/dyn/actions.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,57 @@
+<?php
+/**
+ * Ce fichier permet de configurer les liens presents dans les actions
+ *
+ * @package openmairie_exemple
+ * @version SVN: $Id: actions.inc.php 100 2010-09-09 08:29:29Z fmichon $
+ */
+
+/**
+ * $actions est le tableau associatif qui contient tous les liens presents dans
+ * les actions a cote du login et du nom de la collectivite
+ *
+ * Caracteristiques :
+ * --- tableau link
+ * - title [obligatoire]
+ * - description (texte qui s'affiche au survol de l'element)
+ * - href [obligatoire] (contenu du lien href)
+ * - class (classe css qui s'affiche sur l'element)
+ * - right (droit que l'utilisateur doit avoir pour visionner cet element)
+ * - target (pour ouvrir le lien dans une nouvelle fenetre)
+ */
+$actions = array();
+
+// Template
+/*
+$link = array(
+ "title" => _(""),
+ "description" => _(""),
+ "href" => "",
+ "target" => "",
+ "class" => "",
+ "right" => "",
+);
+array_push($actions, $link);
+*/
+
+// Mot de passe
+$link = array(
+ "title" => _("Mot de passe"),
+ "description" => _("Changer votre mot de passe"),
+ "href" => "../scr/password.php",
+ "class" => "actions-password",
+ "right" => "password",
+);
+array_push($actions, $link);
+
+// Deconnexion
+$link = array(
+ "title" => _("Deconnexion"),
+ "description" => _("Quitter l'application"),
+ "href" => "../scr/logout.php",
+ "class" => "actions-logout",
+ "right" => "logout",
+);
+array_push($actions, $link);
+
+?>
\ No newline at end of file

Added: branches/1.x/dyn/comboaffichage.inc.php
===================================================================
--- branches/1.x/dyn/comboaffichage.inc.php (rev 0)
+++ branches/1.x/dyn/comboaffichage.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,25 @@
+<?php
+//$Id: comboaffichage.inc,v 1.3 2008-06-26 09:18:41 jbastide Exp $
+// =========================================================================
+// Affectation des paramètres spécifiques applications pour COMBO.PHP 1.1
+// Retour lorsqu il y a plusieurs enregistrements correlles
+// choix dans le SELECT
+// $x=$row[$zoneCorrel]; // retour dans la zone correllée
+// $y=$row[$zoneOrigine] // retour dans la zone origine
+// il est possible de renvoyer d autre zone dans le formulaire
+// il est possible d afficher d autre zone de la table en combo
+// =========================================================================
+/*
+if($champOrigine=="nom"){
+ $aff=$row['client']." - ".$row['nom']." ".$row['prenom'];
+ $y=$row['nom'];
+ $a=$row['prenom'];
+ $b=$row['adresse1'];
+ $c=$row['adresse2'];
+ $d=$row['cp'];
+ $e=$row['ville'];
+ $f=$row['titre'];
+}
+*/
+
+?>
\ No newline at end of file

Added: branches/1.x/dyn/comboparametre.inc.php
===================================================================
--- branches/1.x/dyn/comboparametre.inc.php (rev 0)
+++ branches/1.x/dyn/comboparametre.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,9 @@
+<?php
+// $Id: comboparametre.inc,v 1.5 2008-06-26 09:18:41 jbastide Exp $
+// =========================================================================
+// Affectation des paramètres spécifiques applications pour COMBO.PHP 1.1
+// =========================================================================
+// if($champOrigine=="nom") $longueurRecherche=0;
+// Champ département 97 98 99 sur plus de 2 caractères
+//if($champCorrel2=="code_departement") $zoneCorrel2=substr($zoneCorrel2,0,2);
+?>
\ No newline at end of file

Added: branches/1.x/dyn/comboretour.inc.php
===================================================================
--- branches/1.x/dyn/comboretour.inc.php (rev 0)
+++ branches/1.x/dyn/comboretour.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,23 @@
+<?php
+// $Id: comboretour.inc,v 1.5 2008-06-26 09:18:41 jbastide Exp $
+// =========================================================================
+// affectation des paramètres specifiques applications pour COMBO.PHP 1.1
+// Retour lorsqu il y a qu un enregistrement correlle
+// $x=$row[$zoneCorrel]; // dans la zone correllée
+// $y=$row[$zoneOrigine]
+// il est possible de renvoyer d autre zone dans le formulaire
+// =========================================================================
+/*
+if($champOrigine=="nom") {
+ $y=$row['nom'];
+ $a=$row['prenom'];
+ $b=$row['adresse1'];
+ $c=$row['adresse2'];
+ $d=$row['cp'];
+ $e=$row['ville'];
+ $f=$row['titre'];
+}
+*/
+
+
+?>
\ No newline at end of file

Added: branches/1.x/dyn/config.inc.php
===================================================================
--- branches/1.x/dyn/config.inc.php (rev 0)
+++ branches/1.x/dyn/config.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,41 @@
+<?php
+/**
+ * Ce fichier permet de configurer divers parametres de l'application
+ *
+ * @package openmairie_exemple
+ * @version SVN: $Id: config.inc.php 330 2010-12-07 09:00:21Z fmichon $
+ */
+
+/**
+ *
+ */
+$config = array();
+
+//
+$config['application'] = _("opendebitboisson");
+
+//
+$config['title'] = ":: "._("openMairie")." :: "._("opendebitboisson");
+
+//
+$config['session_name'] = "opendebitboisson";
+
+/**
+ * Mode demonstration de l'application
+ * Permet de pre-remplir le formulaire de login avec l'identifiant 'demo' et le
+ * mot de passe 'demo'
+ * Default : $config['demo'] = false;
+ */
+$config['demo'] = false;
+
+/**
+ * Configuration des extensions autorisees dans le module upload.php
+ * Pour ajouter votre configuration, decommenter la ligne et modifier les extensions
+ * avec des ; comme separateur
+ * Default : $config['upload_extension'] = ".gif;.jpg;.jpeg;.png;.txt;.pdf;.csv;"
+ */
+//$config['upload_extension'] = ".gif;.jpg;.jpeg;.png;.txt;.pdf;.csv;"
+
+
+
+?>

Added: branches/1.x/dyn/database.inc.php
===================================================================
--- branches/1.x/dyn/database.inc.php (rev 0)
+++ branches/1.x/dyn/database.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,31 @@
+<?php
+/**
+ * Ce fichier permet le parametrage de la connexion a labase de donnees,
+ * chaque entree du tableau correspond a une base differente. Attention
+ * l'index du tableau conn represente l'identifiant du dossier dans lequel
+ * seront stockes les fichiers propres a cette base dans l'application
+ *
+ * @package openmairie_exemple
+ * @version SVN : $Id: database.inc.php 288 2010-12-02 13:52:25Z fmichon $
+ */
+
+// PostGreSQL
+
+
+$conn[1] = array(
+ "Openmairie debit de boisson keylargo 9.1",
+ "pgsql",
+ "pgsql",
+ "postgres",
+ "postgres",
+ "tcp",
+ "localhost",
+ "5432",
+ "",
+ "openboisson",
+ "AAAA-MM-JJ",
+ "openboisson",
+ ""
+);
+
+?>

Added: branches/1.x/dyn/debug.inc.php
===================================================================
--- branches/1.x/dyn/debug.inc.php (rev 0)
+++ branches/1.x/dyn/debug.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,22 @@
+<?php
+/**
+ * Ce fichier contient le parametrage pour le mode debug
+ *
+ * @package openmairie_exemple
+ * @version SVN: $Id: debug.inc.php 295 2010-12-03 08:32:57Z fmichon $
+ */
+
+/**
+ *
+ */
+(defined("PATH_OPENMAIRIE") ? "" : define("PATH_OPENMAIRIE", ""));
+require_once PATH_OPENMAIRIE."om_debug.inc.php";
+
+/**
+ *
+ */
+//define('DEBUG', VERBOSE_MODE);
+//define('DEBUG', DEBUG_MODE);
+//define('DEBUG', PRODUCTION_MODE);
+
+?>

Added: branches/1.x/dyn/footer.inc.php
===================================================================
--- branches/1.x/dyn/footer.inc.php (rev 0)
+++ branches/1.x/dyn/footer.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,56 @@
+<?php
+/**
+ * Ce fichier permet de configurer les liens presents dans le footer
+ *
+ * @package openmairie_exemple
+ * @version SVN: $Id: footer.inc.php 100 2010-09-09 08:29:29Z fmichon $
+ */
+
+/**
+ * $footer est le tableau associatif qui contient tous les liens presents dans
+ * le footer de l'application
+ *
+ * Caracteristiques :
+ * --- tableau link
+ * - title [obligatoire]
+ * - description (texte qui s'affiche au survol de l'element)
+ * - href [obligatoire] (contenu du lien href)
+ * - class (classe css qui s'affiche sur l'element)
+ * - right (droit que l'utilisateur doit avoir pour visionner cet element)
+ * - target (pour ouvrir le lien dans une nouvelle fenetre)
+ */
+$footer = array();
+
+// Template
+/*
+$link = array(
+ "title" => _(""),
+ "description" => _(""),
+ "href" => "",
+ "target" => "",
+ "class" => "",
+);
+array_push($footer, $link);
+*/
+
+// Documentation du site
+$link = array(
+ "title" => _("Documentation"),
+ "description" => _("Acceder a l'espace documentation de l'application"),
+ "href" => "http://www.openmairie.org/documentation",
+ "target" => "_blank",
+ "class" => "footer-documentation",
+);
+array_push($footer, $link);
+
+// Portail openMairie
+$link = array(
+ "title" => _("openMairie.org"),
+ "description" => _("Site officiel du projet openMairie"),
+ "href" => "http://www.openmairie.org/",
+ "target" => "_blank",
+ "class" => "footer-openmairie",
+);
+array_push($footer, $link);
+
+?>
\ No newline at end of file

Added: branches/1.x/dyn/include.inc.php
===================================================================
--- branches/1.x/dyn/include.inc.php (rev 0)
+++ branches/1.x/dyn/include.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,44 @@
+<?php
+/**
+ * Ce fichier permet de configurer quels paths vont etre ajoutes a la
+ * directive include_path du fichier php.ini
+ *
+ * @package openmairie_exemple
+ * @version SVN : $Id: include.inc.php 138 2010-10-08 12:52:36Z fmichon $
+ */
+
+/**
+ * Ce tableau permet de stocker la liste des chemins a ajouter a la directive
+ * include_path, vous pouvez modifier ces chemins avec vos propres valeurs si
+ * vos chemins ne sont pas deja inclus dans votre installation, par contre si
+ * vous avez deja configurer ces chemins dans votre installation vous pouvez
+ * commenter les lignes suivantes
+ */
+$include = array();
+
+/**
+ * @todo Remplacer 'getcwd()."/../"' par un moyen plus generique de recuperer
+ * le chemin racine de l'application
+ */
+// PEAR
+array_push($include, getcwd()."/../php/pear");
+
+// DB
+array_push($include, getcwd()."/../php/db");
+
+// FPDF
+array_push($include, getcwd()."/../php/fpdf");
+
+// OPENMAIRIE
+//array_push($include, getcwd()."/../php/openmairie");
+define("PATH_OPENMAIRIE", getcwd()."/../php/openmairie/");
+
+/**
+ * Ici on modifie la valeur de la directive de configuration include_path en
+ * fonction du parametrage present dans le fichier dyn/include.inc.php
+ */
+if (isset($include)) {
+ set_include_path(get_include_path().PATH_SEPARATOR.implode(PATH_SEPARATOR, $include));
+}
+
+?>
\ No newline at end of file

Added: branches/1.x/dyn/index.php
===================================================================
--- branches/1.x/dyn/index.php (rev 0)
+++ branches/1.x/dyn/index.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Ce fichier permet de faire une redirection vers le fichier index.php a la
+ * racine de l'application.
+ *
+ * @package openmairie_exemple
+ * @version SVN : $Id: index.php 14 2010-07-06 09:47:19Z fmichon $
+ */
+
+header("Location: ../index.php");
+exit();
+
+?>
\ No newline at end of file

Added: branches/1.x/dyn/locales.inc.php
===================================================================
--- branches/1.x/dyn/locales.inc.php (rev 0)
+++ branches/1.x/dyn/locales.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Ce fichier contient les parametres d'encodage et d'internationalisation
+ *
+ * @package openmairie_exemple
+ * @version SVN: $Id: locales.inc.php 100 2010-09-09 08:29:29Z fmichon $
+ */
+
+/**
+ * Codage des caracteres
+ */
+//define('CHARSET', 'ISO-8859-1');
+define('CHARSET', 'UTF8');
+/**
+ * Pour voir les autres locales disponibles, il faut voir le contenu du dossier
+ * locales/ et il faut que cette locale soit installee sur votre systeme
+ */
+define('LOCALE', 'fr_FR');
+
+/**
+ * Le dossier contenant les locales et les fichiers de traduction
+ */
+define('LOCALES_DIRECTORY', '../locales');
+
+/**
+ * Le domaine de traduction
+ */
+define('DOMAIN', 'openmairie');
+
+?>

Added: branches/1.x/dyn/menu.inc.php
===================================================================
--- branches/1.x/dyn/menu.inc.php (rev 0)
+++ branches/1.x/dyn/menu.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,367 @@
+<?php
+/**
+ * Ce fichier permet de configurer quelles actions vont etre disponibles
+ * dans le menu.
+ *
+ *
+ *
+ * @package openmairie_exemple
+ * @version SVN : $Id: menu.inc.php 324 2010-12-06 16:06:21Z fraynaud $
+ */
+
+/**
+ * $menu est le tableau associatif qui contient tout le menu de
+ * l'application, il contient lui meme un tableau par rubrique, puis chaque
+ * rubrique contient un tableau par lien
+ *
+ * Caracteristiques :
+ * --- tableau rubrik
+ * - title [obligatoire]
+ * - description (texte qui s'affiche au survol de la rubrique)
+ * - href (contenu du lien href)
+ * - class (classe css qui s'affiche sur la rubrique)
+ * - right (droit que l'utilisateur doit avoir pour visionner cette rubrique)
+ * - links [obligatoire]
+ *
+ * --- tableau links
+ * - title [obligatoire]
+ * - href [obligatoire] (contenu du lien href)
+ * - class (classe css qui s'affiche sur l'element)
+ * - right (droit que l'utilisateur doit avoir pour visionner cet element)
+ * - target (pour ouvrir le lien dans une nouvelle fenetre)
+ */
+$menu = array();
+
+// {{{ Rubrique application
+// inserer ici vos tables principales
+
+$rubrik = array(
+ "title" => _("Application"),
+ "class" => "application",
+ "right" => "menu_application",
+);
+$links = array();
+
+
+// *** APPLICATION ***
+// inserez ici les tables de votra application
+
+
+/*// ========================================================================
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=nom_table",
+ "class" => "nom_table",
+ "title" => _("nom_table"),
+ "right" => "nom_table"
+ ));
+// ========================================================================*/
+
+
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=etablissement",
+ "class" => "etablissement",
+ "title" => _("etablissement"),
+ "right" => "etablissement"
+ ));
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=etablissement_temporaire",
+ "class" => "etablissement",
+ "title" => _("etablissement Temporaire"),
+ "right" => "etablissement"
+ ));
+
+
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=perimetre",
+ "class" => "perimetre",
+ "title" => _("perimetre"),
+ "right" => "perimetre"
+ ));
+$rubrik['links'] = $links;
+array_push($menu, $rubrik);
+
+// {{{ Rubrique STATISTIQUES
+$rubrik = array(
+ "title" => _("Statistiques"),
+ "class" => "stat",
+ "right" => "reqmo",
+);
+
+$links = array();
+array_push($links,
+ array(
+ "href" => "../scr/requeteur.php?obj=stat_licence_type_fixe",
+ "class" => "statistique",
+ "title" => _("Nbr licence par type<br>(terme permanent)"),
+ "right" => "reqmo"
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/requeteur.php?obj=stat_licence_type",
+ "class" => "statistique",
+ "title" => _("Liste Etablissemnts par type"),
+ "right" => "reqmo"
+ ));
+$rubrik['links'] = $links;
+array_push($menu, $rubrik);
+//
+// {{{ Rubrique EXPORT
+$rubrik = array(
+ "title" => _("Export"),
+ "class" => "edition",
+ "right" => "menu_export",
+);
+
+$links = array();
+array_push($links,
+ array(
+ "href" => "../scr/edition.php",
+ "class" => "edition",
+ "title" => _("Edition"),
+ "right" => "edition"
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/reqmo.php",
+ "class" => "reqmo",
+ "title" => _("Requetes memorisees"),
+ "right" => "reqmo"
+ ));
+$rubrik['links'] = $links;
+array_push($menu, $rubrik);
+// }}}
+
+// {{{ Rubrique TRAITEMENT
+/*
+$rubrik = array(
+ "title" => _("Traitement"),
+ "class" => "traitement",
+ "right" => "menu_traitement",
+);
+$links = array();
+// *** TRAITEMENT ***
+// inserez le lien d acces au traitement
+*/
+
+/*// ========================================================================
+ array_push($links,
+ array(
+ "href" => "../trt/nom_du_traitement.php",
+ "class" => "traitement",
+ "title" => _("Traitement"),
+ "right" => "traitement"
+ ));
+// ========================================================================*/
+
+/*
+$rubrik['links'] = $links;
+array_push($menu, $rubrik);*/
+// }}}
+
+
+
+// {{{ Rubrique parametrage de l'application
+
+$rubrik = array(
+ "title" => _("Param&eacute;trage"),
+ "class" => "parametrage",
+ "right" => "menu_parametrage",
+);
+$links = array();
+// *** TABLES DE PARAMETRAGE ***
+// inserer ici vos tables de parametres
+// ========================================================================
+/*
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=nom_table",
+ "class" => "nom_table",array_push($links,
+ array(
+ "title" => "<hr/>",
+ "right" => array("gen"),
+ ));
+ "title" => _("nom_table"),
+ "right" => "nom_table"
+ ));
+*/
+
+// ////////////////////
+// TYPE DE LICENCE
+// ////////////////////
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=type_licence",
+ "class" => "type_licence",
+ "title" => _("Type de licence"),
+ "right" => "type_licence"
+ ));
+
+
+// ////////////////////
+// terme
+// ////////////////////
+
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=terme",
+ "class" => "terme",
+ "title" => _("Terme"),
+ "right" => "terme"
+ ));
+
+
+
+// ////////////////////
+// TYPE D'EXPLOITANT
+// ////////////////////
+ array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=exploitant",
+ "class" => "exploitant",
+ "title" => _("exploitant"),
+ "right" => "exploitant"
+ ));
+
+
+$rubrik['links'] = $links;
+array_push($menu, $rubrik);
+
+
+
+
+
+// {{{ Rubrique ADMINISTRATION
+//
+$rubrik = array(
+ "title" => _("Administration"),
+ "class" => "administration",
+ "right" => "menu_administration",
+);
+//
+$links = array();
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_collectivite",
+ "class" => "collectivite",
+ "title" => _("om_collectivite"),
+ "right" => "om_collectivite_tab"
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_parametre",
+ "class" => "collectivite",
+ "title" => _("om_parametre"),
+ "right" => "om_parametre_tab"
+ ));
+
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_sig_point",
+ "class" => "collectivite",
+ "title" => _("om_sig_point"),
+ "right" => "om_sig_point"
+ ));
+
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_widget",
+ "class" => "collectivite",
+ "title" => _("om_widget"),
+ "right" => "om_widget"
+ ));
+
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_tdb",
+ "class" => "collectivite",
+ "title" => _("om_tdb"),
+ "right" => "om_tdb"
+ ));
+
+
+array_push($links,
+ array(
+ "title" => "<hr/>",
+ "right" => array("om_utilisateur_tab", "om_profil_tab", "om_droit_tab")
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_profil",
+ "class" => "profil",
+ "title" => _("om_profil"),
+ "right" => "om_profil_tab"
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_droit",
+ "class" => "droit",
+ "title" => _("om_droit"),
+ "right" => "om_droit_multi"
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_utilisateur",
+ "class" => "utilisateur",
+ "title" => _("om_utilisateur"),
+ "right" => "om_utilisateur_tab"
+ ));
+array_push($links,
+ array(
+ "title" => "<hr/>",
+ "right" => array("om_etat_tab", "om_sousetat_tab", "om_lettretype_tab"),
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_etat",
+ "class" => "etat",
+ "title" => _("om_etat"),
+ "right" => "om_etat_tab"
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_sousetat",
+ "class" => "sousetat",
+ "title" => _("om_sousetat"),
+ "right" => "om_sousetat_tab"
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/tab.php?obj=om_lettretype",
+ "class" => "lettretype",
+ "title" => _("om_lettretype"),
+ "right" => "om_lettretype_tab"
+ ));
+array_push($links,
+ array(
+ "title" => "<hr/>",
+ "right" => array("import"),
+ ));
+array_push($links,
+ array(
+ "href" => "../scr/import.php",
+ "class" => "import",
+ "title" => _("Import"),
+ "right" => "import"
+ ));
+
+array_push($links,
+ array(
+ "title" => "<hr/>",
+ "right" => array("gen"),
+ ));
+array_push($links,
+ array(
+ "title" => _("Generateur"),
+ "href" => "../scr/gen.php",
+ "class" => "generator",
+ "right" => "gen",
+ ));
+$rubrik['links'] = $links;
+array_push($menu, $rubrik);
+// }}}
+
+?>

Added: branches/1.x/dyn/recherche.inc
===================================================================
--- branches/1.x/dyn/recherche.inc (rev 0)
+++ branches/1.x/dyn/recherche.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,4 @@
+<?php
+//$Id: recherche.inc,v 1.4 2009-09-02 19:23:19 fraynaud Exp $
+ //recherche globale sql/xxx/xxx.inc
+?>

Added: branches/1.x/dyn/shortlinks.inc.php
===================================================================
--- branches/1.x/dyn/shortlinks.inc.php (rev 0)
+++ branches/1.x/dyn/shortlinks.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Ce fichier permet de configurer les liens presents dans la barre de
+ * raccourcis presente en dessous des actions
+ *
+ * @package openmairie_exemple
+ * @version SVN : $Id: shortlinks.inc.php 102 2010-09-13 08:42:59Z fmichon $
+ */
+
+/**
+ * $shortlinks est le tableau associatif qui contient tous les liens presents
+ * dans les raccourcis en dessous des actions
+ *
+ * Caracteristiques :
+ * --- tableau link
+ * - title [obligatoire]
+ * - description (texte qui s'affiche au survol de l'element)
+ * - href [obligatoire] (contenu du lien href)
+ * - class (classe css qui s'affiche sur l'element)
+ * - right (droit que l'utilisateur doit avoir pour visionner cet element)
+ * - target (pour ouvrir le lien dans une nouvelle fenetre)
+ */
+$shortlinks = array();
+
+// Template
+/*
+$link = array(
+ "title" => _(""),
+ "description" => _(""),
+ "href" => "",
+ "target" => "",
+ "class" => "",
+ "right" => "",
+);
+array_push($shortlinks, $link);
+*/
+
+// Tableau de bord
+$link = array(
+ "title" => _("Tableau de bord"),
+ "description" => _("Acceder a la page d'accueil de l'application"),
+ "href" => "../scr/dashboard.php",
+ "class" => "shortlinks-dashboard",
+);
+array_push($shortlinks, $link);
+
+?>
\ No newline at end of file

Added: branches/1.x/dyn/tdb.inc
===================================================================
--- branches/1.x/dyn/tdb.inc (rev 0)
+++ branches/1.x/dyn/tdb.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,7 @@
+<?php
+// $Id$
+$description = _("Bienvenue ").$_SESSION["login"]."&nbsp;";
+$description.= _("dans votre tableau de bord ")."<a href='../scr/dashboard.php?edition=1'>"._("parametrable en cliquant ici")."</a>";
+$f->displayDescription($description);
+include ("../tdb/tdb.php");
+?>
\ No newline at end of file

Added: branches/1.x/dyn/var.inc
===================================================================
--- branches/1.x/dyn/var.inc (rev 0)
+++ branches/1.x/dyn/var.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,21 @@
+<?php
+/**
+ *
+ */
+//$Id: var.inc,v 1.66 2010-01-12 11:18:14 fraynaud Exp $
+// =========================================================================
+// Module de parametrage general
+// =========================================================================
+// plan utilise en localisation par croquis (spg localisation)
+if (isset($_SESSION['coll'])){
+ $chemin_plan="../trs/".$_SESSION['coll']."/";
+}
+// UPLOAD.PHP*******************************************************************
+//-----------liste extensions : ".extension;.extension;....."
+//extension par defaut
+$default_extension=".gif;.jpg;.jpeg;.png;.txt;.pdf";
+// extension(s) ciblee(s) possible
+// $get_origine."liste extension"
+// *****************************************************************************
+$verrou=1; // verrou =1 actif 0= inactif (empeche actualisation sur form valide)
+?>

Added: branches/1.x/dyn/var_adresse_postale.inc
===================================================================
--- branches/1.x/dyn/var_adresse_postale.inc (rev 0)
+++ branches/1.x/dyn/var_adresse_postale.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,63 @@
+<?php
+// $Id: var.inc,v 1.3 2010-09-09 15:36:39 fraynaud Exp $
+// parametre general
+$longueurRecherche=1;
+// *** ADRESSE POSTALE INTERNE ***
+// table et champs de la requete adresse postale
+$t="adresse_postale"; // table adresse postale
+$t_voie = "rivoli"; // code adresse
+$t_numero="numero"; // numero dans la voie
+$t_complement="complement"; // suffixe (bis, ter ...)
+$t_geom="geom"; // geometry point(X,Y)
+$t_adresse="libelle"; // libelle de l adresse
+$t_quartier='';
+// *** a voir
+$t_cp=''; // nom champ cp
+$t_ville=''; // nom champ ville
+$t_insee=''; // nom champ insee
+// prevoir un champ selection sur le code commune pour ign
+// $selection =" where codeinsee='13004'"; //
+// champ du formulaire
+$f_numero='numero_voie'; // nom champ du numero dans la voie
+$f_voie='voie'; // nom champ du code de la voie (rivoli)
+$f_complement='complement'; // nom champ du complement de numero
+$f_geom='geom'; // nom champ geometrique point(X,Y)
+$f_libelle='libelle_voie'; // nom champ libelle de la voie
+// *** a voir
+$f_cp=''; // nom champ cp
+$f_ville=''; // nom champ ville
+$f_insee=''; // nom champ insee
+// base de donnees externe a la base en cours
+$db_externe='Non';
+/*$dsn_externe= array(
+ 'title' =>"base des adresses de l'IGN",
+ 'phptype' => "pgsql",
+ 'dbsyntax' => "pgsql",
+ 'username' => "postgres",
+ 'password' => "postgres",
+ 'protocol' => "tcp",
+ 'hostspec' => "localhost",
+ 'port' => "5432",
+ 'socket' => "",
+ 'database' => "odp",
+ 'formatdate'=> "AAAA-MM-JJ",
+ 'schema' => "public",
+ 'prefixe' =>""
+);
+$db_option_externe=array('debug'=>2,
+ 'portability'=>DB_PORTABILITY_ALL);
+ */
+// *** ADRESSE POSTALE EXTERNE ***
+// variables par defaut cp et ville si non renseignées dans le formulaire
+// pour recherche
+$cp="13200";
+$ville="Arles";
+$pays = ""; // a voir
+// epsg de transformation pt adresse postale dans la base en cours
+$epsg= "EPSG:2154";
+// acces au script adresse_postale externe
+$adresse_interne="Oui";
+$google="Oui"; // google
+$bing="Oui"; // bing
+$osm="Oui"; // mapquest
+?>

Added: branches/1.x/dyn/var_point.inc
===================================================================
--- branches/1.x/dyn/var_point.inc (rev 0)
+++ branches/1.x/dyn/var_point.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,49 @@
+<?php
+// $Id: var.inc,v 1.3 2010-09-09 15:36:39 fraynaud Exp $
+// parametrage
+// *** sig_point.php ***
+// generer une cle pour le site : http://code.google.com/intl/fr/apis/maps/signup.html
+$cle_google = "xxxxxxxxxxxxxxxxxxxx";
+$fichier_jsons="sig_json.php?obj=";
+$fichier_wkt="sig_wkt.php";
+//zoom par couche : zoom standard permettant un passage de zoom a l autre
+$zoom_osm_maj=18;
+$zoom_osm=14;
+$zoom_sat_maj=8;
+$zoom_sat=4;
+$zoom_bing_maj=8;
+$zoom_bing=4;
+// popup data contenuHTML
+$width_popup=200;
+$cadre_popup=1;
+$couleurcadre_popup="black";
+$fontsize_popup=12;
+$couleurtitre_popup="black";
+$weightitre_popup="bold";
+$fond_popup="yellow";
+$opacity_popup="0.7";
+// image localisation maj ou consultation
+$img_maj="../img/punaise_sig.png";
+$img_maj_hover="../img/punaise_hover.png";
+$img_consult="../img/punaise_point.png";
+$img_consult_hover="../img/punaise_point_hover.png";
+$img_w=14;
+$img_h=32;
+
+$img_click="1.3";// multiplication hauteur et largeur image cliquee
+// *** SIG POINT CLASS
+$contenu_etendue[0]= array('4.5868,43.6518,4.6738,43.7018',
+ '4.701,43.3966,4.7636,43.4298',
+ '4.71417,43.64,4.72994,43.65166',
+ '4.72345,43.55348,4.73134,43.55932',
+ '5.2094,43.4136,5.3345,43.4759'
+ );
+$contenu_etendue[1]= array('agglomeration',
+ 'salin de giraud',
+ 'raphele',
+ 'Mas thibert',
+ 'vitrolles'
+ );
+$contenu_epsg[0] = array("","EPSG:2154","EPSG:27563");
+$contenu_epsg[1] = array("choisir la projection",'lambert93','lambertSud');
+?>

Added: branches/1.x/dyn/varetatpdf.inc
===================================================================
--- branches/1.x/dyn/varetatpdf.inc (rev 0)
+++ branches/1.x/dyn/varetatpdf.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,32 @@
+<?php
+// =========================================================================
+// Module de parametrage des etats
+// $Id: varetatpdf.inc,v 1.21 2009-11-09 09:23:55 fraynaud Exp $
+// =========================================================================
+// compatibilite
+$sql=str_replace("£idx",$_GET['idx'],$sql);
+$titre=str_replace("£idx",$_GET['idx'],$titre);
+/*
+$titre=str_replace("£aujourdhui",date('d/m/Y'),$titre);
+$titre=str_replace("£ville",$collectivite['ville'],$titre);
+$corps=str_replace("£aujourdhui",date('d/m/Y'),$corps);
+$corps=str_replace("£ville",$collectivite['ville'],$corps);
+*/
+// idx
+$sql=str_replace("&idx",$_GET['idx'],$sql);
+$sql=str_replace("&DB_PREFIXE",DB_PREFIXE,$sql);
+$titre=str_replace("&idx",$_GET['idx'],$titre);
+$corps=str_replace("&idx",$_GET['idx'],$corps);
+// aujourdhui
+$titre=str_replace("&aujourdhui",date('d/m/Y'),$titre);
+$corps=str_replace("&aujourdhui",date('d/m/Y'),$corps);
+// parametre
+if($collectivite!=array()){
+ foreach (array_keys($collectivite) as $elem) {
+ $temp="&".$elem;
+ $titre=str_replace($temp,$collectivite[$elem],$titre);
+ $corps=str_replace($temp,$collectivite[$elem],$corps);
+ $sql=str_replace($temp,$collectivite[$elem],$sql);
+ }
+}
+?>
\ No newline at end of file

Added: branches/1.x/dyn/varlettretypepdf.inc
===================================================================
--- branches/1.x/dyn/varlettretypepdf.inc (rev 0)
+++ branches/1.x/dyn/varlettretypepdf.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,43 @@
+<?php
+// =========================================================================
+// Module de paramétrage des lettres type
+// =========================================================================
+// compatibilite
+$sql=str_replace("£idx",$_GET['idx'],$sql);
+$sql=str_replace("£destinataire",$destinataire,$sql);
+//
+/* old
+$titre=str_replace("£aujourdhui",date('d/m/Y'),$titre);
+$titre=str_replace("£datecourrier",$datecourrier,$titre);
+$titre=str_replace("£complement",$complement,$titre);
+
+$titre=str_replace("£idx",$_GET['idx'],$titre);
+$corps=str_replace("£datecourrier",$datecourrier,$corps);
+$corps=str_replace("£complement",$complement,$corps);
+*/
+// specific lettre type
+if(isset($datecourrier)) $datecourrier='';
+if(isset($complement)) $complement='';
+
+$titre=str_replace("&datecourrier",$datecourrier,$titre);
+$titre=str_replace("&complement",$complement,$titre);
+$corps=str_replace("&datecourrier",$datecourrier,$corps);
+$corps=str_replace("&complement",$complement,$corps);
+// idx
+$sql=str_replace("&idx",$_GET['idx'],$sql);
+$sql=str_replace("&DB_PREFIXE",DB_PREFIXE,$sql);
+$titre=str_replace("&idx",$_GET['idx'],$titre);
+$corps=str_replace("&idx",$_GET['idx'],$corps);
+// aujourdhui
+$titre=str_replace("&aujourdhui",date('d/m/Y'),$titre);
+$corps=str_replace("&aujourdhui",date('d/m/Y'),$corps);
+// parametre
+if($collectivite!=array()){
+ foreach (array_keys($collectivite) as $elem) {
+ $temp="&".$elem;
+ $titre=str_replace($temp,$collectivite[$elem],$titre);
+ $corps=str_replace($temp,$collectivite[$elem],$corps);
+ $sql=str_replace($temp,$collectivite[$elem],$sql);
+ }
+}
+?>
\ No newline at end of file

Added: branches/1.x/dyn/varpdf.inc
===================================================================
--- branches/1.x/dyn/varpdf.inc (rev 0)
+++ branches/1.x/dyn/varpdf.inc 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,11 @@
+<?php
+// =========================================================================
+// $Id: varpdf.inc,v 1.2 2009-10-26 09:59:38 fraynaud Exp $
+// Module de parametrage des etats pdf
+// =========================================================================
+$sql=str_replace("£idx",$_GET['idx'],$sql);
+$titre=str_replace("£aujourdhui",date('d/m/Y'),$titre);
+$titre=str_replace("£ville",$collectivite['ville'],$corps,$titre);
+$corps=str_replace("£aujourdhui",date('d/m/Y'),$corps);
+$corps=str_replace("£ville",$collectivite['ville'],$corps,$corps);
+?>
\ No newline at end of file

Added: branches/1.x/dyn/version.inc.php
===================================================================
--- branches/1.x/dyn/version.inc.php (rev 0)
+++ branches/1.x/dyn/version.inc.php 2019-04-25 12:42:57 UTC (rev 363)
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Ce fichier permet de stocker la version de l'application
+ *
+ * @package openmairie_exemple
+ * @version SVN: $Id: version.inc.php 337 2010-12-15 17:27:49Z fraynaud $
+ */
+
+/**
+ * Le numero de version est affiche en permanence dans le footer
+ */
+$version = "1.0.0-beta";
+?>
\ No newline at end of file

Reply all
Reply to author
Forward
0 new messages