Extend capabilities of selectTypeContact
This commit is contained in:
parent
b365a431ae
commit
0f570e3ab3
@ -601,10 +601,11 @@ class FormCompany
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function selectTypeContact($object, $defValue, $htmlname = 'type', $source, $order='code')
|
||||
function selectTypeContact($object, $defValue, $htmlname = 'type', $source, $order='code', $showempty=0)
|
||||
{
|
||||
$lesTypes = $object->liste_type_contact($source, $order);
|
||||
print '<select class="flat" name="'.$htmlname.'">';
|
||||
if ($showempty) print print '<option value="0"> </option>';
|
||||
foreach($lesTypes as $key=>$value)
|
||||
{
|
||||
print '<option value="'.$key.'">'.$value.'</option>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user