Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 13
  1. #1
    Utente di HTML.it L'avatar di naverit
    Registrato dal
    Apr 2002
    Messaggi
    460

    agenda calendario orizzontale

    non riesco a trovare nessuno script pre una agenda-calendario orizzontale... cioè una linea orizzontale per ogni giorno (e non raggruppata a calendarietto)

    conoscete qualche esempio?
    Ars longa...vita brevis.

  2. #2
    Cioè?

  3. #3
    Utente di HTML.it L'avatar di naverit
    Registrato dal
    Apr 2002
    Messaggi
    460
    i giorni devono essere mostrati in righe orizzontali, uno per uno:


    GIUGNO 2007
    1 .................................................. .....
    2 .................................................. .....
    3 .................................................. .....
    4 .................................................. .....
    5 .................................................. .....
    6 .................................................. .....
    7 .................................................. .....
    8 .................................................. .....
    9 .................................................. .....

    etc....
    Ars longa...vita brevis.

  4. #4
    Una cosa tipo così?
    codice:
    <%
    session.LCID = 1040
    pagina = request.serverVariables("PATH_INFO")
    g = request.queryString("g")
    m = request.queryString("m")
    a = request.queryString("a")
    
      if len(g) > 0 and isNumeric(g) then
        g = cLng(g)
      else
        g = datePart("d",date())
      end if
    
      if len(m) > 0 and isNumeric(m) then
        m = cLng(m)
      else
        m = datePart("m",date())
      end if
    
      if len(a) > 0 and isNumeric(a) then
        a = cLng(a)
      else
        a = datePart("yyyy",date())
      end if
    
    response.write "<table width=""600"" border=""1"">" &vbCrLf
    response.write"  <tr>" & vbCrLf
    response.write "    <td colspan=""2"">" & monthName(m) & " " & a & "</td>" & vbCrLf
    response.write " </tr>" &vbCrLf
    
      for i = 1 to 31
        classe = "spento"
        if isDate(i & "/" & m & "/" & a) then
          if i = g then classe = "accesso"
          response.write "  <tr>" & vbCrLf
          response.write "    <td width=""50"" class=""" & classe & """>" & i & "</td>" & vbCrLf
          response.write "    <td></td>" & vbCrLf
          response.write "  </tr>" & vbCrLf
        end if
      next
    
    response.write "</table>" & vbCrLf
    %>

  5. #5
    Utente di HTML.it L'avatar di naverit
    Registrato dal
    Apr 2002
    Messaggi
    460
    ora testo e ti faccio sapere...
    Ars longa...vita brevis.

  6. #6
    Utente di HTML.it L'avatar di naverit
    Registrato dal
    Apr 2002
    Messaggi
    460
    si proprio questo!!!

    se non erro mi passo così la querystring x scegliere il mese vero?

    calendario.asp?g=2&m=6&a=2007
    Ars longa...vita brevis.

  7. #7
    Esatto.
    Basta che fai i link per passare da mese a mese o da anno ad anno o da giorno a giorno...
    Divertiti.

  8. #8
    Utente di HTML.it L'avatar di naverit
    Registrato dal
    Apr 2002
    Messaggi
    460
    grazie... ancora una cosa...


    è possibile far comparire i giorni della settimana?

    1 venerdì
    2 sabato
    3 domenica

    etc... ?
    Ars longa...vita brevis.

  9. #9
    codice:
    <%
    session.LCID = 1040
    pagina = request.serverVariables("PATH_INFO")
    g = request.queryString("g")
    m = request.queryString("m")
    a = request.queryString("a")
    
      if len(g) > 0 and isNumeric(g) then
        g = cLng(g)
      else
        g = datePart("d",date())
      end if
    
      if len(m) > 0 and isNumeric(m) then
        m = cLng(m)
      else
        m = datePart("m",date())
      end if
    
      if len(a) > 0 and isNumeric(a) then
        a = cLng(a)
      else
        a = datePart("yyyy",date())
      end if
    
    response.write "<table width=""600"" border=""1"">" &vbCrLf
    response.write"  <tr>" & vbCrLf
    response.write "    <td colspan=""2"">" & monthName(m) & " " & a & "</td>" & vbCrLf
    response.write " </tr>" &vbCrLf
    
      for i = 1 to 31
        classe = "spento"
        if isDate(i & "/" & m & "/" & a) then
          if i = g then classe = "accesso"
          response.write "  <tr>" & vbCrLf
          response.write "    <td width=""100"" class=""" & classe & """>" & i & " " & weekDayName(datePart("w",i & "/" & m & "/" & a)) & "</td>" & vbCrLf
          response.write "    <td></td>" & vbCrLf
          response.write "  </tr>" & vbCrLf
        end if
      next
    
    response.write "</table>" & vbCrLf
    %>

  10. #10
    Utente di HTML.it L'avatar di naverit
    Registrato dal
    Apr 2002
    Messaggi
    460
    si grazie 1000


    così coloro anche le domeniche di rosso:




    <%
    session.LCID = 1040
    pagina = request.serverVariables("PATH_INFO")
    g = request.queryString("g")
    m = request.queryString("m")
    a = request.queryString("a")

    if len(g) > 0 and isNumeric(g) then
    g = cLng(g)
    else
    g = datePart("d",date())
    end if

    if len(m) > 0 and isNumeric(m) then
    m = cLng(m)
    else
    m = datePart("m",date())
    end if

    if len(a) > 0 and isNumeric(a) then
    a = cLng(a)
    else
    a = datePart("yyyy",date())
    end if

    response.write "<table width=""600"" border=""1"">" &vbCrLf
    response.write" <tr>" & vbCrLf
    response.write " <td colspan=""2"">" & monthName(m) & " " & a & "</td>" & vbCrLf
    response.write " </tr>" &vbCrLf

    for i = 1 to 31
    classe = "spento"
    if isDate(i & "/" & m & "/" & a) then
    if i = g then classe = "accesso"
    response.write " <tr>" & vbCrLf

    giornoSettimana = weekDayName(datePart("w",i & "/" & m & "/" & a))

    if giornoSettimana = "domenica" Then
    color = "red"
    else
    color = "gray"
    end if

    response.write " <td width=""100"" class=""" & classe & """><span style='color:"&color&"';>" & i & " " & giornoSettimana & "</span></td>" & vbCrLf



    response.write " <td></td>" & vbCrLf
    response.write " </tr>" & vbCrLf
    end if
    next

    response.write "</table>" & vbCrLf
    %>




    ciao e grazie
    Ars longa...vita brevis.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.