Qual: Spelling of admin code. (#27412)
# Qual: Fix spelling of admin code. Mostly changes in the comments. Some french text was modified to not trigger a bad spelling. htdocs/admin/contract.php has a change to $langs->trans(Activated) which probably fixes a bug. htdocs/admin/system/xcache.php used ->trans(Recommanded) but the proper key is ->trans(Recommended).
This commit is contained in:
parent
52ee926bac
commit
71f906c280
63 changed files with 150 additions and 150 deletions
|
|
@ -136,7 +136,7 @@ print dol_get_fiche_head($head, 'autoactions', $langs->trans("Agenda"), -1, 'act
|
|||
print '<span class="opacitymedium">'.$langs->trans("AgendaAutoActionDesc")." ".$langs->trans("OnlyActiveElementsAreShown", 'modules.php').'</span><br>';
|
||||
print "<br>\n";
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td class="liste_titre"><input type="text" name="search_event" value="'.dol_escape_htmltag($search_event).'"></td>';
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ if (GETPOSTISSET('AGENDA_EXPORT_FIX_TZ')) {
|
|||
$AGENDA_EXPORT_FIX_TZ = trim(GETPOST('AGENDA_EXPORT_FIX_TZ', 'alpha'));
|
||||
}
|
||||
|
||||
// Sauvegardes parametres
|
||||
// Sauvegardes parameters
|
||||
if ($actionsave) {
|
||||
$i = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -356,8 +356,8 @@ if ($resql) {
|
|||
print dol_escape_htmltag($obj->label);
|
||||
print "</td><td>\n";
|
||||
print $langs->trans('BarcodeDesc'.$obj->encoding);
|
||||
//print "L'EAN se compose de 8 caracteres, 7 chiffres plus une cle de controle.<br>";
|
||||
//print "L'utilisation des symbologies EAN8 impose la souscription et l'abonnement aupres d'organisme tel que GENCOD.<br>";
|
||||
//print "L'EAN se compose de 8 characters, 7 chiffres plus une cle de verification.<br>";
|
||||
//print "L'utilisation des symbologies EAN8 impose la souscription et l'abonnement aupres d'organismes comme GENCOD.<br>";
|
||||
//print "Codes numeriques utilises exclusivement a l'identification des produits susceptibles d'etre vendus au grand public.";
|
||||
print '</td>';
|
||||
|
||||
|
|
|
|||
|
|
@ -135,8 +135,8 @@ if ($action == 'updateMask') {
|
|||
} elseif ($action == 'unsetdoc') {
|
||||
dolibarr_del_const($db, "CONTRACT_ADDON_PDF", $conf->entity);
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// TODO Verify si the chosen numbering module can be activated by
|
||||
// the method call canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "CONTRACT_ADDON", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif ($action == 'set_other') {
|
||||
|
|
@ -410,7 +410,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print '<td class="center">';
|
||||
if (getDolGlobalString('CONTRACT_ADDON_PDF') == $name) {
|
||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=unsetdoc&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'&type=order_supplier" alt="'.$langs->trans("Disable").'">'.img_picto($langs->trans("Enabled"), 'on').'</a>';
|
||||
|
|
@ -522,7 +522,7 @@ print '<td>'.$langs->trans("AllowOnlineSign").'</td>';
|
|||
print '<td class="right">';
|
||||
if (getDolGlobalString('CONTRACT_ALLOW_ONLINESIGN')) {
|
||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=allowonlinesign&token='.newToken().'&value=0">';
|
||||
print img_picto($langs->trans("Activited"), 'switch_on');
|
||||
print img_picto($langs->trans("Activated"), 'switch_on');
|
||||
print '</a>';
|
||||
} else {
|
||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=allowonlinesign&token='.newToken().'&value=1">';
|
||||
|
|
|
|||
|
|
@ -188,8 +188,8 @@ if ($action == 'setdoc') {
|
|||
}
|
||||
|
||||
if ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// TODO Verify if the chosen numbering module can be activated
|
||||
// by calling method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "DELIVERY_ADDON_NUMBER", $value, 'chaine', 0, '', $conf->entity);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -537,7 +537,7 @@ $tabcond[44] = isModEnabled('asset');
|
|||
// List of help for fields (no more used, help is defined into tabcomplete)
|
||||
$tabhelp = array();
|
||||
|
||||
// Table to store complete informations (will replace all other table). Key is table name.
|
||||
// Table to store complete information (will replace all other table). Key is table name.
|
||||
$tabcomplete = array(
|
||||
'c_forme_juridique'=>array(
|
||||
'picto'=>'company',
|
||||
|
|
@ -601,7 +601,7 @@ complete_dictionary_with_modules($taborder, $tabname, $tablib, $tabsql, $tabsqls
|
|||
$i = 0;
|
||||
foreach ($tabcomplete as $key => $value) {
|
||||
$i++;
|
||||
// When a dictionnary is commented
|
||||
// When a dictionary is commented
|
||||
if (!isset($tabcond[$i])) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -627,7 +627,7 @@ if ($id > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
// Defaut sortorder
|
||||
// Default sortorder
|
||||
if (empty($sortfield)) {
|
||||
$tmp1 = explode(',', empty($tabcomplete[$keytable]['sqlsort']) ? '' : $tabcomplete[$keytable]['sqlsort']);
|
||||
$tmp2 = explode(' ', $tmp1[0]);
|
||||
|
|
@ -741,7 +741,7 @@ if (empty($reshook)) {
|
|||
if ($value == 'country' && in_array($tablib[$id], array('DictionaryPublicHolidays', 'DictionaryCanton', 'DictionaryCompanyType', 'DictionaryHolidayTypes', 'DictionaryRevenueStamp'))) {
|
||||
continue; // For some pages, country is not mandatory
|
||||
}
|
||||
// Discard check of mandatory fiedls for other fields
|
||||
// Discard check of mandatory fields for other fields
|
||||
if ($value == 'localtax1' && !GETPOST('localtax1_type')) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -1386,7 +1386,7 @@ if ($id > 0) {
|
|||
}
|
||||
|
||||
// Define field friendly name from its technical name
|
||||
$valuetoshow = ucfirst($value); // Par defaut
|
||||
$valuetoshow = ucfirst($value); // Par default
|
||||
$valuetoshow = $langs->trans($valuetoshow); // try to translate
|
||||
$class = '';
|
||||
|
||||
|
|
@ -2537,7 +2537,7 @@ $db->close();
|
|||
* @param array $fieldlist Array of fields
|
||||
* @param Object $obj If we show a particular record, obj is filled with record fields
|
||||
* @param string $tabname Name of SQL table
|
||||
* @param string $context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we dont want it to be rendered
|
||||
* @param string $context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we don't want it to be rendered
|
||||
* @return string '' or value of entity into table
|
||||
*/
|
||||
function fieldList($fieldlist, $obj = null, $tabname = '', $context = '')
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ if (!defined('NOTOKENRENEWAL')) {
|
|||
/**
|
||||
* \file htdocs/admin/dolistore/ajax/image.php
|
||||
* \ingroup admin
|
||||
* \brief Page des informations dolistore
|
||||
* \brief Page des information dolistore
|
||||
*/
|
||||
|
||||
require "../../../main.inc.php";
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class Dolistore
|
|||
public $url; // the url of this page
|
||||
public $shop_url; // the url of the shop
|
||||
public $lang; // the integer representing the lang in the store
|
||||
public $debug_api; // usefull if no dialog
|
||||
public $debug_api; // useful if no dialog
|
||||
|
||||
public $api;
|
||||
public $products;
|
||||
|
|
@ -177,7 +177,7 @@ class Dolistore
|
|||
$opt['sort'] = 'id_desc';
|
||||
$opt['filter[active]'] = '[1]';
|
||||
$opt['limit'] = "$this->start,$this->end";
|
||||
// $opt['filter[id]'] contais list of product id that are result of search
|
||||
// $opt['filter[id]'] contains list of product id that are result of search
|
||||
|
||||
// Call API to get the detail
|
||||
dol_syslog("Call API with opt = ".var_export($opt, true));
|
||||
|
|
@ -246,7 +246,7 @@ class Dolistore
|
|||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Return list of product formated for output
|
||||
* Return list of product formatted for output
|
||||
*
|
||||
* @return string HTML output
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ $extrafields->fetch_name_optionals_label($object->table_element);
|
|||
|
||||
$search_array_options = $extrafields->getOptionalsFromPost($object->table_element, '', 'search_');
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = GETPOST("search_all", 'alpha');
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ if ($user->socid > 0) { // Protection if external user
|
|||
}
|
||||
//$result = restrictedArea($user, 'emailcollector', $id, '');
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = GETPOST('search_all', 'alphanohtml');
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
@ -420,7 +420,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
|||
$selectedfields = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')); // This also change content of $arrayfields
|
||||
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
|
||||
|
|
@ -694,7 +694,7 @@ print '</div>'."\n";
|
|||
print load_fiche_titre($langs->trans("Other"), '', '');
|
||||
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ if ($action == 'edit') {
|
|||
if ($result < 0) {
|
||||
setEventMessages(null, $c->errors, 'errors');
|
||||
}
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formated text
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
|
||||
$toprint = array();
|
||||
foreach ($ways as $way) {
|
||||
$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '</li>';
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print '<td class="center">';
|
||||
if (getDolGlobalString('EXPEDITION_ADDON_PDF') == $name) {
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ if ($action == 'updateMask') {
|
|||
}
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// par appel method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "EXPENSEREPORT_ADDON", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif ($action == 'setoptions') {
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ print '<br>';
|
|||
print '<form name="externalrssconfig" action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ if ($action == 'updateMask') {
|
|||
}
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// par appel method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "FACTURE_ADDON", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif ($action == 'setribchq') {
|
||||
|
|
@ -389,7 +389,7 @@ foreach ($dirmodels as $reldir) {
|
|||
$htmltooltip .= $langs->trans($module->error).'<br>';
|
||||
}
|
||||
}
|
||||
// Example for remplacement
|
||||
// Example for replacement
|
||||
$facture->type = 1;
|
||||
$nextval = $module->getNextValue($mysoc, $facture);
|
||||
if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
|
||||
|
|
@ -554,7 +554,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print '<td class="center">';
|
||||
if ($conf->global->FACTURE_ADDON_PDF == "$name") {
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ $form = new Form($db);
|
|||
$formSetup = new FormSetup($db);
|
||||
|
||||
|
||||
// Setup conf MYMODULE_MYPARAM4 : exemple of quick define write style
|
||||
// Setup conf MYMODULE_MYPARAM4 : example of quick define write style
|
||||
$formSetup->newItem('INVOICE_USE_SITUATION')
|
||||
->setAsYesNo()
|
||||
->nameText = $langs->trans('UseSituationInvoices');
|
||||
|
|
|
|||
|
|
@ -133,8 +133,8 @@ if ($action == 'updateMask') {
|
|||
$ret = addDocumentModel($value, $type, $label, $scandir);
|
||||
}
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// TODO Verify if the chosen numbering module can be activated
|
||||
// by calling method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "FICHEINTER_ADDON", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif ($action == 'set_FICHINTER_FREE_TEXT') {
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ if ($action == 'updateMask') {
|
|||
}
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// par appel method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "HOLIDAY_ADDON", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif ($action == 'set_other') {
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ if ($action == 'edit') {
|
|||
if ($result < 0) {
|
||||
setEventMessages(null, $c->errors, 'errors');
|
||||
}
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formated text
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
|
||||
$toprint = array();
|
||||
foreach ($ways as $way) {
|
||||
$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '</li>';
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ if ($action == 'edit') {
|
|||
if ($result < 0) {
|
||||
setEventMessages(null, $c->errors, 'errors');
|
||||
}
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formated text
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
|
||||
$toprint = array();
|
||||
foreach ($ways as $way) {
|
||||
$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '</li>';
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ print load_fiche_titre($langs->trans("LDAPSetup"), $linkback, 'title_setup');
|
|||
|
||||
$head = ldap_prepare_head();
|
||||
|
||||
// Test si fonction LDAP actives
|
||||
// Test if the LDAP functionality is available
|
||||
if (!function_exists("ldap_connect")) {
|
||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||
}
|
||||
|
|
@ -146,12 +146,12 @@ print dol_get_fiche_head($head, 'ldap', '', -1);
|
|||
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
// Liste de synchro actives
|
||||
// List of active synchronisations
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td colspan="3">'.$langs->trans("LDAPSynchronization").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
// Synchro utilisateurs/groupes active
|
||||
// Synchronise active users and groups
|
||||
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("LDAPDnSynchroActive").'</td><td>';
|
||||
print $formldap->selectLdapDnSynchroActive(getDolGlobalInt('LDAP_SYNCHRO_ACTIVE'), 'activesynchro');
|
||||
|
|
@ -269,7 +269,7 @@ print '<br>';
|
|||
|
||||
|
||||
/*
|
||||
* Test de la connexion
|
||||
* Test the connection
|
||||
*/
|
||||
if (function_exists("ldap_connect")) {
|
||||
if (getDolGlobalString('LDAP_SERVER_HOST')) {
|
||||
|
|
@ -277,7 +277,7 @@ if (function_exists("ldap_connect")) {
|
|||
}
|
||||
|
||||
if ($action == 'test') {
|
||||
$ldap = new Ldap(); // Les parametres sont passes et recuperes via $conf
|
||||
$ldap = new Ldap(); // The parameters are provided and recovered through $conf
|
||||
|
||||
$result = $ldap->connect_bind();
|
||||
if ($result > 0) {
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ print load_fiche_titre($langs->trans("LDAPSetup"), $linkback, 'title_setup');
|
|||
|
||||
$head = ldap_prepare_head();
|
||||
|
||||
// Test si fonction LDAP actives
|
||||
// Test si function LDAP actives
|
||||
if (!function_exists("ldap_connect")) {
|
||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||
}
|
||||
|
|
@ -281,7 +281,7 @@ print '</form>';
|
|||
|
||||
|
||||
/*
|
||||
* Test de la connexion
|
||||
* Test the connection
|
||||
*/
|
||||
$butlabel = $langs->trans("LDAPTestSynchroContact");
|
||||
$testlabel = 'test';
|
||||
|
|
@ -294,7 +294,7 @@ show_ldap_test_button($butlabel, $testlabel, $key, $dn, $objectclass);
|
|||
|
||||
if (function_exists("ldap_connect")) {
|
||||
if ($_GET["action"] == 'test') {
|
||||
// Creation objet
|
||||
// Create object
|
||||
$object = new Contact($db);
|
||||
$object->initAsSpecimen();
|
||||
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ print load_fiche_titre($langs->trans("LDAPSetup"), $linkback, 'title_setup');
|
|||
|
||||
$head = ldap_prepare_head();
|
||||
|
||||
// Test si fonction LDAP actives
|
||||
// Test if the LDAP functionality is available
|
||||
if (!function_exists("ldap_connect")) {
|
||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||
}
|
||||
|
|
@ -130,7 +130,7 @@ print '<tr class="liste_titre">';
|
|||
print '<td colspan="4">'.$langs->trans("LDAPSynchronizeGroups").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
// DN pour les groupes
|
||||
// DN (Domain Name) for the groups
|
||||
print '<!-- LDAP_GROUP_DN -->';
|
||||
print '<tr class="oddeven"><td><span class="fieldrequired">'.$langs->trans("LDAPGroupDn").'</span></td><td>';
|
||||
print '<input size="48" type="text" name="group" value="'.getDolGlobalString('LDAP_GROUP_DN').'">';
|
||||
|
|
@ -217,7 +217,7 @@ print '</form>';
|
|||
|
||||
|
||||
/*
|
||||
* Test de la connexion
|
||||
* Test the connection
|
||||
*/
|
||||
if (getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) {
|
||||
$butlabel = $langs->trans("LDAPTestSynchroGroup");
|
||||
|
|
@ -238,7 +238,7 @@ if (getDolGlobalInt('LDAP_SYNCHRO_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) {
|
|||
|
||||
if (function_exists("ldap_connect")) {
|
||||
if ($action == 'testgroup') {
|
||||
// Creation objet
|
||||
// Create object
|
||||
$object = new UserGroup($db);
|
||||
$object->initAsSpecimen();
|
||||
|
||||
|
|
@ -284,7 +284,7 @@ if (function_exists("ldap_connect")) {
|
|||
}
|
||||
|
||||
if ($action == 'testsearchgroup') {
|
||||
// TODO Mutualize code following with other ldap_xxxx.php pages
|
||||
// TODO Mutualize code below with other ldap_xxxx.php pages
|
||||
|
||||
// Test synchro
|
||||
$ldap = new Ldap();
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ print load_fiche_titre($langs->trans("LDAPSetup"), $linkback, 'title_setup');
|
|||
|
||||
$head = ldap_prepare_head();
|
||||
|
||||
// Test si fonction LDAP actives
|
||||
// Test si function LDAP actives
|
||||
if (!function_exists("ldap_connect")) {
|
||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||
}
|
||||
|
|
@ -431,7 +431,7 @@ print '</form>';
|
|||
|
||||
|
||||
/*
|
||||
* Test de la connexion
|
||||
* Test the connection
|
||||
*/
|
||||
if (getDolGlobalString('LDAP_MEMBER_ACTIVE')) {
|
||||
$butlabel = $langs->trans("LDAPTestSynchroMember");
|
||||
|
|
@ -445,7 +445,7 @@ if (getDolGlobalString('LDAP_MEMBER_ACTIVE')) {
|
|||
|
||||
if (function_exists("ldap_connect")) {
|
||||
if ($_GET["action"] == 'testmember') {
|
||||
// Creation objet
|
||||
// Create object
|
||||
$object = new Adherent($db);
|
||||
$object->initAsSpecimen();
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ print load_fiche_titre($langs->trans("LDAPSetup"), $linkback, 'title_setup');
|
|||
|
||||
$head = ldap_prepare_head();
|
||||
|
||||
// Test si fonction LDAP actives
|
||||
// Test if the LDAP functions are enabled
|
||||
if (!function_exists("ldap_connect")) {
|
||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||
}
|
||||
|
|
@ -187,7 +187,7 @@ print '</form>';
|
|||
|
||||
|
||||
/*
|
||||
* Test de la connexion
|
||||
* Test de la connection
|
||||
*/
|
||||
if (getDolGlobalInt('LDAP_MEMBER_TYPE_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDAP) {
|
||||
$butlabel = $langs->trans("LDAPTestSynchroMemberType");
|
||||
|
|
@ -201,7 +201,7 @@ if (getDolGlobalInt('LDAP_MEMBER_TYPE_ACTIVE') === Ldap::SYNCHRO_DOLIBARR_TO_LDA
|
|||
|
||||
if (function_exists("ldap_connect")) {
|
||||
if ($_GET["action"] == 'testmembertype') {
|
||||
// Creation objet
|
||||
// Create object
|
||||
$object = new AdherentType($db);
|
||||
$object->initAsSpecimen();
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ print load_fiche_titre($langs->trans("LDAPSetup"), $linkback, 'title_setup');
|
|||
|
||||
$head = ldap_prepare_head();
|
||||
|
||||
// Test si fonction LDAP actives
|
||||
// Test if the LDAP functionality is available
|
||||
if (!function_exists("ldap_connect")) {
|
||||
setEventMessages($langs->trans("LDAPFunctionsNotAvailableOnPHP"), null, 'errors');
|
||||
}
|
||||
|
|
@ -187,7 +187,7 @@ print '<tr class="liste_titre">';
|
|||
print '<td colspan="4">'.$langs->trans("LDAPSynchronizeUsers").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
// DN Pour les utilisateurs
|
||||
// DN (Domain Name) for the users
|
||||
print '<!-- LDAP_USER_DN -->';
|
||||
print '<tr class="oddeven"><td><span class="fieldrequired">'.$langs->trans("LDAPUserDn").'</span></td><td>';
|
||||
print '<input size="48" type="text" name="user" value="'.getDolGlobalString('LDAP_USER_DN').'">';
|
||||
|
|
@ -394,7 +394,7 @@ print '</form>';
|
|||
|
||||
|
||||
/*
|
||||
* Test de la connexion
|
||||
* Test de la connection
|
||||
*/
|
||||
if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') == Ldap::SYNCHRO_DOLIBARR_TO_LDAP) {
|
||||
$butlabel = $langs->trans("LDAPTestSynchroUser");
|
||||
|
|
@ -415,7 +415,7 @@ if (getDolGlobalString('LDAP_SYNCHRO_ACTIVE') == Ldap::SYNCHRO_DOLIBARR_TO_LDAP)
|
|||
|
||||
if (function_exists("ldap_connect")) {
|
||||
if ($action == 'testuser') {
|
||||
// Creation objet
|
||||
// Create object
|
||||
$object = new User($db);
|
||||
$object->initAsSpecimen();
|
||||
|
||||
|
|
@ -458,7 +458,7 @@ if (function_exists("ldap_connect")) {
|
|||
}
|
||||
|
||||
if ($action == 'testsearchuser') {
|
||||
// Creation objet
|
||||
// Create object
|
||||
$object = new User($db);
|
||||
$object->initAsSpecimen();
|
||||
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ if ($action == 'setvalue') {
|
|||
$error++;
|
||||
}
|
||||
|
||||
// Create temporary encryption key if nedded
|
||||
// Create temporary encryption key if needed
|
||||
$res = dolibarr_set_const($db, "MAILING_EMAIL_UNSUBSCRIBE_KEY", $checkread_key, 'chaine', 0, '', $conf->entity);
|
||||
if (!($res > 0)) {
|
||||
$error++;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ if ($action == 'update' || $action == 'add') {
|
|||
}
|
||||
}
|
||||
|
||||
// Action activation d'un sous module du module adherent
|
||||
// Action to activate a submodule of the 'adherent' module
|
||||
if ($action == 'set') {
|
||||
$result = dolibarr_set_const($db, $_GET["name"], $_GET["value"], '', 0, '', $conf->entity);
|
||||
if ($result < 0) {
|
||||
|
|
@ -86,7 +86,7 @@ if ($action == 'set') {
|
|||
}
|
||||
}
|
||||
|
||||
// Action desactivation d'un sous module du module adherent
|
||||
// Action to deactivate a submodule of the 'adherent' module
|
||||
if ($action == 'unset') {
|
||||
$result = dolibarr_del_const($db, $_GET["name"], $conf->entity);
|
||||
if ($result < 0) {
|
||||
|
|
@ -157,7 +157,7 @@ if (getDolGlobalString('ADHERENT_USE_MAILMAN')) {
|
|||
//$link.=$langs->trans("Disable");
|
||||
$link .= img_picto($langs->trans("Activated"), 'switch_on');
|
||||
$link .= '</a>';
|
||||
// Edition des varibales globales
|
||||
// Edit the global variables
|
||||
$constantes = array(
|
||||
'ADHERENT_MAILMAN_ADMIN_PASSWORD',
|
||||
'ADHERENT_MAILMAN_URL',
|
||||
|
|
|
|||
|
|
@ -659,7 +659,7 @@ if ($action == 'edit') {
|
|||
print "<br><br>\n";
|
||||
|
||||
if (!getDolGlobalString('MAIN_DISABLE_ALL_MAILS')) {
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("Parameters").'</td><td></td></tr>';
|
||||
|
||||
|
|
@ -817,7 +817,7 @@ if ($action == 'edit') {
|
|||
print '<br>';
|
||||
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("ParametersForTestEnvironment").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
||||
|
||||
|
|
@ -848,7 +848,7 @@ if ($action == 'edit') {
|
|||
print '<br>';
|
||||
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("OtherOptions").'</td><td></td></tr>';
|
||||
|
||||
|
|
@ -1112,9 +1112,9 @@ if ($action == 'edit') {
|
|||
$formmail->withdeliveryreceipt = 1;
|
||||
$formmail->withfckeditor = ($action == 'testhtml' ? 1 : 0);
|
||||
$formmail->ckeditortoolbar = 'dolibarr_mailings';
|
||||
// Tableau des substitutions
|
||||
// Array of substitutions
|
||||
$formmail->substit = $substitutionarrayfortest;
|
||||
// Tableau des parametres complementaires du post
|
||||
// Array of complementary POST parameters
|
||||
$formmail->param["action"] = "send";
|
||||
$formmail->param["models"] = "body";
|
||||
$formmail->param["mailid"] = 0;
|
||||
|
|
|
|||
|
|
@ -516,7 +516,7 @@ if ($action == 'edit') {
|
|||
print '<span class="opacitymedium">'.$langs->trans("EMailsDesc")."</span><br>\n";
|
||||
print "<br><br>\n";
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("Parameters").'</td><td></td></tr>';
|
||||
|
||||
|
|
@ -733,7 +733,7 @@ if ($action == 'edit') {
|
|||
$formmail->ckeditortoolbar = 'dolibarr_mailings';
|
||||
// Tableau des substitutions
|
||||
$formmail->substit = $substitutionarrayfortest;
|
||||
// Tableau des parametres complementaires du post
|
||||
// Tableau des parameters complementaires du post
|
||||
$formmail->param["action"] = "send";
|
||||
$formmail->param["models"] = "body";
|
||||
$formmail->param["mailid"] = 0;
|
||||
|
|
|
|||
|
|
@ -107,13 +107,13 @@ print '<span class="opacitymedium">'.$langs->trans("EMailsInGoingDesc", $langs->
|
|||
print "<br><br>\n";
|
||||
|
||||
/*
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
||||
|
||||
print '<br>';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
// SMTPS oauth service
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
/**
|
||||
* \file htdocs/admin/mails_senderprofile_list.php
|
||||
* \ingroup core
|
||||
* \brief Page to adminsiter email sender profiles
|
||||
* \brief Page to administer email sender profiles
|
||||
*/
|
||||
|
||||
// Load Dolibarr environment
|
||||
|
|
@ -80,7 +80,7 @@ if (!$sortorder) {
|
|||
$sortorder = "ASC";
|
||||
}
|
||||
|
||||
// Initialize array of search criterias
|
||||
// Initialize array of search criteria
|
||||
$search_all = trim(GETPOST("search_all", 'alphanohtml'));
|
||||
$search = array();
|
||||
foreach ($object->fields as $key => $val) {
|
||||
|
|
@ -539,7 +539,7 @@ $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
|
|||
$selectedfields = ($mode != 'kanban' ? $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN', '')) : ''); // This also change content of $arrayfields
|
||||
$selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="tagtable nobottomiftotal liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -715,7 +715,7 @@ if ($action == 'create') {
|
|||
foreach ($fieldlist as $field => $value) {
|
||||
// Determine le nom du champ par rapport aux noms possibles
|
||||
// dans les dictionnaires de donnees
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // Par defaut
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // Par default
|
||||
$valuetoshow = $langs->trans($valuetoshow); // try to translate
|
||||
$css = "left";
|
||||
if ($fieldlist[$field] == 'module') {
|
||||
|
|
@ -975,7 +975,7 @@ if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
|
|||
print getTitleFieldOfList('');
|
||||
}
|
||||
foreach ($fieldlist as $field => $value) {
|
||||
$showfield = 1; // By defaut
|
||||
$showfield = 1; // By default
|
||||
$css = "left";
|
||||
$sortable = 1;
|
||||
$valuetoshow = '';
|
||||
|
|
@ -987,7 +987,7 @@ foreach ($fieldlist as $field => $value) {
|
|||
$css=$tmp['align'];
|
||||
$sortable=$tmp['sortable'];
|
||||
*/
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // By defaut
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // By default
|
||||
$valuetoshow = $langs->trans($valuetoshow); // try to translate
|
||||
if ($fieldlist[$field] == 'module') {
|
||||
$css = 'tdoverflowmax100';
|
||||
|
|
@ -1351,7 +1351,7 @@ $db->close();
|
|||
* @param array $fieldlist Array of fields
|
||||
* @param Object $obj If we show a particular record, obj is filled with record fields
|
||||
* @param string $tabname Name of SQL table
|
||||
* @param string $context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we dont want it to be rendered
|
||||
* @param string $context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we don't want it to be rendered
|
||||
* @return void
|
||||
*/
|
||||
function fieldList($fieldlist, $obj = null, $tabname = '', $context = '')
|
||||
|
|
|
|||
|
|
@ -493,7 +493,7 @@ if ($action == 'edit') {
|
|||
print '<span class="opacitymedium">'.$langs->trans("EMailsDesc")."</span><br>\n";
|
||||
print "<br><br>\n";
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans("Parameters").'</td><td></td></tr>';
|
||||
|
||||
|
|
@ -695,7 +695,7 @@ if ($action == 'edit') {
|
|||
$formmail->ckeditortoolbar = 'dolibarr_mailings';
|
||||
// Tableau des substitutions
|
||||
$formmail->substit = $substitutionarrayfortest;
|
||||
// Tableau des parametres complementaires du post
|
||||
// Tableau des parameters complementaires du post
|
||||
$formmail->param["action"] = "send";
|
||||
$formmail->param["models"] = "body";
|
||||
$formmail->param["mailid"] = 0;
|
||||
|
|
|
|||
|
|
@ -49,8 +49,8 @@ foreach ($dirmenus as $dirmenu) {
|
|||
|
||||
$error = 0;
|
||||
|
||||
// Cette page peut etre longue. On augmente le delai autorise.
|
||||
// Ne fonctionne que si on est pas en safe_mode.
|
||||
// This can be a big page. The execution time limit is increased.
|
||||
// This setting can only be changed when the 'safe_mode' is inactive.
|
||||
$err = error_reporting();
|
||||
error_reporting(0); // Disable all errors
|
||||
//error_reporting(E_ALL);
|
||||
|
|
@ -63,7 +63,7 @@ error_reporting($err);
|
|||
*/
|
||||
|
||||
if ($action == 'update' && !$cancel) {
|
||||
$_SESSION["mainmenu"] = "home"; // Le gestionnaire de menu a pu changer
|
||||
$_SESSION["mainmenu"] = "home"; // The menu manager may have changed
|
||||
|
||||
dolibarr_set_const($db, "MAIN_MENU_STANDARD", GETPOST('MAIN_MENU_STANDARD', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
dolibarr_set_const($db, "MAIN_MENU_SMARTPHONE", GETPOST('MAIN_MENU_SMARTPHONE', 'alpha'), 'chaine', 0, '', $conf->entity);
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ if ($action == 'create') {
|
|||
|
||||
print dol_get_fiche_head();
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="border centpercent">';
|
||||
|
||||
// Id
|
||||
|
|
@ -412,7 +412,7 @@ if ($action == 'create') {
|
|||
|
||||
print dol_get_fiche_head();
|
||||
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="border centpercent">';
|
||||
|
||||
$menu = new Menubase($db);
|
||||
|
|
|
|||
|
|
@ -258,25 +258,25 @@ print '</form>';
|
|||
print '<br>';
|
||||
|
||||
|
||||
// ARBORESCENCE
|
||||
// MENU TREE
|
||||
|
||||
|
||||
/*-------------------- MAIN -----------------------
|
||||
tableau des elements de l'arbre:
|
||||
c'est un tableau a 2 dimensions.
|
||||
Une ligne represente un element : data[$x]
|
||||
chaque ligne est decomposee en 3 donnees:
|
||||
- l'index de l'élément
|
||||
- l'index de l'élément parent
|
||||
- la chaine a afficher
|
||||
ie: data[]= array (index, index parent, chaine )
|
||||
Array of the menu tree:
|
||||
- Is an array in with 2 dimensions.
|
||||
- A single line represents an item : data[$x]
|
||||
- Each line has 3 data items:
|
||||
- The index of the item;
|
||||
- The index of the item's parent;
|
||||
- The string to show
|
||||
i.e.: data[]= array (index, parent index, string )
|
||||
*/
|
||||
|
||||
//il faut d'abord declarer un element racine de l'arbre
|
||||
// First the root item of the tree must be declared:
|
||||
|
||||
$data[] = array('rowid'=>0, 'fk_menu'=>-1, 'title'=>"racine", 'mainmenu'=>'', 'leftmenu'=>'', 'fk_mainmenu'=>'', 'fk_leftmenu'=>'');
|
||||
|
||||
//puis tous les elements enfants
|
||||
// Then all child items must be declared
|
||||
|
||||
$sql = "SELECT m.rowid, m.titre, m.langs, m.mainmenu, m.leftmenu, m.fk_menu, m.fk_mainmenu, m.fk_leftmenu, m.position, m.module";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."menu as m";
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ if ($action == 'install') {
|
|||
$modulenamearrays[$modulename] = $modulename;
|
||||
//var_dump($modulenamearrays);exit;
|
||||
|
||||
// Lop on each packacge of the metapackage
|
||||
// Lop on each package of the metapackage
|
||||
foreach ($modulenamearrays as $modulenameval) {
|
||||
if (strpos($modulenameval, '#') === 0) {
|
||||
continue; // Discard comments
|
||||
|
|
@ -940,7 +940,7 @@ if ($mode == 'common' || $mode == 'commonkanban') {
|
|||
} else { // Module not yet activated
|
||||
// Set $codeenabledisable
|
||||
if (!empty($objMod->always_enabled)) {
|
||||
// A 'always_enabled' module should not never be disabled. If this happen, we keep a link to reenable it.
|
||||
// A 'always_enabled' module should not never be disabled. If this happen, we keep a link to re-enable it.
|
||||
$codeenabledisable .= '<!-- Message to show: an always_enabled module has been disabled -->'."\n";
|
||||
$codeenabledisable .= '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?id='.$objMod->numero.'&token='.newToken().'&module_position='.$module_position.'&action=set&token='.newToken().'&value='.$modName.'&mode='.$mode.$param.'"';
|
||||
$codeenabledisable .= '>';
|
||||
|
|
@ -1119,7 +1119,7 @@ if ($mode == 'marketplace') {
|
|||
print '<br>';
|
||||
|
||||
if (!getDolGlobalString('MAIN_DISABLE_DOLISTORE_SEARCH') && getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 1) {
|
||||
// $options is array with filter criterias
|
||||
// $options is array with filter criteria
|
||||
//var_dump($options);
|
||||
$dolistore->getRemoteCategories();
|
||||
$dolistore->getRemoteProducts($options);
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ if ($conf->use_javascript_ajax) {
|
|||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Place customer adress to the ISO location
|
||||
// Place customer address to the ISO location
|
||||
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("PlaceCustomerAddressToIsoLocation").'</td><td>';
|
||||
if ($conf->use_javascript_ajax) {
|
||||
|
|
@ -568,7 +568,7 @@ if ($conf->use_javascript_ajax) {
|
|||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Swicth in Bold
|
||||
// Switch in Bold
|
||||
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("BoldLabelOnPDF").'</td><td>';
|
||||
if ($conf->use_javascript_ajax) {
|
||||
|
|
@ -578,7 +578,7 @@ if ($conf->use_javascript_ajax) {
|
|||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Swicth in Bold
|
||||
// Switch in Bold
|
||||
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("BoldRefAndPeriodOnPDF").'</td><td>';
|
||||
if ($conf->use_javascript_ajax) {
|
||||
|
|
|
|||
|
|
@ -186,8 +186,8 @@ if ($action == 'updateMask') {
|
|||
$ret = addDocumentModel($value, $type, $label, $scandir);
|
||||
}
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// TODO Verify if the chosen numbering module can be active
|
||||
// by calling method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "PROPALE_ADDON", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif (preg_match('/set_(.*)/', $action, $reg)) {
|
||||
|
|
@ -437,7 +437,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print "<td align=\"center\">";
|
||||
if ($conf->global->PROPALE_ADDON_PDF == "$name") {
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print '<td class="center">';
|
||||
if ($conf->global->RECEPTION_ADDON_PDF == $name) {
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ print '<td class="right">'.$langs->trans("Value").'</td>'."\n";
|
|||
print '<td></td>';
|
||||
|
||||
|
||||
// Utilisation formulaire Ajax sur choix produit
|
||||
// Use an Ajax form for the product choice
|
||||
print '<tr class="oddeven">';
|
||||
print '<td width="80%">'.$langs->trans("UseSearchToSelectResource").'</td>';
|
||||
if (empty($conf->use_javascript_ajax)) {
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ if ($action == 'edit') {
|
|||
$formsms->withcancel = 1;
|
||||
// Tableau des substitutions
|
||||
$formsms->substit = $substitutionarrayfortest;
|
||||
// Tableau des parametres complementaires du post
|
||||
// Tableau des parameters complementaires du post
|
||||
$formsms->param["action"] = "send";
|
||||
$formsms->param["models"] = "body";
|
||||
$formsms->param["smsid"] = 0;
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ if ($action == 'set') {
|
|||
}
|
||||
}
|
||||
|
||||
// Action desactivation d'un sous module du module adherent
|
||||
// Action deactivation d'un sous module du module adherent
|
||||
if ($action == 'unset') {
|
||||
$result = dolibarr_del_const($db, $_GET["name"], $conf->entity);
|
||||
if ($result < 0) {
|
||||
|
|
@ -129,7 +129,7 @@ if (getDolGlobalString('ADHERENT_USE_SPIP')) {
|
|||
//$link.=$langs->trans("Disable");
|
||||
$link .= img_picto($langs->trans("Activated"), 'switch_on');
|
||||
$link .= '</a>';
|
||||
// Edition des varibales globales
|
||||
// Edition des variables globales
|
||||
$constantes = array(
|
||||
'ADHERENT_SPIP_SERVEUR',
|
||||
'ADHERENT_SPIP_DB',
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ print '<input type="hidden" name="token" value="'.newToken().'">';
|
|||
print '<input type="hidden" name="action" value="warehouse">';
|
||||
|
||||
// Title rule for stock decrease
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>".$langs->trans("RuleForStockManagementDecrease")."</td>\n";
|
||||
|
|
@ -305,7 +305,7 @@ print '<br>';
|
|||
|
||||
|
||||
// Title rule for stock increase
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>".$langs->trans("RuleForStockManagementIncrease")."</td>\n";
|
||||
|
|
@ -410,7 +410,7 @@ print '</div>';
|
|||
|
||||
print '<br>';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>".$langs->trans("RuleForStockAvailability")."</td>\n";
|
||||
|
|
@ -488,7 +488,7 @@ if (getDolGlobalString('STOCK_CALCULATE_ON_SHIPMENT')
|
|||
}
|
||||
|
||||
if ($virtualdiffersfromphysical) {
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print "<td>".$langs->trans("RuleForStockReplenishment")." ".img_help('help', $langs->trans("VirtualDiffersFromPhysical"))."</td>\n";
|
||||
|
|
@ -548,7 +548,7 @@ if ($resql) {
|
|||
}
|
||||
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">'."\n";
|
||||
print '<tr class="liste_titre">'."\n";
|
||||
print '<td>'.$langs->trans("Name").'</td>';
|
||||
|
|
@ -675,7 +675,7 @@ print '<input type="hidden" name="action" value="warehouse">';
|
|||
|
||||
print load_fiche_titre($langs->trans("Other"), '', '');
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
|
|
|||
|
|
@ -157,8 +157,8 @@ if ($action == 'specimen') { // For invoices
|
|||
}
|
||||
|
||||
if ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// TODO Verify if the chosen numbering module can be activated
|
||||
// by calling method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "INVOICE_SUPPLIER_ADDON_NUMBER", $value, 'chaine', 0, '', $conf->entity);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,8 +145,8 @@ if ($action == 'specimen') { // For orders
|
|||
} elseif ($action == 'unsetdoc') {
|
||||
dolibarr_del_const($db, "COMMANDE_SUPPLIER_ADDON_PDF", $conf->entity);
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// TODO Verify if the chosen numbering module can be activated
|
||||
// by calling method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "COMMANDE_SUPPLIER_ADDON_NUMBER", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif ($action == 'addcat') {
|
||||
|
|
|
|||
|
|
@ -176,8 +176,8 @@ if ($action == 'set') {
|
|||
$ret = addDocumentModel($value, $type, $label, $scandir);
|
||||
}
|
||||
} elseif ($action == 'setmod') {
|
||||
// TODO Verifier si module numerotation choisi peut etre active
|
||||
// par appel methode canBeActivated
|
||||
// TODO Verify if the chosen numbering module can be activated
|
||||
// by calling method canBeActivated
|
||||
|
||||
dolibarr_set_const($db, "SUPPLIER_PROPOSAL_ADDON", $value, 'chaine', 0, '', $conf->entity);
|
||||
} elseif (preg_match('/set_(.*)/', $action, $reg)) {
|
||||
|
|
@ -426,7 +426,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print '<td align="center">';
|
||||
if ($conf->global->SUPPLIER_PROPOSAL_ADDON_PDF == "$name") {
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ if ($action == 'set') {
|
|||
|
||||
$activeModules = $newActiveModules;
|
||||
|
||||
dolibarr_del_const($db, 'SYSLOG_HANDLERS', -1); // To be sure ther is not a setup into another entity
|
||||
dolibarr_del_const($db, 'SYSLOG_HANDLERS', -1); // To be sure there is not a setup into another entity
|
||||
dolibarr_set_const($db, 'SYSLOG_HANDLERS', json_encode($activeModules), 'chaine', 0, '', 0);
|
||||
|
||||
// Check configuration
|
||||
|
|
@ -194,7 +194,7 @@ print load_fiche_titre($langs->trans("SyslogOutput"), '', '');
|
|||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
print '<input type="hidden" name="action" value="set">';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Type").'</td>';
|
||||
|
|
@ -286,7 +286,7 @@ print load_fiche_titre($langs->trans("SyslogLevel"), '', '');
|
|||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
print '<input type="hidden" name="action" value="setlevel">';
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you don't need reserved height for your table
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td>';
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/**
|
||||
* \file htdocs/admin/system/browser.php
|
||||
* \brief Page to show Dolibarr informations
|
||||
* \brief Page to show Dolibarr information
|
||||
*/
|
||||
|
||||
// Load Dolibarr environment
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ foreach ($configfileparameters as $key) {
|
|||
|
||||
if (preg_match('/^\?/', $key) && empty(${$newkey})) {
|
||||
$i++;
|
||||
continue; // We discard parametes starting with ?
|
||||
continue; // We discard parameters starting with ?
|
||||
}
|
||||
|
||||
if ($newkey == 'separator' && $lastkeyshown == 'separator') {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ print '<tr class="liste_titre"><td class="titlefieldcreate">'.$langs->trans("Ver
|
|||
print '<tr class="oddeven"><td>'.$langs->trans("CurrentVersion").' ('.$langs->trans("Programs").')</td><td>'.DOL_VERSION;
|
||||
// If current version differs from last upgrade
|
||||
if (!getDolGlobalString('MAIN_VERSION_LAST_UPGRADE')) {
|
||||
// Compare version with last install database version (upgrades never occured)
|
||||
// Compare version with last install database version (upgrades never occurred)
|
||||
if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_INSTALL) {
|
||||
print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired", DOL_VERSION, getDolGlobalString('MAIN_VERSION_LAST_INSTALL')));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ print '<tr class="oddeven"><td width="300">'.$langs->trans("VersionLastUpgrade")
|
|||
print '<tr class="oddeven"><td width="300">'.$langs->trans("VersionProgram").'</td><td>'.DOL_VERSION;
|
||||
// If current version differs from last upgrade
|
||||
if (!getDolGlobalString('MAIN_VERSION_LAST_UPGRADE')) {
|
||||
// Compare version with last install database version (upgrades never occured)
|
||||
// Compare version with last install database version (upgrades never occurred)
|
||||
if (DOL_VERSION != $conf->global->MAIN_VERSION_LAST_INSTALL) {
|
||||
print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired", DOL_VERSION, getDolGlobalString('MAIN_VERSION_LAST_INSTALL')));
|
||||
}
|
||||
|
|
@ -262,7 +262,7 @@ if (empty($error) && !empty($xml)) {
|
|||
}
|
||||
}
|
||||
|
||||
// Files missings
|
||||
// Files missing
|
||||
$out .= load_fiche_titre($langs->trans("FilesMissing"));
|
||||
|
||||
$out .= '<div class="div-table-responsive-no-min">';
|
||||
|
|
|
|||
|
|
@ -634,7 +634,7 @@ if (getDolGlobalString('MAIN_SECURITY_HASH_ALGO') != 'password_hash') {
|
|||
print '<br>';
|
||||
}
|
||||
if (getDolGlobalString('MAIN_SECURITY_HASH_ALGO') != 'password_hash') {
|
||||
print '<div class="info">The recommanded value for MAIN_SECURITY_HASH_ALGO is now \'password_hash\' but setting it now will make ALL existing passwords of all users not valid, so update is not possible.<br>';
|
||||
print '<div class="info">The recommended value for MAIN_SECURITY_HASH_ALGO is now \'password_hash\' but setting it now will make ALL existing passwords of all users not valid, so update is not possible.<br>';
|
||||
print 'If you really want to switch, you must:<br>';
|
||||
print '- Go on home - setup - other and add constant MAIN_SECURITY_HASH_ALGO to value \'password_hash\'<br>';
|
||||
print '- In same session, WITHOUT LOGGING OUT, go into your admin user record and set a new password<br>';
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ if (!function_exists('xcache_info')) {
|
|||
|
||||
print 'Opcode cache XCache is on<br><br>'."\n\n";
|
||||
|
||||
print $langs->trans("Split").': '.ini_get('xcache.count').' '.$langs->trans("Recommanded").': (cat /proc/cpuinfo | grep -c processor) + 1<br>'."\n";
|
||||
print $langs->trans("Size").': '.ini_get('xcache.size').' '.$langs->trans("Recommanded").': 16*Split<br>'."\n";
|
||||
print $langs->trans("Split").': '.ini_get('xcache.count').' '.$langs->trans("Recommended").': (cat /proc/cpuinfo | grep -c processor) + 1<br>'."\n";
|
||||
print $langs->trans("Size").': '.ini_get('xcache.size').' '.$langs->trans("Recommended").': 16*Split<br>'."\n";
|
||||
|
||||
print $langs->trans("xcache.cacher").': '.yn(ini_get('xcache.cacher')).'<br>'."\n";
|
||||
print $langs->trans("xcache.optimizer").': '.yn(ini_get('xcache.optimizer')).' (will be usefull only with xcache v2)<br>'."\n";
|
||||
print $langs->trans("xcache.optimizer").': '.yn(ini_get('xcache.optimizer')).' (will be useful only with xcache v2)<br>'."\n";
|
||||
print $langs->trans("xcache.stat").': '.yn(ini_get('xcache.stat')).'<br>'."\n";
|
||||
print $langs->trans("xcache.coverager").': '.yn(ini_get('xcache.coverager')).'<br>'."\n";
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ if (function_exists('socket_create')) {
|
|||
if (function_exists('xdebug_get_profiler_filename')) {
|
||||
print xdebug_get_profiler_filename() ? "(currently on into file ".xdebug_get_profiler_filename().")" : "(currently off)";
|
||||
} else {
|
||||
print "(currenlty not available)";
|
||||
print "(currently not available)";
|
||||
}
|
||||
print ":<br>\n";
|
||||
print 'xdebug.profiler_enable = '.ini_get('xdebug.profiler_enable')."<br>\n";
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ if (empty($mysoc->tva_assuj)) {
|
|||
|
||||
print '<table class="noborder centpercent">';
|
||||
|
||||
// Cas des parametres TAX_MODE_SELL/BUY_SERVICE/PRODUCT
|
||||
// Case for the parameters TAX_MODE_SELL/BUY_SERVICE/PRODUCT
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td class="titlefield">'.$langs->trans('OptionVatMode').'</td><td>'.$langs->trans('Description').'</td>';
|
||||
print "</tr>\n";
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ if (in_array($type, array('mysql', 'mysqli'))) {
|
|||
print '<fieldset id="mysql_options">';
|
||||
print '<legend>'.$langs->trans('RestoreMySQL').'</legend>';
|
||||
print '<div class="formelementrow centpercent">';
|
||||
// Parameteres execution
|
||||
// Parameters execution
|
||||
$command = $db->getPathOfRestore();
|
||||
if (preg_match("/\s/", $command)) {
|
||||
$command = $command = escapeshellarg($command); // Use quotes on command
|
||||
|
|
@ -176,7 +176,7 @@ if (in_array($type, array('mysql', 'mysqli'))) {
|
|||
print '<fieldset id="postgresql_options">';
|
||||
print '<legend>Restore PostgreSQL</legend>';
|
||||
print '<div class="formelementrow">';
|
||||
// Parameteres execution
|
||||
// Parameters execution
|
||||
$command = $db->getPathOfRestore();
|
||||
if (preg_match("/\s/", $command)) {
|
||||
$command = $command = escapeshellarg($command); // Use quotes on command
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ $usefilter = 0;
|
|||
$listofsessions = listOfSessions();
|
||||
$num = count($listofsessions);
|
||||
|
||||
print_barre_liste($langs->trans("Sessions"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num, ($num ? $num : ''), 'setup'); // Do not show numer (0) if no session found (it means we can't know)
|
||||
print_barre_liste($langs->trans("Sessions"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num, ($num ? $num : ''), 'setup'); // Do not show number (0) if no session found (it means we can't know)
|
||||
|
||||
$savehandler = ini_get("session.save_handler");
|
||||
$savepath = ini_get("session.save_path");
|
||||
|
|
|
|||
|
|
@ -280,7 +280,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print '<td class="center">';
|
||||
if (getDolGlobalString('USER_ADDON_PDF_ODT') == $name) {
|
||||
//print img_picto($langs->trans("Default"), 'on');
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ foreach ($dirmodels as $reldir) {
|
|||
print "</td>";
|
||||
}
|
||||
|
||||
// Defaut
|
||||
// Default
|
||||
print '<td class="center">';
|
||||
if (getDolGlobalString('USERGROUP_ADDON_PDF') == $name) {
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ if ($action == 'edit') {
|
|||
if ($result < 0) {
|
||||
setEventMessages(null, $c->errors, 'errors');
|
||||
} elseif ($result > 0) {
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formated text
|
||||
$ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formatted text
|
||||
$toprint = array();
|
||||
foreach ($ways as $way) {
|
||||
$toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '</li>';
|
||||
|
|
|
|||
|
|
@ -450,7 +450,7 @@ if ($id) {
|
|||
|
||||
// Determine le nom du champ par rapport aux noms possibles
|
||||
// dans les dictionnaires de donnees
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // Par defaut
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // By default
|
||||
$valuetoshow = $langs->trans($valuetoshow); // try to translate
|
||||
$align = '';
|
||||
if ($fieldlist[$field] == 'lang') {
|
||||
|
|
@ -528,7 +528,7 @@ if ($id) {
|
|||
foreach ($fieldlist as $field => $value) {
|
||||
// Determine le nom du champ par rapport aux noms possibles
|
||||
// dans les dictionnaires de donnees
|
||||
$showfield = 1; // Par defaut
|
||||
$showfield = 1; // By default
|
||||
$align = "left";
|
||||
$sortable = 1;
|
||||
$valuetoshow = '';
|
||||
|
|
@ -543,7 +543,7 @@ if ($id) {
|
|||
$align=$tmp['align'];
|
||||
$sortable=$tmp['sortable'];
|
||||
*/
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // Par defaut
|
||||
$valuetoshow = ucfirst($fieldlist[$field]); // By default
|
||||
$valuetoshow = $langs->trans($valuetoshow); // try to translate
|
||||
if ($fieldlist[$field] == 'lang') {
|
||||
$valuetoshow = $langs->trans("Language");
|
||||
|
|
@ -678,7 +678,7 @@ $db->close();
|
|||
* @param array $fieldlist Array of fields
|
||||
* @param Object $obj If we show a particular record, obj is filled with record fields
|
||||
* @param string $tabname Name of SQL table
|
||||
* @param string $context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we dont want it to be rendered
|
||||
* @param string $context 'add'=Output field for the "add form", 'edit'=Output field for the "edit form", 'hide'=Output field for the "add form" but we don't want it to be rendered
|
||||
* @return void
|
||||
*/
|
||||
function fieldListWebsites($fieldlist, $obj = null, $tabname = '', $context = '')
|
||||
|
|
|
|||
Loading…
Reference in a new issue