From: x2001corpet Date: Sun, 4 Jun 2006 07:56:36 +0000 (+0000) Subject: geoloc: validation html et ajout d'un lien de menu X-Git-Tag: xorg/0.9.10~84 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1f017b2d9778b00ab1d70b6d372bc20903905c25;p=platal.git geoloc: validation html et ajout d'un lien de menu git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@285 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/hooks/tmp.inc.php b/hooks/tmp.inc.php index f1d6425..f0d1b57 100644 --- a/hooks/tmp.inc.php +++ b/hooks/tmp.inc.php @@ -12,6 +12,7 @@ function tmp_menu() $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Trombi/Site promo', 'trombipromo.php'); $globals->menu->addPrivateEntry(XOM_GROUPS, 20, 'Conseil Pro.', 'referent.php'); + $globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Planisphère', 'geoloc/'); $globals->menu->addPrivateEntry(XOM_GROUPS, 30, 'Groupes X', 'http://www.polytechnique.net/plan.php'); $globals->menu->addPrivateEntry(XOM_INFOS, 10, 'Documentations', 'Docs/'); diff --git a/htdocs/geoloc/index.php b/htdocs/geoloc/index.php index 5b3d7b5..5af6ecb 100644 --- a/htdocs/geoloc/index.php +++ b/htdocs/geoloc/index.php @@ -27,7 +27,7 @@ $page->assign('localises', $res->fetchOneCell()); require_once('search.inc.php'); $fields = new SFieldGroup(true, advancedSearchFromInput()); -$search = $fields->get_url().'&'; +$search = $fields->get_url(); if (Env::has('only_current') && Env::get('only_current') != 'on') $search .= '&only_current='; $search = preg_replace('/(^|&)mapid=([0-9]+)(&|$)/','\1\3', $search); if ($search) diff --git a/templates/geoloc/index.tpl b/templates/geoloc/index.tpl index 0bc0b80..871f393 100644 --- a/templates/geoloc/index.tpl +++ b/templates/geoloc/index.tpl @@ -32,7 +32,7 @@ function clickOnCity(id) { var f = document.getElementById('search_form'); var url = f.action; - f.action += '&cityid=' + id; + f.action += unescape('%26')+'cityid=' + id; f.submit(); f.action = url; document.getElementById('search_results').style.height = '250px'; @@ -45,7 +45,7 @@ function goToCountry(id) function searchMapId(f) { var url = f.action; - f.action += '&mapid=' + mapid; + f.action += unescape('%26')+'mapid=' + mapid; f.submit(); f.action = url; document.getElementById('search_results').style.height = '250px'; diff --git a/templates/search.adv.form.tpl b/templates/search.adv.form.tpl index 2bfff6d..dd4a263 100644 --- a/templates/search.adv.form.tpl +++ b/templates/search.adv.form.tpl @@ -29,6 +29,7 @@ Nom + {if $smarty.request.name && !$with_soundex && $smarty.request.recherche} @@ -305,8 +306,6 @@ mettre les fiches modifiées récemment en premier

{/min_auth} - -

- - + +

N.B. Le caractère joker * peut remplacer une ou plusieurs lettres dans les recherches.