六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

技巧10分所有方面的日期處理函數

[摘要]<script language=javascript>function fnSubmit(strPage) document.forms[0].action= strPage document.forms[0].submit() </script><%ca...
<script language=javascript>
function fnSubmit(strPage)
{
  document.forms[0].action= strPage
  document.forms[0].submit()    
}

</script>
<%

call writedropdowns

Sub writeDropDowns()
  Dim strSelfLink
  strSelfLink = request.servervariables("SCRIPT_NAME")
  response.Write "<form name=dates method=post>" & vbcrlf
  response.Write MonthDropDown("month1",False,request("month1"),strSelfLink) & " " & DayDropDown("day1", "",getDaysInMonth(request("month1"),request("year1")),request("day1")) & " " & YearDropDown("year1","","", request("year1"),strSelfLink) & vbcrlf
  response.Write "</form>"    & vbcrlf
End Sub
        

Function MonthDropDown(strName, blnNum, strSelected, strSelfLink)
  Dim strTemp, i, strSelectedString            
  strTemp = "<select name='" & strName& "' onchange='javascript: fnSubmit(" & chr(34) & strSelfLink & chr(34) & ")'>" & vbcrlf
  strTemp = strTemp & "<option value='" & 0 & "'>" & "Month" & "</option>" & vbcrlf            
  For i = 1 To 12
    If strSelected = CStr(i) Then
    strSelectedString = "Selected"
    Else
    strSelectedString = ""
    End If
            
    If blnNum Then
      strTemp = strTemp & "<option value='" & i & "' " & strSelectedString & " >" & i & "</option>" & vbcrlf            
    Else
    strTemp = strTemp & "<option value='" & i & "' " & strSelectedString & " >" & MonthName(i) & "</option>" & vbcrlf            
    End If
  Next                    
  strTemp = strTemp & "</select>" & vbcrlf    
  MonthDropDown = strTemp
End Function


Function YearDropDown(strName, intStartYear, intEndYear, strSelected, strSelfLink)
  
  Dim strTemp, i, strSelectedString    
  
  If intStartYear = "" Then
    intStartYear = Year(now())
  End If    
    
  If intEndYear = "" Then
    intEndYear = Year(now()) + 9
  End If
    
  strTemp = "<select name='" & strName& "' onchange='javascript: fnSubmit(" & chr(34) & strSelfLink & chr(34) & ")'>" & vbcrlf            
  strTemp = strTemp & "<option value='" & 0 & "'>" & "Year" & "</option>" & vbcrlf            
  For i = intStartYear To intEndYear        
    If strSelected = CStr(i) Then
      strSelectedString = "Selected"
    Else
      strSelectedString = ""
    End If
    strTemp = strTemp & "<option value='" & i & "' " & strSelectedString & " >" & i & "</option>" & vbcrlf                            
   Next                    
   strTemp = strTemp & "</select>" & vbcrlf    
   YearDropDown = strTemp
End Function


Function DayDropDown(strName, intStartDay, intEndDay, strSelected )
    Dim strTemp, i, strSelectedString    
    If intStartDay = "" Then
      intStartDay = 1
    End If    
    
    If intEndDay = "" Then
      intEndDay = getDaysInMonth(Month(now()),Year(now()))
    End If
    
    strTemp = "<select name='" & strName& "'>" & vbcrlf            
    strTemp = strTemp & "<option value='" & 0 & "'>" & "Day" & "</option>" & vbcrlf            
    For i = intStartDay To intEndDay
      If strSelected = CStr(i) Then
        strSelectedString = "Selected"
      Else
        strSelectedString = ""
      End If
      strTemp = strTemp & "<option value='" & i & "' " & strSelectedString & " >" & i & "</option>" & vbcrlf                            
    Next                    
    strTemp = strTemp & "</select>" & vbcrlf    
    DayDropDown = strTemp
End Function


Function getDaysInMonth(strMonth,strYear)
        Dim strDays     
    Select Case CInt(strMonth)
        Case 1,3,5,7,8,10,12:
        strDays = 31
        Case 4,6,9,11:
           strDays = 30
        Case 2:
        If  ( (CInt(strYear) Mod 4 = 0  And  CInt(strYear) Mod 100 <> 0)  Or ( CInt(strYear) Mod 400 = 0) ) Then
          strDays = 29
        Else
          strDays = 28
        End If    
        'Case Else:
    End Select
        
    getDaysInMonth = strDays
End Function    
%>    



主站蜘蛛池模板: 视频一区日韩 | 最新中文字幕一区二区乱码 | 亚洲一区二区三区免费在线观看 | 亚洲视频在线观 | 色一欲一性一乱一区二区三区 | 亚洲男人的天堂网 | 亚洲精品中文字幕无乱码 | 手机在线播放av | 在线午夜| 性久久久久久久久久 | 欧美一级欧美一级高清 | 欧美资源在线 | 欧美视频区 | 欧美亚洲国产日韩一区二区三区 | 一级毛片免费毛片一级毛片免费 | 日韩视频中文字幕专区 | 午夜网站在线观看免费网址免费 | 色综合久久综合欧美综合网 | 中文字幕不卡 | 亚洲国产欧美在线人成精品一区二区 | 天堂√中文在线 | 欧美太黄太色视频在线观看 | 首页国产精品萌社区 | 午夜欧美精品久久久久久久久 | 天堂网ww| 四虎sihu新版影院亚洲精品 | 四虎在线播放免费永久视频 | 人人看人人 | 天堂8在线官网 | 啪啪免费视频网站 | 青青久操视频 | 欧美写真视频一区 | 色综合久久丁香婷婷 | 四虎影院一区二区 | 亚洲成a人片在线观看中文 亚洲成a人片在线观看精品 | 色综合久久综合 | 欧美性野久久久久久久久 | 天天影视综合色 | 欧美一级特黄aaaaaa在线看首页 | 青娱乐国产盛宴 | 一级淫 |