|
@@ 574-578 (lines=5) @@
|
| 571 |
|
->where("ID_".$this->nom_batiment_sql, "=", $this->niveau_batiment) |
| 572 |
|
->get(); |
| 573 |
|
|
| 574 |
|
if ((is_array($query)) && (count($query) > 0)) { |
| 575 |
|
foreach ($query as $obj) { |
| 576 |
|
$this->info_batiment = $xml->$nom_batiment_sql->phrase.$obj->$champ.$xml->$nom_batiment_sql->complement; |
| 577 |
|
} |
| 578 |
|
} |
| 579 |
|
|
| 580 |
|
//récupération de la phrase pour le niveau suivant |
| 581 |
|
$query = $dbc1->select($xml->$nom_batiment_sql->champ) |
|
@@ 586-590 (lines=5) @@
|
| 583 |
|
->where("ID_".$this->nom_batiment_sql, "=", $this->niveau_batiment+1) |
| 584 |
|
->get(); |
| 585 |
|
|
| 586 |
|
if ((is_array($query)) && (count($query) > 0)){ |
| 587 |
|
foreach ($query as $obj) { |
| 588 |
|
$this->info_batiment_next = $xml->$nom_batiment_sql->phrase_suivant.$obj->$champ.$xml->$nom_batiment_sql->complement; |
| 589 |
|
} |
| 590 |
|
} |
| 591 |
|
} |
| 592 |
|
else { |
| 593 |
|
$this->info_batiment = ""; |