Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 ADD On-Events calendar : Using selectbox for Date
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

blackinwhite
Average Member

Turkey
657 Posts

Posted - 26 June 2004 :  09:58:13  Show Profile
in post.asp change

		Response.Write	"<tr>" & _
				"<td class=""popTable"" noWrap vAlign=""middle"" align=""right""><span class=""default""><b>Etkinlik Tarihi:</b></span></td>" & _
				"<td class=""popTable"">"
				<input class=newlogin maxLength=""50"" name=""event_Date"" value=""" & dateHolder & """ size=""20"">
				
Response.Write 	"</td>"


with this:


		Response.Write	"<tr>" & _
				"<td class=""popTable"" noWrap vAlign=""middle"" align=""right""><span class=""default""><b>Etkinlik Tarihi:</b></span></td>" & _
				"<td class=""popTable"">"
%>
<select name="Date_Month" class="inputbox">
<option value="Month" SELECTED>Month</option>
<% 
monthCounter = 1
monthSelected = CInt(Month(dateHolder))

Do WHILE monthCounter <= 12
If (monthSelected <> monthCounter) Then %>
<option value="<%=monthCounter%>"><%=MonthName(monthCounter)%></option>
<% Else %>
<option value="<%=monthCounter%>" SELECTED><%=MonthName(monthCounter)%></option>
<% End If
monthCounter = monthCounter + 1
Loop
%>
</select>

<select name="Date_Day" class="newlogin2">
<option value="Day" SELECTED>Day</option>
<% 
dayCounter = 1
daySelected = CInt(Day(dateHolder))

Do WHILE dayCounter <= 31
If (daySelected <> dayCounter) Then %>
<option value="<%=dayCounter%>"><%=dayCounter%></option>
<% Else %>
<option value="<%=dayCounter%>" selected><%=dayCounter%></option>
<% End If
dayCounter = dayCounter + 1
Loop
%>
</select>

<select name="Date_Year" class="inputbox">
<option value="Year" selected>Year</option>
<%
if strRqMethod = "EditTopic" then
yearCounter = Year(Now) - 10
else 
yearCounter = Year(Now)
end if
yearSelected = CInt(Year(dateHolder))

Do WHILE yearCounter <= Year(Now) + 10
If (yearSelected <> yearCounter) Then %>
<option value="<%=yearCounter%>"><%=yearCounter%></option>
<% Else %>
<option value="<%=yearCounter%>" SELECTED><%=yearCounter%></option>
<% End If
yearCounter = yearCounter + 1
Loop
%>
</select>
<%				

'				<input class=newlogin maxLength=""50"" name=""event_Date"" value=""" & dateHolder & """ size=""20"">
				
Response.Write 	"</td>"





in post_info.asp

change all request.form(event_date)

with

request("Date_Month") + "/" + request("Date_Day") + "/" + request("Date_Year")


that's it.

Edited by - blackinwhite on 26 June 2004 12:17:34
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07