Liberum Help Desk
The free, open source solution for the web-based help desk.

Date Range

rated by 0 users
Answered (Verified) This post has 1 verified answer | 9 Replies | 5 Followers

Top 200 Contributor
2 Posts
wayne cole posted on 08-04-2010 5:39 AM

Quick question,

I’m looking ahead here, on our helpdesk and I can see that in the search facility the years 2000 – 2010 are available, next year will the helpdesk update itself to 2001-2011 automatically or will this need to be done manually?

Many thanks,

Wayne

Answered (Verified) Verified Answer

Top 75 Contributor
4 Posts
Verified by wayne cole

Upon reviewing ../rep/search.asp, I found lines 282 & 316 to contain the code For count = 2000 to 2010.  I modified this and then saved the asp page.  Herre is what I changed mine too:

Before modification: For count = 2000 to 2010

After modification: For count = 2000 to 2020

I hope this helps!


Kevin

All Replies

Top 75 Contributor
4 Posts

Hi Wayne -

Did you ever get an answer back on your post?  I too am looking ahead and like you, I too am wondering about the search date ranges.


Thanks!

Kevin

Top 75 Contributor
4 Posts
Verified by wayne cole

Upon reviewing ../rep/search.asp, I found lines 282 & 316 to contain the code For count = 2000 to 2010.  I modified this and then saved the asp page.  Herre is what I changed mine too:

Before modification: For count = 2000 to 2010

After modification: For count = 2000 to 2020

I hope this helps!


Kevin

Top 200 Contributor
2 Posts

Thank you Kevin, worked a treat!

Top 75 Contributor
4 Posts

You're welcome.

Top 200 Contributor
2 Posts

In addition to res\search.asp,

admin\reports.asp also has this issue.  Line 85 and 111 in my version, although it may have been modified internally by my organization (other pages have been). 

Top 200 Contributor
2 Posts
Suggested by sbenavides

i am having the same problem, i went rep/search.asp and change For count = 2000to 2020, but did not work ..,  Did you reset the server or did you reset the website

Top 200 Contributor
2 Posts
Suggested by sbenavides

     year_adj = Year(now) + year_adj
              For count = 2000 to 2020                -   I change the years, but did not work.  Did you reset server or the website
                If count = year_adj Then
                  Response.Write("<option value=""" & count & """ selected>" & count & "</option>")
                Else
                  Response.Write("<option value=""" & count & """>" & count & "</option>")
                End If
              Next
            %>
            </select>
          </td>
          <td>
            <%=lang(cnnDB, "through")%>&nbsp;
            <select name="e_month" size="1">
            <%
              For count = 1 to 12
                If count = Month(now) Then
                  Response.Write("<option value=""" & count & """ selected>" & count & "</option>")
                Else
                  Response.Write("<option value=""" & count & """>" & count & "</option>")
                End If
              Next
            %>
            </select> / <select name="e_day" size="1">
            <%
              For count = 1 to 31
                If count = Day(now) Then
                  Response.Write("<option value=""" & count & """ selected>" & count & "</option>")
                Else
                  Response.Write("<option value=""" & count & """>" & count & "</option>")
                End If
              Next
            %>
            </select> / <select name="e_year" size="1">
            <%
              For count = 2000 to 2020
                If count = Year(now) Then
                  Response.Write("<option value=""" & count & """ selected>" & count & "</option>")
                Else
                  Response.Write("<option value=""" & count & """>" & count & "</option>")
                End If

Top 75 Contributor
4 Posts

Thank you.  That worked for me too!

Top 75 Contributor
4 Posts

I simply edited rep/search.asp and saved the changes.

Page 1 of 1 (10 items) | RSS
Copyright © Doug Luxem 2000-2010
Powered by Community Server (Non-Commercial Edition), by Telligent Systems