25 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/ajax.lib.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/lib/resource.lib.php';
31 require_once DOL_DOCUMENT_ROOT.
'/resource/class/html.formresource.class.php';
34 $langs->loadLangs(array(
"admin",
"resource"));
40 $action =
GETPOST(
'action',
'aZ09');
47 if ($action ==
'updateoptions')
49 if (
GETPOST(
'activate_RESOURCE_USE_SEARCH_TO_SELECT') !=
'')
51 if (
dolibarr_set_const($db,
"RESOURCE_USE_SEARCH_TO_SELECT",
GETPOST(
'activate_RESOURCE_USE_SEARCH_TO_SELECT'),
'chaine', 0,
'', $conf->entity))
64 llxHeader(
'', $langs->trans(
'ResourceSetup'));
66 $form =
new Form($db);
68 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
75 print '<form method="POST" action="'.$_SERVER[
'PHP_SELF'].
'">';
76 print '<input type="hidden" name="token" value="'.newToken().
'">';
77 print '<input type="hidden" name="action" value="updateoptions">';
79 print '<table class="noborder centpercent">';
80 print '<tr class="liste_titre">';
81 print '<td>'.$langs->trans(
"Parameters").
'</td>'.
"\n";
82 print '<td class="right" width="60">'.$langs->trans(
"Value").
'</td>'.
"\n";
87 print '<tr class="oddeven">';
88 print '<td width="80%">'.$langs->trans(
"UseSearchToSelectResource").
'</td>';
89 if (empty($conf->use_javascript_ajax))
91 print '<td class="nowrap right" colspan="2">';
92 print $langs->trans(
"NotAvailableWhenAjaxDisabled");
95 print '<td width="60" class="right">';
97 '0'=>$langs->trans(
"No"),
98 '1'=>$langs->trans(
"Yes").
' ('.$langs->trans(
"NumberOfKeyToSearch", 1).
')',
99 '2'=>$langs->trans(
"Yes").
' ('.$langs->trans(
"NumberOfKeyToSearch", 2).
')',
100 '3'=>$langs->trans(
"Yes").
' ('.$langs->trans(
"NumberOfKeyToSearch", 3).
')',
102 print $form->selectarray(
"activate_RESOURCE_USE_SEARCH_TO_SELECT", $arrval, $conf->global->RESOURCE_USE_SEARCH_TO_SELECT);
104 print '<td class="right">';
105 print '<input type="submit" class="button" name="RESOURCE_USE_SEARCH_TO_SELECT" value="'.$langs->trans(
"Modify").
'">';
111 print '<tr class="oddeven">';
112 print '<td>'.$langs->trans(
'DisabledResourceLinkUser').
'</td>';
120 print '<tr class="oddeven">';
121 print '<td>'.$langs->trans(
'DisabledResourceLinkContact').
'</td>';
129 print '<tr class="oddeven">';
130 print '<td>'.$langs->trans(
'EnableResourceUsedInEventCheck').
'</td>';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dolibarr_set_const($db, $name, $value, $type= 'chaine', $visible=0, $note= '', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
resource_admin_prepare_head()
Prepare head for admin tabs.
ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0, $strict=0, $forcereload=0, $marginleftonlyshort=2, $forcenoajax=0)
On/off button for constant.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.