dolibarr  7.0.0-beta
Public Member Functions | List of all members
FormSocialContrib Class Reference

Class to manage generation of HTML components for social contributions management. More...

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 select_type_socialcontrib ($selected='', $htmlname='actioncode', $useempty=0, $maxlen=40, $help=1, $morecss='minwidth300')
 Return list of social contributions. More...
 

Detailed Description

Class to manage generation of HTML components for social contributions management.

Definition at line 28 of file html.formsocialcontrib.class.php.

Constructor & Destructor Documentation

FormSocialContrib::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 39 of file html.formsocialcontrib.class.php.

Member Function Documentation

FormSocialContrib::select_type_socialcontrib (   $selected = '',
  $htmlname = 'actioncode',
  $useempty = 0,
  $maxlen = 40,
  $help = 1,
  $morecss = 'minwidth300' 
)

Return list of social contributions.

Use mysoc->country_id or mysoc->country_code so they must be defined.

Parameters
string$selectedPreselected type
string$htmlnameName of field in form
int$useemptySet to 1 if we want an empty value
int$maxlenMax length of text in combo box
int$helpAdd or not the admin help picto
string$morecssAdd more CSS on select
Returns
void

Definition at line 56 of file html.formsocialcontrib.class.php.

References $resql, ajax_combobox(), dol_print_error(), dol_syslog(), if, info_admin(), and print.


The documentation for this class was generated from the following file: