Exemplo n.º 1
0
            case 'historiqueEvenement':
                $e = new archiEvenement();
                $e->afficherHistoriqueEvenement($_GET['idEvenement']);
                break;
            case 'listeQuartiers':
                $criteres = array('typeStructure' => 22);
                $s = new archiRecherche();
                echo $s->advancedSearch($criteres);
                break;
            case 'listeStructure':
                $criteres = array('typeStructure' => $_GET['idTypeStructure']);
                $s = new archiRecherche();
                echo $s->advancedSearch($criteres);
                break;
            case 'displayImage':
                $i = new archiImage();
                $i->displayImage($_GET['idHistoriqueImage'], array($_GET['height'], $_GET['width']));
                break;
            case 'listByVille':
                $r = new archiRecherche();
                isset($_GET['debut']) ? $debut = $_GET['debut'] : ($debut = 0);
                $html = $r->searchByCriterias(array('ville' => $_GET['recherche_ville'], 'debut' => $debut));
                echo $html;
                break;
        }
    }
}
if (count($_POST) == 0 && count($_GET) == 0 || count($_GET) == 1 && isset($_GET["lang"]) || isset($_GET['archiAffichage']) && $_GET['archiAffichage'] == 'afficheAccueil') {
    $accueil = new archiAccueil();
    echo $accueil->afficheAccueil();
}
 public function aliasAfficherListe()
 {
     if (isset($this->variablesGet['selection']) && $this->variablesGet['selection'] != '' && isset($this->variablesGet['id']) && $this->variablesGet['id'] != '') {
         if (isset($this->variablesGet['debut']) && $this->variablesGet['debut'] != "") {
             $debut = $this->variablesGet['debut'];
         } else {
             $debut = 0;
         }
         $criteres = array($this->variablesGet['selection'] => $this->variablesGet['id'], 'debut' => $debut);
         $s = new archiRecherche();
         return $s->searchByCriterias($criteres);
     }
 }