Fix 2 lines on one line when there is 2 or more sale representatives
This commit is contained in:
parent
d588086c47
commit
beb9f4f1e9
@ -1381,7 +1381,7 @@ if ($resql)
|
|||||||
$userstatic->job = $val['job'];
|
$userstatic->job = $val['job'];
|
||||||
$userstatic->gender = $val['gender'];
|
$userstatic->gender = $val['gender'];
|
||||||
//print '<div class="float">':
|
//print '<div class="float">':
|
||||||
print ($nbofsalesrepresentative < 3) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2);
|
print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2);
|
||||||
$j++;
|
$j++;
|
||||||
if ($j < $nbofsalesrepresentative) {
|
if ($j < $nbofsalesrepresentative) {
|
||||||
print ' ';
|
print ' ';
|
||||||
|
|||||||
@ -33,6 +33,7 @@ require '../main.inc.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
|
|
||||||
@ -740,7 +741,7 @@ while ($i < min($num, $limit))
|
|||||||
$userstatic->gender = $val['gender'];
|
$userstatic->gender = $val['gender'];
|
||||||
|
|
||||||
//print '<div class="float">':
|
//print '<div class="float">':
|
||||||
print ($nbofsalesrepresentative < 3) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2);
|
print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2);
|
||||||
$j++;
|
$j++;
|
||||||
if ($j < $nbofsalesrepresentative) {
|
if ($j < $nbofsalesrepresentative) {
|
||||||
print ' ';
|
print ' ';
|
||||||
|
|||||||
@ -800,7 +800,7 @@ while ($i < min($num, $limit))
|
|||||||
$userstatic->phone = $val['phone'];
|
$userstatic->phone = $val['phone'];
|
||||||
$userstatic->job = $val['job'];
|
$userstatic->job = $val['job'];
|
||||||
$userstatic->gender = $val['gender'];
|
$userstatic->gender = $val['gender'];
|
||||||
print ($nbofsalesrepresentative < 3) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2);
|
print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2);
|
||||||
$j++;
|
$j++;
|
||||||
if ($j < $nbofsalesrepresentative) {
|
if ($j < $nbofsalesrepresentative) {
|
||||||
print ' ';
|
print ' ';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user