<?
// Form USER
$FORMS[admin][0]["name"]="new_user";
$FORMS[admin][0]["onpost"]="action::db||table::".$CONF[auth_db_table]."||type::add||wf::id";
$FORMS[admin][0]["ignore"]="gruppi;;ref_prat";
$FORMS[admin][0]["Fields"]["login"]["title"]=FW_LOGIN;
$FORMS[admin][0]["Fields"]["login"]["content"]="text||||wid::40";
$FORMS[admin][0]["Fields"]["login"]["er_check"]="min::5;;nodupe::1";
$FORMS[admin][0]["Fields"]["password"]["title"]=FW_PASSWORD;
$FORMS[admin][0]["Fields"]["password"]["content"]="password||||wid::40";
$FORMS[admin][0]["Fields"]["password"]["er_check"]="min::8;;type::alfanum";
$FORMS[admin][0]["Fields"]["codice"]["title"]=FW_CODE;
$FORMS[admin][0]["Fields"]["codice"]["content"]="text||||wid::6";
$FORMS[admin][0]["Fields"]["codice"]["er_check"]="min::1;;max::4;;nodupe::1";
$FORMS[admin][0]["Fields"]["nome"]["title"]=FW_NAME;
$FORMS[admin][0]["Fields"]["nome"]["content"]="text||||wid::40";
$FORMS[admin][0]["Fields"]["nome"]["er_check"]="min::2";
$FORMS[admin][0]["Fields"]["mansione"]["title"]=ADMIN_USER_MANSIONE;
$FORMS[admin][0]["Fields"]["mansione"]["content"]="text||||wid::40";
$FORMS[admin][0]["Fields"]["mansione"]["er_check"]="";
$FORMS[admin][0]["Fields"]["language"]["title"]=FW_LANGUAGE;
$FORMS[admin][0]["Fields"]["language"]["content"]="select||it||opt::Italiano=>it,,English=>en,,Bulgar=>bg,,Romeno=>ro,,Serbian=>se,,Deutch=>de";
$FORMS[admin][0]["Fields"]["onorario"]["title"]=ADMIN_USER_ON_ORARIO;
$FORMS[admin][0]["Fields"]["onorario"]["content"]="text||||wid::6";
$FORMS[admin][0]["Fields"]["onorario"]["er_check"]="type::float";
$FORMS[admin][0]["Fields"]["ref_prat"]["title"]="";
$FORMS[admin][0]["Fields"]["ref_prat"]["content"]="checkbox||1||size::1;;opt:: ".ADMIN_USER_MAKE_PERSPRAT."=>1";
#$FORMS[admin][0]["Fields"]["gruppi"]["title"]=ADMIN_USER_GROUPS;
#$FORMS[admin][0]["Fields"]["gruppi"]["content"]="select||||mul::1;;size::8";
#$FORMS[admin][0]["Fields"]["gruppi"]["from_sql"]="SELECT * FROM ".$CONF[auth_groups_table]." order by name asc||val::id;;text::%name%;;perm::0";
$FORMS[admin][0]["Fields"]["gruppi"]["title"]=ADMIN_USER_GROUPS;
$FORMS[admin][0]["Fields"]["gruppi"]["content"]="mselect||||url::".$CONF[url_base].$CONF[dir_modules]."admin/pages/group_search_div2.php?form_id=search_group&form_page=1&gtipo=1;;size::5;;word::".ADMIN_USER_GROUPS;
$FORMS[admin][0]["Fields"]["gruppi"]["from_sql"]="SELECT * FROM ".$CONF[auth_groups_table]." WHERE id='%ID%'||val::id;;text::%name%";
$FORMS[admin][0]["Fields"]["ono_prat"]["title"]=ADMIN_USER_ONOR_PRAT;
$FORMS[admin][0]["Fields"]["ono_prat"]["content"]="ug_value||||type::P";
$FORMS[admin][0]["Fields"]["ono_cli"]["title"]=ADMIN_USER_ONOR_CLI;
$FORMS[admin][0]["Fields"]["ono_cli"]["content"]="ug_value||||type::C";
$FORMS[admin][0]["Fields"]["ono_tipo"]["title"]=ADMIN_USER_ONOR_TIPO;
$FORMS[admin][0]["Fields"]["ono_tipo"]["content"]="ug_value||||type::T";
$FORMS[admin][0]["Fields"]["last_pw_change"]["content"]="hidden||".date("Y-m-d")."||";
$FORMS[admin][0]["Fields"]["admin"]["title"]="";
$FORMS[admin][0]["Fields"]["admin"]["content"]="checkbox||||size::1;;opt:: ".ADMIN_USER_ADMIN."=>1";
$FORMS[admin][0]["Fields"]["move_prat"]["content"]="checkbox||||size::1;;opt:: ".ADMIN_USER_MOVEPRAT."=>1";
$FORMS[admin][0]["Fields"]["pratiche_add"]["content"]="checkbox||||size::1;;opt:: ".ADMIN_USER_ADDPRAT."=>1";
$FORMS[admin][0]["Fields"]["send"]["content"]="submit||".ADMIN_USER_ADD."||";


// CALENDAR TYPE
$FORMS[admin][1]["name"]="new_ct";
$FORMS[admin][1]["onpost"]="action::db||table::INT_calendar_tipo||type::add||wf::id";
$FORMS[admin][1]["ignore"]="";
$FORMS[admin][1]["Fields"]["ttsid"]["title"]=FW_CODE;
$FORMS[admin][1]["Fields"]["ttsid"]["content"]="text||||wid::40";
$FORMS[admin][1]["Fields"]["ttsid"]["er_check"]="max::4;;min::1";
$FORMS[admin][1]["Fields"]["tts_desc"]["title"]=FW_DESC;
$FORMS[admin][1]["Fields"]["tts_desc"]["content"]="text||||wid::40";
$FORMS[admin][1]["Fields"]["send"]["content"]="submit||".ADMIN_CT_ADD."||";


// PRATICHE TYPE
$FORMS[admin][2]["name"]="new_tp";
$FORMS[admin][2]["onpost"]="action::db||table::INT_pratiche_tipo||type::add||wf::id";
$FORMS[admin][2]["ignore"]="";
$FORMS[admin][2]["Fields"]["codice"]["title"]=FW_CODE;
$FORMS[admin][2]["Fields"]["codice"]["content"]="text||||wid::40";
$FORMS[admin][2]["Fields"]["codice"]["er_check"]="max::4;min::2";
$FORMS[admin][2]["Fields"]["ttp_desc"]["title"]=FW_DESC;
$FORMS[admin][2]["Fields"]["ttp_desc"]["content"]="text||||wid::40";
$FORMS[admin][2]["Fields"]["send"]["content"]="submit||".ADMIN_TP_ADD."||";


// GROUPS FORM
$FORMS[admin][3]["name"]="new_group";
$FORMS[admin][3]["onpost"]="action::db||table::".$CONF[auth_groups_table]."||type::add||wf::id";
$FORMS[admin][3]["ignore"]="";
$FORMS[admin][3]["Fields"]["name"]["title"]=FW_NAME;
$FORMS[admin][3]["Fields"]["name"]["content"]="text||||wid::40";
$FORMS[admin][3]["Fields"]["name"]["er_check"]="max::50;min::3";
$FORMS[admin][3]["Fields"]["descr"]["title"]=FW_DESC;
$FORMS[admin][3]["Fields"]["descr"]["content"]="text||||wid::40";
$FORMS[admin][3]["Fields"]["descr"]["er_check"]="max::254";
$FORMS[admin][3]["Fields"]["on_orar"]["title"]=ADMIN_ON_ORAR;
$FORMS[admin][3]["Fields"]["on_orar"]["content"]="text||0,00||wid::9";
$FORMS[admin][3]["Fields"]["on_orar"]["er_check"]="max::10";
$FORMS[admin][3]["Fields"]["tipo"]["content"]="checkbox||0||opt:: ".ADMIN_GROUP."=>0,, ".ADMIN_DIPART."=>1,, ".ADMIN_OFFICE."=>2;;size::1";
$FORMS[admin][3]["Fields"]["tipo"]["er_check"]="max::254";
$FORMS[admin][3]["Fields"]["send"]["content"]="submit||".ADMIN_GROUP_ADD."||";


// TARIFFE FORM
$FORMS[admin][4]["name"]="new_tariffa";
$FORMS[admin][4]["onpost"]="action::db||table::INT_tariffe||type::add||wf::id";
$FORMS[admin][4]["ignore"]="";
$FORMS[admin][4]["Fields"]["tatid"]["title"]=FW_CODE;
$FORMS[admin][4]["Fields"]["tatid"]["content"]="text||||wid::40";
$FORMS[admin][4]["Fields"]["tatid"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_desc"]["title"]=FW_DESC;
$FORMS[admin][4]["Fields"]["tat_desc"]["content"]="text||||wid::40";
$FORMS[admin][4]["Fields"]["tat_desc"]["er_check"]="max::250";
$FORMS[admin][4]["Fields"]["tat_unita"]["title"]=ADMIN_TA_UNIT;
$FORMS[admin][4]["Fields"]["tat_unita"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_unita"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_quantita"]["title"]=ADMIN_TA_QUANT;
$FORMS[admin][4]["Fields"]["tat_quantita"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_quantita"]["er_check"]="max::10";
$FORMS[admin][4]["Fields"]["tat_imp"]["title"]=ADMIN_TA_IMP;
$FORMS[admin][4]["Fields"]["tat_imp"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_imp"]["er_check"]="max::20";
$FORMS[admin][4]["Fields"]["tat_imp_molt"]["title"]=ADMIN_TA_IMPM;
$FORMS[admin][4]["Fields"]["tat_imp_molt"]["content"]="text||||wid::2";
$FORMS[admin][4]["Fields"]["tat_imp_molt"]["er_check"]="max::1";
$FORMS[admin][4]["Fields"]["tat_nonimp"]["title"]=ADMIN_TA_NON_IMP;
$FORMS[admin][4]["Fields"]["tat_nonimp"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_nonimp"]["er_check"]="max::20";
$FORMS[admin][4]["Fields"]["tat_nonimp_molt"]["title"]=ADMIN_TA_NON_IMPM;
$FORMS[admin][4]["Fields"]["tat_nonimp_molt"]["content"]="text||||wid::2";
$FORMS[admin][4]["Fields"]["tat_nonimp_molt"]["er_check"]="max::1";
$FORMS[admin][4]["Fields"]["tat_diritti"]["title"]=ADMIN_TA_DIR;
$FORMS[admin][4]["Fields"]["tat_diritti"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_diritti"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_stragiudiziali"]["title"]=ADMIN_TA_STRAG;
$FORMS[admin][4]["Fields"]["tat_stragiudiziali"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_stragiudiziali"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_ccostituzionale"]["title"]=ADMIN_TA_CCOST;
$FORMS[admin][4]["Fields"]["tat_ccostituzionale"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_ccostituzionale"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_conciliazione"]["title"]=ADMIN_TA_CONC;
$FORMS[admin][4]["Fields"]["tat_conciliazione"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_conciliazione"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_pretura"]["title"]=ADMIN_TA_PRET;
$FORMS[admin][4]["Fields"]["tat_pretura"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_pretura"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_tribunale"]["title"]=ADMIN_TA_TRIB;
$FORMS[admin][4]["Fields"]["tat_tribunale"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_tribunale"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_amministrative"]["title"]=ADMIN_TA_AMN;
$FORMS[admin][4]["Fields"]["tat_amministrative"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_amministrative"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_cappello"]["title"]=ADMIN_TA_CAPP;
$FORMS[admin][4]["Fields"]["tat_cappello"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_cappello"]["er_check"]="max::5";
$FORMS[admin][4]["Fields"]["tat_ccassazione"]["title"]=ADMIN_TA_CASS;
$FORMS[admin][4]["Fields"]["tat_ccassazione"]["content"]="text||||wid::5";
$FORMS[admin][4]["Fields"]["tat_ccassazione"]["er_check"]="max::5";


// PRATICHE TYPE
$FORMS[admin][5]["name"]="new_tp";
$FORMS[admin][5]["onpost"]="action::db||table::INT_document_template||type::add||wf::id";
$FORMS[admin][5]["ignore"]="file";
$FORMS[admin][5]["Fields"]["descr"]["title"]=FW_DESC;
$FORMS[admin][5]["Fields"]["descr"]["content"]="text||||wid::40";
$FORMS[admin][5]["Fields"]["file"]["title"]=FW_FILE;
$FORMS[admin][5]["Fields"]["file"]["content"]="file||||";
$FORMS[admin][5]["Fields"]["send"]["content"]="submit||".ADMIN_TEMPL_ADD."||";



//USER FORM RESTRICTED
$FORMS[admin][6]["name"]="new_user";
$FORMS[admin][6]["onpost"]="action::db||table::".$CONF[auth_db_table]."||type::add||wf::id";
$FORMS[admin][6]["ignore"]="login;;codice;;onorario";
$FORMS[admin][6]["Fields"]["login"]["title"]=FW_LOGIN;
$FORMS[admin][6]["Fields"]["login"]["content"]="htmltext||".$_SESSION[user][login]."||wid::40;;disab::1";
$FORMS[admin][6]["Fields"]["password"]["title"]=FW_PASSWORD;
$FORMS[admin][6]["Fields"]["password"]["content"]="password||||wid::40";
$FORMS[admin][6]["Fields"]["password"]["er_check"]="min::8;;type::alfanum";
$FORMS[admin][6]["Fields"]["codice"]["title"]=FW_CODE;
$FORMS[admin][6]["Fields"]["codice"]["content"]="htmltext||".$_SESSION[user][codice]."||";
$FORMS[admin][6]["Fields"]["nome"]["title"]=FW_NAME;
$FORMS[admin][6]["Fields"]["nome"]["content"]="text||||wid::40";
$FORMS[admin][6]["Fields"]["nome"]["er_check"]="min::2";
$FORMS[admin][6]["Fields"]["language"]["title"]=FW_LANGUAGE;
$FORMS[admin][6]["Fields"]["language"]["content"]="select||it||opt::Italiano=>it,,Inglese=>en,,Bulgaro=>bg,,Romeno=>ro,,Serbian=>se,,Deutch=>de";
$FORMS[admin][6]["Fields"]["onorario"]["title"]=ADMIN_USER_ON_ORARIO;
$FORMS[admin][6]["Fields"]["onorario"]["content"]="htmltext||".$_SESSION[user][onorario]."||";
$FORMS[admin][6]["Fields"]["onorario"]["er_check"]="";
$FORMS[admin][6]["Fields"]["last_pw_change"]["content"]="hidden||".date("Y-m-d")."||";

$FORMS[admin][6]["Fields"]["send"]["content"]="submit||".ADMIN_USER_ADD."||";



// LOCK
$FORMS[admin][7]["name"]="new_tp";
$FORMS[admin][7]["onpost"]="action::db||table::system_lock||type::add||wf::id";
$FORMS[admin][7]["ignore"]="file";
$FORMS[admin][7]["Fields"]["lock_date"]["title"]=ADMIN_LOCK_DATE;
$FORMS[admin][7]["Fields"]["lock_date"]["content"]="date||".date("Y-m-d")."||wid::40";
$FORMS[admin][7]["Fields"]["lock_date"]["er_check"]="min::10";
$FORMS[admin][7]["Fields"]["lock_time"]["title"]=ADMIN_LOCK_TIME;
$FORMS[admin][7]["Fields"]["lock_time"]["content"]="text||".date("H:i:s")."||wid::10";
$FORMS[admin][7]["Fields"]["lock_time"]["er_check"]="min::8";
$FORMS[admin][7]["Fields"]["min_notify"]["title"]=ADMIN_LOCK_MINALERT;
$FORMS[admin][7]["Fields"]["min_notify"]["content"]="text||5||wid::10";
$FORMS[admin][7]["Fields"]["min_notify"]["er_check"]="min::1";
$FORMS[admin][7]["Fields"]["hash_unlock"]["title"]=ADMIN_LOCK_HASH;
$FORMS[admin][7]["Fields"]["hash_unlock"]["content"]="password||||wid::20";
$FORMS[admin][7]["Fields"]["hash_unlock"]["er_check"]="min::4";
$FORMS[admin][7]["Fields"]["descr"]["title"]=FW_DESC;
$FORMS[admin][7]["Fields"]["descr"]["content"]="text||||wid::50";
$FORMS[admin][7]["Fields"]["send"]["content"]="submit||".ADMIN_LOCK_ADD."||";

?>
