* Copyright (C) 2011 Dimitri Mouillard * Copyright (C) 2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * Page module configuration paid holiday. * * \file holiday.php * \ingroup holiday * \brief Page module configuration paid holiday. */ require '../../main.inc.php'; require DOL_DOCUMENT_ROOT.'/holiday/class/holiday.class.php'; require_once DOL_DOCUMENT_ROOT. '/core/class/html.form.class.php'; require_once DOL_DOCUMENT_ROOT. '/user/class/user.class.php'; require_once DOL_DOCUMENT_ROOT. '/user/class/usergroup.class.php'; // Si pas administrateur if (! $user->admin) accessforbidden(); /* * View */ // Vérification si module activé if (empty($conf->holiday->enabled)) print $langs->trans('NotActiveModCP'); llxheader('',$langs->trans('TitleAdminCP')); print_fiche_titre($langs->trans('MenuCPTypes')); echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $types = $db->query( "SELECT * FROM llx_congespayes_types WHERE deleteAt IS NULL ORDER BY label" ); while($type = $db->fetch_array($types)) { echo' '; } echo '
' . $langs->trans('TypeLabel') . '' . $langs->trans('TypeDescription') . '' . $langs->trans('TypeAffect') . '' . $langs->trans('TypeDelay') . '' . $langs->trans('nbCongesDeductedCPMini') . '' . $langs->trans('nbCongesEveryMonthCPMini') . '
'.$type['label'].' '.($type['description']?$type['description']:'N/A').' '.($type['affect']?$langs->trans('TypeAffectYes'):$langs->trans('TypeAffectNo')).' '.$type['delay'].' '.$type['nbCongesDeducted'].' '.$type['nbCongesEveryMonth'].'
'; echo '
'; llxFooter(); $db->close();