24require
'../../main.inc.php';
25require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
26require_once DOL_DOCUMENT_ROOT.
'/product/class/html.formproduct.class.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/pdf.lib.php';
28require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
29require_once DOL_DOCUMENT_ROOT.
"/core/lib/takepos.lib.php";
32if (!empty($_REQUEST[
'CASHDESK_ID_THIRDPARTY_id'])) {
33 $_GET[
'CASHDESK_ID_THIRDPARTY'] =
GETPOST(
'CASHDESK_ID_THIRDPARTY_id',
'alpha');
34 $_POST[
'CASHDESK_ID_THIRDPARTY'] =
GETPOST(
'CASHDESK_ID_THIRDPARTY_id',
'alpha');
35 $_REQUEST[
'CASHDESK_ID_THIRDPARTY'] =
GETPOST(
'CASHDESK_ID_THIRDPARTY_id',
'alpha');
43$langs->loadLangs(array(
"admin",
"cashdesk"));
47$sql =
"SELECT code, libelle FROM ".MAIN_DB_PREFIX.
"c_paiement";
48$sql .=
" WHERE entity IN (".getEntity(
'c_paiement').
")";
49$sql .=
" AND active = 1";
50$sql .=
" ORDER BY libelle";
51$resql = $db->query($sql);
54 while ($obj = $db->fetch_object($resql)) {
55 array_push($paiements, $obj);
71llxHeader(
'', $langs->trans(
"CashDeskSetup"));
73$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php">'.$langs->trans(
"BackToModuleList").
'</a>';
74print
load_fiche_titre($langs->trans(
"CashDeskSetup").
' (TakePOS)', $linkback,
'title_setup');
81print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
82print
'<input type="hidden" name="token" value="'.newToken().
'">';
83print
'<input type="hidden" name="action" value="set">';
85print
'<div class="div-table-responsive-no-min">';
88print
"<table summary=\"list_of_modules\" class=\"noborder\" width=\"100%\">\n";
89print
'<tr class="liste_titre">'.
"\n";
90print
'<td class="titlefield" colspan="2">'.$langs->trans(
"WebSiteDesc").
'</td>';
91print
'<td>'.$langs->trans(
"URL").
'</td>';
94$url =
'https://www.dolistore.com/45-pos';
96print
'<tr class="oddeven">'.
"\n";
97print
'<td class="titlefield"><a href="'.$url.
'" target="_blank" rel="noopener noreferrer external"><img border="0" class="imgautosize imgmaxwidth180" src="'.DOL_URL_ROOT.
'/theme/dolistore_logo.png"></a></td>';
98print
'<td>'.$langs->trans(
"DolistorePosCategory").
'</td>';
99print
'<td><a href="'.$url.
'" target="_blank" rel="noopener noreferrer external">'.$url.
'</a></td>';
109print
'<div class="div-table-responsive-no-min">';
112print
"<table summary=\"list_of_modules\" class=\"noborder\" width=\"100%\">\n";
113print
'<tr class="liste_titre">'.
"\n";
114print
'<td colspan="2">TakePOS Support</td>';
115print
'<td>'.$langs->trans(
"URL").
'</td>';
118$url =
'https://www.takepos.com';
120print
'<tr class="oddeven">'.
"\n";
121print
'<td class="left"><a href="'.$url.
'" target="_blank" rel="noopener noreferrer external"><img border="0" class="imgautosize imgmaxwidth180" src="../img/takepos.png"></a></td>';
122print
'<td>TakePOS original developers</td>';
123print
'<td><a href="'.$url.
'" target="_blank" rel="noopener noreferrer external">'.$url.
'</a></td>';
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.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
takepos_admin_prepare_head()
Prepare array with list of tabs.