forked from Wavyzz/dolibarr
New: enhance tool fixdosfiles.sh
Convert DOS files to unix
This commit is contained in:
@@ -2630,9 +2630,9 @@ function price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerou
|
||||
{
|
||||
$listofcurrenciesbefore=array('USD');
|
||||
if (in_array($currency_code,$listofcurrenciesbefore)) $cursymbolbefore.=$outlangs->getCurrencySymbol($currency_code);
|
||||
else $cursymbolafter.=$outlangs->getCurrencySymbol($currency_code);
|
||||
else $cursymbolafter.=$outlangs->getCurrencySymbol($currency_code);
|
||||
}
|
||||
$output.=$cursymbolbefore.$end.$cursymbolafter;
|
||||
$output.=$cursymbolbefore.$end.$cursymbolafter;
|
||||
|
||||
return $output;
|
||||
}
|
||||
@@ -3660,21 +3660,21 @@ function dolGetFirstLastname($firstname,$lastname,$nameorder=-1)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$ret='';
|
||||
// If order not defined, we use the setup
|
||||
if ($nameorder < 0) $nameorder=(empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION));
|
||||
if ($nameorder)
|
||||
{
|
||||
$ret.=$firstname;
|
||||
if ($firstname && $lastname) $ret.=' ';
|
||||
$ret.=$lastname;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ret.=$lastname;
|
||||
if ($firstname && $lastname) $ret.=' ';
|
||||
$ret.=$firstname;
|
||||
}
|
||||
$ret='';
|
||||
// If order not defined, we use the setup
|
||||
if ($nameorder < 0) $nameorder=(empty($conf->global->MAIN_FIRSTNAME_NAME_POSITION));
|
||||
if ($nameorder)
|
||||
{
|
||||
$ret.=$firstname;
|
||||
if ($firstname && $lastname) $ret.=' ';
|
||||
$ret.=$lastname;
|
||||
}
|
||||
else
|
||||
{
|
||||
$ret.=$lastname;
|
||||
if ($firstname && $lastname) $ret.=' ';
|
||||
$ret.=$firstname;
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
@@ -4293,18 +4293,18 @@ function colorArrayToHex($arraycolor,$colorifnotfound='888888')
|
||||
return dechex($arraycolor[0]).dechex($arraycolor[1]).dechex($arraycolor[2]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set focus onto field with selector
|
||||
*
|
||||
* @param string $selector Selector ('#id')
|
||||
* @return string HTML code to set focus
|
||||
*/
|
||||
function dol_set_focus($selector)
|
||||
{
|
||||
print '<!-- Set focus onto a specific field -->'."\n";
|
||||
print '<script type="text/javascript" language="javascript">jQuery(document).ready(function() { jQuery("'.$selector.'").focus(); });</script>'."\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Set focus onto field with selector
|
||||
*
|
||||
* @param string $selector Selector ('#id')
|
||||
* @return string HTML code to set focus
|
||||
*/
|
||||
function dol_set_focus($selector)
|
||||
{
|
||||
print '<!-- Set focus onto a specific field -->'."\n";
|
||||
print '<script type="text/javascript" language="javascript">jQuery(document).ready(function() { jQuery("'.$selector.'").focus(); });</script>'."\n";
|
||||
}
|
||||
|
||||
|
||||
if (! function_exists('getmypid'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user