26 require
'../../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
28 require_once DOL_DOCUMENT_ROOT.
'/product/class/html.formproduct.class.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/pdf.lib.php';
30 require_once DOL_DOCUMENT_ROOT.
"/core/lib/takepos.lib.php";
35 $langs->loadLangs(array(
"admin",
"cashdesk",
"commercial"));
41 if (
GETPOST(
'action',
'alpha') ==
'set')
45 $res =
dolibarr_set_const($db,
"TAKEPOS_COLOR_THEME",
GETPOST(
'TAKEPOS_COLOR_THEME',
'alpha'),
'chaine', 0,
'', $conf->entity);
46 $res =
dolibarr_set_const($db,
"TAKEPOS_LINES_TO_SHOW",
GETPOST(
'TAKEPOS_LINES_TO_SHOW',
'alpha'),
'chaine', 0,
'', $conf->entity);
50 if (!($res > 0)) $error++;
60 } elseif (
GETPOST(
'action',
'alpha') ==
'setmethod')
70 $form =
new Form($db);
73 llxHeader(
'', $langs->trans(
"CashDeskSetup"));
75 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php">'.$langs->trans(
"BackToModuleList").
'</a>';
80 print '<form action="'.$_SERVER[
"PHP_SELF"].
'?terminal='.(empty($terminal) ? 1 : $terminal).
'" method="post">';
81 print '<input type="hidden" name="token" value="'.newToken().
'">';
82 print '<input type="hidden" name="action" value="set">';
84 print '<table class="noborder centpercent">';
85 print '<tr class="liste_titre">';
86 print '<td class="titlefield">'.$langs->trans(
"Parameters").
'</td><td>'.$langs->trans(
"Value").
'</td>';
90 print '<tr class="oddeven"><td>';
91 print $langs->trans(
"ColorTheme");
92 print '<td colspan="2">';
93 $array = array(0=>
"Eldy", 1=>$langs->trans(
"Colorful"));
94 print $form->selectarray(
'TAKEPOS_COLOR_THEME', $array, (empty($conf->global->TAKEPOS_COLOR_THEME) ?
'0' : $conf->global->TAKEPOS_COLOR_THEME), 0);
98 print '<tr class="oddeven"><td>';
99 print $langs->trans(
'HideCategoryImages');
100 print '<td colspan="2">';
102 print "</td></tr>\n";
105 print '<tr class="oddeven"><td>';
106 print $langs->trans(
'HideProductImages');
107 print '<td colspan="2">';
109 print "</td></tr>\n";
112 print '<tr class="oddeven"><td>';
113 print $langs->trans(
"NumberOfLinesToShow");
114 print '<td colspan="2">';
115 $array = array(1=>
"1", 2=>
"2", 3=>
"3", 4=>
"4", 5=>
"5", 6=>
"6");
116 print $form->selectarray(
'TAKEPOS_LINES_TO_SHOW', $array, (empty($conf->global->TAKEPOS_LINES_TO_SHOW) ?
'2' : $conf->global->TAKEPOS_LINES_TO_SHOW), 0);
117 print "</td></tr>\n";
123 print '<div class="center"><input type="submit" class="button button-save" value="'.$langs->trans(
"Save").
'"></div>';
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.
takepos_admin_prepare_head()
Prepare array with list of tabs.
ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0, $strict=0, $forcereload=0, $marginleftonlyshort=2, $forcenoajax=0)
On/off button for constant.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename= '', $restricttologhandler= '', $logcontext=null)
Write log message into outputs.
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.