KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/mguerinweb/Offline_Archive/DBAdmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/mguerinweb/Offline_Archive/DBAdmin/ocdPickDate.asp
<% 
'1 Click DB Pop Up Calendar 
'copyright 1997-2001 AccessHelp.net Custom Solutions
'
'This program and its source code is fully protected by
'international copyright laws and may not be used, altered 
'or redistributed in any way contrary to its licensing.
'
'Redistribution and use in source and binary forms, with or without 
'modification, are permitted provided that the following conditions are met:
'
'Redistributions of source code must retain the above copyright notice, 
'this list of conditions and the following disclaimer. 
'
'Redistributions in binary form must reproduce the above copyright notice, 
'this list of conditions and the following disclaimer in the documentation 
'and/or other materials provided with the distribution. 
'
'Neither the name of 1 Click DB or AccessHelp.net nor the names of its 
'contributors may be used to endorse or promote products derived from 
'this software without specific prior written permission. 
'
'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
'AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
'IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
'ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 
'LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
'CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
'SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
'INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
'CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
'ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
'POSSIBILITY OF SUCH DAMAGE.
'
'More Info via email to [email protected]
option explicit
response.buffer=true
dim strCallingForm
dim strDateField
dim strInitialDate
dim strInitialMonth
dim strInitialYear
dim datControl
dim intMonth
dim intMonthNext
dim intMonthPrev
dim intCount
dim intWeekday
dim intYearPrev
dim intYearNext
'If request.querystring("InitialMonth") = "" Then
strInitialDate = Request.QueryString("InitialDate")
'Else
'strInitialDate = ""
'End if
strCallingForm =  Request.Querystring("CallingForm")
strDateField = request.querystring("DateField") 
Response.write ("<HTML><HEAD><TITLE>Choose Date</TITLE>")
Response.write (vbCRLF)
Response.write ("<SCRIPT LANGUAGE=""JavaScript"">" & vbCRLF)
REsponse.write ("  <!--" & vbCRLF)
Response.write ("function writebackdate(selecteddate) { " & vbCRLF)

Response.write ("var tmp = selecteddate + ' ' + document.forms[0].elements['dTime'].value;" & vbCRLF)
Response.write ("window.opener.document.forms[")
Response.write (strCallingForm & "].elements['" & strDateField)
Response.write ("'].value = tmp;" & vbCRLF)
Response.write ("self.close();" & vbCRLF)
Response.write ("}" & vbCRLF)
Response.write ("  // -->" & vbCRLF)
Response.write ("</SCRIPT>" & vbCRLF)
Response.write ("<script LANGUAGE=""JavaScript"">" & vbCRLF)
REsponse.write ("  <!--" & vbCRLF)
Response.write ("    function acwstopError() {" & vbCRLF)
Response.write ("    return true;" & vbCRLF)
Response.write ("    }" & vbCRLF)
Response.write ("    //window.onerror = acwstopError;" & vbCRLF)
Response.write ("  // -->" & vbCRLF)
Response.write ("</script>" & vbCRLF)
'Response.write ("<LINK rel=stylesheet type=""text/css"" href=""acwc.css"">" & vbCRLF )
%>
<STYLE>
A { 
   	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
	color : #330066;
}
A:hover { 
   	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
	color : #990000;
} 
A.menu { 
   	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
	color : #330066;
}
A.menu:hover { 
   	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
	color : #330000;
	background : #FFD700;
} 
A.menu:visited { 
   	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
	color : #330066;	
}
BODY {
	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
	scrollbar-base-color : #300066;
	scrollbar-face-color : #666690;
	scrollbar-shadow-color : Silver;
	scrollbar-highlight-color : Silver;
	scrollbar-3dlight-color : #ffffff;
	scrollbar-darkshadow-color : Silver;
	scrollbar-track-color : #CCCCCC;
	scrollbar-arrow-color : #ffffff;
	background : #FFFFFF;
	margin : 10px;
}
P {
	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
}
TD {
   	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
}
TH {
   	font-size : 10pt;
	font-family : Tahoma, Arial, sans-serif;
}
</STYLE>
<%
Response.write ("</HEAD><BODY onLoad=""javascript:self.focus();"">")
If IsDate(strInitialDate) Then 
	datControl = strInitialDate
	strInitialYear = year(CDate(datControl))
	strInitialMonth = cstr(Month(CDate(datControl)))
Else 
	If Request.Querystring("InitialMonth") = "" Then 
		strInitialMonth = Month(Now) 
	Else 
		strInitialMonth = Request.Querystring("InitialMonth") 
	End If 
	If Request.QueryString("initialYear") <> "" Then 
		datControl = strInitialMonth & "/" & "1" & "/" & Request.QueryString("InitialYear") 
		strInitialYear = request.querystring("initialyear")
	Else 
		datControl = strInitialMonth & "/" & "1" & "/" & Year(Now)
		strInitialYear = year(now)
	End If 
	strInitialDate = date
End If 
'strInitialDate = datControl 
intMonth = Month(datControl) 
Response.write ("<center> <FORM>")
Response.write ("<table Border=1> <tr><td colspan=7 align=center cellpadding=10>")
Response.write(" <FONT SIZE=2>")
If intMonth < 12 then 
	intMonthNext = intMonth + 1 & "&InitialYear=" & Year(datControl) 
Else 
	intMonthNext = "1&InitialYear=" & Year(DateAdd("yyyy", 1, datControl)) 
End if 
If intMonth > 1 then 
	intMonthPrev = intMonth - 1 & "&InitialYear=" & Year(datControl) 
Else 
	intMonthPrev = "12&InitialYear=" & Year(DateAdd ("yyyy", -1, datControl)) 
End If 
Response.write ("<a href=""")
Response.write (request.servervariables("SCRIPT_NAME"))
Response.write ("?CallingForm=")
Response.write (server.urlencode(request.querystring("CallingForm")))
Response.write ("&DateField=")
Response.write (server.urlencode(request.querystring("DateField")))
Response.write ("&InitialMonth=")
Response.write (intMonthPrev)
Response.write (""">&lt;-</a></font> <B><FONT SIZE=4>")
Response.write (MonthName(intMonth))
REsponse.write ("</font></b> <FONT SIZE=2>")
Response.write ("<a href=""")
Response.write (request.servervariables("SCRIPT_NAME"))
Response.write ("?CallingForm=")
Response.write (server.urlencode(request.querystring("CallingForm")))
Response.write ("&DateField=")
Response.write (server.urlencode(request.querystring("DateField")))
Response.write ("&InitialMonth=")
Response.write (intMonthNext)
Response.write (""">-&gt;</a></FONT>")
Response.write ("<br>")
intyearNext = intMonth & "&InitialYear=" & Year(DateAdd ("yyyy", 1, datControl))
intyearPrev = intMonth & "&InitialYear=" & Year(DateAdd ("yyyy", -1, datControl))
Response.write ("<FONT SIZE=2><a href=""")
Response.write (request.servervariables("SCRIPT_NAME"))
Response.write ("?CallingForm=")
Response.write (server.urlencode(request.querystring("CallingForm")))
Response.write ("&DateField=")
Response.write (server.urlencode(request.querystring("DateField")))
Response.write ("&InitialMonth=")
Response.write (intYearPrev)
Response.write (""">&lt;-</a></font> <B><FONT SIZE=4>")
Response.write (Year(datControl))
Response.write ("</FONT></b> <FONT SIZE=2>")
Response.write ("<a href=""")
Response.write (request.servervariables("SCRIPT_NAME"))
Response.write ("?CallingForm=")
Response.write (server.urlencode(request.querystring("CallingForm")))
Response.write ("&DateField=")
Response.write (server.urlencode(request.querystring("DateField")))
Response.write ("&InitialMonth=")
Response.write (intYearNext)
Response.write (""">-&gt;</a></font>")

Response.write ("</TD></TR>")
Response.write ("<TR><TD ALIGN=CENTER><font size=2><b>Su</b></FONT></TD><TD ALIGN=CENTER><font size=2><b>Mo</b></FONT></TD><TD ALIGN=CENTER><font size=2><b>Tu</b></FONT></TD><TD ALIGN=CENTER><font size=2><b>We</b></FONT></TD><TD ALIGN=CENTER><font size=2><b>Th</b></FONT></TD><TD ALIGN=CENTER><font size=2><b>Fr</b></FONT></TD><TD ALIGN=CENTER><font size=2><b>Sa</b></FONT></TD></TR>")
Response.write ("<TR>")
datControl =  CDATE(Cstr(strInitialMonth & "/" & "1" & "/" & strInitialYear ))
intWeekday = Weekday(datControl) 
For intCount = 1 to intWeekday - 1 
	response.write ("<TD><FONT SIZE=2>&nbsp;</FONT></TD>")
Next 
Do Until intMonth <> Month(datControl) 
	While intWeekday <> 8 
		Response.write ("<TD ALIGN=RIGHT VALIGN=TOP HEIGHT=20 WIDTH=20 ")
		If CDATE(datControl) = CDATE((FormatDateTime(CDate(strInitialDate),2))) Then 
			Response.Write ("BGCOLOR=""YELLOW""")
		ElseIf CDATE(datControl) = Date() Then 
			Response.Write ("BGCOLOR=""#999999""")
		
		End if
		Response.write (" >")
'		Response.write (FormatDateTime(CDate(strInitialDate),2))
		Response.write ("<FONT SIZE=2>")
		Response.write ("<A HREF="""" onClick=""")
		Response.Write ("writebackdate('" & Month(datControl) & "/" & Day(datControl) & "/" & Year(datControl)) 
		Response.write ("')"">")
		Response.write (Day(datControl))
		Response.write ("</A>")
		REsponse.write ("</FONT>")
		Response.write ("</TD>")
		intWeekday = intWeekday + 1 
		datControl=DateAdd("d", 1, datControl) 
		If intMonth <> Month(datControl) then 
			intWeekday = 8 
		End If 
	Wend 
	intWeekday = 1 
	Response.write ("</TR><TR> ")
Loop 
Response.write ("</TR>")
Response.write "<TR><TD COLSPAN=7 NOWRAP BGCOLOR=YELLOW><font size=2><b>Time : </b></FONT><INPUT SIZE=12 MaxLength=24 NAME=dTime ID=dTime VALUE=""" & FormatDateTime((CDate(strInitialDate)),3) & """>"

'Response.write (" </TD><TD COLSPAN=1 ALIGN=CENTER> <A HREF="""" onClick=""javascript:self.close();"">X</a>")

Response.write "</TD></TR>"
REsponse.write ("</TABLE><BR>")
Response.write ("</FORM></CENTER></BODY></HTML>")
%>

Anon7 - 2021