28 global $_Avery_Labels;
35 $sql =
"SELECT rowid, code, name, paper_size, orientation, metric, leftmargin, topmargin, nx, ny, spacex, spacey, width, height, font_size, custom_x, custom_y, active FROM ".MAIN_DB_PREFIX.
"c_format_cards WHERE active=1 ORDER BY code ASC";
38 while ($row = $db->fetch_array(
$resql)) {
39 $_Avery_Labels[$row[
'code']][
'name'] = $row[
'name'];
40 $_Avery_Labels[$row[
'code']][
'paper-size'] = $row[
'paper_size'];
41 $_Avery_Labels[$row[
'code']][
'orientation'] = $row[
'orientation'];
42 $_Avery_Labels[$row[
'code']][
'metric'] = $row[
'metric'];
43 $_Avery_Labels[$row[
'code']][
'marginLeft'] = $row[
'leftmargin'];
44 $_Avery_Labels[$row[
'code']][
'marginTop'] = $row[
'topmargin'];
45 $_Avery_Labels[$row[
'code']][
'marginTop'] = $row[
'topmargin'];
46 $_Avery_Labels[$row[
'code']][
'NX'] = $row[
'nx'];
47 $_Avery_Labels[$row[
'code']][
'NY'] = $row[
'ny'];
48 $_Avery_Labels[$row[
'code']][
'SpaceX'] = $row[
'spacex'];
49 $_Avery_Labels[$row[
'code']][
'SpaceY'] = $row[
'spacey'];
50 $_Avery_Labels[$row[
'code']][
'width'] = $row[
'width'];
51 $_Avery_Labels[$row[
'code']][
'height'] = $row[
'height'];
52 $_Avery_Labels[$row[
'code']][
'font-size'] = $row[
'font_size'];
53 $_Avery_Labels[$row[
'code']][
'custom_x'] = $row[
'custom_x'];
54 $_Avery_Labels[$row[
'code']][
'custom_y'] = $row[
'custom_y'];
61 foreach ($_Avery_Labels as $key => $val) {
62 $_Avery_Labels[$key][
'name'] .=
' ('.$_Avery_Labels[$key][
'paper-size'].
' - '.$_Avery_Labels[$key][
'NX'].
'x'.$_Avery_Labels[$key][
'NY'].
')';
if(isModEnabled('facture') &&!empty($user->rights->facture->lire)) if((isModEnabled('fournisseur') &&empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD) && $user->hasRight("fournisseur", "facture", "lire"))||(isModEnabled('supplier_invoice') && $user->hasRight("supplier_invoice", "lire"))) if(isModEnabled('don') &&!empty($user->rights->don->lire)) if(isModEnabled('tax') &&!empty($user->rights->tax->charges->lire)) if(isModEnabled('facture') &&isModEnabled('commande') && $user->hasRight("commande", "lire") &&empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER)) $resql
Social contributions to pay.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...