From b09690be582e91d9417b6fe14d4c0f3fb72d3afa Mon Sep 17 00:00:00 2001 From: x2001corpet Date: Sun, 8 Apr 2007 22:34:07 +0000 Subject: [PATCH] administration of sections and employment sectors git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1669 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/profile.php | 16 ++++++++++++++++ templates/admin/index.tpl | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/modules/profile.php b/modules/profile.php index c47b3e6..07dd95e 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -44,6 +44,8 @@ class ProfileModule extends PLModule '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'), ); @@ -757,6 +759,20 @@ class ProfileModule extends PLModule $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'); + $table_editor = new PLTableEditor('admin/sections','sections','id'); + $table_editor->describe('text','intitulé',true); + $table_editor->apply($page, $action, $id); + } + function handler_admin_secteurs(&$page, $action = 'list', $id = null) { + $page->assign('xorg_title','Polytechnique.org - Administration - Secteurs'); + $page->assign('title', 'Gestion des Secteurs'); + $table_editor = new PLTableEditor('admin/secteurs','emploi_secteur','id'); + $table_editor->describe('label','intitulé',true); + $table_editor->apply($page, $action, $id); + } function handler_admin_medals(&$page, $action = 'list', $id = null) { $page->assign('xorg_title','Polytechnique.org - Administration - Distinctions'); $page->assign('title', 'Gestion des Distinctions'); diff --git a/templates/admin/index.tpl b/templates/admin/index.tpl index a98e586..f46742f 100644 --- a/templates/admin/index.tpl +++ b/templates/admin/index.tpl @@ -94,6 +94,10 @@ Skins   |   Décorations +   |   + Sections +   |   + Secteurs -- 2.1.4