26require
'../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
36$action =
GETPOST(
'action',
'aZ09');
38if ($action ==
'setvalue') {
39 $showmenu =
GETPOST(
'BOOKMARKS_SHOW_IN_MENU',
'alpha');
40 $res =
dolibarr_set_const($db,
"BOOKMARKS_SHOW_IN_MENU", $showmenu,
'chaine', 0,
'', $conf->entity);
62$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
63print
load_fiche_titre($langs->trans(
"BookmarkSetup"), $linkback,
'title_setup');
65print $langs->trans(
"BookmarkDesc").
"<br>\n";
68print
'<form method="post" action="'.$_SERVER[
"PHP_SELF"].
'">';
69print
'<input type="hidden" name="token" value="'.newToken().
'">';
70print
'<input type="hidden" name="action" value="setvalue">';
72print
'<table summary="bookmarklist" class="noborder centpercent">';
73print
'<tr class="liste_titre">';
74print
'<td>'.$langs->trans(
"Name").
'</td>';
75print
'<td>'.$langs->trans(
"Value").
'</td>';
78print
'<tr class="oddeven"><td>';
79print $langs->trans(
"NbOfBoomarkToShow").
'</td><td>';
80print
'<input size="3" type="text" name="BOOKMARKS_SHOW_IN_MENU" value="' .
getDolGlobalString(
'BOOKMARKS_SHOW_IN_MENU').
'">';
82print
'</table><br><div class="center"><input type="submit" class="button button-edit" value="'.$langs->trans(
"Modify").
'"></div></form>';
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).
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
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.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.