Fix phpcs
This commit is contained in:
parent
666d03f596
commit
f1500281ef
@ -488,7 +488,8 @@ if ($sql_select)
|
|||||||
$description=(! empty($conf->global->PRODUIT_DESC_IN_FORM)?'':dol_htmlentitiesbr($objp->description));
|
$description=(! empty($conf->global->PRODUIT_DESC_IN_FORM)?'':dol_htmlentitiesbr($objp->description));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($objp->info_bits & 2) == 2) {
|
if (($objp->info_bits & 2) == 2)
|
||||||
|
{
|
||||||
print '<a href="'.DOL_URL_ROOT.'/comm/remx.php?id='.$object->id.'">';
|
print '<a href="'.DOL_URL_ROOT.'/comm/remx.php?id='.$object->id.'">';
|
||||||
$txt='';
|
$txt='';
|
||||||
print img_object($langs->trans("ShowReduc"), 'reduc').' ';
|
print img_object($langs->trans("ShowReduc"), 'reduc').' ';
|
||||||
|
|||||||
@ -1104,8 +1104,7 @@ if ($action == 'create' || $action == 'adduserldap')
|
|||||||
{
|
{
|
||||||
print '<tr><td>' . $form->editfieldkey('Categories', 'usercats', '', $object, 0) . '</td><td colspan="3">';
|
print '<tr><td>' . $form->editfieldkey('Categories', 'usercats', '', $object, 0) . '</td><td colspan="3">';
|
||||||
$cate_arbo = $form->select_all_categories('user', null, 'parent', null, null, 1);
|
$cate_arbo = $form->select_all_categories('user', null, 'parent', null, null, 1);
|
||||||
print $form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null,
|
print $form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null, null, '90%');
|
||||||
null, '90%' );
|
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -190,6 +190,8 @@ function getCategory($authentication, $id)
|
|||||||
{
|
{
|
||||||
global $db,$conf,$langs;
|
global $db,$conf,$langs;
|
||||||
|
|
||||||
|
$nbmax = 10;
|
||||||
|
|
||||||
dol_syslog("Function: getCategory login=".$authentication['login']." id=".$id);
|
dol_syslog("Function: getCategory login=".$authentication['login']." id=".$id);
|
||||||
|
|
||||||
if ($authentication['entity']) $conf->entity=$authentication['entity'];
|
if ($authentication['entity']) $conf->entity=$authentication['entity'];
|
||||||
@ -228,7 +230,7 @@ function getCategory($authentication, $id)
|
|||||||
//'visible'=>$categorie->visible,
|
//'visible'=>$categorie->visible,
|
||||||
'type' => $categorie->type,
|
'type' => $categorie->type,
|
||||||
'dir' => $pdir,
|
'dir' => $pdir,
|
||||||
'photos' => $categorie->liste_photos($dir, $nbmax=10)
|
'photos' => $categorie->liste_photos($dir, $nbmax)
|
||||||
);
|
);
|
||||||
|
|
||||||
$cats = $categorie->get_filles();
|
$cats = $categorie->get_filles();
|
||||||
@ -248,7 +250,7 @@ function getCategory($authentication, $id)
|
|||||||
//'visible'=>$fille->visible,
|
//'visible'=>$fille->visible,
|
||||||
'type'=>$fille->type,
|
'type'=>$fille->type,
|
||||||
'dir' => $pdir,
|
'dir' => $pdir,
|
||||||
'photos' => $fille->liste_photos($dir, $nbmax=10)
|
'photos' => $fille->liste_photos($dir, $nbmax)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -337,6 +337,8 @@ function getProductOrService($authentication, $id = '', $ref = '', $ref_ext = ''
|
|||||||
{
|
{
|
||||||
global $db,$conf,$langs;
|
global $db,$conf,$langs;
|
||||||
|
|
||||||
|
$nbmax = 10;
|
||||||
|
|
||||||
dol_syslog("Function: getProductOrService login=".$authentication['login']." id=".$id." ref=".$ref." ref_ext=".$ref_ext);
|
dol_syslog("Function: getProductOrService login=".$authentication['login']." id=".$id." ref=".$ref." ref_ext=".$ref_ext);
|
||||||
|
|
||||||
$langcode=($lang?$lang:(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT));
|
$langcode=($lang?$lang:(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT));
|
||||||
@ -417,7 +419,7 @@ function getProductOrService($authentication, $id = '', $ref = '', $ref_ext = ''
|
|||||||
'pmp' => $product->pmp,
|
'pmp' => $product->pmp,
|
||||||
'import_key' => $product->import_key,
|
'import_key' => $product->import_key,
|
||||||
'dir' => $pdir,
|
'dir' => $pdir,
|
||||||
'images' => $product->liste_photos($dir, $nbmax=10)
|
'images' => $product->liste_photos($dir, $nbmax)
|
||||||
);
|
);
|
||||||
|
|
||||||
//Retreive all extrafield for thirdsparty
|
//Retreive all extrafield for thirdsparty
|
||||||
@ -1001,6 +1003,8 @@ function getProductsForCategory($authentication, $id, $lang = '')
|
|||||||
{
|
{
|
||||||
global $db,$conf,$langs;
|
global $db,$conf,$langs;
|
||||||
|
|
||||||
|
$nbmax = 10;
|
||||||
|
|
||||||
$langcode=($lang?$lang:(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT));
|
$langcode=($lang?$lang:(empty($conf->global->MAIN_LANG_DEFAULT)?'auto':$conf->global->MAIN_LANG_DEFAULT));
|
||||||
$langs->setDefaultLang($langcode);
|
$langs->setDefaultLang($langcode);
|
||||||
|
|
||||||
@ -1086,7 +1090,7 @@ function getProductsForCategory($authentication, $id, $lang = '')
|
|||||||
'pmp' => $obj->pmp,
|
'pmp' => $obj->pmp,
|
||||||
'import_key' => $obj->import_key,
|
'import_key' => $obj->import_key,
|
||||||
'dir' => $pdir,
|
'dir' => $pdir,
|
||||||
'images' => $obj->liste_photos($dir, $nbmax=10)
|
'images' => $obj->liste_photos($dir, $nbmax)
|
||||||
);
|
);
|
||||||
|
|
||||||
//Retreive all extrafield for thirdsparty
|
//Retreive all extrafield for thirdsparty
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user