NEW Add the admin info on combo of type of contact
This commit is contained in:
parent
972d95a3c6
commit
c197ce31b6
@ -702,6 +702,8 @@ class FormCompany
|
||||
*/
|
||||
function selectTypeContact($object, $selected, $htmlname = 'type', $source='internal', $sortorder='position', $showempty=0)
|
||||
{
|
||||
global $user, $langs;
|
||||
|
||||
if (is_object($object) && method_exists($object, 'liste_type_contact'))
|
||||
{
|
||||
$lesTypes = $object->liste_type_contact($source, $sortorder, 0, 1);
|
||||
@ -713,7 +715,9 @@ class FormCompany
|
||||
if ($key == $selected) print ' selected';
|
||||
print '>'.$value.'</option>';
|
||||
}
|
||||
print "</select>\n";
|
||||
print "</select>";
|
||||
if ($user->admin) print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1);
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ $userstatic=new User($db);
|
||||
<form class="tagtr liste_titre">
|
||||
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("Contacts"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("ContactType"); ?></div>
|
||||
<div class="tagtd"> </div>
|
||||
<div class="tagtd"> </div>
|
||||
@ -138,7 +138,7 @@ $userstatic=new User($db);
|
||||
<form class="tagtr liste_titre">
|
||||
<div class="tagtd"><?php echo $langs->trans("Nature"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("ThirdParty"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("Contacts"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("Users").'/'.$langs->trans("Contacts"); ?></div>
|
||||
<div class="tagtd"><?php echo $langs->trans("ContactType"); ?></div>
|
||||
<div class="tagtd" align="center"><?php echo $langs->trans("Status"); ?></div>
|
||||
<div class="tagtd"> </div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user