40 print
"Error, template page can't be called as URL";
45<!-- BEGIN PHP TEMPLATE extrafields_add.tpl.php -->
49if (!isset($parameters)) {
50 $parameters = array();
53@phan-var-force CommonObject $object
54@phan-var-force string $action
55@phan-var-force Conf $conf
56@phan-var-force Translate $conf
57@phan-var-force array<string,mixed> $parameters
60$reshook = $hookmanager->executeHooks(
'formObjectOptions', $parameters,
$object, $action);
61print $hookmanager->resPrint;
64 $params[
'cols'] = array_key_exists(
'colspanvalue', $parameters) ? $parameters[
'colspanvalue'] :
'';
65 if (!empty($parameters[
'tdclass'])) {
66 $params[
'tdclass'] = $parameters[
'tdclass'];
68 if (!empty($parameters[
'tpl_context'])) {
69 $params[
'tpl_context'] = $parameters[
'tpl_context'];
72 print
$object->showOptionals($extrafields,
'create', $params);
76<!-- END PHP TEMPLATE extrafields_add.tpl.php -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...