1function controllaF1() { 2 if(intControllaF1()) { 3 document.getElementById("velanet").style.cursor="wait"; 4 mostraProgress(); 5 document.getElementById("registrazione").submit(); 6 } 7} 8 9function controllaF2() { 10 if(intControllaF2()) { 11 document.getElementById("velanet").style.cursor="wait"; 12 mostraProgress(); 13 document.getElementById("registrazione").submit(); 14 } 15} 16 17function controllaF3() { 18 if(intControllaF3()) { 19 document.getElementById("velanet").style.cursor="wait"; 20 mostraProgress(); 21 document.getElementById("registrazione").submit(); 22 } 23} 24 25function controllaBlog() { 26 errori = 0 27 messaggio = ""; 28 if(document.getElementById("titolo").value=="") { 29 errori +=1; 30 messaggio += "Non è stato inserito il titolo\n"; 31 } 32 if(document.getElementById("nick").value=="") { 33 errori +=1; 34 messaggio += "Non è stato inserito il nickname\n"; 35 } 36 else { 37 controllo = new RegExp("[a-zA-Z0-9]*"); 38 if(! document.getElementById("nick").value.match(controllo)) { 39 errori +=1; 40 messaggio += "Il nick non è composto da caratteri esclusivamente alfanumerici\n"; 41 } 42 } 43 if(errori>0) { 44 alert(messaggio); 45 return false; 46 } 47 else { 48 document.getElementById("velanet").style.cursor="wait"; 49 mostraProgress(); 50 document.getElementById("blogform").submit(); 51 } 52} 53 54function controllaProf() { 55 errori = 0 56 messaggio = ""; 57 if( 58 !document.getElementById("imbarco_imbvela").checked && 59 !document.getElementById("imbarco_navivela").checked && 60 !document.getElementById("imbarco_terra").checked && 61 !document.getElementById("imbarco_imbmot").checked && 62 !document.getElementById("imbarco_navimot").checked 63 ) { 64 errori +=1; 65 messaggio += "Non è stato specificato l'imbarco cercato\n"; 66 } 67 if( 68 !document.getElementById("disponibilita_nondisp").checked && 69 !document.getElementById("disponibilita_immediata").checked && 70 !document.getElementById("disponibilita_data").checked 71 ) { 72 errori +=1; 73 messaggio += "Non è stato specificata la disponibilità \n"; 74 } 75 if(document.getElementById("disponibilita_data").checked && ( 76 document.getElementById("dispgiorno").value=="" || 77 document.getElementById("dispmese").value=="" || 78 document.getElementById("dispanno").value=="" 79 )) { 80 errori +=1; 81 messaggio += "Non è stato specificata il periodo di disponibilità \n"; 82 } 83 if( 84 !document.getElementById("areenav_mediterraneo").checked && 85 !document.getElementById("areenav_qualsiasi").checked 86 ) { 87 errori +=1; 88 messaggio += "Non è stato specificata l'area di navigazione\n"; 89 } 90 if( 91 !document.getElementById("tipoimb_indet").checked && 92 !document.getElementById("tipoimb_stag").checked && 93 !document.getElementById("tipoimb_pres").checked 94 ) { 95 errori +=1; 96 messaggio += "Non è stato specificato il tipo di incarico\n"; 97 } 98 if(errori>0) { 99 alert(messaggio); 100 return false; 101 } 102 else { 103 document.getElementById("velanet").style.cursor="wait"; 104 mostraProgress(); 105 document.getElementById("registrazione").submit(); 106 } 107} 108 109function controllaDati() { 110 fase1 = true; 111 fase2 = true; 112 fase3 = true; 113 if(document.getElementById("fase_modulo").value=="1") { 114 fase1 = intControllaF1D(); 115 } 116 if(document.getElementById("fase_modulo").value=="2" || document.getElementById("fase_modulo").value=="3") { 117 fase2 = intControllaF2(); 118 } 119 if(document.getElementById("fase_modulo").value=="3") { 120 fase3 = intControllaF3(); 121 } 122 if(fase1 && fase2 && fase3) { 123 document.getElementById("velanet").style.cursor="wait"; 124 mostraProgress(); 125 document.getElementById("registrazione").submit(); 126 } 127} 128 129function intControllaF1() { 130 errori = 0 131 messaggio = ""; 132 if(!document.getElementById("privacy").checked) { 133 errori +=1; 134 messaggio += "E' necessario prestare il consenso al trattamento dei dati personali\n"; 135 } 136 if(document.getElementById("user").value.length==0) { 137 errori +=1; 138 messaggio += "Non è stato inserito il login\n"; 139 } 140 if(document.getElementById("email").value.length==0) { 141 errori +=1; 142 messaggio += "Non è stata inserita l'email\n"; 143 } 144 else if(!verificaEmail(document.getElementById("email").value)) { 145 errori +=1; 146 messaggio += "L'indirizzo email non è valido\n"; 147 } 148 if(errori>0) {
149 alert(messaggio); 150 return false; 151 } 152 else { 153 return true; 154 } 155} 156function intControllaF1D() { 157 errori = 0 158 messaggio = ""; 159 if(document.getElementById("email") && document.getElementById("email2")) { 160 if(document.getElementById("email").value != document.getElementById("email2").value) { 161 errori +=1; 162 messaggio += "Le email inserite non coincidono\n"; 163 } 164 } 165 if(document.getElementById("password") && document.getElementById("password2")) { 166 if(document.getElementById("password").value != document.getElementById("password2").value) { 167 errori +=1; 168 messaggio += "Le password inserite non coincidono\n"; 169 } 170 } 171 if(errori>0) { 172 alert(messaggio); 173 return false; 174 } 175 else { 176 return true; 177 } 178} 179 180 181function intControllaF2() { 182 errori = 0 183 messaggio = ""; 184 if(document.getElementById("nome").value.length==0) { 185 errori +=1; 186 messaggio += "Non è stato inserito il nome\n"; 187 } 188 if(document.getElementById("cognome").value.length==0) { 189 errori +=1; 190 messaggio += "Non è stato inserito il cognome\n"; 191 } 192 if(document.getElementById("anno").value==0 || document.getElementById("anno").value=='') { 193 errori +=1; 194 messaggio += "Non è stato inserito l'anno di nascita\n"; 195 } 196 if(document.getElementById("provincia").value==0) { 197 errori +=1; 198 messaggio += "Non è stato inserita la provincia di residenza\n"; 199 } 200 if(document.getElementById("password") && document.getElementById("password2")) { 201 if(document.getElementById("password").value != document.getElementById("password2").value) { 202 errori +=1; 203 messaggio += "Le password inserite non coincidono\n"; 204 } 205 } 206 if(errori>0) { 207 alert(messaggio); 208 return false; 209 } 210 else { 211 return true; 212 } 213} 214 215function intControllaF3() { 216 errori = 0 217 messaggio = ""; 218 if(document.getElementById("indirizzo").value.length==0) { 219 errori +=1; 220 messaggio += "Non è stato inserito l'indirizzo\n"; 221 } 222 if(document.getElementById("cap").value.length==0) { 223 errori +=1; 224 messaggio += "Non è stato inserito il cap\n"; 225 } 226 if(document.getElementById("comune").value.length==0) { 227 errori +=1; 228 messaggio += "Non è stato inserito il comune\n"; 229 } 230 if(document.getElementById("provincia").value==0) { 231 errori +=1; 232 messaggio += "Non è stata inserita la provincia\n"; 233 } 234 if(document.getElementById("telefono").value.length==0) { 235 errori +=1; 236 messaggio += "Non è stato inserito il telefono\n"; 237 } 238 if(document.getElementById("nazionalita").value==0) { 239 errori +=1; 240 messaggio += "Non è stato inserita la nazionalità \n"; 241 } 242 if(!document.getElementById("genere_1").checked && !document.getElementById("genere_2").checked) { 243 errori +=1; 244 messaggio += "Non è stato inserito il genere\n"; 245 } 246 if(!document.getElementById("prof_1").checked && !document.getElementById("prof_2").checked) { 247 errori +=1; 248 messaggio += "Non è stato specificato se si ha un titolo professionale\n"; 249 } 250 if(!document.getElementById("gente_1").checked && !document.getElementById("gente_2").checked) { 251 errori +=1; 252 messaggio += "Non è stato specificato se si è iscritti a 'Gente di mare'\n"; 253 } 254 if(document.getElementById("prof_1").checked && ( 255 !document.getElementById("titoloprof_conduttore").checked && 256 !document.getElementById("titoloprof_comandante").checked && 257 !document.getElementById("titoloprof_capitano").checked && 258 !document.getElementById("titoloprof_capitano").checked && 259 !document.getElementById("titoloprof_ufficiale").checked && 260 !document.getElementById("titoloprof_capitanolungo").checked && 261 !document.getElementById("titoloprof_titoliint").checked && 262 !document.getElementById("titoloprof_corsiprofess").checked 263 )) { 264 errori +=1; 265 messaggio += "Non è stato specificato il titolo professionale di cui si è in possesso\n"; 266 } 267 if(document.getElementById("qualifica_terra").checked && document.getElementById("qualificaterra").value=="") { 268 errori +=1; 269 messaggio += "Non è stato specificata l'attivitè a terra o in porto\n"; 270 } 271 if(document.getElementById("qualifica_regatante").checked && ( 272 !document.getElementById("regatante_tattico").checked && 273 !document.getElementById("regatante_timoniere").checked && 274 !document.getElementById("regatante_prodiere").checked && 275 !document.getElementById("regatante_albero").checked && 276 !document.getElementById("regatante_pozzetto").checked && 277 !document.getElementById("regatante_generico").checked 278 )) { 279 errori +=1;
280 messaggio += "Non è stato specificato il ruolo / i ruoli di regata prescelto\n"; 281 } 282 if(!document.getElementById("qualifica_regatante").checked && ( 283 document.getElementById("regatante_tattico").checked || 284 document.getElementById("regatante_timoniere").checked || 285 document.getElementById("regatante_prodiere").checked || 286 document.getElementById("regatante_albero").checked || 287 document.getElementById("regatante_pozzetto").checked || 288 document.getElementById("regatante_generico").checked 289 )) { 290 document.getElementById("qualifica_regatante").checked = true; 291 } 292 if(errori>0) { 293 alert(messaggio); 294 return false; 295 } 296 else { 297 return true; 298 } 299} 300 301function utenteCancella(ID) { 302 conf = confirm('Sei sicuro di voler cancellare l\'utente '+ID); 303 if(conf) { 304 document.location.href = '/admin/utenti_cancella.php?utente='+ID; 305 } 306} 307 308function utenteAutoCancella() { 309 conf = confirm('Sei sicuro di volerti cancellare permanentemente dal database di Velanet?'); 310 if(conf) { 311 document.getElementById("velanet").style.cursor="wait"; 312 mostraProgress(); 313 document.getElementById("cancellazione").submit(); 314 } 315}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.