/[openfoncier]/branches/2.x/index.php
ViewVC logotype

Annotation of /branches/2.x/index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Tue Feb 8 10:07:21 2011 UTC (13 years, 11 months ago) by fmichon
File size: 2514 byte(s)
Import de la version 2.x d'openfoncier anciennement sous CVS

1 fmichon 2 <?php
2     /*
3     $Id: index.php,v 1.5 2008-09-22 09:15:56 jbastide Exp $
4     */
5     if (file_exists ("dyn/session.inc"))
6     include ("dyn/session.inc");
7     function lang($texte){
8     include ("dyn/var.inc");
9     if(!isset($langue)) $langue='francais';
10     include ("lang/".$langue.".inc");
11     if(!isset($lang[$texte])) $lang[$texte]='<i>'.$texte.'</i>';
12     return $texte=$lang[$texte];
13     }
14     // recuperer msg depuis tab.php ou form.php
15     if(isset($_GET['msg']))
16     $msg=$_GET['msg'];
17     else
18     $msg="";
19     // vider les variables sessions
20     session_unset();
21     //
22     if (file_exists ("dyn/var.inc"))
23     include ("dyn/var.inc");
24     if (file_exists ("version.inc"))
25     include ("version.inc");
26     //
27     // ENTETE HTML
28     echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
29     echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\" lang=\"fr\">\n";
30     echo "\t<head>\n";
31     echo "\t\t<meta http-equiv=\"Content-Type\" content=\"text/html;charset=iso-8859-1\" />\n";
32     echo "\t\t<title>".lang("title_html")."</title>\n";
33     echo "\t\t<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"img/favicon.ico\" />\n";
34     echo "\t\t<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"dyn/style.css\" />\n";
35     echo "\t</head>\n";
36     echo "\t<body>\n";
37     echo "<div id=\"content_index\">\n";
38     if($msg!='')
39     echo "<div id='msgdroitindex'><img src='img/warning.gif' style='vertical-align:middle' vspace='2' border='0'>".lang("reconnexion_depuis")."&nbsp;:&nbsp;".$msg."</div>";
40     echo "<div class=\"index_logo\">";
41     if(file_exists($logo_connexion)) {
42     echo "<img src=\"".$logo_connexion."\" alt=\"Accueil\" title=\"Accueil\" />";
43     }else{
44     echo "<br>&nbsp;".lang("choix_bd");
45     }
46     echo "</div>\n";
47    
48     $conn = array ();
49     if (file_exists ("dyn/base.php"))
50     include ("dyn/base.php");
51    
52     echo "<table class=\"index_table\">\n";
53     $i=1;
54     foreach($conn as $elem){
55     echo "<tr><td><br><img src='img/ico_bdd.png' align='middle' vspace='2' hspace='2' border='0'><a class='lienindex' href='spg/login.php?coll=".$i.
56     "&ville=".$elem[0].
57     "'>".
58     $elem[0]."</a><br></td></tr>";
59     $i++;
60     }
61     echo "</table>\n";
62     if (isset ($version)){
63     $version=str_replace("../img", "img", $version);
64     echo "<div class=\"index_version\">";
65     echo lang("title_html")."&nbsp;"."&nbsp;".lang("version")."&nbsp;".$version."&nbsp;".lang($moisversion)."&nbsp;".$anneeversion."&nbsp;-&nbsp;".lang("langue");
66     echo "</div>\n";
67     }
68     echo "</div>\n";
69    
70     echo "\t</body>\n";
71     echo "</html>";
72     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26