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

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

技巧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    
%>    



主站蜘蛛池模板: 我的秘密饭店 电视剧免费观看 | 色www亚洲 | 日韩免费高清 | 天天欧美 | 亚洲a在线观看 | 日日噜噜夜夜狠狠久久丁香 | 中文线码中文高清播放中 | 亚洲免费观看在线视频 | 天天干天天拍天天操 | 日本三区四区免费高清不卡 | 五级床片全部免费播放 | 青青爽国产手机在线观看免费 | 天天操天天摸天天曰天天干天天弄天天干 | 日韩色在线观看 | 日韩精品视频在线免费观看 | 色噜噜噜噜噜在线观看网站 | 亚洲六月丁香婷婷综合 | 午夜国产精品影院在线观看 | 在线亚洲精品 | 青青青视频在线播放 | 亚洲成人高清在线 | 综合自拍 | 亚洲欧美在线精品一区二区 | 午夜丁香影院 | 天天操狠狠操夜夜操 | 在线视频一区二区三区在线播放 | 亚洲欧美手机在线观看 | 青青青久97在线观看香蕉 | 日韩欧美综合视频 | 青青青免费观看在线视频高清 | 亚州男人的天堂 | 日韩a免费| 青娱乐手机在线视频 | 日本高清视频一区 | 日韩精品一区二区三区免费视频 | 性色午夜视频免费男人的天堂 | 亚洲欧美日韩综合久久久久 | 天天狠天天插 | 无需付费免费mv网站 | 日本福利片在线观看 | 欧美无毛 |