Click here to Skip to main content
15,880,427 members
Articles / Web Development / HTML
Article

Easy Time Management Application

Rate me:
Please Sign up or sign in to vote.
2.56/5 (4 votes)
29 Jul 20053 min read 62.8K   38   6
Simple web-based time management application using ASP and MS Access.

ASP Time Management

Download sourcecode

Overview

The goal was to create an easy to use web-based time management application using ASP (Active Server Pages) and the Microsoft Access database for the backend.

Setting it up

Setting up is simple as long as you have met the basic requirement of having webspace that supports ASP and Access database connections via DSN.

Edit the file admin.php change the logincode = "123" on line 2 to your own password that you will use to access the system online.

Image 1

The next file you may edit, depending on your preference and web host setup is the the path to your database. This is set on line 80 of the file common.asp.

Image 2

The default is set to "map" the path to the current directory. It is suggested for security reasons that you move the database file and update this path with the physical path on your server. One of the reasons the password is NOT stored in the database is for this very reason. If someone downloads your database, they can't recover your password. I generally prefer this security model on simple applications to make them easier to setup with less worry about making sure the database is in a secure location. ala Dick Cheney :)

Once you have the files copied, and the password changed from the default, go ahead and open your favorite web browser and visit the location on the web where you copied the files (default.asp). You will be shown the login screen.

Image 3

Login with your password and you will then be in your new time management app.

Adding New Items

Adding new items is very simple, fill in the form and hit the "add" button.

Image 4

One feature I really liked was the "copy event" checkbox. I wanted to keep the application very simple, but this was one "extra" feature I thought was really needed. Many times you may have a meeting at the same time for a few days in a row. Simple click to edit the meeting, make changes (such as the date or time) and then make sure you check the "copy event" check box.

Image 5

And then the event is then easily copied.

The Calendar View

This was the inspiration for the whole project. I had finally come across an easy and easily codeable calendar display in ASP.(thanks to http://www.exjune.com/downloads/") Click on the "view calendar link" on the top of the screen to view all your appointments right there in calendar format.

I took the calendar code and modified it so that as the calendar loops through each day of the month, it loops through an array from the database and if there is a match, it prints out the appointment information for that day.

VBScript
<pre lang="vbscript">MainSQL = "Select ID,eventdate,eventtime,eventname,eventdesc from tblcalendar where eventdate between # " & godatefirst & "# AND #" & godatelast & "# AND active = 1 order by eventdate,eventtime;"
set Conn = server.createobject("adodb.connection")
Conn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & dbPath
Set RS = Server.CreateObject("ADODB.recordset")
RS.Open mainSQL, Conn, 1, 3
recordcount = rs.recordcount

if recordcount > 0 then
    eventnumber =  "<DIV>" & recordcount & " events from " & godatefirst & " - " & godatelast & "</DIV>"
    data = RS.GetRows()
    iRecFirst   = LBound(data, 2)
    iRecLast    = UBound(data, 2)
else
    eventnumber = "<DIV>No Events Found"
end if

rs.Close
set rs = nothing
conn.close
set conn = nothing</DIV></pre>
<p style="width: 700px">That is where the "magic" happens in this app. 
</p><p><img src="time-management/06-calendar.gif" border="1"></p>
<p style="width: 700px">Yes it's simple but I've found it to be effective for use as a simple and quick time management application. Full source code can be downloaded here. <a href="http://www.asp-time.com/">ASP Time Management</a>. </p>
<p style="width: 700px">Enjoy!</p>
<p>If you prefer PHP, here is a php version of time management. <a href="http://phptime.us/" title="time management php">PHP Time Management</a></p>

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
Live in Michigan, USA

Comments and Discussions

 
Questiondownloading problem Pin
Member 1497925829-Oct-20 21:22
Member 1497925829-Oct-20 21:22 
QuestionTime management application is really more important for the organizations Pin
Member 111222765-Oct-14 23:56
Member 111222765-Oct-14 23:56 
QuestionTime management Application Pin
Amita Harij7-Oct-13 23:20
Amita Harij7-Oct-13 23:20 
GeneralGREAT!! Pin
Andrew Jee20-Aug-05 21:46
Andrew Jee20-Aug-05 21:46 
HI aa2max... kudos to you for coming up with this... was coding in asp.net just last night and drew on something simlar to your adding appointment module but the calendar was the nice touch i was looking for in your project. Cheers....

saturnX
GeneralRe: GREAT!! Pin
aa2max24-Aug-05 7:31
aa2max24-Aug-05 7:31 
GeneralMinor confusion Pin
Yulianto.27-Jun-05 17:35
Yulianto.27-Jun-05 17:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.