27 giugno 2003 alle 10:37:48 Ragazzi ho inserito il mod attività ma mi da conflitto col blocco Favoriti, in pratica mi da questo errore sul blocco Favoriti:
Microsoft VB_Script runtime error '800a01f4'
Variable is undefined: 'DisplayFavorites'
/includes/display-inc.asp, line 518
cosa devo fare?
vi metto quello che c'è alla linea 518:
Case 4 : DisplayFavorites()
Grazie ciao
--------------- WEBMASTER di http://www.hardwaremax.it Venite a trovarmi sul mio http://www.hardwaremax.it/forum/ CPU Athlon XP 2400@2600 XP - Scheda Madre MSI-KT3 ULTRA 2 - V-DATA 512 DDR 2700 Scheda Video Sapphir 9500PRO - Scheda Audio Fortissimo II
lucifaro666
Principiante
4 Discussioni
28 giugno 2003 alle 09:11:45 Nessuno sa darmi una mano?
--------------- WEBMASTER di http://www.hardwaremax.it Venite a trovarmi sul mio http://www.hardwaremax.it/forum/ CPU Athlon XP 2400@2600 XP - Scheda Madre MSI-KT3 ULTRA 2 - V-DATA 512 DDR 2700 Scheda Video Sapphir 9500PRO - Scheda Audio Fortissimo II
28 giugno 2003 alle 09:29:54 Se la variabile non è definita, inserisci un DIM NOMEVARIABILE all'inizio del codice della sub o della funzione. Ciauzz Dj
--------------- A lavare la testa ai somari, ci si rimette l'acqua e il sapone!
29 giugno 2003 alle 19:54:46 scusa djveleno mi potresti dire cosa scrivere di preciso non conosco ASP.
Grazie
--------------- WEBMASTER di http://www.hardwaremax.it Venite a trovarmi sul mio http://www.hardwaremax.it/forum/ CPU Athlon XP 2400@2600 XP - Scheda Madre MSI-KT3 ULTRA 2 - V-DATA 512 DDR 2700 Scheda Video Sapphir 9500PRO - Scheda Audio Fortissimo II
sisso
Utente
83 Discussioni
29 giugno 2003 alle 20:37:37 Dim DisplayFavorites
all'inizio del display-inc se ti chiede di definire altre variabili aggiungi un Dim nomevariabile x ogni.
29 giugno 2003 alle 22:37:33 Modificato il 29 giugno 2003 alle 22:39:29Ho fatto ma adesso mi da questo:
Microsoft VB_Script runtime error '800a000d'
Type mismatch: 'DisplayFavorites'
/includes/display-inc.asp, line 518
Sempre riferito al:
Case 4 : DisplayFavorites()
--------------- WEBMASTER di http://www.hardwaremax.it Venite a trovarmi sul mio http://www.hardwaremax.it/forum/ CPU Athlon XP 2400@2600 XP - Scheda Madre MSI-KT3 ULTRA 2 - V-DATA 512 DDR 2700 Scheda Video Sapphir 9500PRO - Scheda Audio Fortissimo II
sisso
Utente
83 Discussioni
29 giugno 2003 alle 23:03:16 Postami il codice che ti dico dove metterlo
--------------- http://www.giulin.net
lucifaro666
Principiante
4 Discussioni
30 giugno 2003 alle 01:25:51 Modificato il 30 giugno 2003 alle 01:26:42ecco tutto il codice:
' Create the top part of a standard table ' IN : sTabName (string) : table's name (can be empty) ' : sHeader (string) : title displayed ' OUT : - Sub CreateTopTable(sTabName, sHeader) Response.Write " <table id=""" & sTabName & """ width=""100%"" align=""center"" cellspacing=""0"" cellpadding=""0"" class=""myTable"">" & vbCRLF If sHeader <> "" Then Response.Write " <tr>" & vbCRLF Response.Write " <td class=""myTitle"" width=""100%"">" & sHeader & "</td>" & vbCRLF 'Response.Write " <div align=""left""><img src=""scossa.gif"" width=""100%"" helght=""100%""></div>" & vbCRLF Response.Write " </tr>" & vbCRLF End If Response.Write " <tr>" & vbCRLF Response.Write " <td width=""100%"" class=""myTD"">" & vbCRLF End Sub
' Create the bottom part of a standard table ' IN : sFooter (string) : footer ' OUT : - Sub CreateBottomTable(sFooter) Response.Write " </td>" & vbCRLF Response.Write " </tr>" & vbCRLF If sFooter <> "" Then Response.Write " <tr>" & vbCRLF Response.Write " <td align=""right"" class=""myTD""><br><span class=""small"">" & sFooter & "</span></td>" & vbCRLF Response.Write " </tr>" & vbCRLF 'Response.Write " <td width=""100%"" border=""0"" cellspacing=""0"" celpadding=""0"" background=""h.png"">" & vbCRLF Response.Write " <tr>" & vbCRLF Response.Write " <td>" & vbCRLF 'Response.Write " <div align=""left""><img src=""scossa.gif"" width=""100%"" helght=""100%""></div>" & vbCRLF Response.Write " </tr>" & vbCRLF Response.Write " </td>" & vbCRLF End If Response.Write " </table>" & vbCRLF Response.Write " <br>" & vbCRLF End Sub
' Create a standard table ' IN : sTabName (string) : table's name (can be empty) ' : sHeader (string) : title displayed ' : sText (string) : text in the table ' : sFooter (string) : footer ' OUT : - Sub CreateTable(sTabName, sHeader, sText, sFooter) CreateTopTable sTabName, sHeader Response.Write sText & vbCRLF CreateBottomTable sFooter End Sub
' Get number of anonymous visitors connected to the site ' IN : - ' OUT : (int) number of anonymous visitors Function AnonymousVisitors() Dim oCn, oRs, rSQL
Set oCn = DBConnexion(DB_MAIN) rSQL = "SELECT Count(*) FROM sessions" Set oRs = DBRecordSet(oCn, rSQL) AnonymousVisitors = oRs(0)
oCn.Close Set oCn = Nothing Set oRs = Nothing End Function
' Get number of authenticated visitors connected to the site ' IN : - ' OUT : (int) number of authenticated visitors Function AuthentVisitors() Dim oCn, oRs, rSQL
Set oCn = DBConnexion(DB_MAIN) rSQL = "SELECT Count(*) FROM sessions WHERE sLogin<>''" Set oRs = DBRecordSet(oCn, rSQL) AuthentVisitors = oRs(0)
oCn.Close Set oCn = Nothing Set oRs = Nothing End Function
' Display number of visitors connected to the site ' IN : - ' OUT : - Sub DisplayDynamicCounter()
'begin redbaron76's modify %> <iframe src="onlinemembers.asp" name="online" width="140" height="100" align="center" frameborder="1" scrolling="auto"> You will not see this text if your browser supports IFRAME. If you CAN see this, you are in a bad way. </iframe> <% 'end redbaron76's modify
'CreateBottomTable "" 'End If 'End Sub ' Display favorites websites ' IN : - ' OUT : - 'Sub DisplayFavorites() 'If bDisplayFavorites Then 'Dim oCn, oRs, rSQL
rSQL = "SELECT Count(*) AS Nb FROM users" Set oRs = DBRecordSet(oCn, rSQL) Response.Write Replace(GetTranslation("LANG_ACCOUNTS_INFO"), "%1%", oRs(0)) & vbCRLF oRs.Close Set oRs = Nothing
If sPseudo <> "" Then Response.Write " - <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_MEMBERSLIST_PAGE & """>" & GetTranslation("LANG_TITLE_MEMBERSLIST") & "</a>" & vbCRLF End If
rSQL = "SELECT Count(*) FROM users where uValid = TRUE" Set oRs = DBRecordSet(oCn, rSQL) Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/single01.gif"" border=""0"" alt="""">" & GetTranslation("LANG_ACTIVE") & Server.URLEncode(oRs(0)) & vbCRLF oRs.Close set oRs = Nothing
rSQL = "SELECT Count(*) FROM users where uValid = FALSE" Set oRs = DBRecordSet(oCn, rSQL) Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/single03.gif"" border=""0"" alt="""">" & GetTranslation("LANG_INACTIVE") & Server.URLEncode(oRs(0)) & vbCRLF oRs.Close set oRs = Nothing
If sPseudo <> "" Then rSQL = "SELECT TOP 1 uLogin FROM users ORDER BY uDate DESC" Set oRs = DBRecordSet(oCn, rSQL) If Not oRs.EOF Then Response.Write "<br>" & GetTranslation("LANG_LAST_ACCOUNT") & " : <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PROFILE_PAGE & "?id=" & Server.URLEncode(oRs(0)) & """>" & Server.HTMLEncode(oRs(0)) & "</a>" & vbCRLF End if oRs.Close set oRs = Nothing End If
rSQL = "SELECT TOP 1 uLogin FROM users ORDER BY uDate DESC" Set oRs = DBRecordSet(oCn, rSQL) If Not oRs.EOF Then Response.Write "<br><span class=""small"">" & GetTranslation("LANG_LAST_ACCOUNT") & " : <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PROFILE_PAGE & "?id=" & Server.URLEncode(oRs(0)) & """>" & Server.HTMLEncode(oRs(0)) & "</a><br>" & vbCRLF Response.Write "<a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_MEMBERSLIST_PAGE & """>" & GetTranslation("LANG_TITLE_MEMBERSLIST") & "</a></span>" & vbCRLF
' Inizio modifica login scaricata da www.ilprogramma.it/cecina
Dim sPreviousPage, iPos, sMemo
if sPseudo="" then
CreateTopTable "login", "Login"
If Request.Form("urlpage") <> "" Then sPreviousPage = Request.Form("urlpage") Else sPreviousPage = Request.ServerVariables("HTTP_REFERER") iPos = InstrRev(sPreviousPage, "/") If iPos > 0 and iPos > 7 Then sPreviousPage = Mid(sPreviousPage, iPos+1) Else sPreviousPage = "Default.asp" End If End If
oCn.Close Set oCn = Nothing Set oRs = Nothing End If End Sub
' Display the top last websites added to the directory ' IN : iTop (int) : number of results wanted ' OUT : - Sub DisplayDirectoryLastSites(iTop) If bDisplayLastSites Then Dim oCn, oRs, rSQL
Set oCn = DBConnexion(DB_MAIN)
rSQL = "SELECT TOP " & iTop & " dID, dTitle, dDate, dURL, vCode FROM directory, versions WHERE dValid=1 AND dVersion=vID ORDER BY dDate DESC, dTitle" Set oRs = DBRecordSet(oCn, rSQL)
If Not oRs.EOF Then CreateTopTable "TopDirectory", GetTranslation("LANG_TOP") & " - " & GetTranslation("LANG_SITES") While Not oRs.EOF Response.Write " <span class=""small""><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_GOTOURL_PAGE & "?url=" & Server.URLEncode(oRs("dURL")) & """ target=""_blank"">" & Server.HTMLEncode(oRs("dTitle")) & "</a> (" & Server.HTMLEncode(oRs("vCode")) & ")</span><br>" & vbCRLF oRs.MoveNext WEnd CreateBottomTable "" End If
oCn.Close Set oCn = Nothing Set oRs = Nothing End If End Sub
' Display versions languages available ' IN : - ' OUT : - Sub DisplayVersions() If bDisplayVersions Then Dim oFs, oFolder, oFile, sVersion, sCurrentVersion
Set oFs = Server.CreateObject("Scripting.FileSystemObject")
If oFs.FolderExists(Server.MapPath(GLOBAL_SITE_VERSIONS_PATH)) Then sCurrentVersion = sXMLVersion If sCurrentVersion = "" Then sCurrentVersion = GLOBAL_SITE_DEFAULT_VERSION
Set oFolder = oFs.GetFolder(Server.MapPath(GLOBAL_SITE_VERSIONS_PATH))
Response.Write " <select name=""_SetCurrentVersion"" class=""cell"" onChange=""Java_Script:changeVersion()"">" & vbCRLF For Each oFile In oFolder.Files sVersion = Replace(oFile.Name, ".xml", "") Response.Write " <option value=""" & sVersion & """" If LCase(sVersion) = LCase(sCurrentVersion) Then Response.Write " selected" End If Response.Write ">" & sVersion & "</option>" & vbCRLF Next Response.Write " </select>" & vbCRLF Response.Write " </td>" & vbCRLF Response.Write " </tr>" & vbCRLF Response.Write "</form>" & vbCRLF Response.Write "</table>" & vbCRLF
CreateBottomTable "" End If
Set oFs = Nothing End If End Sub
Sub DisplayNewPrivateMessages(sMyLogin) Dim oCn, oRs, rSQL, iNbMessages, iNbOldMessages, bDisplayPopup
bDisplayPopup = False
If sMyLogin <> "" Then
Set oCn = DBConnexion(DB_MAIN)
rSQL = "SELECT Count(*) FROM MessagesList WHERE mlTo='" & SQLEncrypt(sMyLogin) & "' AND mlRead=0" Set oRs = DBRecordSet(oCn, rSQL) iNbMessages = oRs(0)
If iNbMessages > 0 Then iNbOldMessages = Request.Cookies("NewPrivateMessages")
If iNbOldMessages = "" Then bDisplayPopup = True Else If IsNumeric(iNbOldMessages) Then iNbOldMessages = CInt(iNbOldMessages) If iNbMessages > iNbOldMessages Then bDisplayPopup = True End If End If
If bDisplayPopup And InStr(sURLPage, GLOBAL_SITE_PRIVATE_MESSAGES_PAGE) = 0 Then Response.Write "<script language=""Java_Script"" type=""text/Java_Script"">window.open('" & GLOBAL_SITE_PATH & "newpmessage.asp', 'PrivateMessage', 'width=150, height=60, menubars=off');</script>" End If
Response.Cookies("NewPrivateMessages") = CStr(iNbMessages) End If
oCn.Close Set oCn = Nothing Set oRs = Nothing End If End Sub
' Display one column, using a table containing a code for each bloc ' IN : tColumnContent (array) : table with index of blocs ' OUT : - Sub DisplayColumn(tColumnContent) Dim X If IsArray(tColumnContent) Then For X = 0 to UBound(tColumnContent) Select Case CInt(tColumnContent(X)) Case 0 : DisplayMenu() Case 1 : DisplayDynamicCounter() Case 2 : DisplayAccountsInfo() Case 3 : DisplaySearch() Case 4 : DisplayFavorites() Case 5 : DisplayDirectoryLastSites GLOBAL_DIRECTORY_TOP Case 6 : DisplayVersions() Case 7 : DisplayWebCounters() Case 8 : DisplayLastPoll() Case Else : DisplayCustomBlock(CInt(tColumnContent(X))-8) End Select Next End If End Sub
Function GetTableAvailableColumns() Dim X, sTemp
For X = 0 To 8 + GLOBAL_CUSTOM_BLOCKS If sTemp = "" Then sTemp = X Else sTemp = sTemp & "££" & X End If Next
GetTableAvailableColumns = Split(sTemp, "££") End Function %>
grazie
--------------- WEBMASTER di http://www.hardwaremax.it Venite a trovarmi sul mio http://www.hardwaremax.it/forum/ CPU Athlon XP 2400@2600 XP - Scheda Madre MSI-KT3 ULTRA 2 - V-DATA 512 DDR 2700 Scheda Video Sapphir 9500PRO - Scheda Audio Fortissimo II
sisso
Utente
83 Discussioni
30 giugno 2003 alle 09:14:46 Prova così:
' Create the top part of a standard table ' IN : sTabName (string) : table's name (can be empty) ' : sHeader (string) : title displayed ' OUT : - Sub CreateTopTable(sTabName, sHeader) Response.Write " <table id=""" & sTabName & """ width=""100%"" align=""center"" cellspacing=""0"" cellpadding=""0"" class=""myTable"">" & vbCRLF If sHeader <> "" Then Response.Write " <tr>" & vbCRLF Response.Write " <td class=""myTitle"" width=""100%"">" & sHeader & "</td>" & vbCRLF 'Response.Write " <div align=""left""><img src=""scossa.gif"" width=""100%"" helght=""100%""></div>" & vbCRLF Response.Write " </tr>" & vbCRLF End If Response.Write " <tr>" & vbCRLF Response.Write " <td width=""100%"" class=""myTD"">" & vbCRLF End Sub
' Create the bottom part of a standard table ' IN : sFooter (string) : footer ' OUT : - Sub CreateBottomTable(sFooter) Response.Write " </td>" & vbCRLF Response.Write " </tr>" & vbCRLF If sFooter <> "" Then Response.Write " <tr>" & vbCRLF Response.Write " <td align=""right"" class=""myTD""><br><span class=""small"">" & sFooter & "</span></td>" & vbCRLF Response.Write " </tr>" & vbCRLF 'Response.Write " <td width=""100%"" border=""0"" cellspacing=""0"" celpadding=""0"" background=""h.png"">" & vbCRLF Response.Write " <tr>" & vbCRLF Response.Write " <td>" & vbCRLF 'Response.Write " <div align=""left""><img src=""scossa.gif"" width=""100%"" helght=""100%""></div>" & vbCRLF Response.Write " </tr>" & vbCRLF Response.Write " </td>" & vbCRLF End If Response.Write " </table>" & vbCRLF Response.Write " <br>" & vbCRLF End Sub
' Create a standard table ' IN : sTabName (string) : table's name (can be empty) ' : sHeader (string) : title displayed ' : sText (string) : text in the table ' : sFooter (string) : footer ' OUT : - Sub CreateTable(sTabName, sHeader, sText, sFooter) CreateTopTable sTabName, sHeader Response.Write sText & vbCRLF CreateBottomTable sFooter End Sub
' Get number of anonymous visitors connected to the site ' IN : - ' OUT : (int) number of anonymous visitors Function AnonymousVisitors() Dim oCn, oRs, rSQL
Set oCn = DBConnexion(DB_MAIN) rSQL = "SELECT Count(*) FROM sessions" Set oRs = DBRecordSet(oCn, rSQL) AnonymousVisitors = oRs(0)
oCn.Close Set oCn = Nothing Set oRs = Nothing End Function
' Get number of authenticated visitors connected to the site ' IN : - ' OUT : (int) number of authenticated visitors Function AuthentVisitors() Dim oCn, oRs, rSQL
Set oCn = DBConnexion(DB_MAIN) rSQL = "SELECT Count(*) FROM sessions WHERE sLogin<>''" Set oRs = DBRecordSet(oCn, rSQL) AuthentVisitors = oRs(0)
oCn.Close Set oCn = Nothing Set oRs = Nothing End Function
' Display number of visitors connected to the site ' IN : - ' OUT : - Sub DisplayDynamicCounter()
'begin redbaron76's modify %> <iframe src="onlinemembers.asp" name="online" width="140" height="100" align="center" frameborder="1" scrolling="auto"> You will not see this text if your browser supports IFRAME. If you CAN see this, you are in a bad way. </iframe> <% 'end redbaron76's modify
'CreateBottomTable "" 'End If 'End Sub ' Display favorites websites ' IN : - ' OUT : - 'Sub DisplayFavorites() 'If bDisplayFavorites Then 'Dim oCn, oRs, rSQL, DisplayFavorites
rSQL = "SELECT Count(*) AS Nb FROM users" Set oRs = DBRecordSet(oCn, rSQL) Response.Write Replace(GetTranslation("LANG_ACCOUNTS_INFO"), "%1%", oRs(0)) & vbCRLF oRs.Close Set oRs = Nothing
If sPseudo <> "" Then Response.Write " - <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_MEMBERSLIST_PAGE & """>" & GetTranslation("LANG_TITLE_MEMBERSLIST") & "</a>" & vbCRLF End If
rSQL = "SELECT Count(*) FROM users where uValid = TRUE" Set oRs = DBRecordSet(oCn, rSQL) Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/single01.gif"" border=""0"" alt="""">" & GetTranslation("LANG_ACTIVE") & Server.URLEncode(oRs(0)) & vbCRLF oRs.Close set oRs = Nothing
rSQL = "SELECT Count(*) FROM users where uValid = FALSE" Set oRs = DBRecordSet(oCn, rSQL) Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/single03.gif"" border=""0"" alt="""">" & GetTranslation("LANG_INACTIVE") & Server.URLEncode(oRs(0)) & vbCRLF oRs.Close set oRs = Nothing
If sPseudo <> "" Then rSQL = "SELECT TOP 1 uLogin FROM users ORDER BY uDate DESC" Set oRs = DBRecordSet(oCn, rSQL) If Not oRs.EOF Then Response.Write "<br>" & GetTranslation("LANG_LAST_ACCOUNT") & " : <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PROFILE_PAGE & "?id=" & Server.URLEncode(oRs(0)) & """>" & Server.HTMLEncode(oRs(0)) & "</a>" & vbCRLF End if oRs.Close set oRs = Nothing End If
rSQL = "SELECT TOP 1 uLogin FROM users ORDER BY uDate DESC" Set oRs = DBRecordSet(oCn, rSQL) If Not oRs.EOF Then Response.Write "<br><span class=""small"">" & GetTranslation("LANG_LAST_ACCOUNT") & " : <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PROFILE_PAGE & "?id=" & Server.URLEncode(oRs(0)) & """>" & Server.HTMLEncode(oRs(0)) & "</a><br>" & vbCRLF Response.Write "<a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_MEMBERSLIST_PAGE & """>" & GetTranslation("LANG_TITLE_MEMBERSLIST") & "</a></span>" & vbCRLF
' Inizio modifica login scaricata da www.ilprogramma.it/cecina
Dim sPreviousPage, iPos, sMemo
if sPseudo="" then
CreateTopTable "login", "Login"
If Request.Form("urlpage") <> "" Then sPreviousPage = Request.Form("urlpage") Else sPreviousPage = Request.ServerVariables("HTTP_REFERER") iPos = InstrRev(sPreviousPage, "/") If iPos > 0 and iPos > 7 Then sPreviousPage = Mid(sPreviousPage, iPos+1) Else sPreviousPage = "Default.asp" End If End If
oCn.Close Set oCn = Nothing Set oRs = Nothing End If End Sub
' Display the top last websites added to the directory ' IN : iTop (int) : number of results wanted ' OUT : - Sub DisplayDirectoryLastSites(iTop) If bDisplayLastSites Then Dim oCn, oRs, rSQL
Set oCn = DBConnexion(DB_MAIN)
rSQL = "SELECT TOP " & iTop & " dID, dTitle, dDate, dURL, vCode FROM directory, versions WHERE dValid=1 AND dVersion=vID ORDER BY dDate DESC, dTitle" Set oRs = DBRecordSet(oCn, rSQL)
If Not oRs.EOF Then CreateTopTable "TopDirectory", GetTranslation("LANG_TOP") & " - " & GetTranslation("LANG_SITES") While Not oRs.EOF Response.Write " <span class=""small""><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_GOTOURL_PAGE & "?url=" & Server.URLEncode(oRs("dURL")) & """ target=""_blank"">" & Server.HTMLEncode(oRs("dTitle")) & "</a> (" & Server.HTMLEncode(oRs("vCode")) & ")</span><br>" & vbCRLF oRs.MoveNext WEnd CreateBottomTable "" End If
oCn.Close Set oCn = Nothing Set oRs = Nothing End If End Sub
' Display versions languages available ' IN : - ' OUT : - Sub DisplayVersions() If bDisplayVersions Then Dim oFs, oFolder, oFile, sVersion, sCurrentVersion
Set oFs = Server.CreateObject("Scripting.FileSystemObject")
If oFs.FolderExists(Server.MapPath(GLOBAL_SITE_VERSIONS_PATH)) Then sCurrentVersion = sXMLVersion If sCurrentVersion = "" Then sCurrentVersion = GLOBAL_SITE_DEFAULT_VERSION
Set oFolder = oFs.GetFolder(Server.MapPath(GLOBAL_SITE_VERSIONS_PATH))
Response.Write " <select name=""_SetCurrentVersion"" class=""cell"" onChange=""Java_Script:changeVersion()"">" & vbCRLF For Each oFile In oFolder.Files sVersion = Replace(oFile.Name, ".xml", "") Response.Write " <option value=""" & sVersion & """" If LCase(sVersion) = LCase(sCurrentVersion) Then Response.Write " selected" End If Response.Write ">" & sVersion & "</option>" & vbCRLF Next Response.Write " </select>" & vbCRLF Response.Write " </td>" & vbCRLF Response.Write " </tr>" & vbCRLF Response.Write "</form>" & vbCRLF Response.Write "</table>" & vbCRLF
CreateBottomTable "" End If
Set oFs = Nothing End If End Sub
Sub DisplayNewPrivateMessages(sMyLogin) Dim oCn, oRs, rSQL, iNbMessages, iNbOldMessages, bDisplayPopup
bDisplayPopup = False
If sMyLogin <> "" Then
Set oCn = DBConnexion(DB_MAIN)
rSQL = "SELECT Count(*) FROM MessagesList WHERE mlTo='" & SQLEncrypt(sMyLogin) & "' AND mlRead=0" Set oRs = DBRecordSet(oCn, rSQL) iNbMessages = oRs(0)
If iNbMessages > 0 Then iNbOldMessages = Request.Cookies("NewPrivateMessages")
If iNbOldMessages = "" Then bDisplayPopup = True Else If IsNumeric(iNbOldMessages) Then iNbOldMessages = CInt(iNbOldMessages) If iNbMessages > iNbOldMessages Then bDisplayPopup = True End If End If
If bDisplayPopup And InStr(sURLPage, GLOBAL_SITE_PRIVATE_MESSAGES_PAGE) = 0 Then Response.Write "<script language=""Java_Script"" type=""text/Java_Script"">window.open('" & GLOBAL_SITE_PATH & "newpmessage.asp', 'PrivateMessage', 'width=150, height=60, menubars=off');</script>" End If
Response.Cookies("NewPrivateMessages") = CStr(iNbMessages) End If
oCn.Close Set oCn = Nothing Set oRs = Nothing End If End Sub
' Display one column, using a table containing a code for each bloc ' IN : tColumnContent (array) : table with index of blocs ' OUT : - Sub DisplayColumn(tColumnContent) Dim X If IsArray(tColumnContent) Then For X = 0 to UBound(tColumnContent) Select Case CInt(tColumnContent(X)) Case 0 : DisplayMenu() Case 1 : DisplayDynamicCounter() Case 2 : DisplayAccountsInfo() Case 3 : DisplaySearch() Case 4 : DisplayFavorites() Case 5 : DisplayDirectoryLastSites GLOBAL_DIRECTORY_TOP Case 6 : DisplayVersions() Case 7 : DisplayWebCounters() Case 8 : DisplayLastPoll() Case Else : DisplayCustomBlock(CInt(tColumnContent(X))-8) End Select Next End If End Sub
Function GetTableAvailableColumns() Dim X, sTemp
For X = 0 To 8 + GLOBAL_CUSTOM_BLOCKS If sTemp = "" Then sTemp = X Else sTemp = sTemp & "££" & X End If Next
GetTableAvailableColumns = Split(sTemp, "££") End Function %>
--------------- WEBMASTER di http://www.hardwaremax.it Venite a trovarmi sul mio http://www.hardwaremax.it/forum/ CPU Athlon XP 2400@2600 XP - Scheda Madre MSI-KT3 ULTRA 2 - V-DATA 512 DDR 2700 Scheda Video Sapphir 9500PRO - Scheda Audio Fortissimo II