Go to the documentation of this file.
25 require
'../../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29 $langs->load(
"admin");
35 $action =
GETPOST(
'action',
'aZ09');
37 if ($action ==
'setvalue') {
38 $showmenu =
GETPOST(
'BOOKMARKS_SHOW_IN_MENU',
'alpha');
39 $res =
dolibarr_set_const($db,
"BOOKMARKS_SHOW_IN_MENU", $showmenu,
'chaine', 0,
'', $conf->entity);
61 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
62 print
load_fiche_titre($langs->trans(
"BookmarkSetup"), $linkback,
'title_setup');
64 print $langs->trans(
"BookmarkDesc").
"<br>\n";
67 print
'<form method="post" action="'.$_SERVER[
"PHP_SELF"].
'">';
68 print
'<input type="hidden" name="token" value="'.newToken().
'">';
69 print
'<input type="hidden" name="action" value="setvalue">';
71 print
'<table summary="bookmarklist" class="noborder centpercent">';
72 print
'<tr class="liste_titre">';
73 print
'<td>'.$langs->trans(
"Name").
'</td>';
74 print
'<td>'.$langs->trans(
"Value").
'</td>';
77 print
'<tr class="oddeven"><td>';
78 print $langs->trans(
"NbOfBoomarkToShow").
'</td><td>';
79 print
'<input size="3" type="text" name="BOOKMARKS_SHOW_IN_MENU" value="'.$conf->global->BOOKMARKS_SHOW_IN_MENU.
'">';
81 print
'</table><br><div class="center"><input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'"></div></form>';
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
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.
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 ...
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.