dolibarr 20.0.0
|
Class to build HTML component for third parties management Only common components are here. More...
Public Member Functions | |
typent_array ($mode=0, $filter='') | |
Return list of labels (translated) of third parties type. | |
effectif_array ($mode=0, $filter='') | |
Return the list of entries for staff (no translation, it is number ranges) | |
form_prospect_level ($page, $selected=0, $htmlname='prospect_level_id', $empty=0) | |
Affiche formulaire de selection des modes de reglement. | |
formProspectContactLevel ($page, $selected=0, $htmlname='prospect_contact_level_id', $empty=0) | |
Affiche formulaire de selection des niveau de prospection pour les contacts. | |
select_departement ($selected='', $country_codeid=0, $htmlname='state_id') | |
Returns the drop-down list of departments/provinces/cantons for all countries or for a given country. | |
select_state ($selected=0, $country_codeid=0, $htmlname='state_id', $morecss='maxwidth200onsmartphone minwidth300') | |
Returns the drop-down list of departments/provinces/cantons for all countries or for a given country. | |
select_state_ajax ($parent_field_id='country_id', $selected=0, $country_codeid=0, $htmlname='state_id', $morecss='maxwidth200onsmartphone minwidth300') | |
Returns the drop-down list of departments/provinces/cantons for all countries or for a given country. | |
select_region ($selected='', $htmlname='region_id') | |
Retourne la liste deroulante des regions actives don't le pays est actif La cle de la liste est le code (il peut y avoir plusieurs entree pour un code donnee mais dans ce cas, le champ pays et lang differe). | |
select_civility ($selected='', $htmlname='civility_id', $morecss='maxwidth150', $addjscombo=1) | |
Return combo list with people title. | |
select_forme_juridique ($selected='', $country_codeid=0, $filter='') | |
Return the list of all juridical entity types for all countries or a specific country. | |
select_juridicalstatus ($selected='', $country_codeid=0, $filter='', $htmlname='forme_juridique_code', $morecss='') | |
Return the list of all juridical entity types for all countries or a specific country. | |
selectCompaniesForNewContact ($object, $var_id, $selected=0, $htmlname='newcompany', $limitto=[], $forceid=0, $moreparam='', $morecss='') | |
Output list of third parties. | |
selectTypeContact ($object, $selected, $htmlname='type', $source='internal', $sortorder='position', $showempty=0, $morecss='', $output=1, $forcehidetooltip=0) | |
Return a select list with types of contacts. | |
showRoles ($htmlname, Contact $contact, $rendermode='view', $selected=array(), $morecss='minwidth500') | |
showContactRoles on view and edit mode | |
select_ziptown ($selected='', $htmlname='zipcode', $fields=array(), $fieldsize=0, $disableautocomplete=0, $moreattrib='', $morecss='') | |
Return a select list with zip codes and their town. | |
get_input_id_prof ($idprof, $htmlname, $preselected, $country_code, $morecss='maxwidth200') | |
Return HTML string to use as input of professional id into a HTML page (siren, siret, etc...) | |
select_localtax ($local, $selected, $htmlname) | |
Return a HTML select with localtax values for thirdparties. | |
selectProspectCustomerType ($selected, $htmlname='client', $htmlidname='customerprospect', $typeinput='form', $morecss='', $allowempty='') | |
Return a HTML select for thirdparty type. | |
formThirdpartyType ($page, $selected='', $htmlname='socid', $filter='', $nooutput=0) | |
Output html select to select third-party type. | |
selectProspectStatus ($htmlname, $prospectstatic, $statusprospect, $idprospect, $mode="html") | |
Output html select to select prospect status. | |
Public Member Functions inherited from Form | |
__construct ($db) | |
Constructor. | |
editfieldkey ($text, $htmlname, $preselected, $object, $perm, $typeofdata='string', $moreparam='', $fieldrequired=0, $notabletag=0, $paramid='id', $help='') | |
Output key field for an editable field. | |
editfieldval ($text, $htmlname, $value, $object, $perm, $typeofdata='string', $editvalue='', $extObject=null, $custommsg=null, $moreparam='', $notabletag=1, $formatfunc='', $paramid='id', $gm='auto', $moreoptions=array(), $editaction='') | |
Output value of a field for an editable field. | |
widgetForTranslation ($fieldname, $object, $perm, $typeofdata='string', $check='', $morecss='') | |
Output edit in place form. | |
textwithtooltip ($text, $htmltext, $tooltipon=1, $direction=0, $img='', $extracss='', $notabs=3, $incbefore='', $noencodehtmltext=0, $tooltiptrigger='', $forcenowrap=0) | |
Show a text and picto with tooltip on text or picto. | |
textwithpicto ($text, $htmltext, $direction=1, $type='help', $extracss='', $noencodehtmltext=0, $notabs=3, $tooltiptrigger='', $forcenowrap=0) | |
Show a text with a picto and a tooltip on picto. | |
selectMassAction ($selected, $arrayofaction, $alwaysvisible=0, $name='massaction', $cssclass='checkforselect') | |
Generate select HTML to choose massaction. | |
select_country ($selected='', $htmlname='country_id', $htmloption='', $maxlength=0, $morecss='minwidth300', $usecodeaskey='', $showempty=1, $disablefavorites=0, $addspecialentries=0, $exclude_country_code=array(), $hideflags=0) | |
Return combo list of activated countries, into language of user. | |
select_incoterms ($selected='', $location_incoterms='', $page='', $htmlname='incoterm_id', $htmloption='', $forcecombo=1, $events=array(), $disableautocomplete=0) | |
Return select list of incoterms. | |
select_type_of_lines ($selected='', $htmlname='type', $showempty=0, $hidetext=0, $forceall=0, $morecss="") | |
Return list of types of lines (product or service) Example: 0=product, 1=service, 9=other (for external module) | |
load_cache_types_fees () | |
Load into cache cache_types_fees, array of types of fees. | |
select_type_fees ($selected='', $htmlname='type', $showempty=0) | |
Return list of types of notes. | |
select_company ($selected='', $htmlname='socid', $filter='', $showempty='', $showtype=0, $forcecombo=0, $events=array(), $limit=0, $morecss='minwidth100', $moreparam='', $selected_input_value='', $hidelabel=1, $ajaxoptions=array(), $multiple=false, $excludeids=array(), $showcode=0) | |
Output html form to select a third party This call select_thirdparty_list() or ajax depending on setup. | |
select_contact ($socid, $selected='', $htmlname='contactid', $showempty=0, $exclude='', $limitto='', $showfunction=0, $morecss='', $nokeyifsocid=true, $showsoc=0, $forcecombo=0, $events=array(), $moreparam='', $htmlid='', $selected_input_value='', $filter='') | |
Output html form to select a contact This call select_contacts() or ajax depending on setup. | |
select_thirdparty_list ($selected='', $htmlname='socid', $filter='', $showempty='', $showtype=0, $forcecombo=0, $events=array(), $filterkey='', $outputmode=0, $limit=0, $morecss='minwidth100', $moreparam='', $multiple=false, $excludeids=array(), $showcode=0) | |
Output html form to select a third party. | |
selectcontacts ($socid, $selected=array(), $htmlname='contactid', $showempty=0, $exclude='', $limitto='', $showfunction=0, $morecss='', $options_only=0, $showsoc=0, $forcecombo=0, $events=array(), $moreparam='', $htmlid='', $multiple=false, $disableifempty=0, $filter='') | |
Return HTML code of the SELECT of list of all contacts (for a third party or all). | |
select_remises ($selected, $htmlname, $filter, $socid, $maxvalue=0) | |
Return HTML combo list of absolute discounts. | |
select_users ($selected='', $htmlname='userid', $show_empty=0, $exclude=null, $disabled=0, $include='', $enableonly=array(), $force_entity='0') | |
Return the HTML select list of users. | |
select_dolusers ($selected='', $htmlname='userid', $show_empty=0, $exclude=null, $disabled=0, $include='', $enableonly='', $force_entity='', $maxlength=0, $showstatus=0, $morefilter='', $show_every=0, $enableonlytext='', $morecss='', $notdisabled=0, $outputmode=0, $multiple=false, $forcecombo=0) | |
Return select list of users. | |
select_dolusers_forevent ($action='', $htmlname='userid', $show_empty=0, $exclude=null, $disabled=0, $include=array(), $enableonly=array(), $force_entity='0', $maxlength=0, $showstatus=0, $morefilter='', $showproperties=0, $listofuserid=array(), $listofcontactid=array(), $listofotherid=array()) | |
Return select list of users. | |
select_dolresources_forevent ($action='', $htmlname='userid', $show_empty=0, $exclude=null, $disabled=0, $include=array(), $enableonly=array(), $force_entity='0', $maxlength=0, $showstatus=0, $morefilter='', $showproperties=0, $listofresourceid=array()) | |
Return select list of resources. | |
select_produits ($selected=0, $htmlname='productid', $filtertype='', $limit=0, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(), $socid=0, $showempty='1', $forcecombo=0, $morecss='', $hidepriceinlabel=0, $warehouseStatus='', $selected_combinations=null, $nooutput=0, $status_purchase=-1) | |
Return list of products for customer. | |
select_bom ($selected='', $htmlname='bom_id', $limit=0, $status=1, $type=0, $showempty='1', $morecss='', $nooutput='', $forcecombo=0, $TProducts=[]) | |
Return list of BOM for customer in Ajax if Ajax activated or go to select_produits_list. | |
select_produits_list ($selected=0, $htmlname='productid', $filtertype='', $limit=20, $price_level=0, $filterkey='', $status=1, $finished=2, $outputmode=0, $socid=0, $showempty='1', $forcecombo=0, $morecss='maxwidth500', $hidepriceinlabel=0, $warehouseStatus='', $status_purchase=-1) | |
Return list of products for a customer. | |
select_produits_fournisseurs ($socid, $selected='', $htmlname='productid', $filtertype='', $filtre='', $ajaxoptions=array(), $hidelabel=0, $alsoproductwithnosupplierprice=0, $morecss='', $placeholder='') | |
Return list of products for customer (in Ajax if Ajax activated or go to select_produits_fournisseurs_list) | |
select_produits_fournisseurs_list ($socid, $selected='', $htmlname='productid', $filtertype='', $filtre='', $filterkey='', $statut=-1, $outputmode=0, $limit=100, $alsoproductwithnosupplierprice=0, $morecss='', $showstockinlist=0, $placeholder='') | |
Return list of suppliers products. | |
select_product_fourn_price ($productid, $htmlname='productfournpriceid', $selected_supplier=0) | |
Return list of suppliers prices for a product. | |
load_cache_conditions_paiements () | |
load_cache_availability () | |
selectAvailabilityDelay ($selected='', $htmlname='availid', $filtertype='', $addempty=0, $morecss='') | |
Return the list of type of delay available. | |
loadCacheInputReason () | |
Load into cache cache_demand_reason, array of input reasons. | |
selectInputReason ($selected='', $htmlname='demandreasonid', $exclude='', $addempty=0, $morecss='', $notooltip=0) | |
Return list of input reason (events that triggered an object creation, like after sending an emailing, making an advert, ...) List found into table c_input_reason loaded by loadCacheInputReason. | |
load_cache_types_paiements () | |
select_conditions_paiements ($selected=0, $htmlname='condid', $filtertype=-1, $addempty=0, $noinfoadmin=0, $morecss='', $deposit_percent=-1, $noprint=0) | |
print list of payment modes. | |
getSelectConditionsPaiements ($selected=0, $htmlname='condid', $filtertype=-1, $addempty=0, $noinfoadmin=0, $morecss='', $deposit_percent=-1) | |
Return list of payment modes. | |
select_types_paiements ($selected='', $htmlname='paiementtype', $filtertype='', $format=0, $empty=1, $noadmininfo=0, $maxlength=0, $active=1, $morecss='', $nooutput=0) | |
Return list of payment methods Constant MAIN_DEFAULT_PAYMENT_TYPE_ID can used to set default value but scope is all application, probably not what you want. | |
selectPriceBaseType ($selected='', $htmlname='price_base_type', $addjscombo=0) | |
Selection HT or TTC. | |
load_cache_transport_mode () | |
selectTransportMode ($selected='', $htmlname='transportmode', $format=0, $empty=1, $noadmininfo=0, $maxlength=0, $active=1, $morecss='') | |
selectShippingMethod ($selected='', $htmlname='shipping_method_id', $filtre='', $useempty=0, $moreattrib='', $noinfoadmin=0, $morecss='') | |
Return a HTML select list of shipping mode. | |
formSelectShippingMethod ($page, $selected='', $htmlname='shipping_method_id', $addempty=0) | |
Display form to select shipping mode. | |
selectSituationInvoices ($selected='', $socid=0) | |
Creates HTML last in cycle situation invoices selector. | |
selectUnits ($selected='', $htmlname='units', $showempty=0, $unit_type='') | |
Creates HTML units selector (code => label) | |
select_comptes ($selected='', $htmlname='accountid', $status=0, $filtre='', $useempty=0, $moreattrib='', $showcurrency=0, $morecss='', $nooutput=0) | |
Return a HTML select list of bank accounts. | |
selectEstablishments ($selected='', $htmlname='entity', $status=0, $filtre='', $useempty=0, $moreattrib='') | |
Return a HTML select list of establishment. | |
formSelectAccount ($page, $selected='', $htmlname='fk_account', $addempty=0) | |
Display form to select bank account. | |
select_all_categories ($type, $selected='', $htmlname="parent", $maxlength=64, $fromid=0, $outputmode=0, $include=0, $morecss='', $useempty=1) | |
Return list of categories having chosen type. | |
form_confirm ($page, $title, $question, $action, $formquestion=array(), $selectedchoice="", $useajax=0, $height=170, $width=500) | |
formconfirm ($page, $title, $question, $action, $formquestion='', $selectedchoice='', $useajax=0, $height=0, $width=500, $disableformtag=0, $labelbuttonyes='Yes', $labelbuttonno='No') | |
form_project ($page, $socid, $selected='', $htmlname='projectid', $discard_closed=0, $maxlength=20, $forcefocus=0, $nooutput=0, $textifnoproject='', $morecss='') | |
Show a form to select a project. | |
form_conditions_reglement ($page, $selected='', $htmlname='cond_reglement_id', $addempty=0, $type='', $filtertype=-1, $deposit_percent=-1, $nooutput=0) | |
Show a form to select payment conditions. | |
form_availability ($page, $selected='', $htmlname='availability', $addempty=0) | |
Show a form to select a delivery delay. | |
formInputReason ($page, $selected='', $htmlname='demandreason', $addempty=0) | |
Output HTML form to select list of input reason (events that triggered an object creation, like after sending an emailing, making an advert, ...) List found into table c_input_reason loaded by loadCacheInputReason. | |
form_date ($page, $selected, $htmlname, $displayhour=0, $displaymin=0, $nooutput=0, $type='') | |
Show a form + html select a date. | |
form_users ($page, $selected='', $htmlname='userid', $exclude=array(), $include=array()) | |
Show a select form to choose a user. | |
form_modes_reglement ($page, $selected='', $htmlname='mode_reglement_id', $filtertype='', $active=1, $addempty=0, $type='', $nooutput=0) | |
Show form with payment mode. | |
formSelectTransportMode ($page, $selected='', $htmlname='transport_mode_id', $active=1, $addempty=0) | |
Show form with transport mode. | |
form_multicurrency_code ($page, $selected='', $htmlname='multicurrency_code') | |
Show form with multicurrency code. | |
form_multicurrency_rate ($page, $rate=0.0, $htmlname='multicurrency_tx', $currency='') | |
Show form with multicurrency rate. | |
form_remise_dispo ($page, $selected, $htmlname, $socid, $amount, $filter='', $maxvalue=0, $more='', $hidelist=0, $discount_type=0) | |
Show a select box with available absolute discounts. | |
form_contacts ($page, $societe, $selected='', $htmlname='contactid') | |
Show forms to select a contact. | |
form_thirdparty ($page, $selected='', $htmlname='socid', $filter='', $showempty=0, $showtype=0, $forcecombo=0, $events=array(), $nooutput=0, $excludeids=array(), $textifnothirdparty='') | |
Output html select to select thirdparty. | |
select_currency ($selected='', $htmlname='currency_id') | |
Retourne la liste des devises, dans la langue de l'utilisateur. | |
selectCurrency ($selected='', $htmlname='currency_id', $mode=0, $useempty='') | |
Retourne la liste des devises, dans la langue de l'utilisateur. | |
selectMultiCurrency ($selected='', $htmlname='multicurrency_code', $useempty=0, $filter='', $excludeConfCurrency=false, $morecss='') | |
Return array of currencies in user language. | |
load_cache_vatrates ($country_code) | |
Load into the cache ->cache_vatrates, all the vat rates of a country. | |
load_tva ($htmlname='tauxtva', $selectedrate='', $societe_vendeuse=null, $societe_acheteuse=null, $idprod=0, $info_bits=0, $type='', $options_only=false, $mode=0, $type_vat=0) | |
Output an HTML select vat rate. | |
select_date ($set_time='', $prefix='re', $h=0, $m=0, $empty=0, $form_name="", $d=1, $addnowlink=0, $nooutput=0, $disabled=0, $fullday=0, $addplusone='', $adddateof='') | |
Show a HTML widget to input a date or combo list for day, month, years and optionally hours and minutes. | |
selectDateToDate ($set_time='', $set_time_end='', $prefix='re', $empty=0, $forcenewline=0) | |
Show 2 HTML widget to input a date or combo list for day, month, years and optionally hours and minutes. | |
selectDate ($set_time='', $prefix='re', $h=0, $m=0, $empty=0, $form_name="", $d=1, $addnowlink=0, $disabled=0, $fullday='', $addplusone='', $adddateof='', $openinghours='', $stepminutes=1, $labeladddateof='', $placeholder='', $gm='auto') | |
Show a HTML widget to input a date or combo list for day, month, years and optionally hours and minutes. | |
selectTypeDuration ($prefix, $selected='i', $excludetypes=array()) | |
selectTypeDuration | |
select_duration ($prefix, $iSecond='', $disabled=0, $typehour='select', $minunderhours=0, $nooutput=0) | |
Function to show a form to select a duration on a page. | |
selectTickets ($selected='', $htmlname='ticketid', $filtertype='', $limit=0, $status=1, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(), $socid=0, $showempty='1', $forcecombo=0, $morecss='', $selected_combinations=null, $nooutput=0) | |
Return list of tickets in Ajax if Ajax activated or go to selectTicketsList. | |
selectTicketsList ($selected='', $htmlname='ticketid', $filtertype='', $limit=20, $filterkey='', $status=1, $outputmode=0, $showempty='1', $forcecombo=0, $morecss='') | |
Return list of tickets. | |
selectProjects ($selected='', $htmlname='projectid', $filtertype='', $limit=0, $status=1, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(), $socid=0, $showempty='1', $forcecombo=0, $morecss='', $selected_combinations=null, $nooutput=0) | |
Return list of projects in Ajax if Ajax activated or go to selectTicketsList. | |
selectProjectsList ($selected='', $htmlname='projectid', $filtertype='', $limit=20, $filterkey='', $status=1, $outputmode=0, $showempty='1', $forcecombo=0, $morecss='') | |
Return list of projects. | |
selectMembers ($selected='', $htmlname='adherentid', $filtertype='', $limit=0, $status=1, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(), $socid=0, $showempty='1', $forcecombo=0, $morecss='', $selected_combinations=null, $nooutput=0) | |
Return list of members in Ajax if Ajax activated or go to selectTicketsList. | |
selectMembersList ($selected='', $htmlname='adherentid', $filtertype='', $limit=20, $filterkey='', $status=1, $outputmode=0, $showempty='1', $forcecombo=0, $morecss='') | |
Return list of adherents. | |
selectForFormsList ($objecttmp, $htmlname, $preselectedvalue, $showempty='', $searchkey='', $placeholder='', $morecss='', $moreparams='', $forcecombo=0, $outputmode=0, $disabled=0, $sortfield='', $filter='') | |
Output html form to select an object. | |
showCategories ($id, $type, $rendermode=0, $nolink=0) | |
Render list of categories linked to object with id $id and type $type. | |
showLinkedObjectBlock ($object, $morehtmlright='', $compatibleImportElementsList=array(), $title='RelatedObjects') | |
Show linked object block. | |
showLinkToObjectBlock ($object, $restrictlinksto=array(), $excludelinksto=array()) | |
Show block with links to link to other objects. | |
selectyesno ($htmlname, $value='', $option=0, $disabled=false, $useempty=0, $addjscombo=0, $morecss='', $labelyes='Yes', $labelno='No') | |
Return an html string with a select combo box to choose yes or no. | |
select_export_model ($selected='', $htmlname='exportmodelid', $type='', $useempty=0) | |
Return list of export templates. | |
showrefnav ($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $morehtmlright='') | |
Return a HTML area with the reference of object and a navigation bar for a business object Note: To complete search with a particular filter on select, you can set $object->next_prev_filter set to define SQL criteria. | |
showbarcode (&$object, $width=100, $morecss='') | |
Return HTML code to output a barcode. | |
select_dolgroups ($selected=0, $htmlname='groupid', $show_empty=0, $exclude='', $disabled=0, $include='', $enableonly=array(), $force_entity='0', $multiple=false, $morecss='minwidth200') | |
Return select list of groups. | |
showFilterButtons ($pos='') | |
Return HTML to show the search and clear search button. | |
showCheckAddButtons ($cssclass='checkforaction', $calljsfunction=0, $massactionname="massaction") | |
Return HTML to show the search and clear search button. | |
showFilterAndCheckAddButtons ($addcheckuncheckall=0, $cssclass='checkforaction', $calljsfunction=0, $massactionname="massaction") | |
Return HTML to show the search and clear search button. | |
selectExpenseCategories ($selected='', $htmlname='fk_c_exp_tax_cat', $useempty=0, $excludeid=array(), $target='', $default_selected=0, $params=array(), $info_admin=1) | |
Return HTML to show the select of expense categories. | |
selectExpenseRanges ($selected='', $htmlname='fk_range', $useempty=0) | |
Return HTML to show the select ranges of expense range. | |
selectExpense ($selected='', $htmlname='fk_c_type_fees', $useempty=0, $allchoice=1, $useid=0) | |
Return HTML to show a select of expense. | |
selectInvoice ($socid=-1, $selected='', $htmlname='invoiceid', $maxlength=24, $option_only=0, $show_empty='1', $discard_closed=0, $forcefocus=0, $disabled=0, $morecss='maxwidth500', $projectsListId='', $showproject='all', $usertofilter=null) | |
Output a combo list with invoices qualified for a third party. | |
selectInvoiceRec ($selected='', $htmlname='facrecid', $maxlength=24, $option_only=0, $show_empty='1', $forcefocus=0, $disabled=0, $morecss='maxwidth500') | |
Output a combo list with invoices qualified for a third party. | |
searchComponent ($arrayofcriterias, $search_component_params, $arrayofinputfieldsalreadyoutput=array(), $search_component_params_hidden='') | |
Output the component to make advanced search criteries. | |
selectModelMail ($prefix, $modelType='', $default=0, $addjscombo=0) | |
selectModelMail | |
buttonsSaveCancel ($save_label='Save', $cancel_label='Cancel', $morebuttons=array(), $withoutdiv=false, $morecss='', $dol_openinpopup='') | |
Output the buttons to submit a creation/edit form. | |
load_cache_invoice_subtype () | |
Load into cache list of invoice subtypes. | |
getSelectInvoiceSubtype ($selected=0, $htmlname='subtypeid', $addempty=0, $noinfoadmin=0, $morecss='') | |
Return list of invoice subtypes. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Form | |
static | selectarray ($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $moreparam='', $translate=0, $maxlen=0, $disabled=0, $sort='', $morecss='minwidth75', $addjscombo=1, $moreparamonempty='', $disablebademail=0, $nohtmlescape=0) |
Return a HTML select string, built from an array of key+value. | |
static | selectArrayAjax ($htmlname, $url, $id='', $moreparam='', $moreparamtourl='', $disabled=0, $minimumInputLength=1, $morecss='', $callurlonselect=0, $placeholder='', $acceptdelayedhtml=0) |
Return a HTML select string, built from an array of key+value, but content returned into select come from an Ajax call of an URL. | |
static | selectArrayFilter ($htmlname, $array, $id='', $moreparam='', $disableFiltering=0, $disabled=0, $minimumInputLength=1, $morecss='', $callurlonselect=0, $placeholder='', $acceptdelayedhtml=0, $textfortitle='') |
Return a HTML select string, built from an array of key+value, but content returned into select is defined into $array parameter. | |
static | multiselectarray ($htmlname, $array, $selected=array(), $key_in_label=0, $value_as_key=0, $morecss='', $translate=0, $width=0, $moreattrib='', $elemtype='', $placeholder='', $addjscombo=-1) |
Show a multiselect form from an array. | |
static | multiSelectArrayWithCheckbox ($htmlname, &$array, $varpage, $pos='') |
Show a multiselect dropbox from an array. | |
static | showphoto ($modulepart, $object, $width=100, $height=0, $caneditfield=0, $cssclass='photowithmargin', $imagesize='', $addlinktofullsize=1, $cache=0, $forcecapture='', $noexternsourceoverwrite=0) |
Return HTML code to output a photo. | |
Protected Member Functions inherited from Form | |
editInPlace ($object, $value, $htmlname, $condition, $inputType='textarea', $editvalue=null, $extObject=null, $custommsg=null) | |
Output edit in place form. | |
constructProductListOption (&$objp, &$opt, &$optJson, $price_level, $selected, $hidepriceinlabel=0, $filterkey='', $novirtualstock=0) | |
Function to forge the string with OPTIONs of SELECT. | |
constructTicketListOption (&$objp, &$opt, &$optJson, $selected, $filterkey='') | |
constructTicketListOption. | |
constructProjectListOption (&$objp, &$opt, &$optJson, $selected, $filterkey='') | |
constructProjectListOption. | |
constructMemberListOption (&$objp, &$opt, &$optJson, $selected, $filterkey='') | |
constructMemberListOption. | |
Class to build HTML component for third parties management Only common components are here.
Class of forms component to manage companies
Definition at line 41 of file html.formcompany.class.php.
FormCompany::effectif_array | ( | $mode = 0, | |
$filter = '' ) |
Return the list of entries for staff (no translation, it is number ranges)
int | $mode | 0=return id+label, 1=return code+Label |
string | $filter | Add a SQL filter to select. Data must not come from user input. |
Definition at line 102 of file html.formcompany.class.php.
References dol_syslog().
FormCompany::form_prospect_level | ( | $page, | |
$selected = 0, | |||
$htmlname = 'prospect_level_id', | |||
$empty = 0 ) |
Affiche formulaire de selection des modes de reglement.
int | $page | Page |
int | $selected | Id or code preselected |
string | $htmlname | Nom du formulaire select |
int | $empty | Add empty value in list |
Definition at line 149 of file html.formcompany.class.php.
References dol_print_error(), dol_syslog(), info_admin(), newToken(), and Form\selectarray().
FormCompany::formProspectContactLevel | ( | $page, | |
$selected = 0, | |||
$htmlname = 'prospect_contact_level_id', | |||
$empty = 0 ) |
Affiche formulaire de selection des niveau de prospection pour les contacts.
int | $page | Page |
int | $selected | Id or code preselected |
string | $htmlname | Nom du formulaire select |
int | $empty | Add empty value in list |
Definition at line 201 of file html.formcompany.class.php.
References dol_print_error(), dol_syslog(), info_admin(), newToken(), and Form\selectarray().
FormCompany::formThirdpartyType | ( | $page, | |
$selected = '', | |||
$htmlname = 'socid', | |||
$filter = '', | |||
$nooutput = 0 ) |
Output html select to select third-party type.
string | $page | Page |
string | $selected | Id preselected |
string | $htmlname | Name of HTML select |
string | $filter | optional filters criteras |
int | $nooutput | No print output. Return it only. |
Definition at line 1120 of file html.formcompany.class.php.
References getDolGlobalString(), newToken(), Form\selectarray(), and typent_array().
FormCompany::get_input_id_prof | ( | $idprof, | |
$htmlname, | |||
$preselected, | |||
$country_code, | |||
$morecss = 'maxwidth200' ) |
Return HTML string to use as input of professional id into a HTML page (siren, siret, etc...)
int | $idprof | 1,2,3,4 (Example: 1=siren,2=siret,3=naf,4=rcs/rm) |
string | $htmlname | Name of HTML select |
string | $preselected | Default value to show |
string | $country_code | FR, IT, ... |
string | $morecss | More css |
Definition at line 941 of file html.formcompany.class.php.
References getDolGlobalString().
FormCompany::select_civility | ( | $selected = '', | |
$htmlname = 'civility_id', | |||
$morecss = 'maxwidth150', | |||
$addjscombo = 1 ) |
Return combo list with people title.
string | $selected | Civility/Title code preselected |
string | $htmlname | Name of HTML select combo field |
string | $morecss | Add more css on SELECT element |
int | $addjscombo | Add js combo |
Definition at line 469 of file html.formcompany.class.php.
References ajax_combobox(), dol_print_error(), dol_syslog(), and info_admin().
FormCompany::select_departement | ( | $selected = '', | |
$country_codeid = 0, | |||
$htmlname = 'state_id' ) |
Returns the drop-down list of departments/provinces/cantons for all countries or for a given country.
In the case of an all-country list, the display breaks on the country. The key of the list is the code (there can be several entries for a given code but in this case, the country field differs). Thus the links with the departments are done on a department independently of its name.
string | $selected | Code state preselected |
int | $country_codeid | 0=list for all countries, otherwise country code or country rowid to show |
string | $htmlname | Id of department |
Definition at line 255 of file html.formcompany.class.php.
References select_state().
FormCompany::select_forme_juridique | ( | $selected = '', | |
$country_codeid = 0, | |||
$filter = '' ) |
Return the list of all juridical entity types for all countries or a specific country.
A country separator is included in case the list for all countries is returned.
string | $selected | Preselected code for juridical type |
mixed | $country_codeid | 0=All countries, else the code of the country to display |
string | $filter | Add a SQL filter on list |
Definition at line 530 of file html.formcompany.class.php.
References select_juridicalstatus().
FormCompany::select_juridicalstatus | ( | $selected = '', | |
$country_codeid = 0, | |||
$filter = '', | |||
$htmlname = 'forme_juridique_code', | |||
$morecss = '' ) |
Return the list of all juridical entity types for all countries or a specific country.
A country separator is included in case the list for all countries is returned.
string | $selected | Preselected code of juridical type |
int | $country_codeid | 0=list for all countries, otherwise list only country requested |
string | $filter | Add a SQL filter on list. Data must not come from user input. |
string | $htmlname | HTML name of select |
string | $morecss | More CSS |
Definition at line 548 of file html.formcompany.class.php.
References ajax_combobox(), dol_print_error(), dol_sort_array(), dol_syslog(), and info_admin().
Referenced by select_forme_juridique().
FormCompany::select_localtax | ( | $local, | |
$selected, | |||
$htmlname ) |
Return a HTML select with localtax values for thirdparties.
int | $local | LocalTax |
float | $selected | Preselected value |
string | $htmlname | HTML select name |
Definition at line 1017 of file html.formcompany.class.php.
References get_localtax_by_third().
FormCompany::select_region | ( | $selected = '', | |
$htmlname = 'region_id' ) |
Retourne la liste deroulante des regions actives don't le pays est actif La cle de la liste est le code (il peut y avoir plusieurs entree pour un code donnee mais dans ce cas, le champ pays et lang differe).
Ainsi les liens avec les regions se font sur une region independemment de son name.
string | $selected | Preselected value |
string | $htmlname | Name of HTML select field |
Definition at line 411 of file html.formcompany.class.php.
References ajax_combobox(), dol_print_error(), and dol_syslog().
FormCompany::select_state | ( | $selected = 0, | |
$country_codeid = 0, | |||
$htmlname = 'state_id', | |||
$morecss = 'maxwidth200onsmartphone minwidth300' ) |
Returns the drop-down list of departments/provinces/cantons for all countries or for a given country.
In the case of an all-country list, the display breaks on the country. The key of the list is the code (there can be several entries for a given code but in this case, the country field differs). Thus the links with the departments are done on a department independently of its name.
int | $selected | Code state preselected (mus be state id) |
integer | $country_codeid | Country code or id: 0=list for all countries, otherwise country code or country rowid to show |
string | $htmlname | Id of department. If '', we want only the string with <option> |
string | $morecss | Add more css |
Definition at line 275 of file html.formcompany.class.php.
References ajax_combobox(), dol_print_error(), dol_syslog(), getDolGlobalInt(), getDolGlobalString(), and info_admin().
Referenced by select_departement(), and select_state_ajax().
FormCompany::select_state_ajax | ( | $parent_field_id = 'country_id', | |
$selected = 0, | |||
$country_codeid = 0, | |||
$htmlname = 'state_id', | |||
$morecss = 'maxwidth200onsmartphone minwidth300' ) |
Returns the drop-down list of departments/provinces/cantons for all countries or for a given country.
In the case of an all-country list, the display breaks on the country. The key of the list is the code (there can be several entries for a given code but in this case, the country field differs). Thus the links with the departments are done on a department independently of its name.
string | $parent_field_id | Parent select name to monitor |
integer | $selected | Code state preselected (mus be state id) |
integer | $country_codeid | Country code or id: 0=list for all countries, otherwise country code or country rowid to show |
string | $htmlname | Id of department. If '', we want only the string with <option> |
string | $morecss | Add more css |
Definition at line 388 of file html.formcompany.class.php.
References dol_buildpath(), and select_state().
FormCompany::select_ziptown | ( | $selected = '', | |
$htmlname = 'zipcode', | |||
$fields = array(), | |||
$fieldsize = 0, | |||
$disableautocomplete = 0, | |||
$moreattrib = '', | |||
$morecss = '' ) |
Return a select list with zip codes and their town.
string | $selected | Preselected value |
string | $htmlname | HTML select name |
array | $fields | Array with key of fields to refresh after selection |
int | $fieldsize | Field size |
int | $disableautocomplete | 1 To disable ajax autocomplete features (browser autocomplete may still occurs) |
string | $moreattrib | Add more attribute on HTML input field |
string | $morecss | More css |
Definition at line 909 of file html.formcompany.class.php.
References ajax_multiautocompleter().
FormCompany::selectCompaniesForNewContact | ( | $object, | |
$var_id, | |||
$selected = 0, | |||
$htmlname = 'newcompany', | |||
$limitto = [], | |||
$forceid = 0, | |||
$moreparam = '', | |||
$morecss = '' ) |
Output list of third parties.
object | $object | Object we try to find contacts |
string | $var_id | Name of id field |
int | $selected | Pre-selected third party |
string | $htmlname | Name of HTML form |
array | $limitto | Disable answers that are not id in this array list |
int | $forceid | This is to force another object id than object->id |
string | $moreparam | String with more param to add into url when noajax search is used. |
string | $morecss | More CSS on select component |
Definition at line 649 of file html.formcompany.class.php.
References $object, ajax_autocompleter(), ajax_combobox(), dol_buildpath(), dol_escape_htmltag(), dol_escape_js(), dol_print_error(), getDolGlobalString(), getEntity(), and getNonce().
FormCompany::selectProspectCustomerType | ( | $selected, | |
$htmlname = 'client', | |||
$htmlidname = 'customerprospect', | |||
$typeinput = 'form', | |||
$morecss = '', | |||
$allowempty = '' ) |
Return a HTML select for thirdparty type.
int | $selected | Selected value |
string | $htmlname | HTML select name |
string | $htmlidname | HTML select id |
string | $typeinput | HTML output |
string | $morecss | More css |
string | $allowempty | Allow empty value or not |
Definition at line 1056 of file html.formcompany.class.php.
References ajax_combobox(), and getDolGlobalString().
FormCompany::selectProspectStatus | ( | $htmlname, | |
$prospectstatic, | |||
$statusprospect, | |||
$idprospect, | |||
$mode = "html" ) |
Output html select to select prospect status.
string | $htmlname | Name of HTML select |
Societe | null | $prospectstatic | Prospect object |
int | $statusprospect | status of prospect |
int | $idprospect | id of prospect |
string | $mode | select if we want activate de html part or js |
Definition at line 1161 of file html.formcompany.class.php.
References ajax_combobox(), dol_escape_htmltag(), img_action(), and newToken().
FormCompany::selectTypeContact | ( | $object, | |
$selected, | |||
$htmlname = 'type', | |||
$source = 'internal', | |||
$sortorder = 'position', | |||
$showempty = 0, | |||
$morecss = '', | |||
$output = 1, | |||
$forcehidetooltip = 0 ) |
Return a select list with types of contacts.
object | $object | Object to use to find type of contact |
string | $selected | Default selected value |
string | $htmlname | HTML select name |
string | $source | Source ('internal' or 'external') |
string | $sortorder | Sort criteria ('position', 'code', ...) |
int | $showempty | 1=Add en empty line |
string | $morecss | Add more css to select component |
int | $output | 0=return HTML, 1= direct print |
int | $forcehidetooltip | Force hide tooltip for admin |
Definition at line 820 of file html.formcompany.class.php.
References $object, ajax_combobox(), and info_admin().
FormCompany::showRoles | ( | $htmlname, | |
Contact | $contact, | ||
$rendermode = 'view', | |||
$selected = array(), | |||
$morecss = 'minwidth500' ) |
showContactRoles on view and edit mode
string | $htmlname | Html component name and id |
Contact | $contact | Contact Object |
string | $rendermode | view, edit |
array | $selected | $key=>$val $val is selected Roles for input mode |
string | $morecss | More css |
Definition at line 865 of file html.formcompany.class.php.
References Form\multiselectarray().
FormCompany::typent_array | ( | $mode = 0, | |
$filter = '' ) |
Return list of labels (translated) of third parties type.
int | $mode | 0=Return id+label, 1=Return code+label |
string | $filter | Add a SQL filter to select. Data must not come from user input. |
Definition at line 51 of file html.formcompany.class.php.
References dol_syslog().
Referenced by formThirdpartyType().