|
\\ <%=Testo_Path_Pannello%> : <%=Testo_Sezione_Fotografie%> : <%=Testo_Modulo_PulsanteAggiungi%>
<%=Testo_Fotografie_IntroduzioneAggiungi%>
<%
If Request.QueryString("a") = "aggiungi" Then
FNomeFile = DoppioApice(Request.Form("NomeFile"))
FSezione = DecodeEntities(SostituisciCaratteri(DoppioApice(Request.Form("Sezione")), "No"))
FAutore = Session("BLOGNick")
FDescrizione = DoppioApice(SostituisciCaratteri(Request.Form("Descrizione"), "No"))
FData = DoppioApice(Request.Form("Data"))
FOra = DoppioApice(Request.Form("Ora"))
FLetture = DoppioApice(Request.Form("Letture"))
FHeader = Request.Form("Header")
Errore = False
If FNomeFile = "" Then
Errore = True
End If
If FSezione = "" Then
Errore = True
End If
If FDescrizione = "" Then
Errore = True
End If
If FData = "" OR Len(FData) <> 8 OR IsNumeric(FData) = False OR IsDate(StrToData(FData)) = False Then
Errore = True
End If
If FOra = "" OR Len(FOra) <> 6 OR IsNumeric(FOra) = False Then
Errore = True
End If
If FLetture = "" OR IsNumeric(FLetture) = False Then
Errore = True
End If
If Errore = False Then
SQLAggiungi = " INSERT INTO [Fotografie] ([NomeFile], [Sezione], [Autore], [Descrizione], [Data], [Ora], [Letture], [Header]) VALUES ('"& FNomeFile &"', '"& FSezione &"', '"& FAutore &"', '"& FDescrizione &"', '"& FData &"', '"& FOra &"', "& cInt(FLetture) &", "
If FHeader = "si" Then
SQLAggiungi = SQLAggiungi & "True)"
Else
SQLAggiungi = SQLAggiungi & "False)"
End If
Set RSAggiungi = Server.CreateObject("ADODB.Recordset")
RSAggiungi.Open SQLAggiungi, Conn, 1, 3
Set RSAggiungi = Nothing
%>
<%=Testo_Fotografie_AggiuntaABuonFine%>
<%=Testo_Fotografie_LinkTornaIndietro%>, <%=Testo_Fotografie_LinkVaiElenco%> <%=Testo_SceltaOppure%> <%=Testo_Link_AvviaUploadFile%>.
<%
Else
%>
<%=Testo_Fotografie_ErroreInserimento%>
<%=Testo_Fotografie_LinkTornaIndietro%> <%=Testo_SceltaOppure%> <%=Testo_Fotografie_LinkVaiElenco%>.
<%
End If
Else
%>
<%=Testo_Legenda_CampiObbligatori%>
<%
End If
%>
|
|