1 |
<?php |
2 |
/** |
3 |
* |
4 |
* |
5 |
* @package openfoncier |
6 |
* @version SVN : $Id$ |
7 |
*/ |
8 |
|
9 |
// INITIALISATION DES VARIABLES |
10 |
include ("../dyn/var.inc"); |
11 |
$DEBUG = 0; |
12 |
$existe=0; |
13 |
if(isset($_GET['id'])) |
14 |
$id=$_GET['id']; |
15 |
else |
16 |
$id=""; |
17 |
if(isset($_GET['menu'])) |
18 |
$menu=$_GET['menu']; |
19 |
else |
20 |
$menu=0; |
21 |
if(isset($_GET['modificatif'])) |
22 |
$modificatif=$_GET['modificatif']; |
23 |
else |
24 |
$modificatif=0; |
25 |
// utils |
26 |
require_once "../obj/utils.class.php"; |
27 |
if($menu==1 or $menu==2) |
28 |
$f = new utils(NULL, "dossier", _("dossier"), "ico_dossier.png", "dossier"); |
29 |
else{ // sans menu |
30 |
if($menu==0){ |
31 |
$f = new utils('nohtml', "dossier", _("dossier"), "ico_dossier.png", "dossier"); |
32 |
$f->setFlag("htmlonly"); |
33 |
} |
34 |
} |
35 |
$f->display(); |
36 |
if($menu==1) // html only |
37 |
$f->displayStartContent(); |
38 |
|
39 |
// db |
40 |
|
41 |
$sql="select * from ".DB_PREFIXE."servitude_point where servitude_point =".$id.""; |
42 |
$res=$f->db->query($sql); |
43 |
$f->isDatabaseError($res); |
44 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ |
45 |
$existe=1; |
46 |
// dossierla |
47 |
echo "<fieldset class=\"cadre ui-corner-all ui-widget-content collapsible\">\n"; |
48 |
echo "\t<legend class=\"ui-corner-all ui-widget-content ui-state-active\">"; |
49 |
echo _("servitude_point ")."</legend>"; |
50 |
echo "<br>libelle : ".$row['libelle']; |
51 |
echo "<br>libelle : ".$row['observation']; |
52 |
echo "<br>perimetre : ".$row['perimetre']." m "; |
53 |
echo "</fieldset>"; |
54 |
|
55 |
} // while dossier |
56 |
if($menu==0){ |
57 |
echo "<center>"; |
58 |
$f->displayLinkJsCloseWindow(); // **** |
59 |
echo "</center>"; |
60 |
$f->displayEndContent(); |
61 |
} |
62 |
if($existe==0){ |
63 |
$msg=$idx._(" inexistant en base openFoncier"); |
64 |
$f->displayMessage($class, $message); |
65 |
} |
66 |
?> |