diff --git a/htdocs/adherents/type_translation.php b/htdocs/adherents/type_translation.php index f28198d94b1..55ee3bbd697 100644 --- a/htdocs/adherents/type_translation.php +++ b/htdocs/adherents/type_translation.php @@ -82,7 +82,7 @@ if ($action == 'vadd' && $cancel != $langs->trans("Cancel") && $user->hasRight(' if ($forcelangprod == $current_lang) { $object->label = GETPOST("libelle", 'alphanohtml'); $object->description = dol_htmlcleanlastbr(GETPOST("desc", 'restricthtml')); - //$object->other = dol_htmlcleanlastbr(GETPOST("other", 'restricthtml')); + //$object->other = dol_htmlcleanlastbr(GETPOST("other", 'restricthtml')); } else { $object->multilangs[$forcelangprod]["label"] = GETPOST("libelle", 'alphanohtml'); $object->multilangs[$forcelangprod]["description"] = dol_htmlcleanlastbr(GETPOST("desc", 'restricthtml')); diff --git a/htdocs/admin/emailcollector_card.php b/htdocs/admin/emailcollector_card.php index 1f5ce168fa5..a6ff78a0ba0 100644 --- a/htdocs/admin/emailcollector_card.php +++ b/htdocs/admin/emailcollector_card.php @@ -560,7 +560,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $morehtml .= '
'.imap_last_error(); } dol_syslog("Error ".$morehtml, LOG_WARNING); - //var_dump(imap_errors()) + //var_dump(imap_errors()) } else { dol_syslog("Imap connected. Now we call imap_num_msg()"); $morehtml .= imap_num_msg($connection); diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index cf8c1ef77aa..78fed9249ea 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -918,7 +918,7 @@ if ($mode == 'common' || $mode == 'commonkanban') { $urlpage = $page; if ($i++) { $codetoconfig .= ''.img_picto(ucfirst($page), "setup").''; - // print ''.ucfirst($page).' '; + // print ''.ucfirst($page).' '; } else { if (preg_match('/^([^@]+)@([^@]+)$/i', $urlpage, $regs)) { $urltouse = dol_buildpath('/'.$regs[2].'/admin/'.$regs[1], 1); diff --git a/htdocs/admin/multicurrency.php b/htdocs/admin/multicurrency.php index 39f0d3c0108..5afd1ce8c85 100644 --- a/htdocs/admin/multicurrency.php +++ b/htdocs/admin/multicurrency.php @@ -132,7 +132,7 @@ if ($action == 'add_currency') { if (GETPOSTISSET('modify_apilayer')) { dolibarr_set_const($db, 'MULTICURRENCY_APP_ID', GETPOST('MULTICURRENCY_APP_ID', 'alpha')); dolibarr_set_const($db, 'MULTICURRENCY_APP_SOURCE', GETPOST('MULTICURRENCY_APP_SOURCE', 'alpha')); - //dolibarr_set_const($db, 'MULTICURRENCY_ALTERNATE_SOURCE', GETPOST('MULTICURRENCY_ALTERNATE_SOURCE', 'alpha')); + //dolibarr_set_const($db, 'MULTICURRENCY_ALTERNATE_SOURCE', GETPOST('MULTICURRENCY_ALTERNATE_SOURCE', 'alpha')); } else { $multiurrency = new MultiCurrency($db); $result = $multiurrency->syncRates(getDolGlobalString('MULTICURRENCY_APP_ID')); diff --git a/htdocs/admin/notification.php b/htdocs/admin/notification.php index 741633bf678..78765aae04e 100644 --- a/htdocs/admin/notification.php +++ b/htdocs/admin/notification.php @@ -137,7 +137,7 @@ if ($action == 'setfixednotif' && $user->admin) { $newkey = 'NOTIFICATION_FIXEDEMAIL_'.$reg[1].'_THRESHOLD_HIGHER_'.((int) GETPOST($shortkey.'_amount')); $newval = GETPOST($shortkey.'_key'); - //print $newkey.' - '.$newval.'
'; + //print $newkey.' - '.$newval.'
'; } elseif (preg_match('/^NOTIF_(.*)_new_key/', $key, $reg)) { // Add a new entry $newkey = 'NOTIFICATION_FIXEDEMAIL_'.$reg[1].'_THRESHOLD_HIGHER_'.((int) GETPOST($shortkey.'_amount')); @@ -304,7 +304,7 @@ foreach ($listofnotifiedevents as $notifiedevent) { $model = 'expensereport_send'; } elseif ($notifiedevent['elementtype'] == 'order_supplier') { $model = 'order_supplier_send'; - // } elseif ($notifiedevent['elementtype'] == 'invoice_supplier') $model = 'invoice_supplier_send'; + // } elseif ($notifiedevent['elementtype'] == 'invoice_supplier') $model = 'invoice_supplier_send'; } elseif ($notifiedevent['elementtype'] == 'member') { $model = 'member'; } diff --git a/htdocs/admin/system/security.php b/htdocs/admin/system/security.php index 58a94b273bb..e905af852ec 100644 --- a/htdocs/admin/system/security.php +++ b/htdocs/admin/system/security.php @@ -313,7 +313,7 @@ print '
'; print '$dolibarr_main_restrict_ip: '; if (empty($dolibarr_main_restrict_ip)) { print ''.$langs->trans("None").''; -//print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')'; + //print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')'; } else { print $dolibarr_main_restrict_ip; } @@ -332,7 +332,7 @@ if (!getDolGlobalString('SECURITY_DISABLE_TEST_ON_OBFUSCATED_CONF')) { print '$dolibarr_main_db_pass: '; if (!empty($dolibarr_main_db_pass) && empty($dolibarr_main_db_encrypted_pass)) { print img_picto('', 'warning').' '.$langs->trans("DatabasePasswordNotObfuscated").'     ('.$langs->trans("Recommended").': '.$langs->trans("SetOptionTo", $langs->transnoentitiesnoconv("MainDbPasswordFileConfEncrypted"), yn(1)).')'; - //print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')'; + //print ' ('.$langs->trans("RecommendedValueIs", $langs->transnoentitiesnoconv("IPsOfUsers")).')'; } else { print img_picto('', 'tick').' '.$langs->trans("DatabasePasswordObfuscated"); } diff --git a/htdocs/admin/tools/dolibarr_import.php b/htdocs/admin/tools/dolibarr_import.php index 1165e66d7e3..9789527d024 100644 --- a/htdocs/admin/tools/dolibarr_import.php +++ b/htdocs/admin/tools/dolibarr_import.php @@ -144,75 +144,75 @@ if (in_array($type, array('mysql', 'mysqli'))) { print '
'; // Parameteres execution $command = $db->getPathOfRestore(); - if (preg_match("/\s/", $command)) { - $command = $command = escapeshellarg($command); // Use quotes on command - } + if (preg_match("/\s/", $command)) { + $command = $command = escapeshellarg($command); // Use quotes on command + } $param = $dolibarr_main_db_name; $param .= " -h ".$dolibarr_main_db_host; - if (!empty($dolibarr_main_db_port)) { - $param .= " -P ".$dolibarr_main_db_port; - } + if (!empty($dolibarr_main_db_port)) { + $param .= " -P ".$dolibarr_main_db_port; + } $param .= " -u ".$dolibarr_main_db_user; $paramcrypted = $param; $paramclear = $param; - if (!empty($dolibarr_main_db_pass)) { - $paramcrypted .= " -p".preg_replace('/./i', '*', $dolibarr_main_db_pass); - $paramclear .= " -p".$dolibarr_main_db_pass; - } + if (!empty($dolibarr_main_db_pass)) { + $paramcrypted .= " -p".preg_replace('/./i', '*', $dolibarr_main_db_pass); + $paramclear .= " -p".$dolibarr_main_db_pass; + } echo $langs->trans("ImportMySqlDesc"); print '
'; print '
'; print ajax_autoselect('restorecommand'); - if (empty($_GET["showpass"]) && $dolibarr_main_db_pass) { - print '
'.$langs->trans("UnHidePassword").''; - } - //else print '
'.$langs->trans("HidePassword").''; - print '
'; - print ''; - } elseif (in_array($type, array('pgsql'))) { - print '
'; - print 'Restore PostgreSQL'; - print '
'; - // Parameteres execution - $command = $db->getPathOfRestore(); - if (preg_match("/\s/", $command)) { - $command = $command = escapeshellarg($command); // Use quotes on command - } - - $param = " -d ".$dolibarr_main_db_name; - $param .= " -h ".$dolibarr_main_db_host; - if (!empty($dolibarr_main_db_port)) { - $param .= " -p ".$dolibarr_main_db_port; - } - $param .= " -U ".$dolibarr_main_db_user; - $paramcrypted = $param; - $paramclear = $param; - /*if (!empty($dolibarr_main_db_pass)) - { - $paramcrypted.=" -p".preg_replace('/./i','*',$dolibarr_main_db_pass); - $paramclear.=" -p".$dolibarr_main_db_pass; - }*/ - $paramcrypted .= " -W"; - $paramclear .= " -W"; - // With psql: - $paramcrypted .= " -f"; - $paramclear .= " -f"; - - echo $langs->trans("ImportPostgreSqlDesc"); - print '
'; - print '
'; - print ajax_autoselect('restorecommand'); - //if (empty($_GET["showpass"]) && $dolibarr_main_db_pass) print '
'.$langs->trans("UnHidePassword").''; - //else print '
'.$langs->trans("HidePassword").''; - print '
'; - - print '
'; - - print '
'; + if (empty($_GET["showpass"]) && $dolibarr_main_db_pass) { + print '
'.$langs->trans("UnHidePassword").''; } + //else print '
'.$langs->trans("HidePassword").''; + print ''; + print ''; +} elseif (in_array($type, array('pgsql'))) { + print '
'; + print 'Restore PostgreSQL'; + print '
'; + // Parameteres execution + $command = $db->getPathOfRestore(); + if (preg_match("/\s/", $command)) { + $command = $command = escapeshellarg($command); // Use quotes on command + } + + $param = " -d ".$dolibarr_main_db_name; + $param .= " -h ".$dolibarr_main_db_host; + if (!empty($dolibarr_main_db_port)) { + $param .= " -p ".$dolibarr_main_db_port; + } + $param .= " -U ".$dolibarr_main_db_user; + $paramcrypted = $param; + $paramclear = $param; + /*if (!empty($dolibarr_main_db_pass)) + { + $paramcrypted.=" -p".preg_replace('/./i','*',$dolibarr_main_db_pass); + $paramclear.=" -p".$dolibarr_main_db_pass; + }*/ + $paramcrypted .= " -W"; + $paramclear .= " -W"; + // With psql: + $paramcrypted .= " -f"; + $paramclear .= " -f"; + + echo $langs->trans("ImportPostgreSqlDesc"); + print '
'; + print '
'; + print ajax_autoselect('restorecommand'); + //if (empty($_GET["showpass"]) && $dolibarr_main_db_pass) print '
'.$langs->trans("UnHidePassword").''; + //else print '
'.$langs->trans("HidePassword").''; + print '
'; + + print '
'; + + print '
'; +} print ''; diff --git a/htdocs/install/check.php b/htdocs/install/check.php index a84a6dd7b3e..a5f571fec0b 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -131,7 +131,7 @@ if (!function_exists("session_id")) { if (!extension_loaded("mbstring")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "MBString")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "MBString")."
\n"; } @@ -140,7 +140,7 @@ if (!extension_loaded("mbstring")) { if (!extension_loaded("json")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "JSON")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "JSON")."
\n"; } @@ -149,7 +149,7 @@ if (!extension_loaded("json")) { if (!function_exists("imagecreate")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "GD")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "GD")."
\n"; } @@ -158,7 +158,7 @@ if (!function_exists("imagecreate")) { if (!function_exists("curl_init")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "Curl")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "Curl")."
\n"; } @@ -174,7 +174,7 @@ if (!function_exists("easter_date")) { if (!function_exists("simplexml_load_string")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "Xml")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "Xml")."
\n"; } @@ -183,7 +183,7 @@ if (!function_exists("simplexml_load_string")) { if (!function_exists("utf8_encode")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "UTF8")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "UTF8")."
\n"; } @@ -193,7 +193,7 @@ if (empty($_SERVER["SERVER_ADMIN"]) || $_SERVER["SERVER_ADMIN"] != 'doliwamp@loc if (!function_exists("locale_get_primary_language") || !function_exists("locale_get_region")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "Intl")."
\n"; - // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "Intl")."
\n"; } @@ -203,7 +203,7 @@ if (empty($_SERVER["SERVER_ADMIN"]) || $_SERVER["SERVER_ADMIN"] != 'doliwamp@loc if (!function_exists("imap_open")) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "IMAP")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "IMAP")."
\n"; } @@ -212,7 +212,7 @@ if (!function_exists("imap_open")) { if (!class_exists('ZipArchive')) { $langs->load("errors"); print 'Error '.$langs->trans("ErrorPHPDoesNotSupport", "ZIP")."
\n"; -// $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) + // $checksok = 0; // If ko, just warning. So check must still be 1 (otherwise no way to install) } else { print 'Ok '.$langs->trans("PHPSupport", "ZIP")."
\n"; } diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php index 58d3d1d21f2..5a2dcbc0c77 100644 --- a/htdocs/install/fileconf.php +++ b/htdocs/install/fileconf.php @@ -130,7 +130,7 @@ if (!empty($force_install_message)) { + } ?>"> @@ -244,11 +244,11 @@ if (!empty($force_install_noedit)) { id="main_force_https" name="main_force_https" + print ' checked'; + } ?> + print ' disabled'; + } ?> > @@ -388,8 +388,8 @@ if (!empty($force_install_noedit)) { @@ -407,8 +407,8 @@ if (!empty($force_install_noedit)) { name="db_host" value="" + print ' disabled'; + } ?> > @@ -502,7 +502,7 @@ if (!empty($force_install_noedit)) { ?>" + } ?> > @@ -552,8 +552,8 @@ if (!empty($force_install_noedit)) { class="needroot" value="" 0 && !empty($force_install_databaserootlogin)) { - print ' disabled'; - } ?> + print ' disabled'; + } ?> > '; - //} elseif ($key == 'propvalidate') { + //} elseif ($key == 'propvalidate') { // print ''; } elseif ($key == 'propvisible') { print ''; @@ -4933,18 +4933,18 @@ if ($module == 'initmodule') { }); '; - /*print '
'; - print '
'; - print '
'; - print ''.$langs->trans("or").''; - print '
'; - print '
'; - //print ' '; - print $langs->trans("InitStructureFromExistingTable"); - print ''; - print ''; - print '
'; - */ + /*print '
'; + print '
'; + print '
'; + print ''.$langs->trans("or").''; + print '
'; + print '
'; + //print ' '; + print $langs->trans("InitStructureFromExistingTable"); + print ''; + print ''; + print '
'; + */ } elseif ($tabdic == 'deletedictionary') { // Delete dic tab print ''; @@ -5394,7 +5394,7 @@ if ($module == 'initmodule') { }); '; - // display permissions for each object + // display permissions for each object } else { $fullpathoffile = dol_buildpath($file, 0); diff --git a/htdocs/mrp/class/mo.class.php b/htdocs/mrp/class/mo.class.php index c4b931c5b15..4d9f5a2529d 100644 --- a/htdocs/mrp/class/mo.class.php +++ b/htdocs/mrp/class/mo.class.php @@ -1767,7 +1767,7 @@ class Mo extends CommonObject $productstatic->fetch($line->fk_product); $productstatic->load_virtual_stock(); $this->tpl['label'] .= $productstatic->getNomUrl(1); - //$this->tpl['label'].= ' - '.$productstatic->label; + //$this->tpl['label'].= ' - '.$productstatic->label; } else { // If origin MRP line is not a product, but another MRP // TODO diff --git a/htdocs/paypal/lib/paypal.lib.php b/htdocs/paypal/lib/paypal.lib.php index 677da44ef65..ec786f6ce6b 100644 --- a/htdocs/paypal/lib/paypal.lib.php +++ b/htdocs/paypal/lib/paypal.lib.php @@ -556,7 +556,7 @@ function hash_call($methodName, $nvpStr) $_SESSION['curl_error_no'] = curl_errno($ch); $_SESSION['curl_error_msg'] = curl_error($ch); - //Execute the Error handling module to display errors. + //Execute the Error handling module to display errors. } else { //closing the curl curl_close($ch); diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 269a5298986..bbec24b64de 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -2304,7 +2304,7 @@ class Product extends CommonObject $price_min = price2num($newminprice, 'MU'); $price_min_ttc = price2num($newminprice) * (1 + ($newvat / 100)); $price_min_ttc = price2num($price_min_ttc, 'MU'); - //print 'X'.$newminprice.'-'.$price_min; + //print 'X'.$newminprice.'-'.$price_min; } else { $price_min = 0; $price_min_ttc = 0; @@ -2688,7 +2688,7 @@ class Product extends CommonObject $this->multiprices_tva_tx[$i] = $result ? $result["tva_tx"].($result ? ' ('.$result['default_vat_code'].')' : '') : null; $this->multiprices_recuperableonly[$i] = $result ? $result["recuperableonly"] : null; - // Price by quantity + // Price by quantity /* $this->prices_by_qty[$i]=$result["price_by_qty"]; $this->prices_by_qty_id[$i]=$result["rowid"]; diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php index 0ccfe522a77..255582e62c3 100644 --- a/htdocs/product/class/productcustomerprice.class.php +++ b/htdocs/product/class/productcustomerprice.class.php @@ -199,7 +199,7 @@ class ProductCustomerPrice extends CommonObject $this->price_min = price2num($this->price_min, 'MU'); $this->price_min_ttc = price2num($this->price_min) * (1 + ($this->tva_tx / 100)); $this->price_min_ttc = price2num($this->price_min_ttc, 'MU'); - // print 'X'.$newminprice.'-'.$price_min; + // print 'X'.$newminprice.'-'.$price_min; } else { $this->price_min = 0; $this->price_min_ttc = 0; @@ -677,7 +677,7 @@ class ProductCustomerPrice extends CommonObject $this->price_min = price2num($this->price_min, 'MU'); $this->price_min_ttc = price2num($this->price_min) * (1 + ($this->tva_tx / 100)); $this->price_min_ttc = price2num($this->price_min_ttc, 'MU'); - // print 'X'.$newminprice.'-'.$price_min; + // print 'X'.$newminprice.'-'.$price_min; } else { $this->price_min = 0; $this->price_min_ttc = 0; diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php index f63fb0d5368..5a49139386b 100644 --- a/htdocs/product/stock/massstockmove.php +++ b/htdocs/product/stock/massstockmove.php @@ -247,7 +247,7 @@ if ($action == 'createmovements' && $user->hasRight('stock', 'mouvement', 'creer $firstrecord = array_shift($arraybatchinfo); $dlc = $firstrecord['eatby']; $dluo = $firstrecord['sellby']; - //var_dump($batch); + //var_dump($batch); //var_dump($arraybatchinfo); //var_dump($firstrecord); //var_dump($dlc); diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 09fed415998..c5792768256 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -1356,15 +1356,15 @@ if (!$variants || getDolGlobalString('VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PA fetchByFkCombination($currcomb->id); - $iMax = count($productCombination2ValuePairs); + $iMax = count($productCombination2ValuePairs); - for ($i = 0; $i < $iMax; $i++) { - echo dol_htmlentities($productCombination2ValuePairs[$i]); + for ($i = 0; $i < $iMax; $i++) { + echo dol_htmlentities($productCombination2ValuePairs[$i]); - if ($i !== ($iMax - 1)) { - echo ', '; - } - } ?> + if ($i !== ($iMax - 1)) { + echo ', '; + } + } ?> diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 5eb2d929b93..d347290c92c 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -839,7 +839,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) { if ($usevirtualstock) { // If option to increase/decrease is not on an object validation, virtual stock may differs from physical stock. $stock = $prod->stock_theorique; - //TODO $stockwarehouse = $prod->stock_warehouse[$fk_entrepot]->; + //TODO $stockwarehouse = $prod->stock_warehouse[$fk_entrepot]->; } else { $stock = $prod->stock_reel; $stockwarehouse = $prod->stock_warehouse[$fk_entrepot]->real; @@ -891,12 +891,12 @@ while ($i < ($limit ? min($num, $limit) : $num)) { $picto = ''; if ($ordered > 0) { $stockforcompare = ($usevirtualstock ? $stock : $stock + $ordered); - /*if ($stockforcompare >= $desiredstock) - { - $picto = img_picto('', 'help'); - } else { - $picto = img_picto('', 'help'); - }*/ + /*if ($stockforcompare >= $desiredstock) + { + $picto = img_picto('', 'help'); + } else { + $picto = img_picto('', 'help'); + }*/ } else { $picto = img_picto($langs->trans("NoPendingReceptionOnSupplierOrder"), 'help'); } diff --git a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php index 3cc38f65d28..d00755525c4 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php @@ -476,7 +476,7 @@ class StockTransferLine extends CommonObjectLine $firstrecord = array_shift($arraybatchinfo); $dlc = $firstrecord['eatby']; $dluo = $firstrecord['sellby']; - //var_dump($batch); var_dump($arraybatchinfo); var_dump($firstrecord); var_dump($dlc); var_dump($dluo); exit; + //var_dump($batch); var_dump($arraybatchinfo); var_dump($firstrecord); var_dump($dlc); var_dump($dluo); exit; } else { $dlc = ''; $dluo = ''; diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 620b1127e91..372e3510fcf 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -2494,7 +2494,7 @@ class Project extends CommonObject $return .= '
'; if ($this->public) { $return .= img_picto($langs->trans('Visibility').': '.$langs->trans('SharedProject'), 'world', 'class="paddingrightonly valignmiddle"'); - //print $langs->trans('SharedProject'); + //print $langs->trans('SharedProject'); } else { $return .= img_picto($langs->trans('Visibility').': '.$langs->trans('PrivateProject'), 'private', 'class="paddingrightonly valignmiddle"'); //print $langs->trans('PrivateProject'); diff --git a/htdocs/projet/ganttview.php b/htdocs/projet/ganttview.php index 93d913f3272..d91f9177aa3 100644 --- a/htdocs/projet/ganttview.php +++ b/htdocs/projet/ganttview.php @@ -297,7 +297,7 @@ if (count($tasksarray) > 0) { if ($val->fk_parent != 0 && $task->hasChildren() > 0) { $tasks[$taskcursor]['task_is_group'] = 1; $tasks[$taskcursor]['task_css'] = 'ggroupblack'; - //$tasks[$taskcursor]['task_css'] = 'gtaskblue'; + //$tasks[$taskcursor]['task_css'] = 'gtaskblue'; } elseif ($task->hasChildren() > 0) { $tasks[$taskcursor]['task_is_group'] = 1; //$tasks[$taskcursor]['task_is_group'] = 0; diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index 35302f28ad1..1d5a8d85bd8 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -1773,7 +1773,7 @@ while ($i < $imaxinloop) { print ''; } elseif (isset($totalarray['totalvaluefield']) && $totalarray['totalvaluefield'] == $i) { print ''; - //} elseif ($totalarray['totalvaluebilledfield'] == $i) { print ''; + //} elseif ($totalarray['totalvaluebilledfield'] == $i) { print ''; } else { print ''; } diff --git a/htdocs/public/company/new.php b/htdocs/public/company/new.php index c011847f9d2..de5e4d4f179 100644 --- a/htdocs/public/company/new.php +++ b/htdocs/public/company/new.php @@ -244,7 +244,7 @@ if (empty($reshook) && $action == 'add') { $urlback = $backtopage; } elseif (getDolGlobalString('MEMBER_URL_REDIRECT_SUBSCRIPTION')) { $urlback = $conf->global->MEMBER_URL_REDIRECT_SUBSCRIPTION; - // TODO Make replacement of __AMOUNT__, etc... + // TODO Make replacement of __AMOUNT__, etc... } else { $urlback = $_SERVER["PHP_SELF"] . "?action=added&token=" . newToken(); } diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index a9b3aa0ae34..2841a239015 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -440,7 +440,7 @@ if (empty($reshook) && $action == 'add') { $urlback = $backtopage; } elseif (getDolGlobalString('MEMBER_URL_REDIRECT_SUBSCRIPTION')) { $urlback = $conf->global->MEMBER_URL_REDIRECT_SUBSCRIPTION; - // TODO Make replacement of __AMOUNT__, etc... + // TODO Make replacement of __AMOUNT__, etc... } else { $urlback = $_SERVER["PHP_SELF"]."?action=added&token=".newToken(); } diff --git a/htdocs/public/partnership/new.php b/htdocs/public/partnership/new.php index 792bf93f4f7..73c2e3baa17 100644 --- a/htdocs/public/partnership/new.php +++ b/htdocs/public/partnership/new.php @@ -423,7 +423,7 @@ if (empty($reshook) && $action == 'add') { $urlback = $backtopage; } elseif (getDolGlobalString('PARTNERSHIP_URL_REDIRECT_SUBSCRIPTION')) { $urlback = $conf->global->PARTNERSHIP_URL_REDIRECT_SUBSCRIPTION; - // TODO Make replacement of __AMOUNT__, etc... + // TODO Make replacement of __AMOUNT__, etc... } else { $urlback = $_SERVER["PHP_SELF"]."?action=added&token=".newToken(); } diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php index e8b76c41645..b2dadb42058 100644 --- a/htdocs/public/payment/newpayment.php +++ b/htdocs/public/payment/newpayment.php @@ -382,7 +382,7 @@ if ($action == 'dopayment') { if (empty($PAYPAL_API_PRICE) || !is_numeric($PAYPAL_API_PRICE)) { $mesg = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Amount")); $action = ''; - // } elseif (empty($EMAIL)) { $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("YourEMail")); + // } elseif (empty($EMAIL)) { $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("YourEMail")); // } elseif (! isValidEMail($EMAIL)) { $mesg=$langs->trans("ErrorBadEMail",$EMAIL); } elseif (!$origfulltag) { $mesg = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("PaymentCode")); @@ -2542,29 +2542,29 @@ if (preg_match('/^dopayment/', $action)) { // If we choosed/click on the payme billing_details: { name: 'test' thirdparty) && !empty($object->thirdparty->email))) { - ?>, email: 'thirdparty->email); ?>' + ?>, email: 'thirdparty->email); ?>'thirdparty) && !empty($object->thirdparty->phone)) { - ?>, phone: 'thirdparty->phone); ?>' + ?>, phone: 'thirdparty->phone); ?>'thirdparty)) { - ?>, address: { + ?>, address: { city: 'thirdparty->town); ?>', thirdparty->country_code) { - ?>country: 'thirdparty->country_code); ?>', + ?>country: 'thirdparty->country_code); ?>', line1: 'thirdparty->address)); ?>', postal_code: 'thirdparty->zip); ?>' } + } ?> } }, save_payment_method: /* true when a customer was provided when creating payment intent. true ask to save the card */ + print 'true'; + } else { + print 'false'; + } ?> /* true when a customer was provided when creating payment intent. true ask to save the card */ }, } ).then(function(result) { @@ -2636,29 +2636,29 @@ if (preg_match('/^dopayment/', $action)) { // If we choosed/click on the payme billing_details: { name: cardholderName.value thirdparty) && !empty($object->thirdparty->email))) { - ?>, email: 'thirdparty->email); ?>' + ?>, email: 'thirdparty->email); ?>'thirdparty) && !empty($object->thirdparty->phone)) { - ?>, phone: 'thirdparty->phone); ?>' + ?>, phone: 'thirdparty->phone); ?>'thirdparty)) { - ?>, address: { + ?>, address: { city: 'thirdparty->town); ?>', thirdparty->country_code) { - ?>country: 'thirdparty->country_code); ?>', + ?>country: 'thirdparty->country_code); ?>', line1: 'thirdparty->address)); ?>', postal_code: 'thirdparty->zip); ?>' } + } ?> } }, save_payment_method: /* true when a customer was provided when creating payment intent. true ask to save the card */ + print 'true'; + } else { + print 'false'; + } ?> /* true when a customer was provided when creating payment intent. true ask to save the card */ } ).then(function(result) { console.log(result); diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php index e1bff57f33d..1a548dd382f 100644 --- a/htdocs/public/payment/paymentok.php +++ b/htdocs/public/payment/paymentok.php @@ -1867,7 +1867,7 @@ if ($ispaymentok) { $result = $mailfile->sendfile(); if ($result) { dol_syslog("EMail sent to ".$sendto, LOG_DEBUG, 0, '_payment'); - //dol_syslog("EMail sent to ".$sendto, LOG_DEBUG, 0); + //dol_syslog("EMail sent to ".$sendto, LOG_DEBUG, 0); } else { dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0, '_payment'); //dol_syslog("Failed to send EMail to ".$sendto, LOG_ERR, 0); diff --git a/htdocs/public/project/new.php b/htdocs/public/project/new.php index 81178c5b087..9b35ac796ac 100644 --- a/htdocs/public/project/new.php +++ b/htdocs/public/project/new.php @@ -397,7 +397,7 @@ if (empty($reshook) && $action == 'add') { $urlback = $backtopage; } elseif (getDolGlobalString('PROJECT_URL_REDIRECT_LEAD')) { $urlback = $conf->global->PROJECT_URL_REDIRECT_LEAD; - // TODO Make replacement of __AMOUNT__, etc... + // TODO Make replacement of __AMOUNT__, etc... } else { $urlback = $_SERVER["PHP_SELF"]."?action=added&token=".newToken(); } diff --git a/htdocs/public/test/test_arrays.php b/htdocs/public/test/test_arrays.php index 6a32b5f4aff..3b0d17bbf98 100644 --- a/htdocs/public/test/test_arrays.php +++ b/htdocs/public/test/test_arrays.php @@ -89,7 +89,7 @@ if (empty($usedolheader)) { */ llxHeader('', '', '', '', 0, 0, $arrayjs, $arraycss); - } +} // CONTENT diff --git a/htdocs/reception/list.php b/htdocs/reception/list.php index 0c486d20303..5d408ebf796 100644 --- a/htdocs/reception/list.php +++ b/htdocs/reception/list.php @@ -414,7 +414,7 @@ if (empty($reshook)) { $discountid = $discount->create($user); if ($discountid > 0) { $result = $objecttmp->insert_discount($discountid); - //$result=$discount->link_to_invoice($lineid,$id); + //$result=$discount->link_to_invoice($lineid,$id); } else { setEventMessages($discount->error, $discount->errors, 'errors'); $error++; diff --git a/htdocs/reception/tpl/linkedobjectblock.tpl.php b/htdocs/reception/tpl/linkedobjectblock.tpl.php index d2832f687a9..51a9e3aedc1 100644 --- a/htdocs/reception/tpl/linkedobjectblock.tpl.php +++ b/htdocs/reception/tpl/linkedobjectblock.tpl.php @@ -51,8 +51,8 @@ foreach ($linkedObjectBlock as $key => $objectlink) { diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php index 8b1aeca2eb3..5542bdd344d 100644 --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -452,7 +452,7 @@ if ($action == "update_extras" && $permissiontoadd) { if (GETPOSTISSET($attributekeylong.'day') && GETPOSTISSET($attributekeylong.'month') && GETPOSTISSET($attributekeylong.'year')) { // This is properties of a date $object->array_options['options_'.$attributekey] = dol_mktime(GETPOST($attributekeylong.'hour', 'int'), GETPOST($attributekeylong.'min', 'int'), GETPOST($attributekeylong.'sec', 'int'), GETPOST($attributekeylong.'month', 'int'), GETPOST($attributekeylong.'day', 'int'), GETPOST($attributekeylong.'year', 'int')); - //var_dump(dol_print_date($object->array_options['options_'.$attributekey]));exit; + //var_dump(dol_print_date($object->array_options['options_'.$attributekey]));exit; } else { $object->array_options['options_'.$attributekey] = GETPOST($attributekeylong, 'alpha'); } diff --git a/htdocs/societe/checkvat/checkVatPopup.php b/htdocs/societe/checkvat/checkVatPopup.php index 008d63e8a2d..dd38649b545 100644 --- a/htdocs/societe/checkvat/checkVatPopup.php +++ b/htdocs/societe/checkvat/checkVatPopup.php @@ -118,7 +118,7 @@ if (!$vatNumber) { } print $langs->trans("VATIntraSyntaxIsValid").': '.$langs->trans("No").' (Might be a non europeen VAT)
'; print $langs->trans("ValueIsValid").': '.$langs->trans("No").' (Might be a non europeen VAT)
'; - //$messagetoshow=$soapclient->response; + //$messagetoshow=$soapclient->response; } else { // Syntaxe ok if ($result['requestDate']) { diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index cda63c586d6..57e4657148e 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -555,7 +555,7 @@ $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX."c_stcomm as st ON s.fk_stcomm = st.id"; // We'll need this table joined to the select in order to filter by sale if ($search_sale == -2) { $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe_commerciaux as sc ON sc.fk_soc = s.rowid"; -//elseif ($search_sale || (empty($user->rights->societe->client->voir) && (empty($conf->global->MAIN_USE_ADVANCED_PERMS) || empty($user->rights->societe->client->readallthirdparties_advance)) && !$socid)) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; + //elseif ($search_sale || (empty($user->rights->societe->client->voir) && (empty($conf->global->MAIN_USE_ADVANCED_PERMS) || empty($user->rights->societe->client->readallthirdparties_advance)) && !$socid)) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; } elseif (!empty($search_sale) && $search_sale != '-1' || (!$user->hasRight('societe', 'client', 'voir') && !$socid)) { $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; } diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index 89145d30087..ffa6f523208 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -707,7 +707,7 @@ if (empty($reshook)) { if (empty($newsup)) { $sql = "DELETE FROM ".MAIN_DB_PREFIX."oauth_token WHERE fk_soc = ".$object->id." AND service = '".$db->escape($tmpservice)."' AND entity = ".$conf->entity; - // TODO Add site and site_account on oauth_token table + // TODO Add site and site_account on oauth_token table //$sql = "DELETE FROM ".MAIN_DB_PREFIX."oauth_token WHERE site = 'stripe' AND (site_account IS NULL or site_account = '".$db->escape($site_account)."') AND fk_soc = ".((int) $object->id)." AND service = '".$db->escape($service)."' AND entity = ".$conf->entity; } else { try { diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php index d39e6b9a91d..0d6f2db0d43 100755 --- a/htdocs/ticket/card.php +++ b/htdocs/ticket/card.php @@ -755,57 +755,57 @@ if ($action == 'create' || $action == 'presend') { $formticket->withcancel = 1; $formticket->showForm(1, 'create', 0, null, $action); -/*} elseif ($action == 'edit' && $user->rights->ticket->write && $object->status < Ticket::STATUS_CLOSED) { -$formticket = new FormTicket($db); + /*} elseif ($action == 'edit' && $user->rights->ticket->write && $object->status < Ticket::STATUS_CLOSED) { + $formticket = new FormTicket($db); -$head = ticket_prepare_head($object); + $head = ticket_prepare_head($object); -print ''; -print ''; -print ''; -print ''; + print ''; + print ''; + print ''; + print ''; -print dol_get_fiche_head($head, 'card', $langs->trans('Ticket'), 0, 'ticket'); + print dol_get_fiche_head($head, 'card', $langs->trans('Ticket'), 0, 'ticket'); -print '
'; -print '
@@ -189,7 +189,7 @@ if (!empty($force_install_noedit)) { value="" +} ?> > " > trans("CheckToForceHttps"); ?> @@ -275,8 +275,8 @@ if (!empty($force_install_noedit)) { name="db_name" value="" + print ' disabled'; + } ?> > trans("DatabaseName"); ?> trans("ServerAddressDescription"); ?> @@ -424,8 +424,8 @@ if (!empty($force_install_noedit)) { id="db_port" value="" + print ' disabled'; + } ?> > trans("ServerPortDescription"); ?> @@ -441,8 +441,8 @@ if (!empty($force_install_noedit)) { name="db_prefix" value="" + print ' disabled'; + } ?> > trans("DatabasePrefixDescription"); ?> trans("AdminPassword"); ?> trans("DatabaseRootLoginDescription"); ?> @@ -593,7 +593,7 @@ if (!empty($force_install_noedit)) { ?>" 0 && !empty($force_install_databaserootpass)) { print ' disabled'; /* May be removed by javascript*/ - } ?> + } ?> > trans("KeepEmptyIfNoPassword"); ?> diff --git a/htdocs/install/step1.php b/htdocs/install/step1.php index 43ce0075f73..4ce9551d246 100644 --- a/htdocs/install/step1.php +++ b/htdocs/install/step1.php @@ -645,7 +645,7 @@ if (!$error && $db->connected && $action == "set") { $check2 = $newdb->getDefaultCollationDatabase(); dolibarr_install_syslog('step1: new database is using charset='.$check1.' collation='.$check2); - // If values differs, we save conf file again + // If values differs, we save conf file again //if ($check1 != $dolibarr_main_db_character_set) dolibarr_install_syslog('step1: value for character_set is not the one asked for database creation', LOG_WARNING); //if ($check2 != $dolibarr_main_db_collation) dolibarr_install_syslog('step1: value for collation is not the one asked for database creation', LOG_WARNING); } else { diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 471ea718a41..f96d7b8719e 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -3310,7 +3310,7 @@ function migrate_actioncomm_element($db, $langs, $conf) if ($resql) { $db->commit(); - // DDL commands must not be inside a transaction + // DDL commands must not be inside a transaction // We will drop at next version because a migrate should be runnable several times if it fails. //$sqlDrop = "ALTER TABLE ".MAIN_DB_PREFIX."actioncomm DROP COLUMN ".$field; //$db->query($sqlDrop); diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 12f81cf60e4..03171f5be86 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -3137,7 +3137,7 @@ if (is_array($listofmodules) && count($listofmodules) > 0) { $urlpage = $page; if ($i++) { $linktoenabledisable .= ' '.img_picto(ucfirst($page), "setup").''; - // print ''.ucfirst($page).' '; + // print ''.ucfirst($page).' '; } else { if (preg_match('/^([^@]+)@([^@]+)$/i', $urlpage, $regs)) { $urltouse = dol_buildpath('/'.$regs[2].'/admin/'.$regs[1], 1); @@ -3913,7 +3913,7 @@ if ($module == 'initmodule') { */ print ''; print ''.$attribute.''.$attribute.'
getLibStatut(2, 0) ?> getLibStatut(2, 1) ?>'; if ($obj->public) { print img_picto($langs->trans('SharedProject'), 'world', 'class="paddingrightonly"'); - //print $langs->trans('SharedProject'); + //print $langs->trans('SharedProject'); } else { print img_picto($langs->trans('PrivateProject'), 'private', 'class="paddingrightonly"'); //print $langs->trans('PrivateProject'); diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index a273b7bd381..48e941aae91 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -2816,7 +2816,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser print '' . convertSecondToTime($totalarray['totalduration'], 'allhourmin') . '' . price($totalarray['totalvalue']) . ''.price($totalarray['totalvaluebilled']).''.price($totalarray['totalvaluebilled']).'
trans("Reception"); ?> global->MAIN_ENABLE_IMPORT_LINKED_OBJECT_LINES) { - print ' + print ' getNomUrl(1); ?> ref_supplier); ?>
'; + print '
'; + print '
'; -// Type -print ''; + // Type + print ''; -// Severity -print ''; + // Severity + print ''; -// Group -print ''; + // Group + print ''; -// Subject -print ''; + // Subject + print ''; -// Other attributes -$parameters = array('colspan' => ' colspan="3"', 'colspanvalue' => '3'); -$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook -print $hookmanager->resPrint; -if (empty($reshook)) { -print $object->showOptionals($extrafields, 'edit'); -} + // Other attributes + $parameters = array('colspan' => ' colspan="3"', 'colspanvalue' => '3'); + $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook + print $hookmanager->resPrint; + if (empty($reshook)) { + print $object->showOptionals($extrafields, 'edit'); + } -print '
'; -$formticket->selectTypesTickets((GETPOSTISSET('type_code') ? GETPOST('type_code') : $object->type_code), 'type_code', '', '2'); -print '
'; + $formticket->selectTypesTickets((GETPOSTISSET('type_code') ? GETPOST('type_code') : $object->type_code), 'type_code', '', '2'); + print '
'; -$formticket->selectSeveritiesTickets((GETPOSTISSET('severity_code') ? GETPOST('severity_code') : $object->severity_code), 'severity_code', '', '2'); -print '
'; + $formticket->selectSeveritiesTickets((GETPOSTISSET('severity_code') ? GETPOST('severity_code') : $object->severity_code), 'severity_code', '', '2'); + print '
'; -$formticket->selectGroupTickets((GETPOSTISSET('category_code') ? GETPOST('category_code') : $object->category_code), 'category_code', '', '2'); -print '
'; + $formticket->selectGroupTickets((GETPOSTISSET('category_code') ? GETPOST('category_code') : $object->category_code), 'category_code', '', '2'); + print '
'; -print ''; -print '
'; + print ''; + print '
'; -print ''; + print ''; + print ''; -print dol_get_fiche_end(); + print dol_get_fiche_end(); -print $form->buttonsSaveCancel(); + print $form->buttonsSaveCancel(); -print ''; */ + print ''; */ } elseif (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'dellink' || $action == 'presend' || $action == 'presend_addmessage' || $action == 'close' || $action == 'abandon' || $action == 'delete' || $action == 'editcustomer' || $action == 'progression' || $action == 'categories' || $action == 'reopen' || $action== 'edit_contrat' || $action == 'editsubject' || $action == 'edit_extras' || $action == 'update_extras' || $action == 'edit_extrafields' || $action == 'set_extrafields' || $action == 'classify' || $action == 'sel_contract' || $action == 'edit_message_init' || $action == 'set_status' || $action == 'dellink') { if ($res > 0) { diff --git a/htdocs/ticket/tpl/linkedobjectblock.tpl.php b/htdocs/ticket/tpl/linkedobjectblock.tpl.php index 359a20fb0d6..e4ccd67308c 100644 --- a/htdocs/ticket/tpl/linkedobjectblock.tpl.php +++ b/htdocs/ticket/tpl/linkedobjectblock.tpl.php @@ -47,8 +47,8 @@ foreach ($linkedObjectBlock as $key => $objectlink) { trans("Ticket"); ?> global->MAIN_ENABLE_IMPORT_LINKED_OBJECT_LINES) { - print ' + print ' getNomUrl(1); ?> ref_client; ?> diff --git a/htdocs/user/card.php b/htdocs/user/card.php index 092e7752da5..05826f80dbc 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -2321,7 +2321,7 @@ if ($action == 'create' || $action == 'adduserldap') { print ''.$form->editfieldkey('Employee', 'employee', '', $object, 0).''; if ($caneditfield) { print 'employee ? ' checked="checked"' : '').'>'; - //print $form->selectyesno("employee", $object->employee, 1); + //print $form->selectyesno("employee", $object->employee, 1); } else { print 'employee ? ' checked="checked"' : '').'>'; /*if ($object->employee) { diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php index c35390a4953..e7913c9750c 100644 --- a/htdocs/variants/combinations.php +++ b/htdocs/variants/combinations.php @@ -518,7 +518,7 @@ if (!empty($id) || !empty($ref)) { $listofvariantselected .= '
'; } $listofvariantselected .= ''; - //print dol_get_fiche_end(); + //print dol_get_fiche_end(); } else { $title = $langs->trans('EditProductCombination'); } @@ -654,12 +654,12 @@ if (!empty($id) || !empty($ref)) { trans("GoOnMenuToCreateVairants", $langs->transnoentities("Product"), $langs->transnoentities("VariantAttributes")); - print $form->textwithpicto('', $htmltext); - /* - print '    
id).'">'; - print $langs->trans("Create"); - print ''; - */ ?> + print $form->textwithpicto('', $htmltext); + /* + print '     id).'">'; + print $langs->trans("Create"); + print ''; + */ ?> @@ -778,7 +778,7 @@ if (!empty($id) || !empty($ref)) {
value="trans('Create') : $langs->trans("Save") ?>" class="button button-save"> + } ?> value="trans('Create') : $langs->trans("Save") ?>" class="button button-save">   " class="button button-cancel">
diff --git a/htdocs/variants/tpl/productattributevalueline_create.tpl.php b/htdocs/variants/tpl/productattributevalueline_create.tpl.php index afa6e34acef..7eeee0636cd 100644 --- a/htdocs/variants/tpl/productattributevalueline_create.tpl.php +++ b/htdocs/variants/tpl/productattributevalueline_create.tpl.php @@ -53,8 +53,8 @@ $nolinesbefore = (count($this->lines) == 0 || $forcetoshowtitlelines); ?> trans('Ref') . ': '; - } ?> + echo $langs->trans('Ref') . ': '; + } ?> " autofocus> trans("ErrorFileDoesNotExists",$original_file)); - exit; - } + // This test if file exists should be useless. We keep it to find bug more easily + if (! file_exists($original_file_osencoded)) + { + dol_print_error(0,$langs->trans("ErrorFileDoesNotExists",$original_file)); + exit; + } - //include_once $original_file_osencoded; - */ + //include_once $original_file_osencoded; + */ /*print '';*/