27if (empty($conf) || !is_object($conf)) {
28 print
"Error, template page can't be called as URL";
33@phan-var-force CommonObject $object
34@phan-var-force string $action
35@phan-var-force Conf $conf
36@phan-var-force Translate $langs
37@phan-var-force array<string,mixed> $parameters
41<!-- BEGIN PHP TEMPLATE extrafields_add.tpl.php -->
45if (!isset($parameters)) {
46 $parameters = array();
49$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