29if (empty($conf) || !is_object($conf)) {
30 print
"Error, template page can't be called as URL";
35<!-- BEGIN PHP TEMPLATE extrafields_add.tpl.php -->
39if (!isset($parameters)) {
40 $parameters = array();
43@phan-var-force CommonObject $object
44@phan-var-force string $action
45@phan-var-force Conf $conf
46@phan-var-force Translate $conf
47@phan-var-force array<string,mixed> $parameters
50$reshook = $hookmanager->executeHooks(
'formObjectOptions', $parameters,
$object, $action);
51print $hookmanager->resPrint;
54 $params[
'cols'] = array_key_exists(
'colspanvalue', $parameters) ? $parameters[
'colspanvalue'] :
'';
55 if (!empty($parameters[
'tdclass'])) {
56 $params[
'tdclass'] = $parameters[
'tdclass'];
58 if (!empty($parameters[
'tpl_context'])) {
59 $params[
'tpl_context'] = $parameters[
'tpl_context'];
62 print
$object->showOptionals($extrafields,
'create', $params);
66<!-- END PHP TEMPLATE extrafields_add.tpl.php -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object