dolibarr 22.0.5
new.php File Reference

Example of form to add a new member. More...

Go to the source code of this file.

Functions

 force_switch_entity ($newEntity)
 Force switching conf of entity, even if user is connected Fox example when trying to go on public form of an other entity.
 
 llxHeaderVierge ($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs=[], $arrayofcss=[])
 Show header for new member.
 
 llxFooterVierge ()
 Show footer for new member.
 

Detailed Description

Example of form to add a new member.

Note that you can add following constant to change behaviour of page MEMBER_NEWFORM_AMOUNT Default amount for auto-subscribe form MEMBER_MIN_AMOUNT Minimum amount MEMBER_NEWFORM_PAYONLINE Suggest payment with paypal, paybox or stripe MEMBER_NEWFORM_DOLIBARRTURNOVER Show field turnover (specific for dolibarr foundation) MEMBER_URL_REDIRECT_SUBSCRIPTION Url to redirect once registration form has been submitted (hidden option, by default we just show a message on same page or redirect to the payment page) MEMBER_NEWFORM_FORCETYPE Force type of member MEMBER_NEWFORM_FORCEMORPHY Force nature of member (mor/phy) MEMBER_NEWFORM_FORCECOUNTRYCODE Force country

Definition in file new.php.

Function Documentation

◆ force_switch_entity()

force_switch_entity ( $newEntity)

Force switching conf of entity, even if user is connected Fox example when trying to go on public form of an other entity.

Parameters
int$newEntityNew entity
Returns
void

Definition at line 123 of file new.php.

References $conf.

◆ llxFooterVierge()

llxFooterVierge ( )

Show footer for new member.

Note: also called by functions.lib:recordNotFound

Returns
void

Definition at line 167 of file new.php.

References $conf, and printCommonFooter().

◆ llxHeaderVierge()

llxHeaderVierge ( $title,
$head = "",
$disablejs = 0,
$disablehead = 0,
$arrayofjs = [],
$arrayofcss = [] )

Show header for new member.

Note: also called by functions.lib:recordNotFound

Parameters
string$titleTitle
string$headHead array
int$disablejsMore content into html header
int$disableheadMore content into html header
string[] | string$arrayofjsArray of complementary js files
string[] | string$arrayofcssArray of complementary css files
Returns
void

Definition at line 146 of file new.php.

References $conf, getDolGlobalString(), htmlPrintOnlineHeader(), and top_htmlhead().