\r
public function getArticleGroupsByFamille($famille,$lang){\r
if (!$lang){ $lang=$this->cfg["lang"];}\r
- return $this->dbh->queryarray("select ag.id,ag.article,ag.gp_art,ag.famille_art,coalesce(ag.titre_".$lang.",ag.titre_".$this->cfg["lang"].") as titre,replace(ag.image,' ','%20') as image from article_groups ag left join groupes grp on (ag.gp_art=grp.gp_art) where famille_art='".$famille."' order by grp.titre_".$lang.",ag.gp_art,ag.titre_".$lang.",ag.article;");\r
+ return $this->dbh->queryarray("select ag.id,ag.article,ag.gp_art,ag.famille_art,coalesce(ag.titre_".$lang.",ag.titre_".$this->cfg["lang"].") as titre,replace(ag.image,' ','%20') as image from article_groups ag left join groupes grp on (ag.gp_art=grp.gp_art) where ag.famille_art='".$famille."' order by grp.titre_".$lang.",ag.gp_art,ag.titre_".$lang.",ag.article;");\r
}\r
}\r
?>
\ No newline at end of file
[id] => ef3b63ab-24a5-4972-86fb-8c3a4f36e75c
[usertype] => admin
)
+USER: select id,usertype from users where lower(useremail)=lower('ksaffran@dks.lu') and userpassword = 'a1b496fa520a1c52edd076ca7a59e56667e7ebeb5ba5ba966d2d01628e165359' and userpassword is not null and userpassword != '' and isenabled='1'; - USER: select id,usertype from users where lower(useremail)=lower('ksaffran@dks.lu') and userpassword = 'a1b496fa520a1c52edd076ca7a59e56667e7ebeb5ba5ba966d2d01628e165359' and userpassword is not null and userpassword != '' and isenabled='1'; - USER: select id,usertype from users where lower(useremail)=lower('ksaffran@dks.lu') and userpassword = '0ecf731e2426a8a469f06e9f4a3bcbed6f8071d9d3e3ef7ef5fd9165021e27ec' and userpassword is not null and userpassword != '' and isenabled='1'; - Array
+(
+ [id] => ef3b63ab-24a5-4972-86fb-8c3a4f36e75c
+ [usertype] => admin
+)
+USER: select id,usertype from users where lower(useremail)=lower('ksaffran@dks.lu') and userpassword = '0ecf731e2426a8a469f06e9f4a3bcbed6f8071d9d3e3ef7ef5fd9165021e27ec' and userpassword is not null and userpassword != '' and isenabled='1'; - Array
+(
+ [id] => ef3b63ab-24a5-4972-86fb-8c3a4f36e75c
+ [usertype] => admin
+)
lst.innerHTML ="";\r
postData({"cl":"ArticleGroups","fn":"getArticleGroupsByFamille","famille":fart,"lang":"{{lang}}"}).then(data => {\r
let rowx=0;\r
+ //console.log("Groups".data.data);\r
for (var d=0;d<data.data.length;d++){\r
//console.log("row " + d);\r
if ((d != 0) && (d%5==0)){\r
'<th style="width: 105px;">'+((grpdata.c04_label != null)?grpdata.c04_label:' ')+'</th>'+\r
'<th style="width: 105px;">'+((grpdata.c05_label != null)?grpdata.c05_label:' ')+'</th>'+\r
'<th style="width: 50px;">Stock</th>'+\r
- '<th style="' + ((type=='cc')?'width: 320px;min-width: 320px;':'width: 400px;min-width: 400px;') + '">{{ lbl.quantity }}</th>';\r
+ '<th style="' + ((type=='cc')?'width: 350px;min-width: 350px;':'width: 400px;min-width: 400px;') + '">{{ lbl.quantity }}</th>';\r
if (type != 'cc'){\r
strartgrp += '<th style="width: 120px;">{{ lbl.unitprice }}<br/>(hTVA)</th>';\r
}\r