/[openfoncier]/trunk/dyn/varetatpdf.inc
ViewVC logotype

Annotation of /trunk/dyn/varetatpdf.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 50 - (hide annotations)
Tue Aug 16 10:02:18 2011 UTC (13 years, 5 months ago) by fraynaud
File size: 2332 byte(s)
Mise au point affichage public



1 fraynaud 3 <?php
2     // =========================================================================
3     // Module de parametrage des etats
4     // $Id: varetatpdf.inc,v 1.21 2009-11-09 09:23:55 fraynaud Exp $
5     // =========================================================================
6     // compatibilite
7     $sql=str_replace("£idx",$_GET['idx'],$sql);
8     $titre=str_replace("£idx",$_GET['idx'],$titre);
9     /*
10     $titre=str_replace("£aujourdhui",date('d/m/Y'),$titre);
11     $titre=str_replace("£ville",$collectivite['ville'],$titre);
12     $corps=str_replace("£aujourdhui",date('d/m/Y'),$corps);
13     $corps=str_replace("£ville",$collectivite['ville'],$corps);
14     */
15     // idx
16     $sql=str_replace("&idx",$_GET['idx'],$sql);
17     $sql=str_replace("&DB_PREFIXE",DB_PREFIXE,$sql);
18 fraynaud 50 // specific openFoncier *** edition ads
19     $sql = str_replace("&datedebut", substr($_GET["datedebut"],6,4)."-".substr($_GET["datedebut"],3,2)."-".substr($_GET["datedebut"],0,2),$sql);
20     $sql = str_replace("&datefin", substr($_GET["datefin"],6,4)."-".substr($_GET["datefin"],3,2)."-".substr($_GET["datefin"],0,2),$sql);
21     $sql=str_replace("&nature",$_GET['nature'],$sql);
22     $titre = str_replace("&datedebut", substr($_GET["datedebut"],6,4)."-".substr($_GET["datedebut"],3,2)."-".substr($_GET["datedebut"],0,2),$titre);
23     $titre = str_replace("&datefin", substr($_GET["datefin"],6,4)."-".substr($_GET["datefin"],3,2)."-".substr($_GET["datefin"],0,2),$titre);
24     $titre=str_replace("&nature",$_GET['nature'],$titre);
25     $corps = str_replace("&datedebut", substr($_GET["datedebut"],6,4)."-".substr($_GET["datedebut"],3,2)."-".substr($_GET["datedebut"],0,2),$corps);
26     $corps = str_replace("&datefin", substr($_GET["datefin"],6,4)."-".substr($_GET["datefin"],3,2)."-".substr($_GET["datefin"],0,2),$corps);
27     $corps=str_replace("&nature",$_GET['nature'],$corps);
28     // ***
29 fraynaud 3 $titre=str_replace("&idx",$_GET['idx'],$titre);
30     $corps=str_replace("&idx",$_GET['idx'],$corps);
31     // aujourdhui
32     $titre=str_replace("&aujourdhui",date('d/m/Y'),$titre);
33     $corps=str_replace("&aujourdhui",date('d/m/Y'),$corps);
34     // parametre
35     if($collectivite!=array()){
36     foreach (array_keys($collectivite) as $elem) {
37     $temp="&".$elem;
38     $titre=str_replace($temp,$collectivite[$elem],$titre);
39     $corps=str_replace($temp,$collectivite[$elem],$corps);
40     $sql=str_replace($temp,$collectivite[$elem],$sql);
41     }
42     }
43     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26