{
global $globals;
+ $res = XDB::query("SELECT MIN(`diminutif`), MAX(`diminutif`)
+ FROM `groupex`.`asso`
+ WHERE `cat` = 'Promotions'");
+ list($min, $max) = $res->fetchOneRow();
+ $page->assign('promo_min', $min);
+ $page->assign('promo_max', $max);
+
if (Env::has('quick') || $action == 'geoloc') {
$page->assign('formulaire', 0);
new ThrowError('il n\'existe personne correspondant à ces critères dans la base !');
}
} else {
- $res = XDB::query("SELECT MIN(`diminutif`), MAX(`diminutif`)
- FROM `groupex`.`asso`
- WHERE `cat` = 'Promotions'");
- list($min, $max) = $res->fetchOneRow();
- $page->assign('promo_min', $min);
- $page->assign('promo_max', $max);
$page->assign('formulaire',1);
$page->addJsLink('ajax.js');
}
require_once dirname(__FILE__) . '/search/search.inc.php';
$page->changeTpl('search/index.tpl');
$page->assign('xorg_title','Polytechnique.org - Annuaire');
- $page->assign('baseurl', $globals->baseurl);
}
function handler_advanced(&$page, $action = null, $subaction = null)
$view = new SearchSet(false, $action == 'geoloc' && substr($subaction, -3) == 'swf');
$view->addMod('minifiche', 'Minifiches', true);
$view->addMod('trombi', 'Trombinoscope', false, array('with_promo' => true));
- $view->addMod('geoloc', 'Planishpère');
+ $view->addMod('geoloc', 'Planisphère');
$view->apply('search/adv', $page, $action, $subaction);
if ($subaction) {
$field = '`entreprise`';
$unique='`uid`';
break;
- case '`firstname`':
+ case 'firstname':
$field = '`prenom`';
$q = '(^|[ \\-])'.$q;
$beginwith = false;