diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index a3696b7a24da5..0b1f6f41d2515 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2012 Laurent Destailleur + * Copyright (C) 2004-2013 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2010 Juanjo Menent * Copyright (C) 2011 Philippe Grand @@ -268,7 +268,7 @@ $var=true; print ''; - print ''."\n"; + print ''."\n"; $var=!$var; print '
'.$langs->trans("CompanyInfo").''.$langs->trans("Value").'
'.$langs->trans("CompanyInfo").''.$langs->trans("Value").'
'.$langs->trans("CompanyName").''; @@ -336,7 +336,7 @@ // Logo $var=!$var; - print '
'.$langs->trans("Logo").' (png,jpg)'; + print ''.$langs->trans("Logo").' (png,jpg)'; print '
'; print ''; print ''; diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 3fac6b6734638..04c92c8be0d55 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -671,6 +671,21 @@ function dol_get_fiche_end($notab=0) else return ''; } +/** + * Return string to add class property on html element with pair/impair. + * + * @param string $var 0 or 1 + * @param string $moreclass More class to add + * @return string String to add class onto HTML element + */ +function dol_bc($var,$moreclass='') +{ + global $bc; + $ret=' '.$bc[$var]; + if ($moreclass) $ret=preg_replace('/class=\"/','class="'.$moreclass.' ',$ret); + return $ret; +} + /** * Return a formated address (part address/zip/town/state) according to country rules * diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 07ba4abfa1b56..c941d3c1c5025 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -883,7 +883,7 @@ LogEventDesc=You can enable here the logging for Dolibarr security events. Admin AreaForAdminOnly=Those features can be used by administrator users only. SystemInfoDesc=System information is miscellaneous technical information you get in read only mode and visible for administrators only. SystemAreaForAdminOnly=This area is available for administrator users only. None of the Dolibarr permissions can reduce this limit. -CompanyFundationDesc=Edit on this page all known information of the company or foundation you need to manage (For this click, on "Modify" button at bottom of page) +CompanyFundationDesc=Edit on this page all known information of the company or foundation you need to manage (For this, click on "Modify" button at bottom of page) DisplayDesc=You can choose each parameter related to the Dolibarr look and feel here AvailableModules=Available modules ToActivateModule=To activate modules, go on setup Area (Home->Setup->Modules).