Overview In this article we will assume that the project management application is used in a company, with a lot of users that can create projects and set up tasks for a particular project. Employees will have different levels of access; this makes keeping track of user activity essential. To keep track of user activity, we will make use of PHP's excellent session management capabilities. To write the application you will need PHP4 and higher as well as MYSQL 4 and higher. You will also need a web server such as Apache or IIS. Apache can be downloaded off the Internet for free, but IIS cannot; it comes with the Windows operating system. Some knowledge of CSS style sheets would also be good, but not strictly necessary. Structure of the Application:
The project management application has three main sections. 1. User Authentication - This section will be responsible for logging in users. ALL users of the project management application MUST be logged in to use the application. It is in this section that the user sessions will be set up; in other words, this is were user tracking will start. The section will consist of the following scripts:
Thelogin script will do the donkey work of logging in the user, checking if the user's username and password exist in the database, and taking the appropriate action. This script will present the user with a login HTML form that will have two form fields and a button. It will follow the tried and tested method of user verification. Thelogout script will do exactly what the name suggest and log out the user. Its primary aim is to destroy the session information that has been created by the login script, at the time of logging in. 2. The Application itself - This is the main part of the project management application. This is where the user or project managers can check the progress of a project, assign tasks to a project, add files and assign staff to work on a particular project. The application consists of the following scripts:
Other scripts include:
3. Administration - This part is responsible for the overall maintenance of the project management application and can only be accessed by users with the highest level of clearance. There are two access levels, "admin" and "normal." "Admin" is the highest level of clearance that a user can have and will enable access to the application administration section. In the admin section of this application, administrators can add or remove users, add or remove projects and also view the status of each project. It consists of the following scripts:
As you can see, I've used a persistent naming convention. This makes it easy to see what each script does. For example, it is easy to correctly guess what the list_projects.php script does and the delete_project.php does.
blog comments powered by Disqus |