コード例 #1
0
     $form->fields['id']->updatable = false;
     $form->fields['id']->forcedraw = true;
 }
 new form_integer($form, 'numero', 'NUMERO', true, 5, 255, 'unique');
 if (is_object($form->fields['numero'])) {
     $form->fields['numero']->defaultvalue = worktable_get_next_autoincrement_value('worktable_worktable13', 'numero');
 }
 new form_textbox($form, 'organizzazione', 'ORGANIZZAZIONE', true, 30, 255, '');
 new form_textbox($form, 'marcaemodello', 'MARCA E MODELLO', true, 30, 255, '');
 new form_textbox($form, 'targa', 'TARGA', false, 30, 255, '');
 new form_static_listbox($form, 'x', '4X4', 'n.d.,N,S', false, '');
 new form_static_listbox($form, 'cassone', 'CASSONE', 'n.d.,No,Aperto,Chiuso', false, '');
 new form_integer($form, 'postiasedere', 'POSTI A SEDERE', false, 5, 255, '');
 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_date($form, 'dataarrivo', 'DATA ARRIVO', false, '');
 if (is_object($form->fields['dataarrivo'])) {
     $form->fields['dataarrivo']->defaultvalue = date('Y-m-d');
 }
 new form_date($form, 'datapartenza', 'DATA PARTENZA', false, '');
 new form_integer($form, 'kmallarrivo', 'KM ALL\'ARRIVO', false, 5, 255, '');
 new form_integer($form, 'kmallapartenza', 'KM ALLA PARTENZA', false, 5, 255, '');
 new form_datetime($form, 'dataoraregistrazione', 'DATA/ORA REGISTRAZIONE', false, '');
 if (is_object($form->fields['dataoraregistrazione'])) {
     $form->fields['dataoraregistrazione']->hslots = 60;
 }
コード例 #2
0
         $_CAMILA['db_genid'] = $_CAMILA['db']->GenID(CAMILA_APPLICATION_PREFIX . 'worktableseq', 100000);
         $form->fields['id']->defaultvalue = $_CAMILA['db_genid'];
     }
     $form->fields['id']->updatable = false;
     $form->fields['id']->forcedraw = true;
 }
 new form_textbox($form, 'codicebadge', 'CODICE BADGE', false, 30, 255, '');
 if (is_object($form->fields['codicebadge'])) {
     $form->fields['codicebadge']->autofocus = true;
 }
 new form_textbox($form, 'cognome', 'COGNOME', true, 30, 255, '');
 new form_textbox($form, 'nome', 'NOME', true, 30, 255, '');
 new form_textbox($form, 'organizzazioneentesocieta', 'ORGANIZZAZIONE/ENTE/SOCIETA\'', false, 30, 255, '');
 new form_static_listbox($form, 'tipopasto', 'TIPO PASTO', 'COLAZIONE,PRANZO,CENA', 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);
 }