* * 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 . */ /** * @var Conf $conf * @var DoliDB $db * @var Translate $langs * * @var string $element * @var int $element_id * @var string $element_ref */ // Protection to avoid direct call of template if (empty($conf) || !is_object($conf)) { print "Error, template page can't be called as URL"; exit(1); } require_once DOL_DOCUMENT_ROOT.'/resource/class/html.formresource.class.php'; $form = new Form($db); $formresources = new FormResource($db); $out = ''; $out .= '
'; $out .= '
'; $out .= ''; $out .= ''; $out .= ''; $out .= ''; $out .= ''; $out .= ''; $out .= '
'; // Place $out .= '
'.$langs->trans("SelectResource").'
'; $out .= '
'; $events = array(); $out .= img_picto('', 'resource', 'class="pictofixedwidth"'); $out .= $formresources->select_resource_list(0, 'fk_resource', [], 1, 1, 0, $events, '', 2, 0); $out .= '
'; $out .= '
'; //$out .= $form->selectyesno('busy', (GETPOSTISSET('busy') ? GETPOST('busy') : 1), 1); $out .= ''; $out .= '
'; $out .= '
'; //$out .= $form->selectyesno('mandatory', (GETPOSTISSET('mandatory') ? GETPOST('mandatory') : 0), 1); $out .= ''; $out .= '
'; $out .= '
'; $out .= ''; $out .= '
'; $out .= '
'; $out .= '
'; $out .= '
'; $out .= '
'; print $out; ?>