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