$form->fields['data1']->defaultvalue = date('Y-m-d');
 }
 new form_textbox($form, 'richiedente', 'Richiedente', true, 30, 100, 'uppercase');
 new form_textbox($form, 'richiesta', 'Richiesta', true, 30, 240, '');
 new form_static_listbox($form, 'tiporichiesta', 'Tipo Richiesta', 'Interna,Esterna', true, '');
 if (is_object($form->fields['tiporichiesta'])) {
     $form->fields['tiporichiesta']->defaultvalue = worktable_parse_default_expression('Esterna', $form);
 }
 new form_static_listbox($form, 'priorit', 'Priorità', '1 - Urgente,2 - Alta,3 - Normale,4 - Bassa,5 - Molto bassa', true, '');
 if (is_object($form->fields['priorit'])) {
     $form->fields['priorit']->defaultvalue = worktable_parse_default_expression('3 - Normale', $form);
 }
 new form_textbox($form, 'assegnatariorichiesta', 'Assegnatario richiesta', false, 30, 100, '');
 new form_static_listbox($form, 'stato', 'Stato', 'A - Presa in carico,B - In valutazione,C1 - In lavorazione,C2 - In attesa di lavorazione,D1 - Eseguita,D2 - Respinta', true, '');
 if (is_object($form->fields['stato'])) {
     $form->fields['stato']->defaultvalue = worktable_parse_default_expression('A - Presa in carico', $form);
 }
 new form_textarea($form, 'note', 'Note', false, 10, 80, 1000, '');
 if (CAMILA_WORKTABLE_SPECIAL_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_selected', camila_get_translation('camila.worktable.field.selected'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if (CAMILA_WORKTABLE_SELECTED_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_special', camila_get_translation('camila.worktable.field.special'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if ($_REQUEST['camila_update'] != 'new') {
     new form_datetime($form, 'created', camila_get_translation('camila.worktable.field.created'));
     if (is_object($form->fields['created'])) {
         $form->fields['created']->updatable = false;
     }
     new form_textbox($form, 'created_by', camila_get_translation('camila.worktable.field.created_by'));
     if (is_object($form->fields['created_by'])) {
 if (is_object($form->fields['data1'])) {
     $form->fields['data1']->defaultvalue = date('Y-m-d');
 }
 new form_textbox($form, 'oggetto', 'Oggetto', true, 30, 255, '');
 new form_textarea($form, 'testo', 'Testo', true, 10, 80, 255, '');
 new form_static_listbox($form, 'carattere', 'Carattere', 'helvetica,times,courier,zapfdingbats,symbol', true, '');
 if (is_object($form->fields['carattere'])) {
     $form->fields['carattere']->defaultvalue = worktable_parse_default_expression('helvetica', $form);
 }
 new form_integer($form, 'dimensionetitolo', 'Dimensione titolo', false, 5, 255, '');
 if (is_object($form->fields['dimensionetitolo'])) {
     $form->fields['dimensionetitolo']->defaultvalue = worktable_parse_default_expression('44', $form);
 }
 new form_integer($form, 'dimensionetesto', 'Dimensione testo', false, 5, 255, '');
 if (is_object($form->fields['dimensionetesto'])) {
     $form->fields['dimensionetesto']->defaultvalue = worktable_parse_default_expression('22', $form);
 }
 if (CAMILA_WORKTABLE_SPECIAL_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_selected', camila_get_translation('camila.worktable.field.selected'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if (CAMILA_WORKTABLE_SELECTED_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_special', camila_get_translation('camila.worktable.field.special'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if ($_REQUEST['camila_update'] != 'new') {
     new form_datetime($form, 'created', camila_get_translation('camila.worktable.field.created'));
     if (is_object($form->fields['created'])) {
         $form->fields['created']->updatable = false;
     }
     new form_textbox($form, 'created_by', camila_get_translation('camila.worktable.field.created_by'));
     if (is_object($form->fields['created_by'])) {
         $form->fields['created_by']->updatable = false;
 if (is_object($form->fields['tipopasto'])) {
     $form->fields['tipopasto']->defaultvalue = worktable_get_last_value_from_file('TIPO PASTO');
 }
 if (is_object($form->fields['tipopasto'])) {
     $form->fields['tipopasto']->write_value_to_file = worktable_get_safe_temp_filename('TIPO PASTO');
 }
 new form_datetime($form, 'oraregistrazione', 'ORA REGISTRAZIONE', false, '');
 if (is_object($form->fields['oraregistrazione'])) {
     $form->fields['oraregistrazione']->hslots = 60;
 }
 if (is_object($form->fields['oraregistrazione'])) {
     $form->fields['oraregistrazione']->defaultvalue = date('Y-m-d H:i:s');
 }
 new form_textbox($form, 'codicepasto', 'CODICE PASTO', false, 30, 255, '');
 if (is_object($form->fields['codicepasto'])) {
     $form->fields['codicepasto']->defaultvalue = worktable_parse_default_expression('P${gg}${mm}${aaaa}${hh24}', $form);
 }
 if (CAMILA_WORKTABLE_SPECIAL_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_selected', camila_get_translation('camila.worktable.field.selected'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if (CAMILA_WORKTABLE_SELECTED_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_special', camila_get_translation('camila.worktable.field.special'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if ($_REQUEST['camila_update'] != 'new') {
     new form_datetime($form, 'created', camila_get_translation('camila.worktable.field.created'));
     if (is_object($form->fields['created'])) {
         $form->fields['created']->updatable = false;
     }
     new form_textbox($form, 'created_by', camila_get_translation('camila.worktable.field.created_by'));
     if (is_object($form->fields['created_by'])) {
         $form->fields['created_by']->updatable = false;
 }
 new form_date($form, 'dataprotocollo', 'Data protocollo', true, '');
 if (is_object($form->fields['dataprotocollo'])) {
     $form->fields['dataprotocollo']->defaultvalue = date('Y-m-d');
 }
 new form_date($form, 'datadocumento', 'Data documento', true, '');
 if (is_object($form->fields['datadocumento'])) {
     $form->fields['datadocumento']->defaultvalue = date('Y-m-d');
 }
 new form_static_listbox($form, 'tipo', 'Tipo', 'e-mail,fax,lettera', true, '');
 if (is_object($form->fields['tipo'])) {
     $form->fields['tipo']->defaultvalue = worktable_parse_default_expression('e-mail', $form);
 }
 new form_static_listbox($form, 'ingressouscita', 'Ingresso/Uscita', 'I,U', true, '');
 if (is_object($form->fields['ingressouscita'])) {
     $form->fields['ingressouscita']->defaultvalue = worktable_parse_default_expression('I', $form);
 }
 new form_textbox($form, 'mittentedestinatario', 'Mittente/Destinatario', true, 30, 100, '');
 new form_textbox($form, 'oggetto', 'Oggetto', true, 30, 100, '');
 if (is_object($form->fields['oggetto'])) {
     $form->fields['oggetto']->autofocus = true;
 }
 new form_textbox($form, 'rifprotocollomittente', 'Rif. Protocollo Mittente', false, 30, 100, '');
 new form_textarea($form, 'note', 'Note', false, 10, 80, 255, '');
 if (CAMILA_WORKTABLE_SPECIAL_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_selected', camila_get_translation('camila.worktable.field.selected'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if (CAMILA_WORKTABLE_SELECTED_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_special', camila_get_translation('camila.worktable.field.special'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if ($_REQUEST['camila_update'] != 'new') {
     $form->fields['beneficidilegge']->defaultvalue = worktable_parse_default_expression('N', $form);
 }
 new form_datetime($form, 'dataoraregistrazione', 'DATA/ORA REGISTRAZIONE', false, '');
 if (is_object($form->fields['dataoraregistrazione'])) {
     $form->fields['dataoraregistrazione']->hslots = 60;
 }
 if (is_object($form->fields['dataoraregistrazione'])) {
     $form->fields['dataoraregistrazione']->defaultvalue = date('Y-m-d H:i:s');
 }
 new form_datetime($form, 'dataorauscitadefinitiva', 'DATA/ORA USCITA DEFINITIVA', false, '');
 if (is_object($form->fields['dataorauscitadefinitiva'])) {
     $form->fields['dataorauscitadefinitiva']->hslots = 60;
 }
 new form_textbox($form, 'codicebadge', 'CODICE BADGE', false, 30, 255, '');
 if (is_object($form->fields['codicebadge'])) {
     $form->fields['codicebadge']->defaultvalue = worktable_parse_default_expression('${prefissocodiceabarre}${codice riga}', $form);
 }
 new form_textbox($form, 'turno', 'TURNO', false, 30, 10, '');
 if (is_object($form->fields['turno'])) {
     $form->fields['turno']->defaultvalue = worktable_get_last_value_from_file('TURNO');
 }
 if (is_object($form->fields['turno'])) {
     $form->fields['turno']->write_value_to_file = worktable_get_safe_temp_filename('TURNO');
 }
 new form_textbox($form, 'note', 'NOTE', false, 30, 255, '');
 if (CAMILA_WORKTABLE_SPECIAL_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_selected', camila_get_translation('camila.worktable.field.selected'), camila_get_translation('camila.worktable.options.noyes'));
 }
 if (CAMILA_WORKTABLE_SELECTED_ICON_ENABLED || $_CAMILA['adm_user_group'] == CAMILA_ADM_USER_GROUP) {
     new form_static_listbox($form, 'cf_bool_is_special', camila_get_translation('camila.worktable.field.special'), camila_get_translation('camila.worktable.options.noyes'));
 }