<?
// Form New Mod Contact
$FORMS[pratiche][0]["name"]="new_prat";
$FORMS[pratiche][0]["onpost"]="action::db||table::pratiche||type::add||wf::id";
$FORMS[pratiche][0]["ignore"]="pr_valore_ignore";
$FORMS[pratiche][0]["Fields"]["pr_codice"]["title"]=PRATICHE_CODE;
$FORMS[pratiche][0]["Fields"]["pr_codice"]["content"]="text||||wid::40";
$FORMS[pratiche][0]["Fields"]["pr_codice"]["er_check"]="min::4;;nodupe::1";
$FORMS[pratiche][0]["Fields"]["pr_oggetto"]["title"]=PRATICHE_SUBJ;
$FORMS[pratiche][0]["Fields"]["pr_oggetto"]["content"]="text||||wid::40";
$FORMS[pratiche][0]["Fields"]["pr_oggetto"]["er_check"]="min::5";
$FORMS[pratiche][0]["Fields"]["pr_ref_idcliente"]["title"]=PRATICHE_CUSTOMER;
$FORMS[pratiche][0]["Fields"]["pr_ref_idcliente"]["content"]="tselect||||url::".$CONF[url_base].$CONF[dir_modules]."contact/pages/contact_search_div.php?form_id=listpratiche&form_page=1&nome=";
$FORMS[pratiche][0]["Fields"]["pr_ref_idcliente"]["from_sql"]="SELECT * FROM contact p WHERE %[PERM]% AND codice LIKE '%[VAL]%%' order by codice asc||val::id;;text::codice;;text2::nome;;fid::0;;perm::1;;mod::contact;;mul::0";
$FORMS[pratiche][0]["Fields"]["pr_ref_idcliente"]["er_check"]="min::1";
$FORMS[pratiche][0]["Fields"]["pr_ref_idbenefic"]["title"]=PRATICHE_BENEF;
$FORMS[pratiche][0]["Fields"]["pr_ref_idbenefic"]["content"]="mselect||||url::".$CONF[url_base].$CONF[dir_modules]."contact/pages/contact_search_div2.php?form_id=listpratiche&form_page=1;;size::5;;word::".PRATICHE_BENEF;
$FORMS[pratiche][0]["Fields"]["pr_ref_idbenefic"]["from_sql"]="SELECT * FROM contact  WHERE id ='%ID%' order by nome asc||val::id;;text::%codice%;;perm::1;;mod::contact";
$FORMS[pratiche][0]["Fields"]["pr_ref_idbenefic"]["er_check"]="";

$FORMS[pratiche][0]["Fields"]["pr_ref_idavvr"]["title"]=PRATICHE_AVVR;
$FORMS[pratiche][0]["Fields"]["pr_ref_idavvr"]["content"]="mselect||||url::".$CONF[url_base].$CONF[dir_modules]."contact/pages/contact_search_div2.php?form_id=listpratiche&form_page=1;;size::5;;word::".PRATICHE_AVVR;
$FORMS[pratiche][0]["Fields"]["pr_ref_idavvr"]["from_sql"]="SELECT * FROM contact p WHERE id ='%ID%' order by nome asc||val::id;;text::%codice%;;perm::1;;mod::contact";
$FORMS[pratiche][0]["Fields"]["pr_ref_idavvr"]["er_check"]="";
$FORMS[pratiche][0]["Fields"]["pr_ref_idaltri"]["title"]=PRATICHE_OTHERS;
$FORMS[pratiche][0]["Fields"]["pr_ref_idaltri"]["content"]="mselect||||url::".$CONF[url_base].$CONF[dir_modules]."contact/pages/contact_search_div2.php?form_id=listpratiche&form_page=1;;size::5;;word::".PRATICHE_OTHERS;
$FORMS[pratiche][0]["Fields"]["pr_ref_idaltri"]["from_sql"]="SELECT * FROM contact p WHERE id ='%ID%' order by nome asc||val::id;;text::%codice%;;perm::1;;mod::contact";
$FORMS[pratiche][0]["Fields"]["pr_tipo"]["title"]=FW_TYPE;
$FORMS[pratiche][0]["Fields"]["pr_tipo"]["content"]="select||||";
$FORMS[pratiche][0]["Fields"]["pr_tipo"]["from_sql"]="SELECT * FROM INT_pratiche_tipo||val::codice;;text::%ttp_desc%;;perm::0;;mod::pratiche";
$FORMS[pratiche][0]["Fields"]["pr_operatore"]["title"]=PRATICHE_RESP;
$FORMS[pratiche][0]["Fields"]["pr_operatore"]["content"]="tselect||".$_SESSION[fw_userid]."||url::".$CONF[url_base].$CONF[dir_modules]."admin/pages/user_search_div.php?form_id=listpratiche&form_page=1&codice=";
$FORMS[pratiche][0]["Fields"]["pr_operatore"]["from_sql"]="SELECT * FROM ".$CONF[auth_db_table]." WHERE codice LIKE '%[VAL]%%' order by codice asc||val::id;;text::codice;;text2::nome;;perm::0;;mul::0;;tab::users";
$FORMS[pratiche][0]["Fields"]["pr_operatore"]["er_check"]="min::1";
$FORMS[pratiche][0]["Fields"]["pr_comp_cod"]["title"]=PRATICHE_AUT_COMP;
$FORMS[pratiche][0]["Fields"]["pr_comp_cod"]["content"]="select||||opt::".PRATICHE_AC_STRA."=>STRA,,".PRATICHE_AC_CONC."=>CONC,,".PRATICHE_AC_GDPA."=>GDPA,,".PRATICHE_AC_TRIB."=>TRIB,,".PRATICHE_AC_AMMN."=>AMMN,,".PRATICHE_AC_CA."=>C.A.,,".PRATICHE_AC_CC."=>C.C.,,".PRATICHE_AC_COST."=>COST";
$FORMS[pratiche][0]["Fields"]["pr_comp_cod"]["er_check"]="";
$FORMS[pratiche][0]["Fields"]["pr_comp_desc"]["title"]=PRATICHE_AUT_COMP_DESC;
$FORMS[pratiche][0]["Fields"]["pr_comp_desc"]["content"]="text||||wid::30";
$FORMS[pratiche][0]["Fields"]["pr_comp_desc"]["er_check"]="";
$FORMS[pratiche][0]["Fields"]["pr_nruolo"]["title"]=PRATICHE_NRUOLO;
$FORMS[pratiche][0]["Fields"]["pr_nruolo"]["content"]="text||||wid::30";
$FORMS[pratiche][0]["Fields"]["pr_nruolo"]["er_check"]="";
$FORMS[pratiche][0]["Fields"]["pr_nprovv"]["title"]=PRATICHE_NPROV;
$FORMS[pratiche][0]["Fields"]["pr_nprovv"]["content"]="text||||wid::30";
$FORMS[pratiche][0]["Fields"]["pr_nprovv"]["er_check"]="";
//$FORMS[pratiche][0]["Fields"]["pr_valore_ignore"]["content"]="checkbox||||mul::0;;size::1;;opt:: ".PRATICHE_VAL_IND."=>-1,, ".PRATICHE_VAL_INDEXT."=>-2";
$FORMS[pratiche][0]["Fields"]["pr_valore"]["title"]=PRATICHE_VALUE;
$FORMS[pratiche][0]["Fields"]["pr_valore"]["content"]="pratval||||wid::10";
$FORMS[pratiche][0]["Fields"]["pr_valore"]["er_check"]="min::1;;type::float";
$FORMS[pratiche][0]["Fields"]["pr_fido"]["title"]=PRATICHE_FIDO;
$FORMS[pratiche][0]["Fields"]["pr_fido"]["content"]="text||||wid::30";
$FORMS[pratiche][0]["Fields"]["pr_fido"]["er_check"]="";
$FORMS[pratiche][0]["Fields"]["pr_giudice"]["title"]=PRATICHE_GIUD;
$FORMS[pratiche][0]["Fields"]["pr_giudice"]["content"]="text||||wid::30";
$FORMS[pratiche][0]["Fields"]["pr_giudice"]["er_check"]="";
$FORMS[pratiche][0]["Fields"]["pr_criterio"]["title"]=PRATICHE_CRIT;
$FORMS[pratiche][0]["Fields"]["pr_criterio"]["content"]="text||||wid::7";
$FORMS[pratiche][0]["Fields"]["pr_criterio"]["er_check"]="min::4;;max::5;;type::crit";
$FORMS[pratiche][0]["Fields"]["pr_data_inizio"]["title"]=PRATICHE_START_PREST;
$FORMS[pratiche][0]["Fields"]["pr_data_inizio"]["content"]="date||".date("Y-m-d")."||";
$FORMS[pratiche][0]["Fields"]["pr_on_orar"]["title"]=PRATICHE_HOUR_PRICE;
$FORMS[pratiche][0]["Fields"]["pr_on_orar"]["content"]="text||||wid::10";
$FORMS[pratiche][0]["Fields"]["pr_on_orar"]["er_check"]="type::float";
$FORMS[pratiche][0]["Fields"]["pr_perc_onor"]["title"]=PRATICHE_PERC_ONOR;
$FORMS[pratiche][0]["Fields"]["pr_perc_onor"]["content"]="text||||wid::10";
$FORMS[pratiche][0]["Fields"]["pr_perc_onor"]["er_check"]="type::float";
$FORMS[pratiche][0]["Fields"]["pr_dept"]["title"]=PRATICHE_DEPT;
$FORMS[pratiche][0]["Fields"]["pr_dept"]["content"]="select||||mul::0;;opt::".FW_NONE."=>0";
$FORMS[pratiche][0]["Fields"]["pr_dept"]["from_sql"]="SELECT * FROM ".$CONF[auth_groups_table]." WHERE tipo=1||val::id;;text::%name%";
//$FORMS[pratiche][0]["Fields"]["pr_dept"]["er_check"]="min::1";
$FORMS[pratiche][0]["Fields"]["pr_uff"]["title"]=PRATICHE_UFF;
$FORMS[pratiche][0]["Fields"]["pr_uff"]["content"]="select||||mul::0;;opt::".FW_NONE."=>0";
$FORMS[pratiche][0]["Fields"]["pr_uff"]["from_sql"]="SELECT * FROM ".$CONF[auth_groups_table]." WHERE tipo=2||val::id;;text::%name%";
$FORMS[pratiche][0]["Fields"]["pr_referral"]["title"]=PRATICHE_REFERRAL;
$FORMS[pratiche][0]["Fields"]["pr_referral"]["content"]="text||||wid::30";
$FORMS[pratiche][0]["Fields"]["pr_uff_orig"]["title"]=PRATICHE_UORIG;
$FORMS[pratiche][0]["Fields"]["pr_uff_orig"]["content"]="select||||mul::0;;opt::".FW_NONE."=>0";
$FORMS[pratiche][0]["Fields"]["pr_uff_orig"]["from_sql"]="SELECT * FROM ".$CONF[auth_groups_table]." WHERE tipo=2||val::id;;text::%name%";
$FORMS[pratiche][0]["Fields"]["pr_prof_orig"]["title"]=PRATICHE_PORIG;
$FORMS[pratiche][0]["Fields"]["pr_prof_orig"]["content"]="tselect||||url::".$CONF[url_base].$CONF[dir_modules]."admin/pages/user_search_div.php?form_id=listpratiche&form_page=1&codice=";
$FORMS[pratiche][0]["Fields"]["pr_prof_orig"]["from_sql"]="SELECT * FROM ".$CONF[auth_db_table]." WHERE codice LIKE '%[VAL]%%' order by codice asc||val::id;;text::codice;;text2::nome;;perm::0;;mul::0;;tab::users";


$FORMS[pratiche][0]["Fields"]["note"]["title"]=FW_NOTE;
$FORMS[pratiche][0]["Fields"]["note"]["content"]="textarea||||col::40;;row::5";
$FORMS[pratiche][0]["Fields"]["note"]["er_check"]="";
$FORMS[pratiche][0]["Fields"]["permessi"]["title"]=FW_PERMISSION;
$FORMS[pratiche][0]["Fields"]["permessi"]["content"]="permission||||";
$FORMS[pratiche][0]["Fields"]["send"]["content"]="submit||".PRATICHE_ADD."||";



$FORMS[pratiche][1]["name"]="note";
$FORMS[pratiche][1]["onpost"]="action::db||table::note||type::add||wf::id";
$FORMS[pratiche][1]["ignore"]="";
$FORMS[pratiche][1]["Fields"]["nota"]["title"]=PRATICHE_SUBJ;
$FORMS[pratiche][1]["Fields"]["nota"]["content"]="textarea||||col::60;;row::10";
$FORMS[pratiche][1]["Fields"]["type"]["content"]="hidden||".$_GET[type]."||";
$FORMS[pratiche][1]["Fields"]["ref_id"]["content"]="hidden||".$_GET[ref_id]."||";

$FORMS[pratiche][1]["Fields"]["send"]["content"]="submit||".NOTE_ADD."||";


?>
