function handlers()
{
return array(
- 'search' => $this->make_hook('quick', AUTH_PUBLIC),
- 'search/adv' => $this->make_hook('advanced', AUTH_COOKIE, 'directory_ax'),
- 'advanced_search.php' => $this->make_hook('redir_advanced', AUTH_PUBLIC),
- 'search/autocomplete' => $this->make_hook('autocomplete', AUTH_COOKIE, 'directory_ax', NO_AUTH),
- 'search/list' => $this->make_hook('list', AUTH_COOKIE, 'directory_ax', NO_AUTH),
- 'jobs' => $this->make_hook('referent', AUTH_COOKIE),
- 'emploi' => $this->make_hook('referent', AUTH_COOKIE),
- 'referent/search' => $this->make_hook('referent', AUTH_COOKIE),
- 'search/referent/countries' => $this->make_hook('referent_countries', AUTH_COOKIE),
+ 'search' => $this->make_hook('quick', AUTH_PUBLIC),
+ 'search/adv' => $this->make_hook('advanced', AUTH_COOKIE, 'directory_ax'),
+ 'advanced_search.php' => $this->make_hook('redir_advanced', AUTH_PUBLIC),
+ 'search/autocomplete' => $this->make_hook('autocomplete', AUTH_COOKIE, 'directory_ax', NO_AUTH),
+ 'search/list' => $this->make_hook('list', AUTH_COOKIE, 'directory_ax', NO_AUTH),
+ 'jobs' => $this->make_hook('referent', AUTH_COOKIE),
+ 'emploi' => $this->make_hook('referent', AUTH_COOKIE),
+ 'referent/search' => $this->make_hook('referent', AUTH_COOKIE),
+ 'search/referent/countries' => $this->make_hook('referent_countries', AUTH_COOKIE),
);
}
- function handler_redir_advanced(&$page, $mode = null)
+ function handler_redir_advanced($page, $mode = null)
{
pl_redirect('search/adv');
exit;
* $model: The way of presenting the results: minifiche, trombi, geoloc.
* $byletter: Show only names beginning with this letter
*/
- function handler_quick(&$page, $model = null, $byletter = null)
+ function handler_quick($page, $model = null, $byletter = null)
{
global $globals;
if ($user) {
pl_redirect($base . $user->login());
}
- $_REQUEST['quick'] = $login;
- $_GET['quick'] = $login;
+ Get::set('quick', $login);
} elseif (strpos($quick, 'doc:') === 0) {
$url = 'Docs/Recherche?';
$url .= 'action=search&q=' . urlencode(substr($quick, 4));
/** $model is the way of presenting the results: minifiche, trombi, geoloc.
*/
- function handler_advanced(&$page, $model = null, $byletter = null)
+ function handler_advanced($page, $model = null, $byletter = null)
{
global $globals;
$page->assign('advanced',1);
- $page->addJsLink('jquery.autocomplete.js');
$networks = DirEnum::getOptions(DirEnum::NETWORKS);
$networks[-1] = 'Tous types';
$networks[0] = '-';
ksort($networks);
$page->assign('networking_types', $networks);
+ $origin_corps_list = DirEnum::getOptions(DirEnum::CURRENTCORPS);
+ $current_corps_list = DirEnum::getOptions(DirEnum::ORIGINCORPS);
+ $corps_rank_list = DirEnum::getOptions(DirEnum::CORPSRANKS);
+ $origin_corps_list[0] = '-';
+ $current_corps_list[0] = '-';
+ $corps_rank_list[0] = '-';
+ ksort($origin_corps_list);
+ ksort($current_corps_list);
+ ksort($corps_rank_list);
+ $page->assign('origin_corps_list', $origin_corps_list);
+ $page->assign('current_corps_list', $current_corps_list);
+ $page->assign('corps_rank_list', $corps_rank_list);
if (!Env::has('rechercher') && $model != 'geoloc') {
$this->form_prepare();
$page->assign('public_directory',0);
}
- function handler_autocomplete(&$page, $type = null)
+ function handler_autocomplete($page, $type = null)
{
// Autocompletion : according to type required, return
// a list of results matching with the number of matches.
exit();
}
- function handler_list(&$page, $type = null, $idVal = null)
+ function handler_list($page, $type = null, $idVal = null)
{
$page->assign('name', $type);
$page->assign('with_text_value', true);
break;
case 'jobterm':
if (Env::has('jtid')) {
- JobTerms::ajaxGetBranch(&$page, JobTerms::ONLY_JOBS);
+ JobTerms::ajaxGetBranch($page, JobTerms::ONLY_JOBS);
return;
} else {
pl_content_headers('text/xml');
$page->assign('list', $ids);
}
- function handler_referent(&$page, $action = null, $subaction = null)
+ function handler_referent($page, $action = null, $subaction = null)
{
global $globals;
$res = XDB::query("SELECT count(distinct pid) FROM profile_mentor_term");
$page->assign('mentors_number', $res->fetchOneCell());
- $page->addJsLink('jquery.autocomplete.js');
-
// Search for mentors matching filters
require_once 'ufbuilder.inc.php';
$ufb = new UFB_MentorSearch();
* know about. Only referents linked to term (jtid) are displayed.
* @param $jtid id of job term to restrict referents
*/
- function handler_referent_countries(&$page, $jtid = null)
+ function handler_referent_countries($page, $jtid = null)
{
pl_content_headers("text/xml");
$page->changeTpl('include/field.select.tpl', NO_SKIN);