|
@@ 542-546 (lines=5) @@
|
| 539 |
|
->where("ID_".$this->nom_batiment_sql, "=", $this->niveau_batiment) |
| 540 |
|
->get(); |
| 541 |
|
|
| 542 |
|
if ((is_array($query)) && (count($query) > 0)) { |
| 543 |
|
foreach ($query as $obj) { |
| 544 |
|
$this->info_batiment = $xml->$nom_batiment_sql->phrase.$obj->$champ.$xml->$nom_batiment_sql->complement; |
| 545 |
|
} |
| 546 |
|
} |
| 547 |
|
|
| 548 |
|
//récupération de la phrase pour le niveau suivant |
| 549 |
|
$query = $dbc1->select($xml->$nom_batiment_sql->champ) |
|
@@ 554-558 (lines=5) @@
|
| 551 |
|
->where("ID_".$this->nom_batiment_sql, "=", $this->niveau_batiment+1) |
| 552 |
|
->get(); |
| 553 |
|
|
| 554 |
|
if ((is_array($query)) && (count($query) > 0)){ |
| 555 |
|
foreach ($query as $obj) { |
| 556 |
|
$this->info_batiment_next = $xml->$nom_batiment_sql->phrase_suivant.$obj->$champ.$xml->$nom_batiment_sql->complement; |
| 557 |
|
} |
| 558 |
|
} |
| 559 |
|
} |
| 560 |
|
else { |
| 561 |
|
$this->info_batiment = ""; |