--- /tmp/dsg/dolibarr/htdocs/societe/tpl/github_19.0.3_linesalesrepresentative.tpl.php +++ /tmp/dsg/dolibarr/htdocs/societe/tpl/client_linesalesrepresentative.tpl.php @@ -19 +19,2 @@ -if (empty($conf) || !is_object($conf)) { +if (empty($conf) || !is_object($conf)) +{ @@ -24,2 +24,0 @@ -print ''; - @@ -27,2 +26 @@ -print '
'; +print ' | ||
'; @@ -31,4 +29,22 @@ -if ($action != 'editsalesrepresentatives' && $user->hasRight('societe', 'creer')) { - print ' | '; - print 'id.'">'.img_edit($langs->transnoentitiesnoconv('Edit'), 1).''; - print ' | '; +print ''; + +$listsalesrepresentatives = $object->getSalesRepresentatives($user); +$nbofsalesrepresentative = count($listsalesrepresentatives); +if ($nbofsalesrepresentative > 0) +{ + $userstatic = new User($db); + foreach ($listsalesrepresentatives as $val) + { + $userstatic->id = $val['id']; + $userstatic->login = $val['login']; + $userstatic->lastname = $val['lastname']; + $userstatic->firstname = $val['firstname']; + $userstatic->statut = $val['statut']; + $userstatic->photo = $val['photo']; + $userstatic->email = $val['email']; + $userstatic->phone = $val['phone']; + $userstatic->job = $val['job']; + $userstatic->entity = $val['entity']; + print $userstatic->getNomUrl(-1); + print ' '; + } @@ -36,42 +52,2 @@ -print ' |