'admin/binets' => $this->make_hook('admin_binets', AUTH_MDP, 'admin'),
'admin/medals' => $this->make_hook('admin_medals', AUTH_MDP, 'admin'),
'admin/formations' => $this->make_hook('admin_formations', AUTH_MDP, 'admin'),
- 'admin/groupes-x' => $this->make_hook('admin_groupesx', AUTH_MDP, 'admin'),
'admin/sections' => $this->make_hook('admin_sections', AUTH_MDP, 'admin'),
'admin/secteurs' => $this->make_hook('admin_secteurs', AUTH_MDP, 'admin'),
'admin/trombino' => $this->make_hook('admin_trombino', AUTH_MDP, 'admin'),
$new = Env::v('modif') == 'new';
$user = get_user_details($login, S::v('uid'), $view);
- $user['freetext'] = MiniWiki::WikiToHTML($user['freetext']);
- $user['cv'] = MiniWiki::WikiToHTML($user['cv'], true);
$title = $user['prenom'] . ' ' . ( empty($user['nom_usage']) ? $user['nom'] : $user['nom_usage'] );
$page->assign('xorg_title', $title);
$page->addJsLink('ajax.js');
$page->addJsLink('jquery.js');
- $wiz = new PlWizard('Profil', 'core/plwizard.tpl', true);
+ $wiz = new PlWizard('Profil', 'core/plwizard.tpl', true, false);
require_once dirname(__FILE__) . '/profile/page.inc.php';
$wiz->addPage('ProfileGeneral', 'Général', 'general');
$wiz->addPage('ProfileAddresses', 'Adresses personnelles', 'adresses');
$wiz->addPage('ProfileMentor', 'Mentoring', 'mentor');
$wiz->apply($page, 'profile/edit', $opened_tab);
- $page->addCssLink('profil.css');
$page->assign('xorg_title', 'Polytechnique.org - Mon Profil');
}
$table_editor->describe('url','site web',false);
$table_editor->apply($page, $action, $id);
}
- function handler_admin_groupesx(&$page, $action = 'list', $id = null) {
- $page->assign('xorg_title','Polytechnique.org - Administration - Groupes X');
- $page->assign('title', 'Gestion des Groupes X');
- $table_editor = new PLTableEditor('admin/groupes-x','groupesx_def','id');
- $table_editor->add_join_table('groupesx_ins','gid',true);
- $table_editor->describe('text','intitulé',true);
- $table_editor->describe('url','site web',false);
- $table_editor->apply($page, $action, $id);
- }
function handler_admin_sections(&$page, $action = 'list', $id = null) {
$page->assign('xorg_title','Polytechnique.org - Administration - Sections');
$page->assign('title', 'Gestion des Sections');