="2007") { $tabgarenome="tabgare2007"; } else { $tabgarenome="tabgare"; } include("apici.php"); include("checksocieta.php"); if ($utente=="FFORMA1" || $utente=="STEFANO" || $utente=="TNBSII1" || $utente=="STTNRO1") { $utente_leva = 1; } else { $utente_leva = 0; } if ($level=="R") { $utente_leva = 1; } if ($utente=="FFORMA1" || $utente=="STEFANO" || $utente=="TNBSII1" || $utente=="GTTNAP1" || $utente=="DAMICO" || $utente=="TOSI" || $utente=="CASTRUCCI" || $utente=="FRANCESCO") { $selezione_singola=1; } else { $selezione_singola=0; } // ---------------------------- // Annoincorso SI/NO if(!$db->execute("select annoincorso from annoincorso limit 1")) { echo $db->geterror().": $db->query
"; } if(!$db->getNumRow()) { $xerro = 1; $descerrore = "Errore su Tab. Anno in Corso."; } else { $row = $db->getRow(0); $annoincorso=$row['annoincorso']; } $act_update = 0; $act_insert = 0; $act_input = 0; $act_search = 0; $act_modify = 0; $act_delete = 0; $act_list = 0; $act_rientro = 0; $act_show = 1; $act_inputcod = 0; $act_storico = 0; $act_prestito = 0; $act_trasferimento = 0; $act_scrivitrapre = 0; $act_updpretra = 0; $act_updpretrad = 0; $act_tecnici = 0; $stampa_etichette = 0; $act_risultati = 0; $act_salva_download = 0; $stampa_tessere = 0; $file_tessere = 0; if(isSet($sttess) && $sttess == 1) { $stampa_tessere = 1; } if(isSet($fitess) && $fitess == 1) { $stampa_tessere = 1; $file_tessere = 1; } if(!isSet($act)) { $act = "sea"; } if(!isSet($xquiflag)) { $xquiflag = "0"; } if($stampa_tessere) { if($file_tessere) { ?>
"; //sonoquiokprint ""; } else { if($act=="fite" || $act=="sta" || $act=="eti") { ?> "; } else if($act == "eti") { print ""; } else if($act == "tra") { print ""; } else if($act == "tps") { print ""; } else { print ""; } } $titolo = ""; //print "$act"; switch($act) { case "upd": $act_update = 1; $titolo = "Aggiornamento Dati"; break; case "ins": $act_insert = 1; $titolo = "Inserimento Nuovo Tesserato"; //**** //if($gestione<$annoincorso && $level!="N") //if($gestione>="2008" && $level!="N") /******************************** if($gestione>="2008") { print "
L'attività è stata bloccata per l'anno di gestione selezionato."; $act_insert = 0; } ********************************/ //****/ break; case "inp": // Necessario perchè sono state inserite // le variabili anche in input per stranieri $regione = ""; $provincia = ""; $cognome = ""; $nome = ""; $categoria = ""; $societa = ""; $straniero = ""; $nazione = ""; $autorizzato = ""; $nascita = ""; // Fine -------------------------------- $act_input = 1; $titolo = "Inserimento Nuovo Tesserato"; //if($gestione<$annoincorso && $level!="N") //if($gestione>="2008" && $level!="N") /******************************** if($gestione>="2008") { print "
L'attività è stata bloccata per l'anno di gestione selezionato."; $act_input = 0; } ********************************/ break; case "mod": $act_modify = 1; $titolo = "Aggiornamento Dati"; break; case "del": $act_delete = 1; break; case "tra": $titolo = "Trasferimenti/Prestiti: Ricerca"; $act_search = 4; if($annoincorso!=$gestione) { print "
Le attività relative ai Trasferimenti/Prestiti possono essere fatte solo per l'anno in corso (".$annoincorso.")."; $act_search = 0; } break; case "lis": $act_list = 1; if(isSet($sttess) && $sttess == 1) { $titolo = "Stampa Tessere"; } else { $titolo = "Aggiornamento Dati"; } break; // Stranieri da Autorizzare case "ist": $act_input = 3; $titolo = "Inserimento Tesserato"; if($level!="N") { print "
L'attività può essere fatta solo da un utente nazionale."; $act_input = 0; } break; // Storico case "sto": $act_modify = 1; $act_storico = 1; $act_show = 0; $titolo = "Storico Tesserato"; break; // Tecnici case "tec": $act_modify = 1; $act_tecnici = 1; $act_show = 0; $titolo = "Tecnici del Tesserato"; break; // Risultati case "ris": $act_modify = 1; $act_risultati = 1; $act_show = 0; $sort = $tipo_ord; $titolo = "Risultati Tesserato"; break; // Righe per Rinnovo case "inb": $act_insert = 2; $titolo = "Rinnovo Tesserato"; break; case "mob": $act_modify = 2; $titolo = "Rinnovo Tesserato"; break; case "moc": $act_modify = 2; $titolo = "Rinnovo Tesserato"; $act_rientro = 1; break; case "lib": $act_list = 2; $titolo = "Rinnovo Tesserato"; break; case "seb": $titolo = "Rinnovo: Parametri di Ricerca"; $act_search = 2; //if($gestione<$annoincorso && $level!="N") //if($gestione>="2008" && $level!="N") /******************************** if($gestione>="2008") { print "
L'attività è stata bloccata per l'anno di gestione selezionato."; $act_search = 0; } ********************************/ if($level!="N") { print "
L'attività può essere fatta solo da un utente nazionale."; $act_search = 0; } break; case "salvadownload": $act_salva_download = 1; $act_show = 0; break; break; // Fine Righe per Rinnovo case "stte": $titolo = "Stampa Tessere: Parametri di Ricerca"; $act_search = 1; $stampa_tessere = 1; break; case "fite": $titolo = "File Nuove Tessere: Parametri di Ricerca"; $act_search = 1; $stampa_tessere = 1; $file_tessere = 1; break; case "sta": $titolo = "Stampe: Parametri di Ricerca"; $act_search = 1; break; case "tps": $titolo = "Stampe Trasferimenti/Prestiti: Ricerca"; $act_search = 4; /**** if($annoincorso!=$gestione) { print "
Le attività relative ai Trasferimenti/Prestiti possono essere fatte solo per l'anno in corso (".$annoincorso.")."; $act_search = 0; } ****/ break; case "eti": $titolo = "Etichette: Parametri di Ricerca"; $stampa_etichette = 1; $act_search = 1; break; case "ann": $titolo = "Annullamento Ultimo Movimento: Ricerca"; $act_search = 7; if($level!="N") { print "
L'attività può essere fatta solo da un utente nazionale."; $act_search = 0; } if($annoincorso!=$gestione) { print "
L'attività di annullamento rinnovo può essere fatta solo per l'anno in corso (".$annoincorso.")."; $act_search = 0; } break; case "anl": $act_list = 7; $titolo = "Annullamento Ultimo Movimento"; break; case "deb": $act_delete = 7; break; case "sea": default: $titolo = "Aggiornamento: Parametri di Ricerca"; $act_search = 1; } // ****************************************************** // LETTURA DATI DA STRANIERI // ****************************************************** if($act_input==3) { if(isSet($codice) && $codice != "") { $query = " select Regione,Provincia,Cognome, Nome,Categoria,CodSoc, Straniero, Nazione, DataNas "; $query=$query."from atletistra where codice = '$codice' and annogestione='$gestione'"; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } else { list( $regione, $provincia, $cognome, $nome, $categoria, $societa, $straniero, $nazione, $nascita ) = $db->getRow(0); $nascita=formatta_dataXcampo($nascita); } $autorizzato = "S"; } } // ****************************************************** // FINE LETTURA DATI DA STRANIERI // ****************************************************** // ****************************************************** // IMPOSTAZIONE PARAMETRI DI RICERCA // ****************************************************** if($act_search) { $regione = ""; //print $act_search; if($act_search==1 || $act_search==4 || $act_search==7) { if($act_search==4) { //Trasferimenti/Prestiti print ""; } else { if($act_search == 7) { //Annulla Rinnovo print ""; } else { //Aggiornamento print ""; if($stampa_tessere == 1) { if($file_tessere == 1) { //File per Tessere print ""; } else { //Stampa Tessere print ""; } } } } } else { //Rinnovo print ""; } ?>
\n\n\n\n"); campo_hidden("gestione",$gestione); } else { //Rinnovo o Trasferimenti/Prestiti //campo_text("Anno Gestione Rinnovo", "gestione", $gestionerinnovo, 0, 1, " size=5 maxlength=\"4\" class=\"year\"", "\n\n\n\n\n"); //campo_hidden("gestione",$gestionerinnovo); if($act_search==4) { //Trasferimenti/Prestiti if($act=="tps") { campo_text("Anno di Gestione", "gestione", $gestione, 0, 1, " size=5 maxlength=\"4\" class=\"year\"", "\n\n\n\n\n"); campo_hidden("gestione",$gestione); } else { $gestionerinnovo1 = $gestionerinnovo - 2; campo_text("Range di Anni", "gestione", $gestionerinnovo1." - ".$gestione, 0, 1, " size=5 maxlength=\"4\" class=\"year\"", "\n\n\n\n\n"); campo_hidden("gestione",$gestione); } } else { //Rinnovo //$gestionerinnovo1 = $gestionerinnovo - 2; $gestionerinnovo1 = $gestionerinnovo - 5; campo_text("Range di Anni", "gestione", $gestionerinnovo1." - ".$gestionerinnovo, 0, 1, " size=5 maxlength=\"4\" class=\"year\"", "\n\n\n\n\n"); campo_hidden("gestione",$gestionerinnovo); } } ?> \n\n\n\n"); ?> execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } campo_select("Regione", "regione", $opt, "", 1, 0, " class=\"select1\" onchange=\"change_select('first','regione','provincia',1);\"", "\n\n\n\n\n"); ?> execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); if ($level != "N") { $opt[] = array($row["Codice"],$row["Descrizione"]); } else { $opts[] = array($row["Codice"],$row["Descrizione"],$row["Regione"]); if(!$act_input) { if($row["Regione"] == $regione) { $opt[] = array($row["Codice"],$row["Descrizione"]); } } } } if ($level != "N") { campo_select("Provincia", "provincia", $opt, "", 1, 0, " class=\"select1\" ", "\n\n\n\n\n"); } else { campo_select("Provincia", "provincia", array("", " "), "", 1, 0, " class=\"select1\" ", "\n\n\n\n\n"); } option_select($opts, "first", "provincia"); ?> execute("select Codice, Descrizione from atleticat where settore!='V' order by DaAnni*1")) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } campo_select("Categorie", "categlis", $opt, "", 0, 0, " class=\"select1\"" , "\n\n\n\n\n"); **************************************************/ ?> "; ************************************************/ ?> "; ************************************************/ ?> \n\n\n\n"); controlla_campo("first","alnum","categoria",1, "Categoria "); ************************************************/ } ?> \n\n\n\n"); ?> \n\n\n\n"); campo_text("Cognome", "cognome", "", 0, 0, " size=30 maxlength=\"25\" class=\"text1\"", "\n\n\n\n\n"); campo_text("Nome", "nome", "", 0, 0, " size=30 maxlength=\"20\" class=\"text1\"", "\n\n\n\n\n"); } ?> execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } campo_select("Discipline", "discipline", $opt, "", 1, 0, " class=\"select1\" onchange=\"change_select('first','regione','provincia',1);\"", "\n\n\n\n\n"); ?> "; print ""; } ?> execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } campo_select("Discipline Promozionali", "disciplinep", $opt, "", 1, 0, " class=\"select1\" onchange=\"change_select('first','regione','provincia',1);\"", "\n\n\n\n\n"); ?> "; print ""; } */ ?> execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } campo_select("Disabilità", "disabilita", $opt, "", 1, 0, " class=\"select1\" onchange=\"change_select('first','regione','provincia',1);\"", "\n\n\n\n\n"); ?> execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } campo_select("Quoz.Intellettivo", "quoziente", $opt, "", 1, 0, " class=\"select1\" onchange=\"change_select('first','regione','provincia',1);\"", "\n\n\n\n\n"); */ campo_hidden("quoziente","") ?> \n\n\n\n"); ?> execute("select Codice, Descrizione from nazioni Order by Descrizione")) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } campo_select("Nazione", "nazione", $opt, "", 1, 0, " class=\"select1\"", "\n\n\n\n\n"); ?> \n\n\n\n"); $opt = null; $opt[] = array("",""); $opt[] = array("S", "Movimenti Operativi"); $opt[] = array("N", "Movimenti Non Operativi"); campo_select("Mov.Operativo", "opermovim", $opt, "a", 0, 0, " class=\"select1\" ", "\n\n\n\n\n"); campo_text("Data Movimento DA", "movda", "", 0, 0, " size=10 maxlength=\"8\" class=\"text1\"", "\n\n\n\n\n"); campo_text("Data Movimento A", "mova", "", 0, 0, " size=10 maxlength=\"8\" class=\"text1\"", "\n\n\n\n\n"); if($level=="N") { $opt = null; $opt[] = array("N", "Solo Nazionali"); $opt[] = array("R", "Solo Regionali"); $opt[] = array("T", "Tutti"); campo_select("Livello", "xxlivello", $opt, "a", 0, 0, " class=\"select1\" ", "\n\n\n\n\n"); } } ?> \n\n\n\n"); } ?> \n\n\n\n"); ?> \n\n\n\n"); } ?> \n\n\n\n"); ?> \n\n\n\n"); campo_text("Data Mov. a", "mova", "", 0, 0, " size=10 maxlength=\"8\" class=\"text1\"", "\n\n\n\n\n"); } ?> \n\n\n\n"); } ?> \n\n\n\n"); $opt = null; $opt[] = array("0", "Per Codice Società, Sesso, Cognome e Nome"); $opt[] = array("1", "Per Cognome e Nome"); $opt[] = array("2", "Per Regione,Provincia, Cognome e Nome"); $opt[] = array("3", "Per Sesso, Cognome e Nome"); campo_select("Ordinamento", "ordinamento", $opt, "a", 0, 0, " class=\"select1\" ", "\n\n\n\n\n"); } else { if($act=="fite") { $opt = null; $opt[] = array("1", "Per Cognome e Nome"); $opt[] = array("0", "Per Cod.Società, Cognome e Nome"); campo_select("Ordinamento", "ordinamento", $opt, "a", 0, 0, " class=\"select1\" ", "\n\n\n\n\n"); } else { $opt = null; $opt[] = array("0", "Per Codice Società"); $opt[] = array("1", "Per Cognome e Nome"); $opt[] = array("2", "Per Regione,Provincia, Cognome e Nome"); campo_select("Ordinamento", "ordinamento", $opt, "a", 0, 0, " class=\"select1\" ", "\n\n\n\n\n"); } } ?>
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
"; print "  "; print "  "; print "  "; print "  "; print "  "; print "  "; print "  "; print "  "; print "
Categorie/a da Selezionare:"; print "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
"; print "  "; print ""; print "
Discip. Agon. da Selezionare:"; print "
", "", "
"; print "  "; print ""; print "
Discip. Prom. da Selezionare:"; print "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", " Per scopi commerciali
", "", " Per scopi commerciali
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
La ricerca fornirà al massimo 500 elementi.

           

La ricerca sui valori inseriti nei campi viene fatta per UGUAGLIANZA e non per radice.

(*)Se si attiva il Bottone (1) si va a cercare nell'archivio atleti per individuare quelli che devono essere movimentati. Se si attiva il Bottone (2) si va a cercare nell'archivio trasferimenti/prestiti per individuare i movimenti già fatti (Operativi e non). I campi Tipo Mov., Mov.Operativo, Da data Mov., A data Mov. sono presi in considerazione solo con il bottone 2.
       
Il Modulo di inserimento presenta errori. execute("select Codice,AnnoGestione,Regione,Provincia,Adesioni,Denominazione,TipoSoc from societa where Codice='".$societa."' and AnnoGestione='".$gestione."'")) { echo $db->geterror().": $db->query
"; } if(!$db->getNumRow()) { $xerro = 1; $descerrore = "Società non ancora riaffiliata"; } else { $row = $db->getRow(0); $regione=$row['Regione']; $denominazioneanno=$row['Denominazione']; if ($gestione!=$row['AnnoGestione']) { $xerro = 1; $descerrore = "Società non ancora riaffiliata"; } else { if($level!="N") { if($level=="R") { if ($region!=$row['Regione']) { $xerro = 1; $descerrore = "Società di altra Regione"; } } else { if ($provinc!=$row['Provincia']) { $xerro = 1; $descerrore = "Società di altra Provincia"; } } } /***************************************************************************************** // *********** SOC. MILITARI ************************************ if ($row['TipoSoc']=="M" && $categoria!="SM" && $categoria!="SF" && $categoria!="PM" && $categoria!="PF" && $categoria!="JM" && $categoria!="JF") { $xerro = 1; $descerrore = "Soc.Mil. - Cat. permesse: SM/SF/PM/PF/JM/JF."; } if(!$db->execute("select settore from atleticat where codice='$categoria'")) { echo $db->geterror().": $db->query
"; } if(!$db->getNumRow()) { $xerro = 1; $descerrore = "Società non ancora riaffiliata"; } else { $roww = $db->getRow(0); $xsetes=$roww['settore']."."; } $xxxadesioni="-".$row['Adesioni']; if ($gestione>=2004) { if (strpos($xxxadesioni,$xsetes)=="") { $caxc=substr($categoria,0,2); $xsetes=""; switch($caxc) { case "AM": case "JM": case "PM": case "SM": case "MM": $xsetes="AM"; break; case "AF": case "JF": case "PF": case "SF": case "MF": $xsetes="AF"; break; case "EM": case "RM": case "CM": case "TM": $xsetes="PM"; break; case "EF": case "RF": case "CF": case "TF": $xsetes="PF"; break; case "MM": $xsetes="VM"; break; case "MF": $xsetes="VF"; break; } //MM/MF e Settore TM/TF if ((($caxc=="MM" || $caxc=="TM") && strpos($xxxadesioni,"TM")!="") || (($caxc=="MF" || $caxc=="TF") && strpos($xxxadesioni,"TF")!="") ) { } else { //Gruppi Scolastici if (($caxc=="EM"||$caxc=="EF"||$caxc=="RM"||$caxc=="RF"||$caxc=="CM"||$caxc=="CF"||$caxc=="AM"||$caxc=="AF"||$caxc=="JM"||$caxc=="JF") && strpos($xxxadesioni,"GS")!="") { } else { if ($xsetes!="") { if (strpos($xxxadesioni,$xsetes)=="") { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } else { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } } } } else { //Diverso da 2004: INIZIO if (strpos($xxxadesioni,$xsetes)=="") { if ($categoria=="EM" || $categoria=="CM" || $categoria=="RM" || $categoria=="EF" || $categoria=="CF" || $categoria=="RF") { if ($categoria=="EM" || $categoria=="CM" || $categoria=="RM") { $xsetes="VM"; } else { $xsetes="VF"; } if (strpos($xxxadesioni,$xsetes)=="") { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } else { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } //Diverso da 2004: Fine } *************************************************************************/ } } if($xerro==0) { if($rinnovomanuovo==1) { $xxxtiporn="N"; } else { if($rientrodapretra==1) { $xxxtiporn=$presorinn; } else { $xxxtiporn="R"; } } if(!$db->execute("select Denominazione from societa where Codice='".$societavec."' and AnnoGestione='".$gestionerinnovo."'")) { echo $db->geterror().": $db->query
"; } if($db->getNumRow()) { $row = $db->getRow(0); $denominazioneannoprec=$row['Denominazione']; } $descerrore = "Tabella Atleti"; $oggidb = formatta_dataXdb($oggi); $movimentodb = formatta_dataXdb($movimento); $datadocdb = formatta_dataXdb($datadoc); if($amatore == 1 && $codsocamatorevec!=$societa) { $xxxtiporn = "N"; } $query = " update atleti Set AnnoGestione = '$gestione', categoria = '$categoria', datamov = '$movimentodb', flagrin = '$xxxtiporn', codsocmil = '$societaleva', dataagg = '$oggidb', straniero = '$straniero', nazione = '$nazione', flagtes = '', autocomm = '$autocomm', tipodoc = '$tipodoc', numdoc = '$numdoc', datadoc = '$datadocdb', noteprestito = '$noteprestito'"; if ($utente_leva == 1) { $query .= ",leva='$leva'"; } //if($amatore == 1) //{ // $query.= ",codsoc='$societa'"; //} if($socdafusione == 1) { $query.= ",codsoc='$societa'"; } /* print "
"; print "---"; print $amatore; print $denominazioneanno; print "---"; print $denominazioneannoprec; print "---"; */ if(($denominazioneanno!=$denominazioneannoprec) || ($amatore == 1 && $codsocamatorevec!=$societa)) { $query.= ",flagsmart = ''"; } else { /* print "
"; print "---"; print $cognome; print "---"; print apici($xcognomevec); print "---"; print "---"; print $nome; print "---"; print apici($xnomevec); print "---"; print "---"; print $nascita; print "---"; print apici($xnascitavec); print "---"; */ if($cognome!=apici($xcognomevec) || $nome!=apici($xnomevec) || substr($nascita,4,4)!=substr($xnascitavec,4,4)) { $query.= ",flagsmart = ''"; } else { /****************** - commentanto per il 2007 ---------------------------- if(substr($xcategoriavec,0,1)=="E" || substr($xcategoriavec,0,1)=="R" || substr($xcategoriavec,0,1)=="C" || substr($xcategoriavec,0,1)=="T") { //Se categoria vec era senza chip.... if(substr($categoria,0,1)!="E" && substr($categoria,0,1)!="R" && substr($categoria,0,1)!="C" && substr($categoria,0,1)!="T") { //.....E categoria nuova è con chip $query .= ",flagsmart = ''"; } } *******************/ } } if($gestione>="2008") { if($act_insert==2) { // RINNOVO: NEL 2008 STAMPO SEMPRE LA TESSERA (poi togliere) $query.= ",flagsmart = ''"; } } if($rinnovomanuovo==1 || $rientrodapretra==1 || $amatore == 1 || $societa == "RM056") { $query .= ",CodSoc='$societa'"; } $query .= " where Tessera = '$tessera'"; // vecchio --->> Tessera = '$tessera' and Annogestione='$gestionerinnovo'"; //print $query; if(!$db->execute($query)) { //print "ERRORE 1"; $xerro = 3; } // Update ANAGRAFICA $descerrore = "Tabella Anagrafica"; $nascitadb = formatta_dataXdb($nascita); $query = " update anagrafica Set cognome = '$cognome', nome = '$nome', datanas = '$nascitadb', luogonas = '$luogonasc', indirizzo = '$indirizzos', telefono1 = '$telefonos1', telefono2 = '$telefonos2', fax = '$faxs', cap = '$caps', citta = '$cittas', provincia = '$provincias', email = '$email', cc = '$contoc', banca = '$banca', agenzia = '$agenzia', cittaban = '$cittab', iban = '$iban', abi = '$abi', cab = '$cab', codfis = '$codf', professione = '$professione', titstudio = '$studio', dataagg = '$oggi' where Tipo = 'A' and Tessera = '$tessera'"; //print $query; if(!$db->execute($query)) { //print "ERRORE 2"; $xerro = 3; } if($straniero=="") { $straniero = "N"; } if($straniero!="N") { $straniero = "S"; } // Inserimento in AtletiSto $descerrore = "Tabella Storico"; $query = " insert into atletisto ( AnnoGestione, Tipo, Tessera, Categoria, CodSoc, TipoMov, DataMov, Straniero, Utente, DataIns,disciplineprom,disciplineago,quoziente,disabilita,codicsd ) values ( '$gestione', 'A', '$tessera', '$categoria', '$societa', '$xxxtiporn', '$movimentodb', '$straniero', '$utente', '$oggidb', '$disciplineprom', '$disciplineago', '$quoziente', '$disabilita', '$codicsd')"; //print $query; if(!$db->execute($query)) { $xerro = 3; } } } else { $titolobad = "Inserimento Fallito"; $oggidb = formatta_dataXdb($oggi); $descerrore = "Tabella Atleti"; // Inserimento Nuovo Atleta // Controllo Società $xerro = 0; if(!isSet($xpassa)) { $xpassa=0; } if(checksocieta($societa,$gestione,$db)==1) { $xpassa=1; $xerro=1; $descerrore="999"; } if($xpassa==0) { //Vecchia$query = "select atleti.Tessera from atleti,anagrafica where atleti.annogestione='$gestione' and atleti.tessera=anagrafica.tessera"; //Vecchia$query .= " and anagrafica.cognome='".$cognome."' and anagrafica.nome='".$nome."' and anagrafica.datanas='".formatta_dataXdb($nascita)."' and atleti.codsoc='".$societa."'"; // con ANNO $query = "select anagrafica.luogonas,atleti.categoria,atleti.tessera,atleti.codsoc,anagrafica.cognome,anagrafica.nome,anagrafica.datanas from atleti,anagrafica where atleti.annogestione='$gestione' and atleti.tessera=anagrafica.tessera"; $query = "select anagrafica.luogonas,atleti.categoria,atleti.tessera,atleti.codsoc,anagrafica.cognome,anagrafica.nome,anagrafica.datanas,atleti.annogestione from atleti,anagrafica where atleti.tessera=anagrafica.tessera"; $query .= " and anagrafica.cognome='".$cognome."' and anagrafica.nome='".$nome."' and anagrafica.datanas='".formatta_dataXdb($nascita)."' order by annogestione desc,tessera"; //print $query; if($db->execute($query)) { if($db->getNumRow()) { $xerro = 1; $descerrore = "Atleta già presente in archivio."; ?> Sono stati trovati degli atleti con i dati (Cognome/Nome/Data Nascita) uguali al tesserato in oggetto. "); $num_rows = $db->getNumRow(); $pari = 0; for($i = 0; $i < $num_rows; $i++) { if($pari) { $pari = 0; $colore = "#dfdfdf"; } else { $pari = 1; $colore = "#FFFFFF"; } $linkbar = null; $row = null; $row = $db->getRow($i); $nascitaa = formatta_dataXlista($row["datanas"]); $categoria=$row["categoria"]; $linkbar[] = array("", $row["annogestione"]); $linkbar[] = array("", $row["tessera"]); $linkbar[] = array("", $row["cognome"]); $linkbar[] = array("", $row["nome"]); $linkbar[] = array("", $nascitaa." ".$row["luogonas"]); $linkbar[] = array("", $row["categoria"]); $linkbar[] = array("", $row["codsoc"]); //barra($linkbar,"","intest",""); barra($linkbar,"","year",""); } ?>
","","
","","
","","

geterror().": $db->query
"; $xerro = 1; $descerrore = "Atleta già presente in archivio."; } } if($xerro == 0) { if(!$db->execute("select Codice,AnnoGestione,Regione,Provincia,Adesioni,TipoSoc from societa where Codice='".$societa."' and AnnoGestione='".$gestione."'")) { echo $db->geterror().": $db->query
"; } if(!$db->getNumRow()) { $xerro = 1; $descerrore = "Società non ancora riaffiliata"; } else { $row = $db->getRow(0); $regione=$row['Regione']; if ($gestione!=$row['AnnoGestione']) { $xerro = 1; $descerrore = "Società non ancora riaffiliata"; } else { if($level!="N") { if($level=="R") { if ($region!=$row['Regione']) { $xerro = 1; $descerrore = "Società di altra Regione"; } } else { if ($provinc!=$row['Provincia']) { $xerro = 1; $descerrore = "Società di altra Provincia"; } } } $provinciasoc=$row['Provincia']; /*********************************************************************************** // *********** SOC. MILITARI CONTROLLO 60 ATLETI ************************************ if ($row['TipoSoc']=="M") { $query="select count(tessera) from atleti where CodSoc='$societa' and annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } $roww = $db->getRow(0); if($roww[0]>=60) { $xerro = 1; $descerrore = "Società Militare: al massimo 60 atleti."; } } // *********** SOC. MILITARI CONTROLLO CATEGORIE************************************ if ($row['TipoSoc']=="M" && $categoria!="SM" && $categoria!="SF" && $categoria!="PM" && $categoria!="PF" && $categoria!="JM" && $categoria!="JF") { $xerro = 1; $descerrore = "Soc.Mil. - Cat. permesse: SM/SF/PM/PF/JM/JF."; } if(!$db->execute("select settore from atleticat where codice='$categoria'")) { echo $db->geterror().": $db->query
"; } if(!$db->getNumRow()) { $xerro = 1; $descerrore = "Società non ancora riaffiliata"; } else { $roww = $db->getRow(0); $xsetes=$roww['settore']."."; } $xxxadesioni="-".$row['Adesioni']; if ($gestione>=2004) { if (strpos($xxxadesioni,$xsetes)=="") { $caxc=substr($categoria,0,2); $xsetes=""; switch($caxc) { case "AM": case "JM": case "PM": case "SM": case "MM": $xsetes="AM"; break; case "AF": case "JF": case "PF": case "SF": case "MF": $xsetes="AF"; break; case "EM": case "RM": case "CM": case "TM": $xsetes="PM"; break; case "EF": case "RF": case "CF": case "TF": $xsetes="PF"; break; case "MM": $xsetes="VM"; break; case "MF": $xsetes="VF"; break; } //MM/MF e Settore TM/TF if ((($caxc=="MM" || $caxc=="TM") && strpos($xxxadesioni,"TM")!="") || (($caxc=="MF" || $caxc=="TF") && strpos($xxxadesioni,"TF")!="") ) { } else { //Gruppi Scolastici if (($caxc=="EM"||$caxc=="EF"||$caxc=="RM"||$caxc=="RF"||$caxc=="CM"||$caxc=="CF"||$caxc=="AM"||$caxc=="AF"||$caxc=="JM"||$caxc=="JF") && strpos($xxxadesioni,"GS")!="") { } else { if ($xsetes!="") { if (strpos($xxxadesioni,$xsetes)=="") { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } else { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } } } } else { //Diverso da 2004: INIZIO if (strpos($xxxadesioni,$xsetes)=="") { if ($categoria=="EM" || $categoria=="CM" || $categoria=="RM" || $categoria=="EF" || $categoria=="CF" || $categoria=="RF") { if ($categoria=="EM" || $categoria=="CM" || $categoria=="RM") { $xsetes="VM"; } else { $xsetes="VF"; } //print "PASSO QUI PER ".$xsetes; if (strpos($xxxadesioni,$xsetes)=="") { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } else { $xerro = 1; $descerrore = "Soc.non affiliata al Settore/Categoria"; } } } ***********************************************************************************/ } $row = null; } } if($xerro == 0) { // ----- Inizio 1° XERRO ------ // Recupero Codice Ufficio /*********************** if($level=="N" or $level=="R") { if(!$db->execute("select ufficio from regioni where codice='".$region."'")) { echo $db->geterror().": $db->query
"; } } else { if(!$db->execute("select ufficio from province where codice='".$provinc."'")) { echo $db->geterror().": $db->query
"; } } ***************************/ if(!$db->execute("select ufficio from province where codice='".$provinciasoc."'")) { echo $db->geterror().": $db->query
"; } if($db->getNumRow()) { $row = $db->getRow(0); $ufficio = $row[0]; $row = null; } // Calcolo della Parte Numerica //if(!$db->execute("select max(substring(Tessera,3,6))+1 from atleti where annogestione='".$gestione."' and substring(tessera,1,2)='".$ufficio."'")) if(!$db->execute("select max((substring(Tessera,3,6)*1))+1 from atleti where substring(tessera,1,2)='".$ufficio."'")) { echo $db->geterror().": $db->query
"; } if($db->getNumRow()) { $row = $db->getRow(0); $newcode = $row[0]; $row = null; if($newcode==0) { $newcode=1; } $newcode = str_repeat("0",6-strlen($newcode)).$newcode; } // Inserimento in Atleti $nascitadb = formatta_dataXdb($nascita); $movimentodb = formatta_dataXdb($movimento); $datadocdb = formatta_dataXdb($datadoc); $tessera=$ufficio.$newcode; $query = " insert into atleti ( AnnoGestione, Tipo, Tessera, Categoria, CodSoc, Datamov, FlagRin, Straniero, Leva, CodSocMil, Regione, Nazione, Utente, DataIns, Autorizzato, Autocomm,tipodoc,numdoc,datadoc,noteprestito ) values ( '$gestione', 'A', '$tessera', '$categoria', '$societa', '$movimentodb', 'N', '$straniero', '', '$societaleva', '$regione', '$nazione', '$utente', '$oggidb', '$autorizzato', '$autocomm', '$tipodoc', '$numdoc', '$datadocdb', '$noteprestito')"; //print $query; if(!$db->execute($query)) { $xerro = 2; } else { /***** $fileimg_old = "../fotoatleti/F".$utente.$tessera.".jpg"; $fileimg_new = "../fotoatleti/F".$tessera.".jpg"; rename($fileimg_old, $fileimg_new); *****/ // ----- Inizio 2° XERRO ------ // Inserimento in Anagrafica $descerrore = "Tabella Anagrafica"; $nascitadb = formatta_dataXdb($nascita); $query = " insert into anagrafica ( Tipo, Tessera, Cognome, Nome, DataNas, LuogoNas, Indirizzo, Telefono1, Telefono2, Fax, Cap, Citta, Provincia, Email, CC, Banca, Agenzia, CittaBan, iban, ABI, CAB, CodFis, Professione, TitStudio, Utente, DataIns ) values ( 'A', '$tessera', '$cognome', '$nome', '$nascitadb', '$luogonasc', '$indirizzos', '$telefonos1', '$telefonos2', '$faxs', '$caps', '$cittas', '$provincias', '$email', '$contoc', '$banca', '$agenzia', '$cittab', '$iban', '$abi', '$cab', '$codf', '$professione', '$studio', '$utente', '$oggidb')"; if(!$db->execute($query)) { $xerro = 3; } else { if($straniero=="") { $straniero = "N"; } if($straniero!="N") { $straniero = "S"; } // ----- Inzio 3° XERRO ------ // Inserimento in AtletiSto $descerrore = "Tabella Storico"; $query = " insert into atletisto ( AnnoGestione, Tipo, Tessera, Categoria, CodSoc, TipoMov, DataMov, Straniero, Utente, DataIns,disciplineprom,disciplineago,quoziente,disabilita,codicsd ) values ( '$gestione', 'A', '$tessera', '$categoria', '$societa', 'N', '$movimentodb', '$straniero', '$utente', '$oggidb', '$disciplineprom', '$disciplineago', '$quoziente', '$disabilita', '$codicsd')"; //print $query; if(!$db->execute($query)) { $xerro = 3; } // ----- Fine 4° XERRO ------ } // ----- Fine 2° XERRO ------ } // ----- Fine 1° XERRO ------ } $titolofine="Inserimento Avvenuto"; if($autorizzato == "S") { //Atleti Stranieri /************************************************* if($xerro==0) { $query = " update atletistra Set Tesserato = 'S' where Codice = '$codicestra' and Annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { print "Errore"; } } *************************************************/ } } if($xerro != 0 ) { if($descerrore != "999" ) { ?>

Vai ad impostare una Nuova Ricerca per Rinnovo $db->query"; $inserted = 1; $act_show = 0; $annorif = $anno_gestione; //$codicegara = $newcode; ?>

Vai ad impostare una Nuova Ricerca per Rinnovo

Dati del Nuovo Tesserato:

Tessera:
Cognome e Nome:

Vai ad inserire un Nuovo Tesserato

Vai ad impostare una Nuova Ricerca per Aggiornamento execute("select Categoria from atleti where Tessera='$tessera' limit 1")) { echo $db->geterror().": $db->query
"; } if($db->getNumRow()) { $row = $db->getRow(0); $xcategoriavec=$row['Categoria']; } //-------------------------------------------------------------------------- Aggiorna contabilità -----Fine $oggidb = formatta_dataXdb($oggi); $datadocdb = formatta_dataXdb($datadoc); $query = " update atleti Set categoria = '$categoria', codsocmil = '$societaleva', straniero = '$straniero', nazione = '$nazione', dataagg = '$oggi', flagtes = '', autocomm = '$autocomm', tipodoc = '$tipodoc', numdoc = '$numdoc', datadoc = '$datadocdb', noteprestito = '$noteprestito'"; if ($utente_leva == 1) { $query .= ",leva='$leva'"; } if ($flagrinxnoi=="N" && ($utente=="FFORMA1" || $utente=="STEFANO" || $utente=="TNBSII1")) { $query .= ",codsoc='$societa'"; } $denominazioneanno=""; $denominazioneannoprec=""; if(!$db->execute("select Denominazione,Regione from societa where Codice='".$societa."' and AnnoGestione='".$anno_gestione."'")) { echo $db->geterror().": $db->query
"; } if($db->getNumRow()) { $row = $db->getRow(0); $denominazioneanno=$row['Denominazione']; $regionecnt=$row['Regione']; } if(!$db->execute("select Denominazione from societa where Codice='".$societa."' and AnnoGestione='".$gestionerinnovo."'")) { echo $db->geterror().": $db->query
"; } if($db->getNumRow()) { $row = $db->getRow(0); $denominazioneannoprec=$row['Denominazione']; } if($denominazioneanno!=$denominazioneannoprec) { $query.= ",flagsmart = ''"; } else { if($aggiorna_e_file_tessere==1 || $cognome!=apici($xcognomevec) || $nome!=apici($xnomevec) || substr($nascita,4,4)!=substr($xnascitavec,4,4)) { $query.= ",flagsmart = ''"; } } $query.= " where Tessera = '$tessera' and Annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; } $query = " update atletisto Set categoria = '$categoria', straniero = '$straniero', disciplineprom = '$disciplineprom', disciplineago = '$disciplineago', quoziente = '$quoziente', disabilita = '$disabilita', codicsd = '$codicsd'"; if ($flagrinxnoi=="N" && ($utente=="FFORMA1" || $utente=="STEFANO" || $utente=="TNBSII1")) { $query .= ",codsoc='$societa'"; } $query .= " where Tessera = '$tessera' and Annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; } // Upadte ANAGRAFICA $nascitadb = formatta_dataXdb($nascita); $query = " update anagrafica Set cognome = '$cognome', nome = '$nome', datanas = '$nascitadb', luogonas = '$luogonasc', indirizzo = '$indirizzos', telefono1 = '$telefonos1', telefono2 = '$telefonos2', fax = '$faxs', cap = '$caps', citta = '$cittas', provincia = '$provincias', email = '$email', cc = '$contoc', banca = '$banca', agenzia = '$agenzia', cittaban = '$cittab', iban = '$iban', abi = '$abi', cab = '$cab', codfis = '$codf', professione = '$professione', titstudio = '$studio', dataagg = '$oggi' where Tipo = 'A' and Tessera = '$tessera'"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; ?> Aggiornamento Fallito

Vai ad impostare una Nuova Ricerca per Aggiornamento $db->query"; $updated = 1; $act_show = 0; //-------------------------------------------------------------------------- Aggiorna contabilità ---------- $errorctb = 0; //--------------------------------------IF DISABILITATA if (($xcategoriavec<>$categoria && 1==2)) { $query = "SELECT `atlprosenfid` , `atlprosencr` , `atlmasamafid` , `atlmasamacr` , `dirisegr_ps` , `dirisegr_mt`,atlesoragfid,atlesoragcr,atlcadfid,atlcadcr,atlalljunfid,atlalljuncr, dirisegr_er, dirisegr_es, dirisegr_c, dirisegr_aj FROM `toquote` WHERE `annogestione` LIKE '$gestione' and `Codice`='$regionecnt'"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $errorctb = 1; } else { list($atlprosenfid,$atlprosencr,$atlmasamafid,$atlmasamacr,$dirisegr_ps,$dirisegr_mt,$atlesoragfid,$atlesoragcr,$atlcadfid,$atlcadcr,$atlalljunfid,$atlalljuncr,$dirisegr_er,$dirisegr_es,$dirisegr_c,$dirisegr_aj) = $db->getRow(0); } $importonew=0; if (substr($categoria,0,1)=="P") { $importonew=$atlprosenfid+$atlprosencr+$dirisegr_ps; } if (substr($xcategoriavec,0,1)=="P") { $importovec=$atlprosenfid+$atlprosencr+$dirisegr_ps; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="S") { $importonew=$atlprosenfid+$atlprosencr+$dirisegr_ps; } if (substr($xcategoriavec,0,1)=="S") { $importovec=$atlprosenfid+$atlprosencr+$dirisegr_ps; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="T") { $importonew=$atlmasamafid+$atlmasamacr+$dirisegr_mt; } if (substr($xcategoriavec,0,1)=="T") { $importovec=$atlmasamafid+$atlmasamacr+$dirisegr_mt; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="M") { $importonew=$atlmasamafid+$atlmasamacr+$dirisegr_mt; } if (substr($xcategoriavec,0,1)=="M") { $importovec=$atlmasamafid+$atlmasamacr+$dirisegr_mt; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="J") { $importonew=$atlalljunfid+$atlalljuncr+$dirisegr_aj; } if (substr($xcategoriavec,0,1)=="J") { $importovec=$atlalljunfid+$atlalljuncr+$dirisegr_aj; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="A") { $importonew=$atlalljunfid+$atlalljuncr+$dirisegr_aj; } if (substr($xcategoriavec,0,1)=="A") { $importovec=$atlalljunfid+$atlalljuncr+$dirisegr_aj; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="C") { $importonew=$atlcadfid+$atlcadcr+$dirisegr_c; } if (substr($xcategoriavec,0,1)=="C") { $importovec=$atlcadfid+$atlcadcr+$dirisegr_c; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="E") { $importonew=$atlesoragfid+$atlesoragcr+$dirisegr_er; } if (substr($xcategoriavec,0,1)=="E") { $importovec=$atlesoragfid+$atlesoragcr+$dirisegr_er; } //-------------------------------------------------------------------------------------------------------------------- if (substr($categoria,0,1)=="R") { $importonew=$atlesoragfid+$atlesoragcr+$dirisegr_er; } if (substr($xcategoriavec,0,1)=="R") { $importovec=$atlesoragfid+$atlesoragcr+$dirisegr_er; } //-------------------------------------------------------------------------------------------------------------------- $query = "select uscite from tologmovim where Tessera='$tessera' and codsoc='$societa' and annogestione='$gestione' limit 1"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $descerrorectb .=" Errore tologmovim su uscite Query
"; $errorctb = 1; } else { list($xxxuscitemov) = $db->getRow(0); } $costotras=$xxxuscitemov-$importovec; if(!$db->getNumRow()) { $errorctb = 1; $descerrorectb .= "Aggiornamento Movimento Contabile: Tessera Atleta $tessera
"; } if($errorctb == 0 ){ $query = "update tologmovim set uscite=$costotras+$importonew,tiposoctess='ATLETA Cat. $categoria' where Tessera='$tessera' and codsoc='$societa' and annogestione='$gestione' limit 1"; // print "
".$query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $descerrorectb .=" Errore tologmovim Query
"; $errorctb = 1; } $query = "update uteonline set importototale=((importototale+$xxxuscitemov)-($costotras+$importonew)) where codice='$societa' limit 1"; if (($xxxuscitemov-($costotras+$importonew))<0){ print "Alla società sono stati sottratti : ".abs(($xxxuscitemov-($costotras+$importonew)))." €
"; }else{ print "Alla società sono stati restituiti : ".abs(($xxxuscitemov-($costotras+$importonew)))." €
"; } if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $errorctb = 1; $descerrorectb .=" Errore uteonline Query
"; } } } if($errorctb != 0 ) { ?> Aggiornamento Avvenuto.

Vai ad impostare una Nuova Ricerca per Aggiornamento execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } else { list( $tessera, $categoria, $societa, $movimento, $flagrin, $straniero, $leva, $societaleva, $nazione, $autorizzato, $gestionedadb, $autocomm, $tipodoc, $numdoc, $datadoc, $noteprestito, $flagsmart, $datastatess ) = $db->getRow(0); $movimento=formatta_dataXcampo($movimento); $datadoc=formatta_dataXcampo($datadoc); if($straniero=="") { $straniero = "N"; } if($straniero!="N") { $straniero = "S"; } //****************** Aggiunta per on line $Utente=""; $query="select Utente,disciplineprom,disciplineago,quoziente,disabilita from atletisto where Tessera='$tessera' order by AnnoGestione desc"; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; } else { list( $Utente, $disciplineprom, $disciplineago, $quoziente, $disabilita) = $db->getRow(0); } if($societa==$Utente) { $asterisc = " - ON LINE"; } else { $asterisc = ""; } //**************************************************** $query = "SELECT codicsd from atletisto where Tessera = '$tessera' and Annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $errorctb = 1; } else { list($codicsd) = $db->getRow(0); } // Lettura ANAGRAFICA $query = " select Cognome, Nome, DataNas, LuogoNas, Indirizzo, Telefono1, Telefono2, Fax, Cap, Citta, Provincia, Email, CC, Banca, Agenzia, Cittaban, iban, ABI, CAB, CodFis, Professione,TitStudio "; $query=$query."from anagrafica where Tipo='A' and Tessera = '$tessera'"; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } else { list( $cognome, $nome, $nascita, $luogonasc, $indirizzos, $telefonos1, $telefonos2, $faxs, $caps, $cittas, $provincias, $email, $contoc, $banca, $agenzia, $cittab, $iban, $abi, $cab, $codf, $professione, $studio ) = $db->getRow(0); $nascita=formatta_dataXcampo($nascita); //************************************** // Dati per controllo stampa tessere //************************************** $xcategoriavec=$categoria; $xcognomevec=$cognome; $xnomevec=$nome; $xnascitavec=$nascita; //************************************** //print $act_modify; // IF DISABILITATA--------------------------------------------------------- if($act_modify==2 && 1==2) { // Calcolo Categoria per Rinnovo $xcanni=$gestione-substr($nascita,4,4); $setes="V".substr($categoria,1,1); if(substr($categoria,0,2)=="MF" || substr($categoria,0,2)=="MM" || substr($categoria,0,2)=="TF" || substr($categoria,0,2)=="TM") { //$query="select codice from atleticat where substring(codice,1,2)='".substr($categoria,0,2)."' and daanni<='$xcanni' and adanni>='$xcanni' and settore='$setes'"; //prima di inversione$query="select codice from atleticat where substring(codice,2,1)='".substr($categoria,1,1)."' and daanni>='$xcanni' and adanni<='$xcanni' and settore='$setes'"; //ok$query="select codice from atleticat where substring(codice,2,1)='".substr($categoria,1,1)."' and '$xcanni'>=daanni and '$xcanni'<=adanni and settore='$setes'"; $query="select codice from atleticat where substring(codice,2,1)='".substr($categoria,1,1)."' and ".$xcanni.">=ceiling(daanni) and ".$xcanni."<=ceiling(adanni) and settore='$setes'"; } else { //$query="select codice from atleticat where substring(codice,2,1)='".substr($categoria,1,1)."' and daanni>='$xcanni' and adanni<='$xcanni' and settore<>'$setes'"; //ok $query="select codice from atleticat where substring(codice,2,1)='".substr($categoria,1,1)."' and '$xcanni'>=daanni and '$xcanni'<=adanni and settore<>'$setes'"; $query="select codice from atleticat where substring(codice,2,1)='".substr($categoria,1,1)."' and ".$xcanni.">=ceiling(daanni) and ".$xcanni."<=ceiling(adanni) and settore<>'$setes'"; } //print $query; if(!$db->execute($query)) { $codcat=""; } else { if(!$db->getNumRow()) { $codcat=""; //print "no"; } else { //list($codcat) = $db->getRow(0); $row = null; $row = $db->getRow(0); $codcat = $row["codice"]; $categoria=$codcat; //print $categoria; } } //*********************************************** // RM057 --> RM056 // Se appartiene a categporie da AM/AF in sù // cambio automaticamente società //*********************************************** //********* COMMENTATO PERCHE' ANNULLATO //if($societa=="RM057" && (substr($categoria,0,1)=="A" || substr($categoria,0,1)=="J" || substr($categoria,0,1)=="P" || substr($categoria,0,1)=="S")) //{ // $societa="RM056"; //} //******************/ //*********************************************** } } } } } // ****************************************************** // FINE Codice relativo alla Lettura di un singolo record // ****************************************************** ?>
Cognome / Nome / Nascita:   - 
Indirizzo / Cap / Città:  -  - 
Tessera / Sesso / Società :  -  - 

execute($Sel)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["codice"],$row["descrizione"]); } if(!isSet($garasel)) { $garasel=""; } campo_select("Gare fatte dall'Atleta", "garefatte", $opt, $garasel, 1, 0, " class=\"select1\"", "\n\n", "\n", "\n\n"); print ""; if($sort==1 || $garasel=="TT") { print ""; } else { print ""; } print "
Risultati ordinati per Gara e Data
Risultati ordinati per Prestazione
"; } // ****************************************************** // LISTA STORICO / Tecnici // ****************************************************** if($act_storico) { $Select = " select atletisto.TipoMov,atletisto.DataMov,atletisto.AnnoGestione,atletisto.Categoria,atletisto.CodSoc,atletisto.Straniero,societa.denominazione from "; $Select.= " atletisto left join societa on atletisto.codsoc=societa.codice and atletisto.annogestione=societa.annogestione "; $Where = " where atletisto.Tessera='$tessera' "; $Order = " order by datamov"; } else { if($act_risultati) { $Select = " select distinct prestazione1.*,manifestazioni.Comune,$tabgarenome.descrizione as denomgara from prestazione1,manifestazioni,$tabgarenome "; $Where = " where prestazione1.NTessera='$tessera' and prestazione1.AnnoRiferimento='$gestione' "; $Where.= " and prestazione1.CodiceManifestazione=manifestazioni.CodiceManifestazione and manifestazioni.AnnoRiferimento='$gestione' "; $Where.= " and prestazione1.codfedgara=$tabgarenome.codice "; if($sort==1 || $garasel=="TT") { $Order = " order by prestazione1.CodFedGara,prestazione1.dataprestazione"; } else { $Where.= " and prestazione1.codfedgara='$garasel' "; $qqq = "Select $tabgarenome.TipoGara from $tabgarenome where codice='".$garasel."' order by codice"; //print $qqq; if(!$db->execute($qqq)) { echo $db->geterror().": $db->query
"; } $rowz = null; $rowz = $db->getRow(0); $tipoda=$rowz["TipoGara"]; if($tipoda=="1" || $tipoda=="6") { $Order = " order by prestazione1.prestazionenorm"; } else { $Order = " order by prestazione1.prestazionenorm desc"; } } } else { $Select = " select distinct tecniciatl.tessera,anagrafica.cognome,anagrafica.nome,tecniciatl.dal,tecniciatl.al from atleti,tecniciatl,anagrafica "; $Where = " where tecniciatl.Tesseraa='$tessera' and anagrafica.tessera=tecniciatl.tessera and anagrafica.tipo='T' "; //$Where .= " and anagrafica.tessera='$tessera'"; $Order = " order by anagrafica.cognome,anagrafica.nome"; } } //print $Select.$Where.$Order; if(!$db->execute($Select.$Where.$Order)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); $pari = 0; for($i = 0; $i < $num_rows; $i++) { if($i==0) { // ************************************ // FINE PRIMA RIGA // ************************************ ?>
"); $linkbar = null; if($act_storico) { $linkbar[] = array("", "Tipo"); $linkbar[] = array("", "Data"); $linkbar[] = array("", "Anno"); $linkbar[] = array("", "Sesso"); $linkbar[] = array("", "Società"); $linkbar[] = array("", "Straniero"); if($xquiflag==1) { $linkbar[] = array("", ""); } } else { if($act_risultati) { $linkbar[] = array("", "Gara"); $linkbar[] = array("", "Prestazione"); $linkbar[] = array("", "Turno"); $linkbar[] = array("", "Vento"); $linkbar[] = array("", "Località"); $linkbar[] = array("", "Data"); } else { $linkbar[] = array("", "Tessera"); $linkbar[] = array("", "Cognome"); $linkbar[] = array("", "Nome"); $linkbar[] = array("", "Dal"); $linkbar[] = array("", "Al"); } } barra($linkbar,"","intest",""); $linkbar = null; $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); if($act_storico) { $linkbar[] = array("", ""); } barra($linkbar,"","intest",""); $linkbar = null; // ************************************ // FINE PRIMA RIGA // ************************************ } if($pari) { $pari = 0; $colore = "#dfdfdf"; } else { $pari = 1; $colore = "#FFFFFF"; } $linkbar = null; $row = null; $row = $db->getRow($i); $rec = ""; if($act_storico) { switch($row["TipoMov"]) { case "N": $tipomov = "Nuovo"; break; case "R": $tipomov = "Rinnovo"; break; case "T": $tipomov = "Trasferimento"; break; case "P": $tipomov = "Prestito"; break; } if($xquiflag==1) { $rec=""; } $codsocesoc = $row["CodSoc"]; if(isSet($row["denominazione"]) && strlen($row["denominazione"]) > 0) { $codsocesoc.=" ".$row["denominazione"]; } $datamov = formatta_dataXlista($row["DataMov"]); $linkbar[] = array($rec,$tipomov); $linkbar[] = array($rec,$datamov); $linkbar[] = array($rec,$row["AnnoGestione"]); $linkbar[] = array($rec,$row["Categoria"]); $linkbar[] = array($rec,$codsocesoc); $linkbar[] = array($rec,$row["Straniero"]); if($xquiflag==1) { $linkbar[] = array("",""); } } else { if($act_risultati) { $xpz=""; if($row["SerieTurni"]=="T") { switch($row["TipoTurno"]) { case "B": $xpz = "BA"; break; case "E": $xpz = "SE"; break; case "Q": $xpz = "QU"; break; case "S": $xpz = "SF"; break; case "F": $xpz = "FI"; break; } } else { switch($row["TipoTurno"]) { case "S": $xpz = "SE"; break; case "U": $xpz = "SU"; break; } } $xpz=trim($row["Piazzamento"])." ".strtolower($xpz)."-".$row["NumeroTurno"]; $v = ltrim($row["Vento"]); /**** switch($v) { case "+0.00": $v = ""; break; case "+0.0": $v = "0.0"; break; case "-0.00": $v = "0.0"; break; } *****/ if (strpos($v,".")!="") { //print "
".(strlen($v)-strpos($v,".")); if (((strlen($v)-1)-strpos($v,"."))==2) { $v=substr($v,0,strlen($v)-1); } } if(substr($v,0,1)=="+") { $v=substr($v,1,strlen($v)-1); } $linkbar[] = array("", $row["denomgara"]); $linkbar[] = array("", $row["Prestazione"]); $linkbar[] = array("", $xpz); $linkbar[] = array("", $v); $linkbar[] = array("", $row["Comune"]); $linkbar[] = array("", $row["dataprestazione"]); } else { $linkbar[] = array($rec,$row["tessera"]); $linkbar[] = array($rec,$row["cognome"]); $linkbar[] = array($rec,$row["nome"]); $linkbar[] = array($rec,$row["dal"]); $linkbar[] = array($rec,$row["al"]); } } barra($linkbar,"","year",""); } ?>
","","
","","
","","
","","
Totale:
Dati non trovati

execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } if($db->getNumRow()) { $roww = $db->getRow(0); $xsteautnaz=$roww['TipoSoc']; } //Se Militare entro if($xsteautnaz=="M") { $query="select count(tessera) from atleti where CodSoc='$societa' and annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } $roww = $db->getRow(0); if($roww[0]>=60) { $xxxerromilitare60 = 1; ?> \n\n\n\n"); } else { campo_select("Sospensione", "leva", $opt, "", 1, 0, " style='WIDTH: 250px' class=\"select1\" ", "\n\n\n\n\n"); } } ?> execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } if($db->getNumRow()) { $roww = $db->getRow(0); $xsteautnaz=$roww['AutNaz']; } if($xsteautnaz=="S") { $query="select tessera from atletistra where Tessera='$tessera' and Autor='S' and annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; $inserted = 0; } if(!$db->getNumRow()) { $xxxerrostra = 1; ?> \n\n\n\n"); } } if($flagrin=="T" && $act_rientro==1) { ?> execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); if($num_rows > 0) { $row = null; $row = $db->getRow(0); //($societa == $row["societa1"]) if($societa == $row["societa1"] && strpos($row["categoria1"],$categoria)>-1) { $passa=1; } //($societa == $row["societa2"]) if($societa == $row["societa2"] && strpos($row["categoria2"],$categoria)>-1) { $passa=1; } //($societa == $row["societa3"]) if($societa == $row["societa3"] && strpos($row["categoria3"],$categoria)>-1) { $passa=1; } if($passa==1) { $socdafusione = $row["societa"]." - Fusione da : ".$row["societa1"]." ".$row["societa2"]." ".$row["societa3"]; $societa=$row["societa"]; ?> >\n\n\n\n"); //campo_hidden("gestione",$gestione); if(!$act_input) { if($gestionedadb=="") { $gestionedadb=$gestione; } //$gestionenonrinn = $gestione - 3; ERA 2 anni $gestionenonrinn = $gestione - 2; if($act_modify==2 && $gestionedadb<=$gestionenonrinn) { $rinnovomanuovo = 1; ?> \n\n\n\n"); campo_hidden("gestione",$gestione); } else { campo_text("Anno di Gestione", "gestione", $gestione, 0, 1, " size=5 maxlength=\"4\" class=\"year\"", "\n\n\n\n\n"); campo_hidden("gestione",$gestione); } campo_hidden("rinnovomanuovo",$rinnovomanuovo); campo_hidden("flagrin",$flagrin); campo_hidden("autorizzato",$autorizzato); if($act_input == 3) { campo_hidden("codicestra",$codice); } ?> \n\n\n\n"); } ?> \n\n\n\n"); campo_hidden("tessera",$tessera); } else { $tessera="Generato Automaticamente"; campo_text("Numero Tessera (*)", "tessera", $tessera, 0, 1, " size=5 maxlength=\"4\" class=\"year\"", "\n\n\n\n\n"); } ?> execute("select denominazione from societa where Codice='".$societa."' and AnnoGestione='".$gestione."'")) { echo $db->geterror().": $db->query
"; } if(!$db->getNumRow()) { $denomsoc = "Società non ancora riaffiliata o non Trovata"; } else { $row = $db->getRow(0); $denomsoc=" - ".$row['denominazione']; } } if($rinnovomanuovo == 1 || $rientrodapretra == 1 || $amatore == 1) { campo_text("Codice Società (*)", "societa", $societa, 0, 0, " size=6 maxlength=\"5\" class=\"text1\"", "\n\n\n\n\n"); controlla_campo("first","alnum","societa",1, "Codice Società "); } else { if($autorizzato == "S") { campo_text("Codice Società (*)", "societa", $societa, 0, 1, " size=6 maxlength=\"5\" class=\"year\"", "\n\n\n\n\n"); campo_hidden("societa",$societa); } else { if(!$act_input || $act_inputcod) { if($act_inputcod) { campo_text("Codice Società (*)", "societa", $societa, 0, 0, " size=6 maxlength=\"5\" class=\"text1\"", "\n\n\n\n\n"); } else { if ($flagrin=="N" && ($utente=="FFORMA1" || $utente=="STEFANO" || $utente=="TNBSII1")) { campo_text("Codice Società (*)", "societa", $societa, 0, 0, " size=6 maxlength=\"5\" class=\"year\"", "\n\n\n\n\n"); } else { campo_text("Codice Società (*)", "societa", $societa, 0, 1, " size=6 maxlength=\"5\"class=\"year\"", "\n\n\n\n\n"); campo_hidden("societa",$societa); } } } else { // Si passa anche per Stranieri con campo valorizzato campo_text("Codice Società (*)", "societa", $societa, 0, 0, " size=6 maxlength=\"5\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","alnum","societa",1, "Codice Società "); } } ?> \n\n\n\n"); } else { // Si passa anche per Stranieri con campo valorizzato campo_text("Cognome (*)", "cognome", $cognome, 0, 0, " size=47 maxlength=\"25\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","cognome",1, "Cognome "); ?> \n\n\n\n"); } else { // Si passa anche per Stranieri con campo valorizzato campo_text("Nome (*)", "nome", $nome, 0, 0, " size=47 maxlength=\"20\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","nome",1, "Nome "); ?> \n\n\n\n"); } else { campo_text("Luogo Nascita (*)", "luogonasc", "", 0, 0, " size=47 maxlength=\"30\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","luogonasc",1, "Luogo Nascita"); ?> \n\n\n\n"); } else { campo_text("Data Nascita (*)", "nascita", $nascita, 0, 0, " size=10 maxlength=\"8\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","date","nascita",1, "Data Nascita (ggmmaaaa)"); ?> \n\n\n\n"); } else { campo_text("Codice Fiscale", "codf", "", 0, 0, " size=20 maxlength=\"16\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","alnum","codf",0, "Codice Fiscale "); ?> \n\n\n\n"); } else { campo_select("Sesso", "categoria", $opt, "", 1, 0, " style='WIDTH: 60px' class=\"select1\" ", "\n\n\n\n\n"); } ?> \n\n\n\n"); } else { campo_text("Documento", "tipodoc", "", 0, 0, " size=40 maxlength=\"30\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","tipodoc",0, "Documento "); ?> \n\n\n\n"); } else { campo_text("Num.Documento", "numdoc", "", 0, 0, " size=30 maxlength=\"20\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","numdoc",0, "Num.Documento"); ?> \n\n\n\n"); } else { campo_text("Data Ril. Doc.", "datadoc", $datadoc, 0, 0, " size=10 maxlength=\"8\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","date","nascita",0, "Data Rilascio Documento (ggmmaaaa)"); ?> \n\n\n\n"); } else { campo_text("Data Movimento (*)", "movimento", $movimento, 0, 1, " size=10 maxlength=\"8\" class=\"year\"", "\n\n\n\n\n"); campo_hidden("movimento",$movimento); } } else { campo_text("Data Movimento (*)", "movimento", "$oggi", 0, 0, " size=10 maxlength=\"8\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","date","movimento",1, "Data Movimento (ggmmaaaa)"); ?> \n\n\n\n"); } else { campo_select("Trattamento Dati", "autocomm", $opt, "", 1, 0, " style='WIDTH: 60px' class=\"select1\" ", "\n\n\n\n\n"); } ?> \n\n\n\n"); } else { campo_text("Codice ICSD", "codicsd", "", 0, 0, " size=13 maxlength=\"10\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","num","codicsd",0, "Codice ICSD"); } else { campo_hidden("codicsd",$codicsd); } ?>
if($act_modify==1 || $act_modify==2) //solo aggiornamento if($act_modify==1) { //modifica e rinnovo $fileimg = "../online/fotoatleti/F".$tessera.".jpg"; if ($utente=="FFORMA1" || $utente=="TNBSII1" || $utente=="STEFANO") { ?>    Clicca qui per vedere la foto"; } else { print "La foto non è stata ancora inserita."; } } /********** Nuovo tesserato no else { // Nuovo tesserato ?>
Società Militare: al massimo 60 atleti.
", "", "
", "", "
ATLETA STRANIERO NON AUTORIZZATO: Rinnovo Impossibile
ATL. in PRESTITO a Società Fuori Regione: Rinnovo per Rientro
ATL. in PRESTITO: Confermare il Prestito o Definire il Rientro (RINNOVO)
", "", "
ATL. TRASFERITO a Società Militare: Rinnovo per Rientro
", "", "
L'Atleta non è tesserato da almeno una stagione:
Verrà salvato come NUOVO Tesserato.
", "", "
", "", "
", "", "
", "", "".$tessstampata."
", "", "
", "", "".$denomsoc."
", "", "".$denomsoc."
", "", "".$denomsoc."
", "", "".$denomsoc."
", "", "".$denomsoc."
", "", "".$denomsoc."
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", " Per scopi commerciali
", "", " Per scopi commerciali
", "", "
", "", "

Indirizzo 
\n\n\n\n"); } else { campo_text("Città", "cittas", "", 0, 0, " size=40 maxlength=\"30\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","cittas",0, "Città "); ?> execute("select Codice, Descrizione from province Order by Descrizione")) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } if(!$act_input) { campo_select("Provincia", "provincias", $opt, $provincias, 0, 0, " class=\"select1\"", "\n\n\n\n\n"); } else { campo_select("Provincia", "provincias", $opt, "", 1, 0, " class=\"select1\"", "\n\n\n\n\n"); } //controlla_select("first", "provincias", "Provincia "); ?> \n\n\n\n"); } else { campo_text("CAP", "caps", "", 0, 0, " size=8 maxlength=\"5\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","num","caps",0, "CAP "); ?> \n\n\n\n"); } else { campo_text("Indirizzo", "indirizzos", "", 0, 0, " size=40 maxlength=\"30\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","indirizzos",0, "Indirizzo "); ?> \n\n\n\n"); } else { campo_text("Telefono 1", "telefonos1", "", 0, 0, " size=30 maxlength=\"15\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","telefonos1",0, "Telefono 1"); ?> \n\n\n\n"); } else { campo_text("Telefono 2", "telefonos2", "", 0, 0, " size=30 maxlength=\"15\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","telefonos2",0, "Telefono 2"); ?> \n\n\n\n"); } else { campo_text("Fax", "faxs", "", 0, 0, " size=30 maxlength=\"15\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","faxs",0, "Fax "); ?> \n\n\n\n"); } else { campo_text("E.Mail", "email", "", 0, 0, " size=60 maxlength=\"60\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","email","email",0, "E.Mail "); ?>
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "

Dati Generali 
execute("select Codice, Descrizione from professioni Order by Codice")) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } if(!$act_input) { campo_select("Professione", "professione", $opt, $professione, 0, 0, " class=\"select1\"" , "\n\n\n\n\n"); } else { campo_select("Professione", "professione", $opt, "", 1, 0, " class=\"select1\"", "\n\n\n\n\n"); } //controlla_select("first", "professione", "Professione "); ?> execute("select Codice, Descrizione from titstudio Order by Codice")) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } if(!$act_input) { campo_select("Titolo di Studio", "studio", $opt, $studio, 0, 0, " class=\"select1\"" , "\n\n\n\n\n"); } else { campo_select("Titolo di Studio", "studio", $opt, "", 1, 0, " class=\"select1\"", "\n\n\n\n\n"); } //controlla_select("first", "studio", "Titolo di Studio "); ***/ campo_hidden("studio",$studio); ?> \n\n\n\n"); } else { campo_select("Leva", "leva", $opt, "", 1, 0, " style='WIDTH: 60px' class=\"select1\" ", "\n\n\n\n\n"); } ***************************************/ ?> \n\n\n\n"); } else { campo_text("Società Leva", "societaleva", "", 0, 0, " size=7 maxlength=\"5\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","societaleva",0, "Società Leva"); **************************************/ ?>
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "

Dati Sportivi 
\n\n\n\n"); } else { // Si passa anche per Stranieri con campo valorizzato campo_select("Straniero (*)", "straniero", $opt, $straniero, 0, 0, " style='WIDTH: 100px' class=\"select1\" ", "\n\n\n\n\n"); } ?> execute("select Codice, Descrizione from nazioni Order by Descrizione")) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } if(!$act_input) { campo_select("Nazione", "nazione", $opt, $nazione, 0, 0, " class=\"select1\"" , "\n\n\n\n\n"); } else { // Si passa anche per Stranieri con campo valorizzato campo_select("Nazione", "nazione", $opt, $nazione, 0, 0, " class=\"select1\"", "\n\n\n\n\n"); } //controlla_select("first", "nazione", "Nazione "); ?> \n\n\n\n"); } else { campo_text("Disabilità", "disabilita", "", 0, 0, " readonly size=70 maxlength=\"250\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","disabilita",0, "CDisabilità "); **/ $opt = null; $query="select Codice, Descrizione from disabatle Order by codice"; if(!$db->execute($query)) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } if(!$act_input) { campo_select("Disabilità", "disabilita", $opt, $disabilita, 0, 0, " class=\"select1\" ", "\n\n\n\n\n"); } else { campo_select("Disabilità", "disabilita", $opt, "", 1, 0, " class=\"select1\" ", "\n\n\n\n\n"); } controlla_campo("first","free","disabilita",0, "Disabilità "); ?> \n\n\n\n"); } else { campo_text("Discipline", "disciplineago", "", 0, 0, " readonly size=70 maxlength=\"250\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","disciplineago",0, "Discipline"); ?> \n\n\n\n"); } else { campo_text("Discipline Prom.", "disciplineprom", "", 0, 0, " readonly size=70 maxlength=\"250\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","disciplineprom",0, "Discipline Promozionali"); ?> execute("select Codice, Descrizione from quozienteint Order by Descrizione")) { echo $db->geterror().": $db->query
"; } $num_rows = $db->getNumRow(); for($i = 0; $i < $num_rows; $i++) { $row = null; $row = $db->getRow($i); $opt[] = array($row["Codice"],$row["Descrizione"]); } if(!$act_input) { campo_select("Quoz.Intellettivo", "quoziente", $opt, $quoziente, 0, 0, " class=\"select1\"" , "\n\n\n\n\n"); } else { // Si passa anche per Stranieri con campo valorizzato campo_select("Quoz.Intellettivo", "quoziente", $opt, $quoziente, 0, 0, " class=\"select1\"", "\n\n\n\n\n"); } //controlla_select("first", "quozienteint", "Quoz.Intellettivo "); */ campo_hidden("disciplineprom",""); campo_hidden("quozienteint",""); ?>
", "", "
", "", "
", "", "
", "", "
", "", "  
", "", "  
", "", "
", "", "
", "", "  
", "", "  
", "", "  
", "", "  
", "", "
", "", "

Dati Bancari 
\n\n\n\n"); } else { campo_text("IBAN", "iban", "", 0, 0, " size=35 maxlength=\"27\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","iban",0, "IBAN "); ?> \n\n\n\n"); } else { campo_text("Conto Corrente", "contoc", "", 0, 0, " size=35 maxlength=\"15\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","contoc",0, "Conto Corrente "); ?> \n\n\n\n"); } else { campo_text("Banca", "banca", "", 0, 0, " size=35 maxlength=\"25\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","banca",0, "Banca "); ?> \n\n\n\n"); } else { campo_text("Agenzia", "agenzia", "", 0, 0, " size=35 maxlength=\"15\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","contoc",0, "Agenzia "); ?> \n\n\n\n"); } else { campo_text("Città", "cittab", "", 0, 0, " size=35 maxlength=\"30\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","cittab",0, "Città "); ?> \n\n\n\n"); } else { campo_text("Codice ABI", "abi", "", 0, 0, " size=8 maxlength=\"5\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","num","abi",0, "Codice ABI "); ?> \n\n\n\n"); } else { campo_text("Codice CAB", "cab", "", 0, 0, " size=8 maxlength=\"5\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","num","cab",0, "Codice CAB "); ?>
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "
", "", "

Prestito 
\n\n\n\n"); } else { // Si passa anche per Stranieri con campo valorizzato campo_text("Note Prestito", "noteprestito", $noteprestito, 0, 0, " size=47 maxlength=\"30\" class=\"text1\"", "\n\n\n\n\n"); } controlla_campo("first","free","noteprestito",0, "Note Prestito "); ?>
", "", "
", "", "
"; print ""; print ""; print ""; } ?>

                       "; } ?>      
0) { if($stracerca=="C" || $stracerca=="E") { $Select .= ",nazioni "; } } $Select .= ",atletisto "; $Where = " where atleti.Tessera = atletisto.Tessera "; //and atleti.AnnoGestione=atletisto.AnnoGestione"; //Variabili if($act_list==2) { // RINNOVO //$Where = " where atleti.annogestione = '$gestionerinnovo'"; //$gestionerinnovo1 = $gestionerinnovo - 2; $gestionerinnovo1 = $gestionerinnovo - 5; if($level=="N") { // Livello NAZIONALE $Where .= " and atleti.annogestione < '$gestione'"; $Where .= " and atleti.annogestione >= '$gestionerinnovo1'"; if($annoincorso > $gestione) { // ANNI PRECEDENTI $Where .= " and anagrafica.Tipo='A' and atleti.Tessera=anagrafica.Tessera and atleti.CodSoc=societa.Codice "; $Where .= " and atleti.annogestione=societa.annogestione and societa.annogestione >= '$gestionerinnovo1'"; } } else { // ALTRI Livelli //$gestionenonrinn = $gestione - 3; Era 2 anni $gestionenonrinn = $gestione - 2; $Where .= " and ((atleti.annogestione >= '$gestionerinnovo1' and atleti.annogestione < '$gestione'"; $Where .= " and societa.Regione = '$regione') or "; $Where .= " (societa.Regione <> '$regione' and atleti.annogestione <= '$gestionenonrinn' )) "; if($annoincorso > $gestione) { // ANNI PRECEDENTI $Where .= " and anagrafica.Tipo='A' and atleti.Tessera=anagrafica.Tessera and atleti.CodSoc=societa.Codice "; $Where .= " and atleti.annogestione=societa.annogestione and societa.annogestione >= '$gestionerinnovo1'"; } if(isSet($provincia) && strlen($provincia) > 0) { $Where .= " and (societa.Provincia = '$provincia' or atleti.annogestione<='$gestionenonrinn') "; //$Where .= " and societa.Provincia = '$provincia' "; } } } else { if($act_list==7) { // ANNULLAMENTO RINNOVO //tolta per ultimo movimento $Where = " where atleti.annogestione=societa.annogestione and societa.annogestione = '$gestione' and atleti.annogestione = '$gestione' and atleti.flagrin='R'"; //$Where = " where atleti.annogestione=societa.annogestione and societa.annogestione = '$gestione' and atleti.annogestione = '$gestione' and atleti.flagrin<>'N'"; $Where .= " and atleti.annogestione=societa.annogestione and societa.annogestione = '$gestione' and atleti.annogestione = '$gestione' "; } else { // AGGIORNAMENTO if($annoincorso > $gestione) { // ANNI PRECEDENTI $Where .= " and atletisto.annogestione = '$gestione' and anagrafica.tessera=atletisto.tessera and anagrafica.tessera=atleti.tessera"; $Where .= " and anagrafica.Tipo='A' and societa.annogestione = '$gestione' and atletisto.AnnoGestione=societa.AnnoGestione and atletisto.codsoc=societa.codice "; } else { // ANNO ATTUALE $Where .= " and atleti.annogestione = '$gestione'"; } } } if($annoincorso == $gestione) { $Where .= " and anagrafica.Tipo='A' and atleti.Tessera=anagrafica.Tessera and atleti.CodSoc=societa.Codice "; if($act_list==2) { //Rinnovo $Where .= " and atleti.annogestione=societa.annogestione and societa.annogestione >= '$gestionerinnovo1'"; } else { $Where .= " and atleti.annogestione=societa.annogestione and societa.annogestione = '$gestione'"; } /**** //********************** aggiunto x online //$Where .= " and atletisto.AnnoGestione = '$gestione' and atleti.tessera=atletisto.tessera "; $Where .= " and atleti.tessera=atletisto.tessera "; $Where .= " and atletisto.AnnoGestione=atleti.AnnoGestione "; //**************************************************************** **/ } if($file_tessere == 1) { $Where .=" and flagsmart = ''"; } if($file_tessere==0) { if($file_tessere == 1) { $Where .=" and flagsmart = ''"; if($tesserenr == "N") { $Where .=" and (atleti.flagrin='N' or atleti.flagrin='T' or atleti.flagrin='P') "; } } else { if($stampa_tessere == 1) { $Where .=" and flagtes = ''"; if($tesserenr == "N") { $Where .=" and (atleti.flagrin='N' or atleti.flagrin='T' or atleti.flagrin='P') "; } } } } if(!empty($societa)) { if($annoincorso == $gestione || $act_list==2) { $Where .= " and atleti.CodSoc = '$societa' "; } else { $Where .= " and atletisto.CodSoc = '$societa' "; } } if(isSet($discipline) && strlen($discipline) > 0) { $Where .= " and atletisto.disciplineago like '%$discipline.%' "; } if(isSet($disciplinep) && strlen($disciplinep) > 0) { $Where .= " and atletisto.disciplineprom like '%$disciplinep.%' "; } if(isSet($disabilita) && strlen($disabilita) > 0) { $Where .= " and atletisto.disabilita = '$disabilita' "; } if(isSet($quoziente) && strlen($quoziente) > 0) { $Where .= " and atletisto.quoziente = '$quoziente' "; } if($act_list==2) { // RINNOVO: solo se livello=nazionale if($level=="N") { //$gestionenonrinn = $gestione - 3; era 2 anni $gestionenonrinn = $gestione - 2; if(isSet($regione) && strlen($regione) > 0) { //--->$Where .= " and (societa.Regione = '$regione' or atleti.annogestione<='$gestionenonrinn') "; $Where .= " and societa.Regione = '$regione' "; } if(isSet($provincia) && strlen($provincia) > 0) { //--->$Where .= " and (societa.Provincia = '$provincia' or atleti.annogestione<='$gestionenonrinn') "; $Where .= " and societa.Provincia = '$provincia' "; } } } else { if(isSet($regione) && strlen($regione) > 0) { $Where .= " and societa.Regione = '$regione' "; } if(isSet($provincia) && strlen($provincia) > 0) { $Where .= " and societa.Provincia = '$provincia' "; } } /*** if($file_tessere == 1) { //******* // CATEGORIA per FILE TESSERE //******* if(isSet($categorialik) && count($categorialik) > 0) { if($annoincorso == $gestione || $act_list==2) { $nometab="atleti."; } else { $nometab="atletisto."; } $xpassa=0; for ($t = 0; $t < strlen($categorialik); $t++) { //print $categoria[$t]; if($t == 0) { $Where .= "\n and ( "; $Where .= "\n ".$nometab."Categoria = '".trim(substr($categorialik,$t,4))."' "; $xpassa=1; } else { $Where .= "\n or ".$nometab."Categoria = '".trim(substr($categorialik,$t,4))."' "; } $t=$t+3; } if($xpassa == 1) { $Where .= "\n ) "; } } } else { if(!empty($categoria)) { if($annoincorso == $gestione || $act_list==2) { $Where .= " and atleti.Categoria = '$categoria' "; } else { $Where .= " and atletisto.Categoria = '$categoria' "; } } } ***/ if(!empty($categoria)) { if($annoincorso == $gestione || $act_list==2) { $Where .= " and atleti.Categoria = '$categoria' "; } else { $Where .= " and atletisto.Categoria = '$categoria' "; } } if(!empty($tessera)) { $Where .= " and atleti.tessera like '$tessera%' "; } if(!empty($cognome)) { $Where .= " and anagrafica.cognome like '".apici($cognome)."%' "; } if(!empty($nome)) { $Where .= " and anagrafica.nome like '$nome%' "; } if(isSet($nazione) && strlen($nazione) > 0) { $Where .= " and atleti.nazione = '$nazione' "; } if(isSet($stracerca) && strlen($stracerca) > 0) { switch($stracerca) { case "S": $Where .= " and atleti.straniero = 'S' "; break; case "C": $Where .= " and nazioni.comunitaria = 'S' and atleti.nazione=nazioni.codice "; break; case "E": $Where .= " and nazioni.comunitaria = 'N' and atleti.nazione=nazioni.codice"; break; } } if(!empty($filautocomm)) { switch($filautocomm) { case "T": // --> $Where .= " and atleti.autocomm = 'S' "; break; case "S": $Where .= " and atleti.autocomm = 'S' "; break; case "N": $Where .= " and atleti.autocomm = 'N' "; break; } } if(!empty($nuovirinnovi)) { if($nuovirinnovi!="Z") { $Where .= " and atleti.FlagRin = '$nuovirinnovi' "; } } if($utente_leva == 1) { if(!empty($leva)) { $Where .= " and atleti.Leva = '$leva' "; } } else { $Where .= " and atleti.Leva <> 'C' and atleti.Leva <> 'S' "; } if(!empty($flagicsd)) { switch($flagicsd) { case "T": break; case "S": $Where .= " and atletisto.codicsd != '' and not atletisto.codicsd is null"; break; case "N": $Where .= " and atletisto.codicsd == '' or atletisto.codicsd is null "; break; } } //Ordinamento $ordertype = array("societa.Codice,anagrafica.Cognome,anagrafica.Nome","anagrafica.Cognome,anagrafica.Nome","societa.Regione,societa.Provincia,anagrafica.Cognome,anagrafica.Nome"); if(!isSet($ordinamento)) { $ordinamento = 0; } $Order = " order by $ordertype[$ordinamento]"; if($utente=="STEFANO") { print $Select.$Where.$Order; } //exit; if(!$db->execute($Select.$Where.$Order." limit 500")) { echo $db->geterror().": $db->query
"; } $vartessera=""; $num_rows = $db->getNumRow(); $pari = 0; $nele=0; for($i = 0; $i < $num_rows; $i++) { if($i==0) { // ************************************ // INIZIO PRIMA RIGA // ************************************ ?>
        if($file_tessere == 1) { ?>                                

"); $linkbar = null; if($file_tessere == 1) { $linkbar[] = array("", "Foto"); } $linkbar[] = array("", ""); $linkbar[] = array("", "Tessera"); $linkbar[] = array("", "Cognome"); $linkbar[] = array("", "Nome"); $linkbar[] = array("", "Nascita"); $linkbar[] = array("", "Sesso"); $linkbar[] = array("", "Società"); if($act_list!=2) { // Aggiornamento $linkbar[] = array("", ""); if($stampa_tessere == 1) { $linkbar[] = array("", "Stampa"); } else { if($act_list==7) { $linkbar[] = array("", "Annulla"); } else { if ($selezione_singola==1) { $linkbar[] = array("", "Sel."); } $linkbar[] = array("", "Canc."); } } } else { // Rinnovo $linkbar[] = array("", ""); } barra($linkbar,"","intest",""); $linkbar = null; if($file_tessere == 1) { $linkbar[] = array("", ""); } $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); $linkbar[] = array("", ""); if($act_list!=2) { // Aggiornamento $linkbar[] = array("", ""); $linkbar[] = array("", ""); if ($selezione_singola==1) { $linkbar[] = array("", ""); } } else { // Rinnovo $linkbar[] = array("", ""); } barra($linkbar,"","intest",""); $linkbar = null; // ************************************ // FINE PRIMA RIGA // ************************************ } $linkbar = null; $row = null; $row = $db->getRow($i); if($act_list==2) { // Riaffiliazione $rec = "/gestman/?ch=atleti&act=mob&tessera=".$row["Tessera"]; } else { // Aggiornamento $rec = "/gestman/?ch=atleti&act=mod&tessera=".$row["Tessera"]; } $datanascita=formatta_dataXlista($row["DataNas"]); //$datanascita=substr($datanascita,0,2)."/".substr($datanascita,3,2)."/".substr($datanascita,8,2); $datanascita=substr($datanascita,0,2).substr($datanascita,3,2).substr($datanascita,6,4); if($annoincorso == $gestione || $act_list==2) { $asterisc=""; $query="Select Utente from atletisto where AnnoGestione='".$row["AnnoGestione"]."' and Tessera='".$row["Tessera"]."'"; //print "
".$query; if(!$db2->execute($query)) { echo $db2->geterror().": $db2->query
"; } else { $rrow = null; $rrow = $db2->getRow(0); if($row["Codsoc"]==$rrow["Utente"]) { // On line $asterisc="*"; } else { // Non On line $asterisc="*"; } } } else { if($row["Codsoc"]==$row["Utente"]) { // On line $asterisc="*"; } else { // Non On line $asterisc="*"; } } if($file_tessere == 1) { $fileimg = "../online/fotoatleti/F".$row["Tessera"].".jpg"; /**************** if (file_exists($fileimg)) { $linkbar[] = array("",""); } else { $linkbar[] = array("",""); } ******************/ $linkbar[] = array("",""); } $linkbar[] = array($rec,$asterisc); $linkbar[] = array($rec,$row["Tessera"]); $linkbar[] = array($rec,$row["Cognome"]); $linkbar[] = array($rec,$row["Nome"]); $linkbar[] = array($rec,$datanascita); $linkbar[] = array($rec,$row["Categoria"]); $linkbar[] = array($rec,$row["Codsoc"]); if($act_list!=2) { $xtes=$row["Tessera"]; // Aggiornamento if($stampa_tessere == 1) { $linkbar[] = array("",""); $linkbar[] = array("",""); } else { //Commentata riga con Sto. Tec. Ris. //$linkbar[] = array("","  "); //solo Sto. $linkbar[] = array("",""); if ($selezione_singola==1 && $act_list!=7) { $linkbar[] = array("",""); } if($act_list!=7 && (strtoupper($utente)=="UTEAMM01")) { $linkbar[] = array("",""); } else { if($act_list==7) { $linkbar[] = array("",""); } else { if($annoincorso == $gestione) { $linkbar[] = array("",""); } else { $linkbar[] = array("",""); } } } } } else { $xtes=$row["Tessera"]; if($pari) { $pari = 0; $colore = "#dfdfdf"; } else { $pari = 1; $colore = "#FFFFFF"; } $linkbar[] = array("",""); $nele=$nele+1; } if($vartessera!=$row["Tessera"]) { if($pari) { $pari = 0; $colore = "#dfdfdf"; } else { $pari = 1; $colore = "#FFFFFF"; } barra($linkbar,"","nav2",""); $vartessera=$row["Tessera"]; $nele=$nele+1; } // Era attiva questa riga ---> barra($linkbar,"","nav2",""); } //echo $db->query; $db2->disconnect(); ?>
","","
","","
","","
","","
","","
Totale:
            if($file_tessere == 1) { ?>                                
Dati non trovati

Vai ad impostare una Nuova Ricerca per Rinnovo Vai ad impostare una Nuova Ricerca per Aggiornamento execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } } } if(!$error) { ?> Selezione Di Tesserati Avvenuta.

Vai ad impostare una Nuova Ricerca query; } else { ?> Impossibile Salvare la Selezione

Vai ad impostare una Nuova Ricerca ".$db->geterror().""; } ?>


execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } $cancella_atleta=0; if($db->getNumRow()==1) { $cancella_atleta=1; } if($xxxtipo=="N" && $cancella_atleta==1) { //APERTURA IF A print "
Tesserato '$xxxtess': Impossibile annullare il movimento."; } else { //APERTURA IF/ELSE A $query = "select CodSoc from atleti where Tessera='$xxxtess' and Annogestione='$gestione' limit 1"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } else { list($xxxcodsocmov) = $db->getRow(0); } //$query = "delete from atletisto where Tessera='$cancella[$i]' and Annogestione='$gestione' and tipomov='R'"; $query = "delete from atletisto where Tessera='$xxxtess' and Annogestione='$gestione' and tipomov='$xxxtipo' and datamov='$xxxdamo'"; //print "
".$query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } if($xxxtipo=="ZZZZZZ") { //ISTRUZIONE DISABILITATA CON ZZZZ $query = "delete from atleti where Tessera='$xxxtess' and Annogestione='$gestione' limit 1"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } $query = "delete from anagrafica where Tipo='A' and Tessera='$xxxtess' limit 1"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } } else { $i_passa = 1; $query = " select annogestione,tipomov,datamov,categoria,codsoc"; //$query=$query." from atletisto where Tessera = '$cancella[$i]' order by datamov desc"; $query=$query." from atletisto where Tessera = '$xxxtess' order by datamov desc"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } else { list($annogvec,$tipomvec,$datamvec,$catvec,$codsocvec) = $db->getRow(0); } $query = " update atleti Set annogestione = '$annogvec', flagrin = '$tipomvec', datamov = '$datamvec', categoria = '$catvec', codsoc = '$codsocvec' where Tessera = '$xxxtess' and Annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } /***********DISABILITATO PER CIP/FSSI ************** if($xxxtipo=="P" || $xxxtipo=="T") { $query = "update trasfer set operativo='N' where AnnoGestione='$gestione'"; $query.= " and Tessera='$xxxtess' and Tipo='$xxxtipo' and DataMov='$xxxdamo'"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } } *******************************************************/ } /****CIP/FSSI $query = "select uscite from tologmovim where Tessera='$xxxtess' and codsoc='$xxxcodsocmov' and annogestione='$gestione' limit 1"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } else { list($xxxuscitemov) = $db->getRow(0); } $query = "delete from tologmovim where Tessera='$xxxtess' and codsoc='$xxxcodsocmov' and annogestione='$gestione' limit 1"; //print "
".$query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } $query = "update uteonline set importototale=importototale+$xxxuscitemov where codice='$xxxcodsocmov' limit 1"; //print "
".$query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } ***/ //CHIUSURA IF A } } } if($i_passa == 1) { if(!$error) { ?> Annullamento Ultimo Movimento per Tesserati Avvenuto.

Annullamento Ultimo Movimento Impossibile


Vai ad impostare una Nuova Ricerca execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } else { list($xxxcodsocmov) = $db->getRow(0); } $query = "delete from atleti where Tessera='$cancella[$i]' and Annogestione='$gestione'"; //print $query; if(!$db->execute($query)) { $error = 1; break; } $query = "delete from atletisto where Tessera='$cancella[$i]'"; //print $query; if(!$db->execute($query)) { $error = 1; break; } $query = "delete from anagrafica where Tipo='A' and Tessera='$cancella[$i]'"; //print $query; if(!$db->execute($query)) { $error = 1; break; } /****** PER CIP/FSSI ***************** $xxxuscitemov=0.00; $query = "select uscite from tologmovim where Tessera='$cancella[$i]' and codsoc='$xxxcodsocmov' and annogestione='$gestione' limit 1"; //print $query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } else { list($xxxuscitemov) = $db->getRow(0); } $query = "delete from tologmovim where Tessera='$cancella[$i]' and codsoc='$xxxcodsocmov' and annogestione='$gestione' limit 1"; //print "
".$query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } $query = "update uteonline set importototale=importototale+$xxxuscitemov where codice='$xxxcodsocmov' limit 1"; //print "
".$query; if(!$db->execute($query)) { //echo $db->geterror().": $db->query
"; $error = 1; break; } *******/ } } if(!$error) { ?> Cancellazione Di Tesserati Avvenuta.

Vai ad impostare una Nuova Ricerca query; } else { ?> Impossibile Cancellare

Vai ad impostare una Nuova Ricerca ".$db->geterror().""; } } } // ****************************************************** // FINE DELETE RECORD // ****************************************************** ?>