Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ignou Mca Project Ignou Bca Project

Download as pdf or txt
Download as pdf or txt
You are on page 1of 161

Title of the Project

COMPANY MANAGEMENT SYSTEM

WWW.IGNOUINFO.COM

Page1

ACKNOWLEDGEMENT
Initially, I would like to give my senior due regards for their valuable guidance and timely advice. He has encouraged me tremendously to put my whole heartedness into this project among his tremendous contribution

Further, I want to show my gratitude to SMU authorities for providing me with all facilities to complete this project. Besides, I give my thanks to Mr Ali and other teachers as well for the guidance they had rendered to me in the entire academic session in their institution.

In the last I would like to give my family and friends my due thanks for understanding me and supporting me to take me on towards my priorities. Without their support and guidance of above dear ones I might faced many troubles while doing this project.

WWW.IGNOUINFO.COM

Page2

SIKKIM MANIPAL UNIVERSITY

WWW.IGNOUINFO.COM

Page3

Page 1. TITLE OF THE PROJECT 6

2. INTRODUCTION

2.1 Overview 2.2 Project Objectives

6 7

3. PROJECT CATEGORY

4. TOOLS/PLATFORM, HARDWARE AND SOFTWARE REQUIREMENTS 4.1 Development Tools and Platform 4.2 Hardware Requirements 4.3 Software Requirements 4.4 Server Requirements 5. PROBLEM DEFINITION, REQUIREMENT SPECIFICATIONS, PLANNING AND SCHEDULING 5.1 Problem Definition 5.2 Requirement Specification 5.2.1 Functional Requirement 5.3 Planning and Scheduling 5.3.1 PERT Chart 6. SCOPE OF THE SOLUTION 7. ANALYSIS ( DFD AND ER DIAGRAMS) 7.1 Data Flow Diagrams 7.1.1 Context Level DFD 7.1.2 Level 1 DFD 7.2 Entity Relationship Diagram 8. COMPLETE STRUCTURE OF THE PROJECT

7 8 8 9 9

9 10 10 11 12 13 14 15 16 17 19 20

WWW.IGNOUINFO.COM

Page4

8.1 Modules and their description 8.2 Data Structure 8.3 Process Logic of modules 8.4 Implementation Methodology 8.5 List of Reports likely to be generated. 9. OVERALL NETWORK ARCHITECTURE 10. IMPLEMENTATION OF SECURITY MECHANISM 11. FUTURE SCOPE AND FURTHER ENHANCEMENT OF THE PROJECT 12. BIBLIOGRAPHY

20 21 24 27 27 28 29 30

31

WWW.IGNOUINFO.COM

Page5

1. Title of the Project


Company Management System

2. Introduction and Objective


2.1 Overview
Company Management is an online web based system which is responsible for handling the management of its clients. In Company Management System a client is being created by the Company Management group and passed it to the client to utilize the services of the Company Management System by its own way. All the management is being done by the members of the company.

Company Management is primarily meant for giving its services to its clients it gives full freedom to maintain its employee, maintains its projects and maintains payment of its projects and employee can also set events. It will automate all its employee status i.e. which employee is assigned to which project what are the daily routines of an employee, its daily report. With CMS we can assign projects to different employee and assign their responsibilities related to project. It will also automate the deadline of an ongoing project and checks its payment for pending or cleared. Beside that it will manages that all its employees has equal work load so that a perfect balance between the work and employee is always there.

WWW.IGNOUINFO.COM

Page6

2.2

Project Objective

There are several main objectives for this project: To improve efficiency of managing project. To give a well organised platform for managing all its employee and projects. To provide up-to-date information about it projects. To provide a better utilization of time and money. To provide a correct information to the management level which can take proper decision in favour of the organization. To show event listing of organization as well as personal.

3. Project Category
CMS- Company Management System is a Online Management System for managing the work of an organisation, which is to be developed using the Internet technologies with an RDBMS as a backend.

4. Tools/Platform, Hardware and Software Requirements


4.1 Development Tools and Platform
To develop CMS-Online, the following tools/platform is proposed to be used: Windows 2003 Enterprise server Apache Web Server 2.2.11 MySQL 5.1.33 PHP 5.2.9 Edit Plus Macromedia Dreamweaver Adobe Photoshop 7.0

WWW.IGNOUINFO.COM

Page7

Internet Explorer 6.0 or above.

4.2

Hardware Requirements
CMS is proposed to be installed on a web server having the following minimum hardware requirements: Intel Dual Xeon 5000 series Dual Core Processor having clock speed 2.33 GHz or more 2 GB DDR-2 RAM 2 x RAID-1 SATA-2 Hard Disk Drives having capacity of 250 GB each At least 50 GB free space for the installation of My SQL, PHP, Apache, Dreamweaver, Edit Plus and Adobe Photoshop. DVD Writer and Tape Drives for backup purposes Leased line internet or Intranet connection to the server with a bandwidth of at least 2 Mbps Other Peripherals is as per requirements

On the client side, at least a Pentium-IV personal computer with 256 Kbps Internet/Intranet access facility is recommended.

4.3

Software Requirements
On the server side CMS will require the following software platform: MySQL Database Management System PHP Apache Web Server Windows 2003 server Enterprise Edition

WWW.IGNOUINFO.COM

Page8

On the client side the sole requirement is any html compatible browser with support of Flash Player e.g. Microsoft Internet Explorer, Opera, Firefox etc.

4.4

Server Requirements
On the server side CMS will require the following software platform: MySQL Database Management System PHP Apache Web Server / IIS Windows Server / Linux Server Cron Job for Linux / Scheduler For Windows SSL Certification For Security

5. Problem Definition, Requirement Specification, Planning and Scheduling.


5.1 Problem Definition
As per to the existing procedure handling of the project is little clumsy in respect to the current scenarios. It is difficult to handle that how a employee can handle more than one project and how its incentives and salary is being calculated in accordance with the project he/she is handling. Some employee has overburden of work and some has little to do. The distribution of work is not done equally due to which handling is difficult.

Problem with the existing manual system are

In consistency between project handled by the employees. Loss of Transaction entry. Query Process by Authority and various users are time consuming which unnecessarily reduce the production time of technical department.

WWW.IGNOUINFO.COM

Page9

Compilation of Statistics is a big problem

CMS proposes to simplify the procedure within the resources by introducing online implementation and more simplification of the modules that handles the production of project. As system is well connected on internet/intranet all the information is available all time so sharing and accessing of information is easier and due to well securely build up it is free from unauthorized access.

5.2

Requirement Specifications 5.2.1 Functional Requirements


CMS replaces the existing system for the newer modules which helps in maintaining the integrity and consistency between the modules. Thus keeping in mind a careful study of the requirements of the end user revealed the following specific functional requirements:

CMS Client requirements.

Log into the system Addition of new Employees in the project. Updating the daily reports of the employees currently employed Under different projects. Assigning new projects to the new employees. Assigning new responsibilities to the different employees. Viewing of ongoing and pending projects. Viewing of reports. Viewing the status of the employee during the time period. Viewing the completed and pending payments of the clients.
WWW.IGNOUINFO.COM

Page10

Administrative requirements

Addition of new company. Addition of any new feature. Generation of various types of report for administrative and technical diagnostic purposes.

5.3

Project Planning and Scheduling


The proposed CMS will go through the following stages of development in its Software Development Life Cycle. Preliminary investigation and feasibility study

System Analysis

System Design

Coding

Testing

Implementation and Maintenance

The following PERT chart will show the schedule of the various stages of CMS.
WWW.IGNOUINFO.COM Page11

5.3.1

PERT Chart

M (Most likely time) is the best estimate of the time in days required to accomplish a task, assuming everything proceeds as normal. FT (Finishing Time) is the actual finishing time in days.

WWW.IGNOUINFO.COM

Page12

6. Scope of the Solution


In view of handling the different management levels at CMS, following are the scope of the solutions:

The Company can maintain the records of its employee and the assesment of its projects done. The Companys HR management can easily link up with the employees. The Companys administrator can easily manage the roles of the employees. The Project managers can easily assign new projects to its employees and maintain their record with the projects. Clients can be managed by the Project managers easily by giving easy chat with their coordinator in respect with their project completion. Client also set his/her event list and companys employ can also add events.

WWW.IGNOUINFO.COM

Page13

7. Analysis (DFD and ER Diagram)


7.1 Data Flow Diagrams 7.1.1 Context Level DFD

CMS

WWW.IGNOUINFO.COM

Page14

7.1.2 Level 1 DFD


Administrator Module Level 1 DFD

WWW.IGNOUINFO.COM

Page15

User Management Module Level 1 DFD

WWW.IGNOUINFO.COM

Page16

Employee Management Module Level 1 DFD

WWW.IGNOUINFO.COM

Page17

Project Management Module Level 1 DFD

WWW.IGNOUINFO.COM

Page18

7.2

ER Diagram

Event M t Event_id int(10) Emp_id int(10) Event_date date Event_details varcahr(255)

WWW.IGNOUINFO.COM

Page19

8. Complete Structure of the Project

8.1

Modules and their description


CMS comprises of five modules. Brief description of each and every module is given below:

(i) Administrator Module: This module will be responsible for creation of the new company and giving username and password to the company to access the CMS and use the services of CMS.

(ii) User Management Module: This module will be responsible for maintaing the users who will use the CMS according to their roles. This module gives username and password to the different users according to their role so that they can access CMS according to their level.

(iii)Employee Management Module:

This module will be responsible for

maintaining the employee record along with their salary, bank account, leave so that easy deployment of employees can be possible.

(iv) Project Management Module:

This module will be responsible for

handling the different clients, taking new projects from clients. The module is solely responsible for assigning new projects to the employee and balancing the load factor between the employees.

(v) Event Management Module: This module will be responsible for handling Event list of clients and organization.

WWW.IGNOUINFO.COM

Page20

8.2

Data Structures
The CMS database consists of 7 tables. Each and every table is setup with the proper Integrity constraints to work properly. The structure of the database tables is given below:

(i)

user_master: Stores the details of users along with their roles.

Field Name user_id comp_id username password role

Field Type

Constraints Description Stores the unique id for users stores the company id of the user stores the username of the user. stores the password in md5 hash encryption stores the role of the user.

varchar2(10) primary key varchar2(10) foreign key varchar2(10) varchar2(10) varchar2(15)

(ii) comapny: Stores the details of the different companies enrolled. Field Name comp_id Field Type varchar2(10) Constraints Primary key Description Stores the unique company id. Stores the name of the company Stores the address of the company Stores the city of the company
Stores the phone numbers of the company

company_name varchar2(25) address city phone email ( varchar2(50) varchar2(15) varchar2(10) varchar2(25) varchar2(15)

i contact_person i

Stores the email id of the company Stores the contact person name

WWW.IGNOUINFO.COM

Page21

i) employee: Stores the details of the employees of the company. Field Name Emp_id Comp_id ( Fullname i Address v City ) Phone Email C Dob l Salary i Acc_noe bank n t : Stores the Client information of the company. Field Type varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) Constraints Primary key Foreign key Description Stores the unique employee id Uses the company id for the emp. Stores fullname of the employee Stores address fo the employee Stores city of the employee Stores phone number of the emp Stores email of the employee Stores the date of birth of employee Stores the salary of the emp Stores the account no Stores the bank name

Field Name clt_id comp_id

Field Type varchar2(10) varchar2(10)

Constraints Primary key Foreign key

Description Stores the unique client id Stores the company id of particular client

fullname address city phone email website

varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10)

Store the fullname of client Stores the address of the client Stores the city of the client Stores the phone number of the client Stores the email id of the client Stores the website address of the client Stores the contact person of the client

contact_person varchar2(10)

WWW.IGNOUINFO.COM

Page22

(v) project: Stores the information about incoming project to the company.

Field Name prj_id comp_id clt_id prj_name duration start_date end_date status

Field Type varchar2(10) varchar2(10) varchar2(10) varchar2(25) varchar2(10) date(8) date(8) varchar2(10)

Constraints Description Primary key Foreign key Foreign key Stores the unique project id Stores the company id Stores the client id Stores the project name Stores the duration of the project Stores the beginning date of the project Stores the end date of the project Stores the status of the project

(vi) work_assign: Stores information about different project assigned to the employee with their project id.

Field Name W_id Emp_id Prj_id

Field Type

Constraints Description Stores the corresponding work id Stores the employee id Stores the project id

Varchar2(10) Primary key Varchar2(10) Foreign key Varchar2(10) Foreign key

(vii) Event Management: Stores information about different Events assigned by the employee and client with their employee id.

Field Name Event_id Emp_id Event_date

Field Type Varchar2(10) Varchar2(10) Date

Constraints Description Primary key Foreign key Stores the corresponding event id Stores the employee id Stores events date Store Events Detail

Event_details Varchar2(255)
WWW.IGNOUINFO.COM

Page23

8.3

Process Logic Modules


Administrator Module

Step 1 Step 2

: :

Administrator log in to the system using common interface. Administrator presented with the following menus: 1. Create Company Here company details will be filled by the administrator which is going to be registered in CMS. Username and Password will be mailed to the company so that the company can use the services of CMS. Along with creating a company administrator can bound a company to use CMS upto the certain period of time for which the company has been registered.

Step 3

2. Change Password Through this menu administrator can change the password of the company, in case of company forgotten its password.

Step 4

3. View Reports Resources Usage Status

With view reports administrator can view the reports against the company resource usages and status of the company about licence period, number of employees, number of clients the company having, etc.

WWW.IGNOUINFO.COM

Page24

User Management Module

Step 1 Step 2

: :

Step 3

Step 4

Step 5

Step 6

Now the companys administrator will log in to the CMS with the username and password given. Since there are different types of employees who will use the CMS therefore, a role has been defined by the companys administrator to different employee, so that they can access CMS according to their level. After logging in to the companys account, different menu will be displayed out of which user management module has following sub menus: 1. User Management Create role Assign role Revoke role Create role will create role by the different names so that administrator can assign these roles to different employee according to their level Assign role will assign role to the employee by the adminstrator according to their heirarchy wise, so that they can use CMS according to their work. Revoke role - by this administrator can revoke the role from the employee so that he/she cannot use the CMS.

Employee Management Module

Step 1 Step 2

: :

Step 3 Step 4 Step 5

: : :

Employee of HR Management will login to the CMS to manage employees of the company. Different menus will be displayed to do the work. 1. Add Employee Details 2. Edit Employee Details 3. Employee Attendance. Add employee through this menu HR employee will add the employee details of the company. Edit employee All the changes occured in employee record will be recorded through edit employee menu. Employee attendance Employee attendance will be managed from here.

WWW.IGNOUINFO.COM

Page25

Step 1

Project Management Module : After logging in to the CMS, Project manager have a number of menus to manage the projects handled by the employee and the clients which are newly added. Project manager will assign new projects to the employee related to their clients. Following are the menus for Project manager. 1. Client management. 2. Assign project to employee 3. Status of the project 4. Search employee Client management option is used to add new clients their project details and the duration of their project. Assign project window is used to assign new projects given to the company by the clients to complete. Status will show off the status of the project to the corresponding employee. Managers of the project can give instruction to their colleagues which are working on the project. Search employee will search the employee for different means. By department wise By manager wise By name By project Different sub menus are given from which the employee can be searched.

Step 2

Step 3 Step 4 Step 5

: : :

Step 6

Step 7

Step 1 Step 2

Event Management Module : : After logging in to the CMS, Client or Employee will be able to add their events date on desire date. They can edit / delete and reset events

WWW.IGNOUINFO.COM

Page26

8.4

Implementation Methodology
CMS is online web based system since it is connected through the internet all time one can easily access the CMS from anywhere. This is the flexibility that stands CMS in the top order from others.

The installation of CMS is three tier architecture means users can browse CMS from their system without installing any of the software, only user should have Internet Explorer to their systems. The middle tier consists of the Apache Web Server which routes the request of the user to the database. The Apache Web Server is being connected to the database by the internet through a dedicated leased line having a dedicated IP address and a suitable domain name. The Operating System installed on the middle tier can be Windows 2000 or higher. For providing the dynamic retrieval of pages PHP should also be installed on the server.

Once the middle tier is being setup the last tier i.e. database tier consist of MySQL server. All the queries which is being routed to the middle tier will be passed to the database tier for the retrieval of the data from the database.

Since all tiers have been setup properly, now the user can access CMS through their system by typing the URL address of the CMS site and can use the services of the CMS.

8.5

List of Reports Likely to be Generated


Following will be the list of reports to be generated from the CMS. (i) Daily Project Report. (ii) Ongoing Project Report which are under development.

WWW.IGNOUINFO.COM

Page27

9. Overall Network Architecture

WWW.IGNOUINFO.COM

Page28

10. Implementation of Security Mechanism


Security is an important aspect for a system which is online connected with the internet or intranet. CMS is an online system which is connected through its users via internet or intranet. To prevent any mishaps regarding the security and integrity of data, a multilevel security system is proposed to be implemented in CMS.

(i)

The client user is not allowed to enter into the CMS without having proper authorized username and password.

(ii)

CMS employee staff will only be allowed to enter into the CMS only when proper username and password is being entered.

(iii)

Various roles is being assigned to the employee, so that if someone get the username and password, without having proper privileges he/she cannot affect the important data of the CMS.

(iv) (v) (vi) (vii)

Employee account will only be created by administrator. Report generation is available to monitoring authority only. Unauthorized employee cannot get the CMS. The password for employee and clients is in encrypted form by using MD5 checksum.

WWW.IGNOUINFO.COM

Page29

11. Future Scope and Further Enhancement of the Project

Following modules can be added to enhance the features of the CMS. Payment module This module can be added to CMS for maintaining the payment from the clients and payment to the employees. Leave module This module can be added to the CMS for maintaining the leave and attendance of the employees. Chat module This module can be added to the CMS for making clients chat with the programmers to modify their projects and tell them about their difficulties. Reminder module This module can be added to the CMS for giving reminders of the deadline of the projects to the employee or giving deadline to the client for making payment of the proposed project. SMS Module

- This module will be added to the CMS for giving

reminder using SMS and every type of reminder using sms.

WWW.IGNOUINFO.COM

Page30

12. Bibliography
[1] MCA Study Material of MCS-014 Course Material of the IGNOU MCA course relating to Systems Analysis and Design Course Material of the IGNOU MCA course relating to Introduction to Database Management Systems Course Material of the IGNOU MCA course relating to Software Engineering Course Material of the IGNOU MCA course relating to Advance Database Management System Course Material of the IGNOU MCA course relating to Advance Internet Technologies Wrox Publication PHP official website Software Engineering Standards Committee of the IEEE Society Software Engineering Standards Committee of the IEEE Society Software Engineering Standards Committee of the IEEE Society

[2]

IGNOU MCA Study Material of MCS-023

[3]

IGNOU MCA Study Material of MCS-034

[4]

IGNOU MCA Study Material of MCS-043

[5]

IGNOU MCA Study Material of MCS-051

[6] [7] [8]

Beginning PHP6,Apache,MySql http://www.php.net IEEE Std 830-1998: IEEE Recommended practice for Software Requirements Specifications IEEE Std 1016-1998: IEEE Recommended practice for Software Design Descriptions IEEE Std 829-1998: IEEE Recommended e for Software Test Documentation

[9]

[10]

WWW.IGNOUINFO.COM

Page31

WWW.IGNOUINFO.COM

Page32

TITLE OF THE PROJECT


1.

Company Management System

2.

OBJECTIVE OF THE PROJECT

2.1 Overview
Company Management is an online web based system, which is responsible for handling the management of its clients and employees. In Company Management System a company is being created by the Company Management group and passed it to the client to utilize the services of the Company Management System by its own way. All the management is being done by the members of the company. Company Management is primarily meant for giving its services to its clients and employees; it gives full freedom to maintain its employees, clients and projects and also maintains payment of its projects. It will automate all its employee status i.e. which employee is assigned to which project what are the daily routines of an employee, its daily report. With CMS we can assign projects to different employee and assign their responsibilities related to project. It will also automate the deadline of an ongoing project and checks its payment for pending or cleared. Beside that it will manages that all its employee has equal work load so that a perfect balance between the work and employee is always there.

WWW.IGNOUINFO.COM

Page33

2.3

Project Objective
There are several main objectives for this project: To improve efficiency of managing project. To give a well organized platform for managing all its employee & projects. To provide up-to-date information about it projects. To provide a better utilization of time and money. To provide a correct information to the management level which can take proper decision in favour of the organization.

3.

SYSTEM ANALYSIS

3.1 Identification of Need


As per the existing manual process of maintaining the daily transactions of any business firm, there is delay in processing every transaction of the firm and even there are chances that up-to date information may not be delivered to the management, which causes a misguidance to the top-level management. Once a project is taken by the firm than proper assignment of task to the employee and its proper feedback is very important which is a cumbersome activity in a manual process. And many other such details to be handled manually.

Problem with the existing manual system are 1. Duplicate entries. 2. Lack of communication between the clients, employee & the management. 3. Compilation of statistics is a big issue. 4. Status of the ongoing, followup and freezed projects are difficult to manage. 5. Managing Payment of project is difficult. 6. Track of employees performance is difficult to retrieve.
WWW.IGNOUINFO.COM

Page34

7. No records are managed for the queries. Just a telephonic conversation is required or in case of written queries, there is burden of handling paper work. 8. Checking the over dues of the clients every time, before creating any invoice is very time consuming and over burdened task.

CMS proposes to simplify the procedure within the resources by introducing online implementation. As all the employees, client and management authorities are well connected on internet/intranet all the information will be readily available on a click.

3.2 Preliminary Investigation


During preliminary investigation it was found that the following are certain processes related to daily transaction of the business firm:

1. Managers used to maintain the records of project which is in development, freezed or followup phase for reporting purposes to the management, due to which they cannot concentrate on their work, thus wasting time and resources of the firm. 2. Manual payment system of the clients. 3. Lack of up-to date information to the top level management. 4. Due to not proper synchronization of work client always hangs up the employees for their project work, and employee cannot concentrate on their work due to which delay in the project completion work. 5. Lack or delay in decision making.

WWW.IGNOUINFO.COM

Page35

3.3 Feasibility Study


The feasibility of the system is evaluated on the following points:

Technical Feasibility
It includes existing and new software, hardware and networking infrastructure that are required to develop and operate project using PHP and MY SQL Database.

The basic Software and Hardware are readily available on Internet, on which this application is to be developed. So the project is technically feasible in this respect and no such additional cost would be made during development of project.

Economic Feasibility
Organization just need to register their domain name on web and has to pay the hosting fees. They dont have to invest in procuring software which is required to implement the project i.e MYSQL & other software are all registered with GNU license and freely available on web. So in order to handle the system organization requires only 2 persons who capable enough to handle the system. Thus the OVERALL investment is very low for deploying this project and hence economically feasible.

Operational Feasibility

Building an application is different than operating it, therefore you need to determine whether or not you can effectively operate and support it. Issues considered when determining the operational feasibility of a project are:

WWW.IGNOUINFO.COM

Page36

Does management support the project ? Are the employees and clients not happy with the current system? Will it reduces the time considerably?

Does the employees and clients involved in the planning & development of the project?

Will the proposed system really benefit the organization and does the overall response increases?

After questionairing through the employees and clients the above questions have following answers:

Management is in support of the project as they will get the information on the go.

Employees and Clients will welcome the project as their working hours is going to reduce, as earlier there was a huge loss of working hours only in handling queries only.

Employees and Clients are involved in the planning & development of the project as employees and clients interface were designed by taking their feedback.

The Proposed project will certainly benefit the organization as employees would handle their clients online and clients get the response timely without asking them. Organization will get the clean look of client's project and employees handling them.

3.4 Cost and Benefit Analysis


This analysis is done based on the overall investment required in development of the project and the overall benefit gathered from its development.

WWW.IGNOUINFO.COM

Page37

Initial Cost Estimate


A Project Feasibility Cost Estimate is required to determine whether or not to proceed with development of a project initiation document. It is prepared prior to the project initiation process.

Cost includes:1. Developer fees. 2. Web domain hosting fees. 3. Computer resource if not already available. 4. Hiring trained workers to handle the system. Benefits includes:1. Reduce Manpower. 2. Efficient resource Management. 3. Efficient Employee Management. 4. Efficient Client Management. 5. Increase in sales. 6. Intimating the concerned person for the payment reminders, so as to meet the demand on time. 7. Queries can be efficiently handled. 8. Organization nails down each and every activity regarding the development of project and the payment of the clients.

And many such other benefits are available in respect to the mentioned cost with a little amendment in cost (if required). Thus benefit overwhelms the overall cost on this project. So it is beneficial to adopt the project.

WWW.IGNOUINFO.COM

Page38

3.5 Project Planning and Scheduling

The CMS has gone through the following stages of development in its Software Development Life Cycle.

WWW.IGNOUINFO.COM

Page39

The following GANTT and PERT chart is showing the schedule of various stages of Project Management System.

3.5.1 GANTT CHART


ID

Task Name Preliminary Investigation & Feasibility Study System Analysis System Design Coding Testing Implementation & Maintenance

Jul 2009 Aug 2009 Sep 2009 d 4/5 4/12 4/19 4/26 5/3 5/10 5/17 5/24 5/31 6/7 6/14 6/21 6/28 7/5 7/12 7/19 7/26 8/2 8/9 8/16 8/23 8/30 9/6 9/13 9/20

Apr 2009

May 2009

Jun 2009

1 2 3 4 5 6

S.No

Task Preliminary Investigation & Feasibility Study System Analysis System Design Coding Testing Implementation & Maintenance

Work Hour 160 176 176 264 120 120

1 2 3 4 5 6

S.No Task 1 Preliminary Investigation & Feasibility Study 2 3 4 5 6 System Analysis System Design Coding Testing Implementation & Maintenance
WWW.IGNOUINFO.COM

Start Date 01-Apr-09

End Date 30-Apr-09

Duration 20 Days

01-May-09 01-June-09 01-Jul-09 16-Aug-09 09-Sep-09

29-May-09 22 Days 30-June-09 22 Days 15-Aug-09 08-Sep-09 28-Sep-09 33 Days 15 Days 15 Days

Page40

3.5.2 PERT CHART

20

20

20

22 System Analysis

42

Preliminary Investigation & Feasibility Study 0 20 20

42

42

22 System Design

64

64

33 Coding

97

42

64

64

97

97

15 Testing

112

112

15

127

Implementation & Maintenance 112 112 0 127

97

Early Start

Duration Task Name

Early Finish

Late Start

Slack

Late Finish

( 1 ) Since there are no overlapping activities in this case, the critical path is same as the path shown above. Also there is zero slack time due to this reason. ( 2 ) OT=Optimistic Time MT=Most Likely Time PT=Pessimistic Time ET=Expected Time. ET = ( Optimistic time + 4 x Most likely time + Pessimistic time ) / 6

WWW.IGNOUINFO.COM

Page41

3.6 Software Requirement Specifications (SRS)


The goal of this phase is to understand the exact requirements of the system and to document them properly. This activity is usually done to document all functions, performance and interfacing requirements for the software designing and management.

1. Introduction 1.1 Purpose 1.2 Scope

2. Overall Description 2.1 Product Description 2.2 Functional Requirement 2.3 Non Functional Requirement

3. Requirement Specification 3.1 Hardware Requirement 3.2 Software Requirement

4. Analysis (DFD & ER Diagrams) 4.1 Data Flow Diagram 4.2 E-R Diagram

WWW.IGNOUINFO.COM

Page42

1. Introduction

1.1 Purpose
Providing the accurate information to the organization regarding its clients and employee and their projects on which they are working. Properly bifurcation of jobs to the employee so that work load must be balanced between the employees. Reports generation helpful in decision-making purposes. Provides online availability of employee work to the project. Clients can give feedback regarding to their work. Proper handling of payments regarding to the client's project. Provides an online query to the clients. Handling of employee and client performance is very easy. Events can be managed in more interactive way.

1.2 Scope
Easy to administer employees, client and manager by the Organization Head. Provide a GUI based application to add, edit, view, deletes information. Password protection to all the users & administrators for their account. Workload will be distributed in a much more efficient manner. Clients can get response in a proper way. Managers can easily assign new projects to the employees and can see their performance on the site. Different Levels of Report generation according to the roles. Clients can view their payment online; they don't have to wait for the managers to give details. Clients can see progress on their projects and respond to the developers or manager by the help of queries
WWW.IGNOUINFO.COM

Page43

2. Overall Description

2.1 Product Description


CMS is primarily meant for the management of an organizational need in view of their Projects handled by the employees. It will automate the various needs regarding a proper view of the organization, which helps in proper decision making for an organization. During this it not only helps the organization, but also helps the employees and clients in their work by easily communicating with each other, get on the problems early, which causes delays in making the projects. Managers can easily assign the work to their subordinates and can take performance reviews also. Report generation in terms of payment made by the clients, status of the project, employee details its performance and its nature of work can be easily done by the PMS.

2.1 Function Requirements


CMS replaces the existing system for the newer modules, which helps in maintaining the integrity and consistency between the modules. Thus keeping in mind a careful study of the requirements of the end user revealed the following specific functional requirements:

Administrator Administrator will be able to login to the system and decides whether to view reports, add new employees, add new clients, generate the payment report, project completion report, employee detail report or client report. The administrator can post queries to the clients and employee regarding to the different projects handled by them.

Managers Managers can assign new projects to the employee and can report of the project handled by the employee. They are authorized to make
WWW.IGNOUINFO.COM

Page44

entry of payment of the clients. They can also add new task for the employees regarding the project. Managers can view their details and have rights to update their details but only limited areas.

Employees Employees can also view and update the limited area of their details. They can view the task and assign task to themselves, even they can reply back to the manager for the queries that has been posted by the them and can reply back as a text or can upload the file of the queries answer. They can also make reply to the client queries regarding their project.

Clients Clients can view their project status and can communicate with the developers regarding their project queries. They can see the status of their ongoing project how many task have been completed and can query with the developers. They can see the payment also which they have paid to the organization and can take printout of the payment.

2.4

Non Functional Requirements


i.) Security: This project is implemented keeping in mind the security issues regarding accessibility of information or some restricted area. And thus requires sessions to protect them. And in turn requires another login to the system using web interface. Hence 2-way security is implemented. Hence this application is totally secure.

ii) Reliability: Data access permissions are granted only to the authorized person and database is password protected. Hence no chance of any mishandling of data can be done by the end users. Thus output of this system will be reliable.

WWW.IGNOUINFO.COM

Page45

iii) Maintainability: There is no issue regarding maintenance of the system. It can be easily implemented. It just required well-trained technical person to handle this project.

iv) Portability: This is an online system. So it requires a space to be deployed on any computer users like. Thus it can be easily ported anywhere.

v) Extensibility: This project is based on prototype model keeping in mind the user requirement can change as the size of an enterprise grows up. Thus it is developed in such a manner, that new modules can be easily added to this project.

3. Requirement Specifications

3.1 Hardware Requirment


CMS is proposed to be installed on a web server having the following minimum hardware requirements: Intel Dual Xeon 5000 series Dual Core Processor having clock speed 2.33 GHz or more 2 GB DDR-2 RAM 2 x RAID-1 SATA-2 Hard Disk Drives having capacity of 250 GB each At least 50 GB free space for the installation of My SQL, PHP, Apache, Dreamweaver, Edit Plus and Adobe Photoshop. DVD Writer and Tape Drives for backup purposes Leased line internet or Intranet connection to the server with a bandwidth of at least 2 Mbps Other Peripherals is as per requirements
WWW.IGNOUINFO.COM

Page46

On the client side, at least a Pentium-IV personal computer with 256 Kbps Internet/Intranet access facility is recommended.

3.2 Software Requirements


On the server side CMS will require the following software platform: MySQL Database Management System PHP Apache Web Server Windows 2003 server Enterprise Edition

On the client side the sole requirement is any html compatible browser with support of Flash Player e.g. Microsoft Internet Explorer, Opera, Firefox etc.

4. Analysis ( DFD and ER Diagram )

3.7 Software Engineering Paradigm


For this project, the prototype model is suitable, where the business requirement has been gathered earlier only, based on which designing is to be done.

WWW.IGNOUINFO.COM

Page47

3.8 Conceptual Model 3.8.1.1 Context Level DFD:

CMS

WWW.IGNOUINFO.COM

Page48

3.8.1.2 Level 1 DFD

One level DFD for Administrator Module: -

WWW.IGNOUINFO.COM

Page49

User Management Module Level 1 DFD:-

WWW.IGNOUINFO.COM

Page50

Employee Management Module Level 1 DFD

WWW.IGNOUINFO.COM

Page51

Project Management Module Level 1 DFD:-

WWW.IGNOUINFO.COM

Page52

3.8.2

ER Diagram

Event Management Event_id int(10) Emp_id int(10) Event_date date Event_details varcahr(255)

WWW.IGNOUINFO.COM

Page53

4. System Design

4.1 Module Description


CMS comprises of five modules. Brief description of each and every module is given below:

(vi) Administrator Module: This module will be responsible for creation of the new company and giving username and password to the company to access the CMS and use the services of CMS.

(vii) User Management Module:

This module will be responsible for

maintaining the users who will use the CMS according to their roles. This module gives username and password to the different users according to their role so that they can access CMS according to their level.

(viii) Employee Management Module: This module will be responsible for maintaining the employee record along with their salary, bank account, leave so that easy deployment of employees can be possible.

(ix) Project Management Module:

This module will be responsible for

handling the different clients, taking new projects from clients. The module is solely responsible for assigning new projects to the employee and balancing the load factor between the employees.

WWW.IGNOUINFO.COM

Page54

4.2 Database Design


The PMS database consists of 8 tables. Each and every table is setup with the proper Integrity constraints to work properly. The structure of the database tables is given below:

(iii) user_master: Stores the details of users along with their roles.

Field Name emp_id comp_id username password role

Field Type

Constraints Description Stores the unique id for users stores the company id of the user stores the username of the user. stores the password in md5 hash encryption stores the role of the user.

varchar2(10) primary key varchar2(10) foreign key varchar2(10) varchar2(10) varchar2(15)

(iv) company: Stores the details of the different companies enrolled. Field Name comp_id Field Type varchar2(10) Constraints Primary key Description Stores the unique company id. Stores the name of the company Stores the address of the company Stores the city of the company
Stores the phone numbers of the company

company_name varchar2(25) address city phone email ( varchar2(50) varchar2(15) varchar2(10) varchar2(25) varchar2(15) varchar2(10) varchar2(10) varchar2(10)

i contact_person i username i password ) url (

Stores the email id of the company Stores the contact person name Stores username Stores password Stores the url of the company

WWW.IGNOUINFO.COM

Page55

iii) employee: Stores the details of the employees of the company. Field Name Emp_id Comp_id ( Fullname i Address v City ) Phone Email C Dob l Salary i Acc_noe bank n t (iv) client: Stores the Client information of the company. Field Name clt_id comp_id Field Type varchar2(10) varchar2(10) Constraints Primary key Foreign key Description Stores the unique client id Stores the company id of particular client fullname address city phone email website varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) Store the fullname of client Stores the address of the client Stores the city of the client Stores the phone number of the client Stores the email id of the client Stores the website address of the client Stores the contact person of the client Stores username Stores password Field Type varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) Constraints Primary key Foreign key Description Stores the unique employee id Uses the company id for the emp. Stores fullname of the employee Stores address fo the employee Stores city of the employee Stores phone number of the emp Stores email of the employee Stores the date of birth of employee Stores the salary of the emp Stores the account no Stores the bank name

contact_person varchar2(10) username password varchar2(10) varchar2(10)

WWW.IGNOUINFO.COM

Page56

(viii) project: Stores the information about incoming project to the company.

Field Name prj_id comp_id clt_id prj_name duration start_date end_date status freezed_on budget currency final_amount follow_by developers

Field Type varchar2(10) varchar2(10) varchar2(10) varchar2(25) varchar2(10) date(8) date(8) varchar2(10) date(8) varchar2(10) varchar2(10) varchar2(10) varchar2(50) varchar2(50)

Constraints Description Primary key Foreign key Foreign key Stores the unique project id Stores the company id Stores the client id Stores the project name Stores the duration of the project Stores the beginning date of the project Stores the end date of the project Stores the status of the project Stores the date of freezed project Stores the budget of the client Stores type in which amount to be paid Stores the final amount Stores the name of the manager Stores the developers name Stores the development url Stores the final url Stores the priority of the project

url_development varchar2(50) url_final priority varchar2(10) varchar2(10)

WWW.IGNOUINFO.COM

Page57

(ix) work_assign: Stores information about different project assigned to the employee with their project id. Field Name wrk_id emp_id prj_id task_id clt_id status Field Type varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) Constraints Description Primary key Stores the corresponding work id Stores the employee id Stores the project id Stores the task id Stores the client id Stores the status of the project

(x)

queries: Stores information of different queries made by client and administrator to the employee.

Field Name query_id prj_id clt_id query_title query_text query_posted_on query_posted_by query_accepted_by query_accepted_on

Field Type varchar2(10) varchar2(10) varchar2(10) varchar2(10) varchar2(10) date() varchar2(10) varchar2(10) date()

Constraints Description Primary key Stores the query id Stores the project id Stores the client id Stores the query title Stores the query text Stores the date of query posted Stores the name Stores the name who accepted qry Stores the date of acceptance Stores the date of completion Stores the original file name Stores the changed file name Stores the url of the site Stores the reply of query

query_completed_on date() file1_name_org file1_name_saved file1_url query_reply


WWW.IGNOUINFO.COM

varchar2(100) varchar2(100) varchar2(50) varchar2(100)

Page58

(xi)

payment_details: Stores the details of payment of client's project

Field Name payment_id prj_id amount

Field Type varchar2(10) varchar2(10) varchar2(10)

Constraints Description Primary key Stores the payment id Stores the project id Stores the amount paid Stores the payment type Stores the remarks made Stores the date of payment

payment_type varchar2(10) remarks date varchar2(50) date

(xii)

Event Management: Stores information about different Events assigned by the employee and client with their employee id.

Field Name Event_id Emp_id Event_date

Field Type Varchar2(10) Varchar2(10) Date

Constraints Description Primary key Foreign key Stores the corresponding event id Stores the employee id Stores events date Store Events Detail

Event_details Varchar2(255)

WWW.IGNOUINFO.COM

Page59

4.3 User Interface

CMS Main Page

WWW.IGNOUINFO.COM

Page60

Adminstrator Page

WWW.IGNOUINFO.COM

Page61

Administrator Main Page

WWW.IGNOUINFO.COM

Page62

Add New Company Page

WWW.IGNOUINFO.COM

Page63

Administrator Company Report Section

WWW.IGNOUINFO.COM

Page64

Administrator Password Change

WWW.IGNOUINFO.COM

Page65

Company Login Page

WWW.IGNOUINFO.COM

Page66

Company Main Page

WWW.IGNOUINFO.COM

Page67

Companys All Projects Listing

WWW.IGNOUINFO.COM

Page68

New Project Add

WWW.IGNOUINFO.COM

Page69

Project Edit Section

WWW.IGNOUINFO.COM

Page70

Company Report Section

WWW.IGNOUINFO.COM

Page71

Company Project Report

WWW.IGNOUINFO.COM

Page72

Company Payment Entry

WWW.IGNOUINFO.COM

Page73

Company Event List

WWW.IGNOUINFO.COM

Page74

Employee List

WWW.IGNOUINFO.COM

Page75

Add New Employee in Company

WWW.IGNOUINFO.COM

Page76

Edit Employee Details

WWW.IGNOUINFO.COM

Page77

Client Login Page

WWW.IGNOUINFO.COM

Page78

Client Home Page

WWW.IGNOUINFO.COM

Page79

Edit Client Profile

WWW.IGNOUINFO.COM

Page80

Clients Project List

WWW.IGNOUINFO.COM

Page81

Employee Login Page

WWW.IGNOUINFO.COM

Page82

Employee Welcome Page

WWW.IGNOUINFO.COM

Page83

Employees Assigned Project Listing

WWW.IGNOUINFO.COM

Page84

Coding
5.1 Complete Project Coding

ADMIN SECTION WELCOME PAGE:<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <title>Company Management System</title> <link rel="icon" type="image/gif" href="image/fevicon.gif" > <link href="Project%20Management%20System_files/styles.css" rel="stylesheet" type="text/css"> <script language="javascript" src="Project%20Management%20System_files/empty_email.js" type="text/javascript"></script> <script language="javascript"> function validateForm() { if(emptycheck("frmlogin","username","enter the user name")==false){return false;} if(emptycheck("frmlogin","pass","enter the passwod")==false){return false;} } </script> </head><body> <table align="center" border="0" cellpadding="0" cellspacing="0" height="500" width="100%"> <tbody><tr> <td><table class="login" align="center" border="0" cellpadding="0" cellspacing="0" width="600"> <tbody><tr> <td height="157" width="28"><img src="Project%20Management%20System_files/login_left.jpg" height="157" width="28"></td> <td background="Project%20Management%20System_files/login_bg.jpg"><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td colspan="4" valign="top" align="center"><h1 class="head">Company
WWW.IGNOUINFO.COM Page85

Management System</h1> </td> </tr> <tr> <td valign="top">&nbsp;</td> <td valign="top">&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td width="40%" valign="top"><a href="administrator/index.php" style="color:#FFF; font-weight:bold;">Administrator</a> </td> <td width="32%" valign="top"><a href="cms_users/index.php" style="color:#FFF; font-weight:bold;">Company</a></td> <td width="28%"><a href="cms_users/index2.php" style="color:#FFF; fontweight:bold;">Client</a></td> <td width="28%"> <a href="cms_users/index1.php" style="color:#FFF; fontweight:bold;">Employee</a>&nbsp;</td> </tr> </tbody> </table></td> <td height="157" width="28"><div align="right"><img src="Project%20Management%20System_files/login_right.jpg" height="157" width="28"></div></td> </tr> </tbody></table></td> </tr> </tbody></table> </body></html> ADMIN HOME PAGE:<? ob_start(); session_start(); include("session_check.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="mstyle.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Administrative Account</title>

WWW.IGNOUINFO.COM

Page86

</head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><? include("header.php")?></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#6A8CA0" height="1"></td> </tr> </table></td> </tr> <tr> <td style="font-size:12px;">&nbsp; </td> </tr> <tr> <td><div align="center"><img src="hands-on-laptop.jpg" width="495" height="301" /></div></td> </tr> <tr> <td align="center" class="style1"><span style="font-size:16px;">Welcome Administrator Company Management System</span> </td> </tr> <tr> </tr> <tr> <td><hr /></td> </tr> <tr> <td><div align="center"> <div align="center"> <p>Copyright 2010 All Rights Reserved<br /> Company Management System <br /> New Delhi -110045, India <br /> Best viewed in Internet Explorer 6 or above at 1024x768 resolution </p> </div> </div></td> </tr> </table> </body> </html>
WWW.IGNOUINFO.COM

Page87

ADMIN LOGIN PAGE:<?php ob_start(); session_start(); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Company Management System - CMS Solution</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="favicon.ico" > <link rel="icon" type="image/gif" href="../fevicon.gif" > <script language="javascript" type="text/javascript"> // check over all function validateForm() { if(""==document.form1.username.value) { alert("Please enter user name."); document.form1.username.focus(); return false; } //check password null if(""==document.form1.password.value) { alert("Please enter password, It should not less than 6 charector."); document.form1.password.focus(); return false; } else { var pws1=document.form1.password.value; //check password not less than 6 char if(pws1.length<6) { alert("Can not fill less than 6 char in password"); document.form1.password.select(); return false; } } return true; }
WWW.IGNOUINFO.COM

Page88

</script> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%" valign="top" bgcolor="#000066"><div align="center"><span class="style2">Company Management </span></div></td> <td height="50" colspan="3" rowspan="2" bgcolor="#000066">&nbsp;</td> </tr> <tr bgcolor="#000066"> <td valign="top"><div align="center"><span class="style2">System</span></div></td> </tr> <tr> <td width="20%" valign="top" bgcolor="#000066">&nbsp;</td> <td width="17%" height="24"><div align="center" class="style1">Authentication</div></td> <td width="1%" valign="top"><img src="../images/tab-ew.gif" width="10" height="24"></td> <td width="62%" height="24" bgcolor="#000066"></td> </tr> <tr> <td width="20%" height="40" valign="top" bgcolor="#000066">&nbsp;</td> <td colspan="3" rowspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <td valign="top"><img src="../images/background.gif" width="100%" height="480"></td> </tr> </table> </body> </html> LOGINCHECK PAGE:<?php ob_start(); session_start(); include "conn.php"; if(isset($_POST['username'])) { $username=$_POST['username']; $password=$_POST['password']; $frmt = mktime(0,0,0,date("m"),date("d"),date("Y")); $today=date("Y-m-d",$frmt);

WWW.IGNOUINFO.COM

Page89

$sql_admincheck="select * from admin_info where username='$username' AND password='$password'"; $rs_admincheck=mysql_query($sql_admincheck); $data_admincheck=mysql_fetch_array($rs_admincheck); if($data_admincheck) { //echo "hello"; $adminid=$data_admincheck['id']; $_SESSION['admin_id']=$adminid; session_register('adminid'); $update_qry="update admin_info set datee='$today' where id='$adminid'"; mysql_query($update_qry); $url = "main.php"; header("location:$url"); exit(); } else { header("location:index.php?msg=error"); } } mysql_close($link); ?> LOGOUT PAGE:<?php ob_start(); session_start(); include("conn.php"); $id=$_SESSION['admin_id']; $frmt = mktime(0,0,0,date("m"),date("d"),date("Y")); $today=date("Y-m-d",$frmt); $update_qry="update admin_info set last_login='$today' where id='$id'"; mysql_query($update_qry); session_unregister('admin_id'); header("location:index.php"); ?>
WWW.IGNOUINFO.COM

exit();

Page90

DATABASE CONNECTION PAGE:<?php $hostname="localhost"; $username="root"; $password=""; $dbname="lounge"; $link=mysql_connect($hostname,$username, $password) OR DIE ("Unable to connect to database! Please try again later."); mysql_select_db($dbname); ?>

SESSION CHECK PAGE:<? session_start(); if(!isset($_SESSION['admin_id'])) { header("location:index.php"); exit(); } ?>

HEADER PAGE:<link rel="shortcut icon" href="favicon.ico" > <link rel="icon" type="image/gif" href="../fevicon.gif" > <? include("session_check.php"); ?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C6D4E6"> <tr> <td colspan="2" bgcolor="#C6D4E6" height="3"></td> </tr>
WWW.IGNOUINFO.COM

Page91

<tr> <td width="82%" height="30">&nbsp;&nbsp;<img src="../images/logo_web.gif" width="180" height="23" /></td> <td width="18%" rowspan="2"><div align="right"><span class="style1">Administrator&nbsp;&nbsp;<br /> </span><span class="style2"><a href="logout.php" style="text-decoration:underline">Log Out</a>&nbsp;&nbsp;</span> </div></td> </tr> <tr> <td><table width="90%" border="0" cellpadding="0" cellspacing="0" bgcolor="#8CACBC"> <tr> <td height="20" style="cursor:hand" onClick="window.location='main.php'" onMouseOver="bgColor='#416170'" onMouseOut="bgColor='#8CACBC'"><div align="center"><span class="headmenu">Home</span></div></td> <td style="cursor:hand" onClick="window.location='company_addnew.php'" onMouseOver="bgColor='#416170'" onMouseOut="bgColor='#8CACBC'"><div align="center"><span class="headmenu">Create Company</span></div></td> <td style="cursor:hand" onClick="window.location='reports.php'" onMouseOver="bgColor='#416170'" onMouseOut="bgColor='#8CACBC'"><div align="center"><span class="headmenu">Reports</span></div></td> <td style="cursor:hand" onClick="window.location='preferences.php'" onMouseOver="bgColor='#416170'" onMouseOut="bgColor='#8CACBC'"><div align="center"><span class="headmenu">Preferences</span></div></td> </tr> </table></td> </tr> <tr> <td colspan="2" bgcolor="#6A8CA0" height="3"></td> </tr> </table> COMPANY CREATE FORM:<? ob_start(); session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="mstyle.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
WWW.IGNOUINFO.COM

Page92

<title>Add New Company - Administrative Account</title> <script type="text/javascript" src="calendarDateInput.js"></script> <script type="text/JavaScript"> <!-function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script language="javascript" type="text/javascript"> // check over all function validateForm(signupform) { //check loginid null //check comapany name is null if(""==document.forms.signupform.comp_name.value) { alert("Please enter company name."); document.forms.signupform.comp_name.focus(); return false; }

WWW.IGNOUINFO.COM

Page93

//check company contact is null if(""==document.forms.signupform.comp_contact.value) { alert("Please enter company's contact number."); document.forms.signupform.comp_contact.focus(); return false; } //check contact no is null if(""==document.forms.signupform.contact_person.value) { alert("Please enter contact person name."); document.forms.signupform.contact_person.focus(); return false; } if(""==document.forms.signupform.contact_person_number.value) { alert("Please enter contact person number."); document.forms.signupform.contact_person_number.focus(); return false; } //check email if(""==document.forms.signupform.email.value) { alert("Please enter email id."); document.forms.signupform.email.focus(); return false; } else { } else { var pws2=document.signupform.re_password.value; //check confirm password not less than 6 char if(pws2.length<6) { alert("Can not fill less than 6 char in password"); document.forms.signupform.re_password.select(); return false; } }
WWW.IGNOUINFO.COM

Page94

//check both both password are same if(pws1!=pws2) { alert("Both passwords must be same"); document.forms.signupform.re_password.select(); return false; } return true; } </script> </head> <body onload="MM_preloadImages('../images/btn_add_over.gif')"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <td>&nbsp;</td> <td><input name="re_password" type="password" value="" style="fontfamily:Arial;font-size:7pt;height:16px;width:260px;border=1px solid #999999"></td> </tr> <tr> <td colspan="3" height="10"></td> </tr> <tr> <td><input type="submit" name="Submit" value="Add Company"></td> </table> </form></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2" class="headerresultmenu">&nbsp;</td> </tr> </table></td> </tr> </table> </body> </html>

WWW.IGNOUINFO.COM

Page95

MSTYLE.CSS PAGE a:link { color: #262F48; text-decoration: none; } a:visited { text-decoration: none; } a:hover { color: #262F48; text-decoration: underline; } shop:link { color: red; text-decoration: none; } shop:visited { color: blue; text-decoration: none; } shop:hover { color: green; text-decoration: none; } .reviews { font-size: 12px; font-family: Arial, Helvetica, sans-serif; color: #333333; font-weight:normal; text-decoration: none } body { font-weight: normal; color: #495A8D; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 40px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; }
WWW.IGNOUINFO.COM

Page96

.normaltxt { font-weight: normal; color: #333333; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } td { color: #333333; font-size: 11px; font-family: Arial, Helvetica, sans-serif; text-decoration: none;} .headmenu { font-size: 12px; color: #FFFFFF; font-weight: bold; } .copyrt { font-size: 10px; color: #999999; padding: 5px; text-align: center; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-top-color: #336699; border-right-color: #336699; border-bottom-color: #336699; border-left-color: #336699; } .txtLeft { padding-right: 6px; padding-bottom: 6px; padding-left: 6px;
WWW.IGNOUINFO.COM

Page97

} .txtLeftindent { padding-right: 1px; padding-bottom: 1px; padding-left: 15px; } .txtLeftonly { padding-right: 1px; padding-bottom: 1px; padding-left: 6px; } .txtsumi { padding-top: 5px; padding-right: 20px; padding-bottom: 20px; padding-left: 20px; } } .bottomborder1 { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #6B6627; } .lefttopbottomborder { border-left-width: 1px; border-left-style: solid; border-left-color: #000060; border-top-width: 1px; border-top-style: solid; border-top-color: #000060; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #000060; .headerresultmenu{ background-color:#DAE3EF; }
WWW.IGNOUINFO.COM

Page98

COMPANY LOGIN.PHP <?php ob_start(); session_start(); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Company Management System - CMS Solution</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="favicon.ico" > <link rel="icon" type="image/gif" href="../fevicon.gif" > <script language="javascript" type="text/javascript"> // check over all function validateForm() { if(""==document.form1.username.value) { alert("Please enter user name."); document.form1.username.focus(); return false; } //check password null if(""==document.form1.password.value) { alert("Please enter password, It should not less than 6 charector."); document.form1.password.focus(); return false; } else { var pws1=document.form1.password.value; //check password not less than 6 char if(pws1.length<6) { alert("Can not fill less than 6 char in password"); document.form1.password.select(); return false; } }
WWW.IGNOUINFO.COM

Page99

return true; } </script> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%" valign="top" bgcolor="#000066"><div align="center"><span class="style2">Company Management </span></div></td> <td height="50" colspan="3" rowspan="2" bgcolor="#000066">&nbsp;</td> </tr> <tr bgcolor="#000066"> <td valign="top"><div align="center"><span class="style2">System</span></div></td> </tr> <tr> <td width="20%" valign="top" bgcolor="#000066">&nbsp;</td> <td width="17%" height="24"><div align="center" class="style1">Authentication</div></td> <td width="1%" valign="top"><img src="../images/tab-ew.gif" width="10" height="24"></td> </tr> <tr> <td width="20%" height="40" valign="top" bgcolor="#000066">&nbsp;</td> <td colspan="3" rowspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> </tr> <tr> <td><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"><div align="center"><img src="../images/loginwelcome.gif" width="97" height="105"></div></td> <td><input type="submit" name="Submit" value="Login"></td> </tr> </table> </form> </td> </tr> </table></td> </tr> <tr> </tr> <tr> <tr>
WWW.IGNOUINFO.COM

Page100

</table></td> </tr> <tr> <td valign="top"><img src="../images/background.gif" width="100%" height="480"></td> </tr> </table> </body> </html> SESSION CHECK:<? @session_start(); if(!isset($_SESSION['usr_id'])) { header("location:index.php"); exit(); } ?>

ADD NEW PROJECT <? ob_start(); session_start(); include_once("conn.php"); $companyid=$_SESSION['usrid']; $rsclient=mysql_query("select * from client where comp_id=$companyid"); $rsusr=mysql_query("select * from user_master where comp_id=$companyid AND role='Manager'"); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="mstyle.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Add New Project - Administrative Account</title> <script type="text/javascript" src="datetimepicker.js"></script>
WWW.IGNOUINFO.COM

Page101

<script type="text/JavaScript"> <!-function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }

function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head> <body onload="MM_preloadImages('../images/btn_add_over.gif')"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><? include("header.php")?></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" bgcolor="#C6D4E6"><img src="../images/arrow_right.gif" width="20" height="10" /><a href="projects.php">Projects</a>&nbsp;&nbsp;&raquo;&nbsp;Add New Project</td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;Add New Project </span></td> <td width="8%" class="headerbg"><div align="center"><a
WWW.IGNOUINFO.COM

Page102

href="project_addnew.php"><img src="../images/btn_add_norm.gif" alt="Add New Employee" name="add_normal" width="22" height="22" border="0" id="add_normal" onmouseover="MM_swapImage('add_normal','','../images/btn_add_over.gif',1)" onmouseout="MM_swapImgRestore()" /></a></div></td> </tr> <tr> <td height="20" colspan="2" class="headerresultmenu"> &nbsp;&nbsp;Enter details of the Project you are creating. </td> </tr> <tr> <td colspan="2"><form name="signupform" method="post" action="project_added.php" onSubmit="return validateForm(signupform);" > <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><span class="style23">&nbsp;&nbsp;&nbsp;Select Client </span></td> <td>&nbsp;</td> <td><select name="client_id" style="font-family:Arial;fontsize:8pt;height:20px;border:1px solid #999999"> <? while($dataclient = mysql_fetch_array($rsclient)) { ?> <option value="<?=$dataclient['clt_id']?>"><? echo '['.$dataclient['organisation'].']'." ".$dataclient['fullname']; ?></option> <? } ?> </select> <span class="style22">[</span> <a href="client_addnew.php"><span class="style22">add new client</span></a> <span class="style22">]</span> </td> </tr> <tr> <td><span class="style23">&nbsp;&nbsp;&nbsp;Project Title </span></td> <td>&nbsp;</td> <td><input name="title" type="text" id="circle_name" value="" style="fontfamily:Arial;font-size:8pt;height:16px;width:160px;border:1px solid #999999" /></td> </tr> <tr> </tr> <tr> <td>&nbsp;&nbsp;&nbsp;<span class="style23">Assigned to</span></td> <td valign="middle"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="171" height="40" valign="middle"><select name="employee_id" style="font-family:Arial;font-size:8pt;height:20px;width:160px;border:1px solid #999999"> <? while($datausr = mysql_fetch_array($rsusr))
WWW.IGNOUINFO.COM

Page103

{ $dd=$datausr['emp_id']; $dataemp=mysql_fetch_array(mysql_query("select * from employee where comp_id='$companyid' AND emp_id='$dd'"));

?> <option value="<?=$datausr['emp_id']?>"> <?=$dataemp['fullname']?> </option> <? } ?> </select></td> <td width="224" valign="middle"><div class="style22">[ <a href="employee_addnew.php"><span class="style22">add new employee</span></a> <span class="style22">]</div></td> </tr> </table> </td> </tr> <tr> </tr> <tr> <td><input type="submit" name="Submit" value="Add Project" /></td> </table> </form></td> </tr> <tr> <td colspan="2" class="headerresultmenu">&nbsp;</td> </tr> </table></td> </tr> </table> </body> </html> <? mysql_close($link);?> CLIENT ADD FORM:<? ob_start(); session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
WWW.IGNOUINFO.COM

Page104

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="mstyle.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Add New Client - Administrative Account</title> <script type="text/javascript" src="calendarDateInput.js"></script> <script type="text/JavaScript"> <!-function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script language="javascript" type="text/javascript"> // check over all function validateForm(signupform) { //check loginid null //check firstname is null if(""==document.forms.signupform.firstname.value) {
WWW.IGNOUINFO.COM

Page105

alert("Please enter first name."); document.forms.signupform.firstname.focus(); return false; } //check lastname is null if(""==document.forms.signupform.lastname.value) { alert("Please enter lastname name."); document.forms.signupform.lastname.focus(); return false; } //check contact no is null if(""==document.forms.signupform.contact_no.value) { alert("Please enter contact number."); document.forms.signupform.contact_no.focus(); return false; } //check email if(""==document.forms.signupform.email.value) { alert("Please enter email id."); document.forms.signupform.email.focus(); return false; } else { var login =document.signupform.email.value; //check valid loginid if((login.indexOf("@")==-1) || (login.indexOf(".")==-1)) { alert("plz fill valid email-Id"); document.forms.signupform.email.select(); return false; } } // check address if(""==document.forms.signupform.address.value) { alert("Please enter address.");
WWW.IGNOUINFO.COM

Page106

document.forms.signupform.address.focus(); return false; } // check city if(""==document.forms.signupform.city.value) { alert("Please enter City name."); document.forms.signupform.city.focus(); return false; } // check jobtitle if(""==document.forms.signupform.compname.value) { alert("Please enter organisation name."); document.forms.signupform.compname.focus(); return false; } // check salary if(""==document.forms.signupform.jobtitle.value) { alert("Please enter job title."); document.forms.signupform.jobtitle.focus(); return false; } if(""==document.forms.signupform.url.value) { alert("Please enter website."); document.forms.signupform.url.focus(); return false; } if(""==document.forms.signupform.username.value) { alert("Please enter user name."); document.forms.signupform.username.focus(); return false; } //check password null if(""==document.forms.signupform.password.value) { alert("Please enter password, It should not less than 6 charector."); document.forms.signupform.password.focus();
WWW.IGNOUINFO.COM

Page107

return false; } else { var pws1=document.signupform.password.value; //check password not less than 6 char if(pws1.length<6) { alert("Can not fill less than 6 char in password"); document.forms.signupform.password.select(); return false; } } //check condfirm password null if(""==document.forms.signupform.re_password.value) { alert("Please enter confirm password."); document.forms.signupform.re_password.focus(); return false; } else { var pws2=document.signupform.re_password.value; //check confirm password not less than 6 char if(pws2.length<6) { alert("Can not fill less than 6 char in password"); document.forms.signupform.re_password.select(); return false; } } //check both both password are same if(pws1!=pws2) { alert("both passwords must be same"); document.forms.signupform.re_password.select(); return false; } return true; } function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0;
WWW.IGNOUINFO.COM

Page108

} </script> </head> <body onload="MM_preloadImages('../images/btn_add_over.gif')"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><? include("header.php")?></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" bgcolor="#C6D4E6"><img src="../images/arrow_right.gif" width="20" height="10" /><a href="clients.php">Client</a>&nbsp;&nbsp;&raquo;&nbsp;Add New Client </td> </tr> <tr> <td bgcolor="#6A8CA0" height="1"></td> </tr> </table></td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;Add New Client </span></td> <td width="8%" class="headerbg"><div align="center"><a href="client_addnew.php"><img src="../images/btn_add_norm.gif" alt="Add New Employee" name="add_normal" width="22" height="22" border="0" id="add_normal" onmouseover="MM_swapImage('add_normal','','../images/btn_add_over.gif',1)" onmouseout="MM_swapImgRestore()" /></a></div></td> </tr> <tr> <td height="20" colspan="2" class="headerresultmenu"> &nbsp;&nbsp;Enter details of the Client Account you are creating.</td> </tr> <tr>
WWW.IGNOUINFO.COM

Page109

<td colspan="2"><form name="signupform" method="post" action="client_added.php" onSubmit="return validateForm(signupform);" enctype="multipart/form-data" > <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="19%"><span class="style20">Basic information</span></td> <td width="7%">&nbsp;</td> <td width="74%">&nbsp;</td> </tr> <tr bgcolor="#CCCCCC"> <td colspan="3" height="1"></td> </tr> <tr> <td><input name="email" type="text" id="circle_name3" value="" style="fontfamily:Arial;font-size:7pt;height:16px;width:260px;border=1px solid #999999" /></td> </tr> <tr> <td><input name="city" type="text" id="circle_name4" style="font-family:Arial;fontsize:7pt;height:16px;width:260px;border=1px solid #999999" onkeypress="if( (event.keyCode >= 65 && event.keyCode <= 90) || (event.keyCode >= 97 && event.keyCode <= 122) || event.keyCode == 32){ return true; } else { event.keyCode = 0 }" /></td> </tr> <tr> <td>&nbsp;&nbsp;Organisation</td> <td>&nbsp;</td> <td><input name="compname" type="text" id="city" value="" style="fontfamily:Arial;font-size:7pt;height:16px;width:260px;border=1px solid #999999" onkeypress="if( (event.keyCode &gt;= 65 &amp;&amp; event.keyCode &lt;= 90) || (event.keyCode &gt;= 97 &amp;&amp; event.keyCode &lt;= 122) || event.keyCode == 32){ return true; } else { event.keyCode = 0 }" /></td> </tr> <tr bgcolor="#CCCCCC"> </tr> <tr> <td><span class="style20">Login information</span></td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr bgcolor="#CCCCCC"> <tr> <td>&nbsp;&nbsp;&nbsp;Password</td> <td>&nbsp;</td> <td><input name="password" type="password" id="circle_name6" value="" style="fontfamily:Arial;font-size:7pt;height:16px;width:260px;border=1px solid #999999"></td>
WWW.IGNOUINFO.COM

Page110

</tr> <tr> <td>&nbsp;&nbsp;&nbsp;Confirm Password</td> <td>&nbsp;</td> <td><input name="re_password" type="password" id="password654" value="" style="font-family:Arial;font-size:7pt;height:16px;width:260px;border=1px solid #999999"></td> </tr> <tr> <tr> <td><input type="submit" name="Submit" value="Add Client"></td> </tr> </table> </form></td> </tr> <tr> </table></td> </tr> </table> </body> </html>

EMPLOYEE SECTION:-

EMPLOYEE LOGIN PAGE:<?php ob_start(); session_start(); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Company Management System - CMS Solution</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="favicon.ico" > <link rel="icon" type="image/gif" href="../fevicon.gif" > <script language="javascript" type="text/javascript">
WWW.IGNOUINFO.COM

Page111

// check over all function validateForm() { if(""==document.form1.username.value) { alert("Please enter user name."); document.form1.username.focus(); return false; } //check password null if(""==document.form1.password.value) { alert("Please enter password, It should not less than 6 charector."); document.form1.password.focus(); return false; } else { var pws1=document.form1.password.value; //check password not less than 6 char if(pws1.length<6) { alert("Can not fill less than 6 char in password"); document.form1.password.select(); return false; } } return true; } </script> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%" valign="top" bgcolor="#000066"><div align="center"><span class="style2">Company Management </span></div></td> <td height="50" colspan="3" rowspan="2" bgcolor="#000066">&nbsp;</td> </tr> <tr bgcolor="#000066"> <td valign="top"><div align="center"><span class="style2">System</span></div></td> </tr> <tr> <td width="20%" valign="top" bgcolor="#000066">&nbsp;</td>
WWW.IGNOUINFO.COM

Page112

<td width="17%" height="24"><div align="center" class="style1">Authentication</div></td> <td width="1%" valign="top"><img src="../images/tab-ew.gif" width="10" height="24"></td> <td width="62%" height="24" bgcolor="#000066"></td> </tr> <tr> <td width="20%" height="40" valign="top" bgcolor="#000066">&nbsp;</td> <td colspan="3" rowspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="30" align="right" style="font-family:Verdana; font-size:11px;"><div> <a href="index.php">Administrator</a> | <a href="index2.php">Client</a> | <a href="index1.php">Employee</a>&nbsp;&nbsp; </div></td> </tr> <tr> <td bgcolor="#CCCCCC" height="1"></td> </tr> <tr> <td><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="20%" valign="top"><div align="center"><img src="../images/loginwelcome.gif" width="97" height="105"></div></td> <td width="80%"><form name="form1" method="post" action="login_check.php?id=2" onSubmit="return validateForm();"> <table width="77%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" colspan="2"><span class="style1">Welcome to CMS Solutions...</span> </td> </tr> <tr> <td height="18" colspan="2"><span class="style3">Enter your username &amp; password to log in</span> </td> </tr> <tr> <td height="24" colspan="2" align="center"><span class="style3"> <? if(isset($_GET['msg'])) { echo"<font color=red><center>Invalid User Id OR Password.</center></font>"; }
WWW.IGNOUINFO.COM

Page113

?></span> </td> </tr> <tr> <td colspan="2" bgcolor="#CCCCCC" height="1"></td> </tr> <tr> <td width="23%" height="28"><span class="style3">Company ID :</span> </td> <td><input name="company_id" type="text" value="" style="font-family:Arial;fontsize:9pt;height:18px;width=160px;border=1px solid #999999"></td> </tr> <tr> <td height="28"><span class="style3">Emp ID:</span></td> <td><input name="emp_id" type="text" value="" style="font-family:Arial;fontsize:9pt;height:18px;width=160px;border=1px solid #999999"> </td> </tr> <tr> <td height="28"><span class="style3">Username : </span></td> <td><input name="username" type="text" id="firstname" value="" style="fontfamily:Arial;font-size:9pt;height:18px;width=160px;border=1px solid #999999"></td> </tr> </tr> </table></td> </tr> <tr> <td valign="top"><img src="../images/background.gif" width="100%" height="480"></td> </tr> </table> </body> </html>

ADD EMPLOYEE FORM:<? ob_start(); session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
WWW.IGNOUINFO.COM

Page114

<head> <link href="mstyle.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Add New Employee - Administrative Account</title> <script type="text/javascript" src="datetimepicker.js"></script> <script type="text/JavaScript"> <!-function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script language="javascript" type="text/javascript"> // check over all function validateForm(signupform) { //check loginid null //check firstname is null if(""==document.forms.signupform.firstname.value) { alert("Please enter first name."); document.forms.signupform.firstname.focus();
WWW.IGNOUINFO.COM

Page115

return false; } //check lastname is null if(""==document.forms.signupform.lastname.value) { alert("Please enter lastname name."); document.forms.signupform.lastname.focus(); return false; } //check contact no is null if(""==document.forms.signupform.contact_no.value) { alert("Please enter contact number."); document.forms.signupform.contact_no.focus(); return false; } //check email if(""==document.forms.signupform.email_id.value) { alert("Please enter email id."); document.forms.signupform.email_id.focus(); return false; } else { var login =document.signupform.email_id.value; //check valid loginid if((login.indexOf("@")==-1) || (login.indexOf(".")==-1)) { alert("plz fill valid email-Id"); document.forms.signupform.email_id.select(); return false; } } // check address if(""==document.forms.signupform.address.value) { alert("Please enter address."); document.forms.signupform.address.focus(); return false; }
WWW.IGNOUINFO.COM

Page116

// check city if(""==document.forms.signupform.city.value) { alert("Please enter city."); document.forms.signupform.city.focus(); return false; } // check jobtitle if(""==document.forms.signupform.jobtitle.value) { alert("Please enter job title."); document.forms.signupform.jobtitle.focus(); return false; } // check salary if(""==document.forms.signupform.salary.value) { alert("Please enter salary."); document.forms.signupform.salary.focus(); return false; } if(""==document.forms.signupform.user_name.value) { alert("Please enter user name."); document.forms.signupform.user_name.focus(); return false; } //check password null if(""==document.forms.signupform.password.value) { alert("Please enter password, It should not less than 6 charector."); document.forms.signupform.password.focus(); return false; } else { var pws1=document.signupform.password.value; //check password not less than 6 char if(pws1.length<6) { alert("Can not fill less than 6 char in password"); document.forms.signupform.password.select(); return false;
WWW.IGNOUINFO.COM

Page117

} } //check condfirm password null if(""==document.forms.signupform.re_password.value) { alert("Please enter confirm password."); document.forms.signupform.re_password.focus(); return false; } else { var pws2=document.signupform.re_password.value; //check confirm password not less than 6 char if(pws2.length<6) { alert("Can not fill less than 6 char in password"); document.forms.signupform.re_password.select(); return false; } } //check both both password are same if(pws1!=pws2) { alert("both passwords must be same"); document.forms.signupform.re_password.select(); return false; } return true; } </script> </head> <body onload="MM_preloadImages('../images/btn_add_over.gif')"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><? include("header.php")?></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" bgcolor="#C6D4E6"><img src="../images/arrow_right.gif" width="20" height="10" /><a href="employees.php">Employees</a> &gt; Add New Employee</td> </tr>
WWW.IGNOUINFO.COM

Page118

<tr> <td bgcolor="#6A8CA0" height="1"></td> </tr> </table></td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;Add New Employee</span></td> <td width="8%" class="headerbg"><div align="center"><a href="employee_addnew.php"><img src="../images/btn_add_norm.gif" alt="Add New Employee" name="add_normal" width="22" height="22" border="0" id="add_normal" onmouseover="MM_swapImage('add_normal','','../images/btn_add_over.gif',1)" onmouseout="MM_swapImgRestore()" /></a></div></td> </tr> <tr> <td height="20" colspan="2" class="headerresultmenu" style="font-size:12px;"> &nbsp;&nbsp;Enter details of the Employee Account you are creating. </td> </tr> <tr> <td colspan="2"><form name="signupform" method="post" action="employee_added.php" onSubmit="return validateForm(signupform);" > <table width="75%" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td colspan="3" height="10"></td> </tr> <tr> <td colspan="2"><span class="style3"> Basic Information</span> </td> <td width="46%">&nbsp;</td> <td width="21%">&nbsp;</td> </tr> <tr bgcolor="#CCCCCC"> <td colspan="3" height="1"></td> </tr> <tr> <td colspan="3" height="10"></td> </tr>

WWW.IGNOUINFO.COM

Page119

<tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Last Name</td> <td>&nbsp;</td> <td><input name="lastname" type="text" id="circle_name" value="" style="fontfamily:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" size="40" /></td> </tr> <tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Contact Number</td> <td>&nbsp;</td> <td><input name="contact_no" type="text" id="circle_name2" value="" maxlength="10" style="font-family:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" onkeypress="if( (event.keyCode >= 48 && event.keyCode<=57) || event.keyCode == 45 ) { return true; } else { event.keyCode = 0 }" size="40" /></td> </tr> <tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Email ID</td> <td>&nbsp;</td> <td><input name="email_id" type="text" id="circle_name3" value="" style="fontfamily:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" size="40" maxlength="30" /></td> </tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Date of Birth</td> <td>&nbsp;</td> <td><input name="dob" id="demo1" type="text" size="25" /> <a href="javascript:NewCal('demo1','ddmmyyyy')"><img src="../image/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></td> </tr> <tr> <td height="21" style="font-size:12px;">&nbsp;&nbsp;&nbsp;Department</td> <td>&nbsp;</td> <td align="left" valign="top"><select name="department" style="fontfamily:Arial;font-size:8pt;height:21px;width=120px;border=1px "> <option><--------------------Select---------------------></option> <td>&nbsp;&nbsp;&nbsp;Role</td> <td>&nbsp;</td> <td> <select name="role" style="font-family:Arial;fontsize:8pt;height:21px;width=120px;border=1px "> <option><--------------------Select---------------------></option> <option>Employee</option> <option>Manager</option> <option>VP</option> <option>GM</option>
WWW.IGNOUINFO.COM

Page120

</select> </td> </tr> <tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Bank A/c No.</td> <td>&nbsp;</td> <td><input name="bank_ac" type="text" id="circle_name4" value="" style="fontfamily:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" size="40"/></td> </tr> <tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Bank</td> <td>&nbsp;</td> <td><input name="bank" type="text" id="circle_name4" value="" style="fontfamily:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" size="40"/></td> </tr> <tr> <td colspan="3" height="10"></td> </tr> <tr bgcolor="#CCCCCC"> <td colspan="3" height="1"></td> </tr> <tr> <tr> <td><span class="style3">Login information</span></td> </tr> <tr bgcolor="#CCCCCC"> <td colspan="3" height="1"></td> </tr> <tr> <td colspan="3" height="10"></td> </tr> <tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Username</td> <td>&nbsp;</td> <td><input name="user_name" type="text" id="circle_name5" value="" style="fontfamily:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" size="40" maxlength="10"/></td> </tr> <tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Password</td> <td>&nbsp;</td> <td><input name="password" type="password" id="circle_name6" value=""
WWW.IGNOUINFO.COM

Page121

style="font-family:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" size="40" maxlength="8"/></td> </tr> <tr> <td style="font-size:12px;">&nbsp;&nbsp;&nbsp;Confirm Password</td> <td>&nbsp;</td> <td><input name="re_password" type="password" id="password654" value="" style="font-family:Arial;font-size:10pt;height:16px;width=160px;border=1px solid #999999" size="40"/></td> </tr> <tr> <td colspan="3" height="10"></td> </tr> <tr bgcolor="#CCCCCC"> <td colspan="3" height="1"></td> </tr> <tr> </tr> <tr> <td><input type="submit" name="Submit" value="Save changes" /></td> </table> </form></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="2" class="headerresultmenu">&nbsp;</td> </tr> </table></td> </tr> </table> </body> </html>

Project Generated :-

<? ob_start(); session_start(); include_once("conn.php");

WWW.IGNOUINFO.COM

Page122

$flag='0'; $cmpid=$_SESSION['usr_id']; $empid=$_SESSION['employeeid']; $cltid=$_SESSION['cltid']; if($empid!="") { $qx="select * from user_master where comp_id='$cmpid' AND emp_id='$empid' AND role='Manager'"; $dx=mysql_fetch_array(mysql_query($qx)); if(empty($dx)) { $flag='0'; } else { $flag='1'; } } elseif($cltid!="") { $flag='0'; } elseif($cmpid!="") { $flag='1'; } $prj_id=$_GET['prj_id']; //$client_id=$_GET['client_id']; // $dclient=mysql_query("select * from client_info where client_id='$client_id'"); $dprj=mysql_fetch_object(mysql_query("select * from project where prj_id='$prj_id'")); function date_separator($dummy) // to change date from yy-mm-dd to dd-mm-yy { $date1=$dummy; $frmtdate=strpos($date1,'-'); $yy=substr($date1,0,$frmtdate); $mm=substr($date1,$frmtdate+1,2); $dd=substr($date1,strlen($date1)-2,2); return $dummy=date("$dd-$mm-$yy"); } function date_separator1($dummy) // to change date from yy-mm-dd to dd-mm-yy { $date1=$dummy; $frmtdate=strpos($date1,'-'); $yy=substr($date1,0,$frmtdate); $mm=substr($date1,$frmtdate+1,2); $dd=substr($date1,strlen($date1)-2,2); return $dummy=date("$dd-$mm-$yy"); }
WWW.IGNOUINFO.COM

Page123

function date_separator2($dummy) // to change date from yy-mm-dd to dd-mm-yy { $date1=$dummy; $frmtdate=strpos($date1,'-'); $yy=substr($date1,0,$frmtdate); $mm=substr($date1,$frmtdate+1,2); $dd=substr($date1,strlen($date1)-2,2); return $dummy=date("$mm-$dd-$yy"); } function dateDiff($dformat, $endDate, $beginDate) { $date_parts1=explode($dformat, $beginDate); $date_parts2=explode($dformat, $endDate); $start_date=gregoriantojd($date_parts1[0], $date_parts1[1], $date_parts1[2]); $end_date=gregoriantojd($date_parts2[0], $date_parts2[1], $date_parts2[2]); return $end_date - $start_date; } // // // $bdate=date("$mm/$dd/$yy"); $edate=date("m/d/Y"); echo dateDiff("/",$edate,$bdate);

?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="mstyle.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Project Detail - Administrative Account</title> <script type="text/JavaScript"> <!-function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01
WWW.IGNOUINFO.COM

Page124

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script language="JavaScript"> <!-function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> </head> <body onload="MM_preloadImages('../images/edit_over.gif')"> <? if(($dprj->status=='followup') || ($dprj->status=='freezed')) { echo "<br><br><center><h2> Project may be Freezed or Followup </h2></center></br></br>"; } else { ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><? include("header.php")?></td> </tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" colspan="4"><span class="style5"><?=$dprj->prj_name; ?></span> </td> </tr> <tr> <td height="1" colspan="4" class="headermenubg"></td> </tr> <tr> <td width="39%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;<img src="../images/arrow_down_white.gif" width="14" height="16" />&nbsp;&nbsp;Details</span></td> <td width="53%" class="headerbg"><div align="right">
WWW.IGNOUINFO.COM

Page125

View Payment Details </a></div></td> <td width="4%" class="headerbg"> <? if($flag=='1') { ?> <div align="center"><a href="view_payment_dtl.php?prj_id=<?= $prj_id ?>"><img src="../images/payment.gif" alt="View Payment Details" name="payment_normal" width="22" height="22" id="payment_normal" onmouseover="MM_swapImage('payment_normal','','../images/payment_over.gif',1)" onmouseout="MM_swapImgRestore()" border="0" /></a></div> <? } ?> </td> <td width="4%" class="headerbg"> <? if($flag=='1') { ?><div align="center"><a href="project_d_assign_edit.php?prj_id=<?= $prj_id ?>"><img src="../images/edit_normal.gif" alt="Edit Project Details" name="edit_normal" width="22" height="22" border="0" id="edit_normal" onmouseover="MM_swapImage('edit_normal','','../images/edit_over.gif',1)" onmouseout="MM_swapImgRestore()" /></a></div> <? } ?></td> </tr> <tr> <td colspan="4" valign="top" bgcolor="#F5F5F5"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> </tr> <? $active_phases=""; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='1' And task_accepted_on!='0000-00-00'")); if($dtask['0']>0) $active_phases=' Concept '; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='2' And task_accepted_on!='0000-00-00'")); if($dtask['0']>0) $active_phases.=' Planning '; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='3' And task_accepted_on!='0000-00-00'")); if($dtask['0']>0) $active_phases.=' Development '; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='4' And task_accepted_on!='0000-00-00'")); if($dtask['0']>0) $active_phases.=' Testing '; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='5' And task_accepted_on!='0000-00-00'")); if($dtask['0']>0) $active_phases.=' Rollout '; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='6' And task_accepted_on!='0000-00-00'")); if($dtask['0']>0) $active_phases.=' Maintenance '; if($active_phases=="")
WWW.IGNOUINFO.COM

Page126

$active_phases='No Phase is currently Active'; ?> <tr> <td height="20"><div align="right" class="style8">Name</div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= $dprj->prj_name; ?> </span></td> </tr> <tr> <td height="20"><div align="right" class="style8">Priority</div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= $dprj->priority; ?></span></td> </tr> <tr> <td height="20"><div align="right" class="style8">Active Phase(s) </div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?=$active_phases?></span></td> </tr> <tr> <td height="20" valign="top"><div align="right" class="style8">Description</div></td> <td valign="top"><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= $dprj->description; ?></span></td> </tr> <tr> <td height="20"><div align="right" class="style8">Development Site URL </div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= $dprj->url_development; ?></span></td> </tr> <tr> <td height="20"><div align="right" class="style8">Final Site URL </div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= $dprj->url_final; ?></span></td> </tr> <tr> <td height="20"><div align="right"><span class="style6"><span class="style8"></span></span></div></td> <td><div align="center"></div></td> <td>&nbsp;</td> </tr> <tr> <td height="20"><div align="right" class="style8"></div></td> <td><div align="center"></div></td> <td>&nbsp;</td> </tr>
WWW.IGNOUINFO.COM

Page127

<tr> <td height="20"><div align="right" class="style8">Created On </div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= date_separator($dprj->added_on); ?> </span></td> </tr> <tr> <td height="20"><div align="right" class="style8">Start Date </div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= date_separator1($dprj->start_date); ?> </span></td> </tr> <tr> <td height="20"><div align="right" class="style8">End Date </div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= date_separator1($dprj->end_date); ?> </span></td> </tr> <tr> <td height="20"><div align="right"><span class="style6"><span class="style8"></span></span></div></td> <td><div align="center"></div></td> <td>&nbsp;</td> </tr> <tr> <td height="20"><div align="right" class="style8">Estimated Time </div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"> <? $hourcount=mysql_fetch_array(mysql_query("select end_date,start_date from project where prj_id='$prj_id'")); $start=date_separator2($hourcount['start_date']); $end=date_separator2($hourcount['end_date']); $hh=dateDiff("-",$end,$start); echo ($hh*8)." hours (".$hh." days)"; //echo round($hourcount['0']/30, 0); ?> </span></td> </tr> <tr> <td height="20"><div align="right"><span class="style8">Finalised Amount </span></div></td> <td><div align="center"><strong>:</strong></div></td> <td><span class="style7"><?= $dprj->final_amount; ?></span></td>
WWW.IGNOUINFO.COM

Page128

</table></td> </tr> <tr> <td colspan="4" bgcolor="#DAE3EF" height="2"></td> </tr> </table></td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;<img src="../images/arrow_down_white.gif" width="14" height="16" />&nbsp;&nbsp;Phases</span></td> <td width="8%" class="headerbg"><div align="center"></div></td> </tr> <tr> <td colspan="2" valign="top" bgcolor="#F5F5F5"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="2%" class="headerresultmenu"></td> <td width="5%" height="18" class="headerresultmenu" style="border-leftwidth:2px;border-left-style: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;S. No. </span></td> $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='6'")); $m_module=$dtask['0']; //===============Calculating number of modules uncompleted===================== $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='1' And completed_at='0000-0000'")); $c_mod_notdone=$dtask['0']; //echo $c_mod_notdone; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='2' And completed_at='0000-0000'")); $p_mod_notdone=$dtask['0']; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='3' And completed_at='0000-00WWW.IGNOUINFO.COM

Page129

00'")); $d_mod_notdone=$dtask['0']; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='4' And completed_at='0000-0000'")); $t_mod_notdone=$dtask['0']; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='5' And completed_at='0000-0000'")); $r_mod_notdone=$dtask['0']; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='6' And completed_at='0000-0000'")); $m_mod_notdone=$dtask['0']; //=================calculating status of modules ============================== $not_start="<img src=../images/not_started.gif width=10 height=11>&nbsp;Not Started"; $open="<img src=../images/open_project.gif width=10 height=11>&nbsp;Open"; $completed="<img src=../images/completed.gif width=10 height=11>&nbsp;Completed"; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='1' And task_accepted_by!='0'")); if($dtask['0']=='0') $c_status=$not_start; if($dtask['0']<>'0') $c_status=$open; $c_total_task=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='1' ")); $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='1' And task_accepted_by!='0' And completed_at!='0000-00-00'")); if($dtask['0']==$c_total_task['0'] and $c_total_task['0']!='0') $c_status=$completed; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='2' And
WWW.IGNOUINFO.COM

Page130

task_accepted_by!='0'")); if($dtask['0']=='0') $p_status=$not_start; if($dtask['0']<>'0') $p_status=$open; $p_total_task=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='2' ")); $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='2' And task_accepted_by!='0' And completed_at!='0000-00-00'")); if($dtask['0']==$p_total_task['0'] and $p_total_task['0']!='0') $p_status=$completed;

$dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='3' And task_accepted_by!='0'")); if($dtask['0']=='0') $d_status=$not_start; if($dtask['0']<>'0') $d_status=$open; $d_total_task=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='3' ")); $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='3' And task_accepted_by!='0' And completed_at!='0000-00-00'")); if($dtask['0']==$d_total_task['0'] and $d_total_task['0']!='0') $d_status=$completed; $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='4' And task_accepted_by!='0'")); if($dtask['0']=='0') $t_status=$not_start; if($dtask['0']<>'0') $t_status=$open; $t_total_task=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='4' ")); $dtask=mysql_fetch_array(mysql_query("select count(task_id) from tasks where prj_id='$prj_id' And phase_id='4' And task_accepted_by!='0' And completed_at!='0000-00-00'")); if($dtask['0']==$t_total_task['0'] and $t_total_task['0']!='0')
WWW.IGNOUINFO.COM

Page131

$t_status=$completed;

//============== Calculating End date & Days left of Module============================ //$moncount=mysql_fetch_array(mysql_query("select to_days(curdate())to_days(starton) from employee_info where employee_id=$empid")); // echo round($moncount['0']/30, 0);

$dtask=mysql_fetch_array(mysql_query("select due_date,to_days(due_date)-to_days(curdate()) from tasks where prj_id='$prj_id' And phase_id='1' order by due_date desc" )); $c_end_date=$dtask['0']; if($dtask['0']<'1970-00-00 00:00:00') $c_mod_end_date='-------'; else $c_mod_end_date=substr($dtask['0'],0,10); if($dtask['1']!='') { if(substr($dtask['1'],0,1)!='-') $c_left_days=$dtask['1']." Days left"; else } else $d_left_days='--'; //=================== $dtask=mysql_fetch_array(mysql_query("select due_date,to_days(due_date)-to_days(curdate()) from tasks where prj_id='$prj_id' And phase_id='4' order by due_date desc")); $t_end_date=$dtask['0']; if($dtask['0']<'1970-00-00 00:00:00') $t_mod_end_date='-------'; else $t_mod_end_date=substr($dtask['0'],0,10); if($dtask['1']!='') { if(substr($dtask['1'],0,1)!='-')

WWW.IGNOUINFO.COM

Page132

$t_left_days=$dtask['1']." Days left"; else $t_left_days=abs($dtask['1'])." Days Overdue"; } else $t_left_days='--'; //================== $dtask=mysql_fetch_array(mysql_query("select due_date,to_days(due_date)-to_days(curdate()) from tasks where prj_id='$prj_id' And phase_id='5' order by due_date desc")); $r_end_date=$dtask['0']; if($dtask['0']<'1970-00-00 00:00:00') $r_mod_end_date='-------'; else $r_mod_end_date=substr($dtask['0'],0,10); if($dtask['1']!='') { if(substr($dtask['1'],0,1)!='-') $r_left_days=$dtask['1']." Days left"; else $r_left_days=abs($dtask['1'])." Days Overdue"; }

?> <tr style="cursor:hand" height="20" bgcolor="#F5F5F5" onMouseOver="bgColor='#FFFFCC'" onmouseout="bgColor='#F5F5F5'"> <td >&nbsp;</td> <td >&nbsp;&nbsp;&nbsp;1 </td> <td >&nbsp;&nbsp;&nbsp;Concept </td> <td >&nbsp;&nbsp;&nbsp;<?= $c_module?></td> <td >&nbsp;&nbsp;&nbsp;<?= $c_mod_notdone ?></td> <td >&nbsp;&nbsp;&nbsp;<?=$c_status?></td> <td >&nbsp;&nbsp;&nbsp;<?=date_separator($c_mod_start_date)?></td> <td >&nbsp;&nbsp;&nbsp;<?=date_separator($c_mod_end_date)?></td> <td >&nbsp;&nbsp;&nbsp;<?=$c_left_days?> </td> </tr> <tr style="cursor:hand" height="20" bgcolor="#EFEFEF" onMouseOver="bgColor='#FFFFCC'" onmouseout="bgColor='#EFEFEF'">
WWW.IGNOUINFO.COM

Page133

<td >&nbsp;</td> <td >&nbsp;&nbsp;&nbsp;2 </td> onMouseOver="bgColor='#FFFFCC'" onmouseout="bgColor='#EFEFEF'"> <td bgcolor="#EFEFEF">&nbsp;</td> <td >&nbsp;&nbsp;&nbsp;6 </td> <td >&nbsp;&nbsp;&nbsp;Maintenance</td> <td >&nbsp;&nbsp;&nbsp;<?= $m_module?> </td> <td >&nbsp;&nbsp;&nbsp;<?= $m_mod_notdone ?> </td> <td >&nbsp;&nbsp;&nbsp;<?=$m_status?></td> <td >&nbsp;&nbsp;&nbsp;<?=date_separator($m_mod_start_date)?></td> <td >&nbsp;&nbsp;&nbsp;<?=date_separator($m_mod_end_date)?></td> <td >&nbsp;&nbsp;&nbsp;<?=$m_left_days?> </td> </tr> </table></td> </tr> <tr> <td colspan="2" bgcolor="#DAE3EF" height="2"></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> </table></td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <? $counter=1; $empid_arr = explode(",",$dprj->developers); for($i=0; $i < count($empid_arr) ; $i++) { $empid = $empid_arr[$i]; $demp=mysql_fetch_object(mysql_query("select * from employee where emp_id='$empid'")); $usr=mysql_fetch_object(mysql_query("select * from user_master where emp_id='$empid'")); $mod=0; $mod=$counter%2; //echo $mod; if($mod==0)
WWW.IGNOUINFO.COM

Page134

{ $bgcol="#F5F5F5"; } else { $bgcol="#EFEFEF"; } ?> <tr bgcolor="<?=$bgcol?>"style="cursor:hand" height="20" onmouseover="bgColor='#FFFFCC'" onmouseout="bgColor='<?=$bgcol?>'"> <td >&nbsp;</td> <td >&nbsp;&nbsp;&nbsp;<? echo $demp->fullname; ?></td> <td >&nbsp;&nbsp;&nbsp;<?= $demp->jobtitle ?></td> <td >&nbsp;&nbsp;&nbsp;<?= $usr->username ?></td> <td >&nbsp;&nbsp;&nbsp;<?= $demp->phone ?></td> <td >&nbsp;&nbsp;&nbsp;<?= $demp->email?></td> </tr> <? $counter=$counter+1;}?> <tr> </table></td> </tr> <tr> <td colspan="2" bgcolor="#DAE3EF" height="2"></td> </tr> <tr> </tr> </table></td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;<img src="../images/arrow_down_white.gif" width="14" height="16" />&nbsp;&nbsp;Task Open </span></td> <td width="8%" class="headerbg"><div align="center"><a href="task_addnew.php?prj_id=<?= $prj_id ?>"><img src="../images/btn_add_norm.gif" alt="Add New Task" name="add_normal" width="22" height="22" border="0" id="add_normal" onmouseover="MM_swapImage('add_normal','','../images/btn_add_over.gif',1)" onmouseout="MM_swapImgRestore()" /></a></div></div></td> </tr> <tr> <td colspan="2" valign="top" bgcolor="#F5F5F5"><table width="100%" border="0"
WWW.IGNOUINFO.COM

Page135

cellspacing="0" cellpadding="0"> <tr> <td width="1%" class="headerresultmenu"></td> <td width="37%" height="18" class="headerresultmenu" style="border-leftwidth:2px;border-left-style: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Name </span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Status</span></td> <td width="14%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Task Date </span></td> <td width="11%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Due Date </span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Assigned To </span></td> <td width="11%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><div align="center"><span class="style4">Published</span></div></td> </tr> <? $rstask=mysql_query("select * from tasks where prj_id='$prj_id' order by posted_date desc"); $counter=1; while($dtask=mysql_fetch_object($rstask)) { $mod=0; $mod=$counter%2; //echo $mod; if($mod==0) { $bgcol="#F5F5F5"; } else { $bgcol="#EFEFEF"; } ?> <tr style="cursor:hand" height="20" bgcolor="<?=$bgcol?>" onMouseOver="bgColor='#FFFFCC'" onmouseout="bgColor='<?=$bgcol?>'"> <td >&nbsp;</td> <td >&nbsp;&nbsp;&nbsp;<a href="task_view.php?task_id=<?= $dtask->task_id ?>"><?= $dtask->task_title ?></a></td> <?
WWW.IGNOUINFO.COM

Page136

if($dtask->task_accepted_by<>0) { if($dtask->completed_at!='0000-00-00') {$img="../images/completed.gif"; $status='Completed'; } else {$img="../images/open_project.gif"; $status='Open'; } } else { $img="../images/not_started.gif"; $status='Not Started'; } ?> <td >&nbsp;&nbsp;&nbsp;<img src=<?= $img ?> width="10" height="11"> <?= $status ?></td> <td >&nbsp;&nbsp;&nbsp;<?= date_separator($dtask->posted_date) ?> </td> <td >&nbsp;&nbsp;&nbsp;<?= date_separator($dtask->due_date) ?></td> <? $demp=mysql_fetch_array(mysql_query("select * from employee where emp_id=$dtask>task_accepted_by")); if($demp['0']==0) $assign_to="---------"; else $assign_to= $demp['fullname']; ?> <td >&nbsp;&nbsp;&nbsp; <?= $assign_to ?></td> <td ><div align="center"><?= $dtask->published; ?></div></td> <? $counter=$counter+1; <tr> </tr> </table></td> </tr> <tr> <td colspan="2" bgcolor="#DAE3EF" height="2"></td> </tr> <tr> <td colspan="2">&nbsp;</td>
WWW.IGNOUINFO.COM

}?>

Page137

</tr> </table></td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr>

<tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;<img src="../images/arrow_down_white.gif" width="14" height="16" />&nbsp;&nbsp;Task Closed </span></td> <td width="8%" class="headerbg"><div align="center"><a href="employee_addnew.php"></a></div></td> </tr> <tr> <td colspan="2" valign="top" bgcolor="#F5F5F5"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="2%" class="headerresultmenu"></td> <td width="36%" height="18" class="headerresultmenu" style="border-leftwidth:2px;border-left-style: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Name </span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Status</span></td> <? $counter=$counter+1; }?> <tr> </table></td> </tr> <tr> <td colspan="2" bgcolor="#DAE3EF" height="2"></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> </table></td> </tr>

<tr><td>
WWW.IGNOUINFO.COM

Page138

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;<img src="../images/arrow_down_white.gif" width="14" height="16" /> Query Open </span></td> <td width="8%" class="headerbg"><div align="center"><a href="query_addnew.php?prj_id=<? //= $prj_id ?>"><!--<img src="../images/btn_add_norm.gif" alt="Add New query" name="add_normal" width="22" height="22" border="0" id="add_normal" onmouseover="MM_swapImage('add_normal','','../images/btn_add_over.gif',1)" onmouseout="MM_swapImgRestore()" />--></a></div></div></td> </tr> <tr> <td colspan="2" valign="top" bgcolor="#F5F5F5"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="3%" class="headerresultmenu"></td> <td width="35%" height="18" class="headerresultmenu" style="border-leftwidth:2px;border-left-style: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Title</span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Status</span></td> <td width="14%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Query Date </span></td> <td width="11%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Accepted On</span></td> <td width="24%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4">&nbsp;&nbsp;Accepted By </span></td> </tr> <? $not_start="<img src=../images/not_started.gif width=10 height=11>&nbsp;Not Started"; $open="<img src=../images/open_project.gif width=10 height=11>&nbsp;Open"; $completed="<img
WWW.IGNOUINFO.COM

Page139

src=../images/completed.gif width=10 height=11>&nbsp;Completed";

$rsquery=mysql_query("select * from queries where prj_id='$prj_id' order by query_posted_on desc"); $counter=1; while($dquery=mysql_fetch_object($rsquery)) { $mod=0; $mod=$counter%2; //echo $mod; if($mod==0) { $bgcol="#F5F5F5"; } else { $bgcol="#EFEFEF"; } </table></td> </tr> <tr> <td colspan="2" bgcolor="#DAE3EF" height="2"></td> </tr> <tr> <td colspan="2">&nbsp;</td> </tr> </table> </td></tr> <tr><td> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;<img src="../images/arrow_down_white.gif" width="14" height="16" />&nbsp;&nbsp;Query Closed </span></td> <td width="8%" class="headerbg"><div align="center"><a href="employee_addnew.php"></a></div></td> </tr> <? $rs2=mysql_query("select * from queries where query_completed_on!='0000-00-00' and prj_id='$prj_id' order by query_posted_on desc")or die(mysql_error()); $counter=1;
WWW.IGNOUINFO.COM

Page140

while($dquery=mysql_fetch_object($rs2)) { $mod=0; $mod=$counter%2; //echo $mod; if($mod==0) { $bgcol="#F5F5F5"; } else { $bgcol="#EFEFEF"; } ?> <td >&nbsp;&nbsp;&nbsp;<a href="query_view.php?query_id=<?= $dquery->query_id ?>"><strike><?= $dquery->query_title ?></a></td> <td >&nbsp;&nbsp;&nbsp;<img src="../images/completed.gif" width="10" height="11" /> Completed </td> <td >&nbsp;&nbsp;&nbsp;<?= date_separator($dquery->query_posted_on) ?> </td> <td >&nbsp;&nbsp;&nbsp;<?= date_separator($dquery->query_accepted_on) ?></td> <td ><div align="left">&nbsp;&nbsp;<?= date_separator($dquery>query_completed_on) ?></div></td></tr> <? $counter=$counter+1; }?> </td></tr> </table> <? } ?> </body> </html> <? mysql_close($link);?> QUERY SECTION ADD NEW QUERY:-

<? ob_start(); session_start(); include("conn.php"); $client_id=$_SESSION['cltid']; if($client_id!="") { $flag='client'; } elseif($_SESSION['employeeid']=="") { $flag='admin'; } elseif($_SESSION['employeeid']!="" && $_SESSION['role']=='Manager')
WWW.IGNOUINFO.COM

Page141

{ $flag='manager'; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="mstyle.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Add New Query</title> <script type="text/JavaScript"> <!-function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } //--> </script> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><? include("header.php")?></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" bgcolor="#C6D4E6"><img src="../images/arrow_right.gif" width="20" height="10" /><a href="viewqueries.php">Queries</a> &gt;&nbsp;Add New Query </td> </tr> <tr> <td bgcolor="#6A8CA0" height="1"></td> </tr> </table></td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="35" colspan="4"><span class="style5">&nbsp;</span> </td> </tr> <tr>
WWW.IGNOUINFO.COM

Page142

<td height="1" colspan="4" class="headermenubg"></td> </tr> <tr> <td width="57%" height="30" class="headerbg"><span class="style3">&nbsp;&nbsp;<img src="../images/arrow_down_white.gif" width="14" height="16" />&nbsp;&nbsp;Add Query </span></td> <td width="35%" class="headerbg"><div align="center"></div></td> <td width="4%" class="headerbg"> <div align="center"></div> </td> <td width="4%" class="headerbg"><div align="center"></div></td> </tr> <tr> <td colspan="4" valign="top" bgcolor="#F5F5F5"><form id="form1" name="form1" method="post" action="query_added.php?flg=<?=$flag;?>" enctype="multipart/form-data"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <tr> <td height="20"><div align="right" class="style8">Query title </div></td> <td><div align="center"><strong>:</strong></div></td> <input type="hidden" name="prj_id" value="<?= $prj_id?>" > <td><input name="query_title" type="text" id="firstname" value="" onkeypress="if( (event.keyCode &gt;= 65 &amp;&amp; event.keyCode &lt;= 90) || (event.keyCode &gt;= 97 &amp;&amp; event.keyCode &lt;= 122) || event.keyCode == 32){ return true; } else { event.keyCode = 0 }" style="font-family:Arial;fontsize:8pt;height:14px;width:450px;border:1px solid #999999" /></td> </tr> } } ?> </select></td> </tr> <tr> <td height="20" valign="top"><div align="right" class="style8">Attach a File 1 </div></td> <td valign="top"><div align="center"><strong>:</strong></div></td> <td><input name="queryfile1" type="file" id="taskfile1" style="font-family:Arial;fontsize:8pt;height:18px;width:450px;border:1px solid #999999" /></td> </tr> <tr><td height="20" valign="top"><div align="right" class="style8">Attach a File 2 </div></td> <td valign="top"><div align="center"><strong>:</strong></div></td> <td><input name="queryfile2" type="file" id="firstname2" style="fontWWW.IGNOUINFO.COM

Page143

family:Arial;font-size:8pt;height:18px;width:450px;border:1px solid #999999" ></td> </tr><tr> </tr><tr><td height="20" colspan="3"><div align="right" class="style8"> <div align="center"> <input type="submit" name="Submit" value="Add query" /> </div> </div> <div align="center"></div></td> </tr> </table> </form> </td> </tr> <tr> <td colspan="4" bgcolor="#DAE3EF" height="2"></td> </tr> </table></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </body> </html> <? mysql_close($link);?>

5.2 Error Handling


Error Handling has been implemented for both client and server sides. Client side error handling has been done with the help of javascript where as server errors are handled by php.

5.3 Validation Checks


Validation Checks has been implemented for both client and server sides. Client side error handling has been done with the help of javascript where as server errors are handled by php.

WWW.IGNOUINFO.COM

Page144

Testing
6.1 Test Case Design and Test Reports

Test Case No Functionality Registration of Company

TCT-001

Environment

Administrator Home Page Click on create company menu to get the page.

Procedure
WWW.IGNOUINFO.COM

Page145

Add a company without filling all the fields. Expected Outcome An error alert message would be displayed showing that please enter the details for registering a company.

Test Case No Functionality Change password

TCT-002

Environment

Change Password Page Click on the preference menu and then change password menu to get the page. Click on submit button without filling the current password and new password.

Procedure

Expected Outcome

An error message will be displayed if the boxes are empty. Similarly if the current password doesnt match with the record it will display error message. Both the new and confirm password must be same otherwise error message will be generated.

Test Case No Functionality

TCT-003 Company administrator Login without username, password and company id

Environment

Company Administrator Home Page

Procedure

Click on the login button without filling username,

WWW.IGNOUINFO.COM

Page146

password and company id.

Expected Outcome

The administrator cannot logged in and a invalid user id and password will be displayed.

Test Case No Functionality Add Employee without giving details

TCT-004

Environment

Add Employee Page Click on the employee menu to get the page. Click on the add button to open add employee page.

Procedure

Expected Outcome

The company administrator will get an error message as the mandatory fields are not filled.

WWW.IGNOUINFO.COM

Page147

Test Case No Functionality Add Duplicate Employee.

TCT-005

Environment

Add Employee Page Click on the employee menu to get the page. Click on the add button to open add employee page.

Procedure

Expected Outcome

An error message will be displayed if existing employee is present.

Test Case No Functionality Add Client without giving details

TCT-006

Environment

Add Client Page Click on the client menu to get the page. Click on the add button to open add client page.

Procedure

Expected Outcome

The company administrator will get an error message as the mandatory fields are not filled.

Test Case No Functionality Add Duplicate Client.

TCT-007

Environment

Add Client Page Click on the client menu to get the page.

Procedure
WWW.IGNOUINFO.COM

Page148

Click on the add button to open add client page.

Expected Outcome

An error message will be displayed if existing client is present.

Test Case No Functionality Add Project without giving details

TCT-008

Environment

Add Project Page Click on the project menu to get the page. Click on the add button to open add project page. Click on the drop down menu to select the client for which project is to be assigned. Click on the currency drop down menu to select the currency type. Click on the assigned to drop down menu to select the project manager for the project.

Procedure

Expected Outcome

The company administrator will get an error message as the mandatory fields are not filled.

Test Case No Functionality Add Duplicate Project.

TCT-009

Environment

Add Project Page Click on the project menu to get the page. Click on the add button to open add project

Procedure

WWW.IGNOUINFO.COM

Page149

page. Click on the drop down menu to select the client for which project is to be assigned. Click on the currency drop down menu to select the currency type. Click on the assigned to drop down menu to select the project manager for the project.

Expected Outcome

An error message will be displayed if existing project is present.

Test Case No Functionality Add Query without giving details

TCT-010

Environment

Add Query Page Click on the Queries menu to get the page. Click on the add button to open add query page. Click on the project drop down menu to select the project for which query is to be proposed.

Procedure

Expected Outcome

The company administrator will get an error message as the mandatory fields are not filled.

Test Case No Functionality Add Task without giving details

TCT-011

Environment

Add Task Page Click on the project menu to get the page. Click on the project as shown below.

Procedure

WWW.IGNOUINFO.COM

Page150

Click on the add task button to get the page. Click on the priority and phase drop down menu to select the priority and phase of the project.

Expected Outcome

An error message would be displayed if either of the fields will be empty.

6.2 Test Case Reports

Test Case Ref No

TCT-001

Functionality

Registration of Company

Expected Outcome

Without registration company cannot have access of PMS. Also the company id is unique

SL.No 1

Data Used Click on the add company button without filling the details.

Actual Outcome An alert message will be shown that enter the details Registration could not succeed and a message of company already registered is being displayed.

Already registered a company by same credentials.

Test Case Ref No

TCT-002

Functionality

Change Password

Expected Outcome

Without registration company cannot have access of PMS. Also the company id is unique

WWW.IGNOUINFO.COM

Page151

SL.No 1

Data Used Click on the preference menu. Click on submit button without filling the current password and new password.

Actual Outcome A form came with password change details.

An error message will be displayed saying check your password.

Test Case Ref No

TCT-003

Functionality

Company administrator Login without username, password and company id

Expected Outcome

The administrator cannot logged in and a invalid user id and password will be displayed.

SL.No 1

Data Used Click on login button without correct username and password. Click on login button without correct company id.

Actual Outcome An error message will be displayed saying check your username & password.

An error message will be displayed saying check your company id.

Test Case Ref No

TCT-004

Functionality

Add Employee without giving details

Expected Outcome

The employee will get an error message as the mandatory fields are not filled.

WWW.IGNOUINFO.COM

Page152

SL.No 1

Data Used Click on the employee menu to get the page. Click on the add employee button without giving details.

Actual Outcome Add Employee Page

An error message will be displayed saying fill the details.

Test Case Ref No

TCT-005

Functionality

Add Duplicate Employee.

Expected Outcome

An error message will be displayed if existing employee is present.

SL.No 1

Data Used Click on the employee menu to get the page. Click on the add employee button

Actual Outcome Add Employee Page

An error message will be displayed saying employee is present.

Test Case Ref No

TCT-006

Functionality

Add Client without giving details

Expected Outcome

An error message will be displayed as the mandatory fields are not filled up.

SL.No 1

Data Used Click on the Client menu to get the page.

Actual Outcome Add Client Page

WWW.IGNOUINFO.COM

Page153

Click on the add client button without filling the details

An error message will be displayed saying fill the details.

Test Case Ref No

TCT-007

Functionality

Add Duplicate Client without giving details

Expected Outcome

An error message will be displayed if existing client is present.

SL.No 1

Data Used Click on the Client menu to get the page. Click on the add client button.

Actual Outcome Add Client Page

An error message will be displayed saying client already present

Test Case Ref No

TCT-008

Functionality

Add Project without giving details

Expected Outcome

An error message will be displayed as mandatory fields are being not filled.

SL.No 1

Data Used Click on the project menu to get the page. Click on the add project button without selecting client, currency type and project manager

Actual Outcome Add Project Page

An error message will be displayed saying mandatory fields are empty.

WWW.IGNOUINFO.COM

Page154

Click on the add project without filling all the fields

An alert message will be displayed saying fill all the fields.

Test Case Ref No

TCT-009

Functionality

Add Duplicate Project.

Expected Outcome

An error message will be displayed as existing project is present.

SL.No 1

Data Used Click on the project menu to get the page. Click on the add project button without selecting client, currency type and project manager Click on the add project filling the details

Actual Outcome Add Project Page

An error message will be displayed saying mandatory fields are empty.

An alert message will be displayed saying existing project present.

Test Case Ref No

TCT-010

Functionality

Add Query without giving details

Expected Outcome

An error message will be displayed as the mandatory fields are not filled.

SL.No 1

Data Used Click on the Queries menu to get the page. Click on the add query button

Actual Outcome Add Query Page

An error message will be displayed

WWW.IGNOUINFO.COM

Page155

without selecting client, selecting the project. 3 Click on the add query without filling the details

saying project is not selected.

An alert message will be displayed saying fill the details.

Test Case Ref No

TCT-011

Functionality

Add Task without giving details

Expected Outcome

An error message will be displayed as the mandatory fields are not filled.

SL.No 1

Data Used Click on the add task button to get the page. Click on the add task button without selecting priority and phase of the project. Click on the add task without filling the details

Actual Outcome Add Task Page

An error message will be displayed saying priority and phase not selected.

An alert message will be displayed saying fill the details.

WWW.IGNOUINFO.COM

Page156

7. System Security Measures


Security is of prime importance for this web based/online application, where remote user, located in different geographical region, provides their important and valuable data to the system. To prevent any compromise with the security of the system and integrity of data, a multi-level security system is proposed to be implemented in PMS.

7.1 Database/Data Security Database and data security has been achieved by creating different roles for users. The users are not authorized to view or modify another user data.

7.2 Creation of user profile and access rights Since in this project, following were the security requirements is being considered: 1. Every user has unique login id and password. 2. Any user, if provides, wrong login id and/or password then system provides 3 attempts to the user there after it is redirected to the error page. 3. Session tracking is implemented. 4. Administrator have a right to delete unnecessary information and their data whenever they wish and with prior notification to the concerned persons.

Keeping above factors in mind, the users are divided into following orders: 1. Admin 2. Manager 3. Employee 4. Clients

WWW.IGNOUINFO.COM

Page157

The above roles pertaining users will be decided by admin only. There will be one admin account after successful installation of project. Further the manager can be added as per role requirement by the admin. The managers and employee are having separate menus to perform their tasks related to Project Management System (CMS).

Clients can view and query to their projects to their corresponding developers and managers. Even they can view the payment they have made to the organization for the project.

8. Cost Estimation of the Project


Cost in a project is due to the requirements for software, hardware, and human resources. Hardware resources are computer time, terminal time and memory required for the project. A software resource includes the tools and compilers needed during development. The bulk of cost of software development is due to human resources needed. Cost estimates are determined in terms of personmonths. Hardware Cost of the Project: Server: Clients Terminal: 01 (Qty) 04 (Min) Rs. 100000/Rs. 120000/-

Networking and other Infrastructure requirements --------Rs. 40,000/-

Software Cost: Software Tools Cost --------Rs. 40,000/-

WWW.IGNOUINFO.COM

Page158

Human Resource Cost: No of employees : Salary : Total months required to complete the project Cost of Person Work -----------------One Rs. 30,000/Six Months

Rs. 1,80,000/Rs. 4,80,000/-

Total Cost of Project will be

Since the organization is having all the infrastructure the cost will be minimized to human cost only i.e. Rs. 1,80,000/-

9. Future Scope and Further Enhancement of the Project


Following modules can be added to enhance the features of the CMS. Leave module This module can be added to the CMS for maintaining the leave and attendance of the employees. Reminder module This module can be added to the CMS for giving reminders of the deadline of the projects to the employee or giving deadline to the client for making payment of the proposed project.

WWW.IGNOUINFO.COM

Page159

10. Bibliography
[1] IGNOU MCA Study Material of MCS-014 Course Material of the IGNOU MCA course relating to Systems Analysis and Design Course Material of the IGNOU MCA course relating to Introduction to Database Management Systems Course Material of the IGNOU MCA course relating to Software Engineering Course Material of the IGNOU MCA course relating to Advance Database Management System Course Material of the IGNOU MCA course relating to Advance Internet Technologies Basham, Sierra & Bates PHP official website Software Engineering Standards Committee of the IEEE Society Software Engineering Standards Committee of the IEEE Society Software Engineering Standards Committee of the IEEE Society

[2]

IGNOU MCA Study Material of MCS-023

[3]

IGNOU MCA Study Material of MCS-034

[4]

IGNOU MCA Study Material of MCS-043

[5]

IGNOU MCA Study Material of MCS-051

[6] [7] [8]

Head First Servlet & JSP http://www.php.net IEEE Std 830-1998: IEEE Recommended practice for Software Requirements Specifications IEEE Std 1016-1998: IEEE Recommended practice for Software Design Descriptions

[9]

[10]

IEEE Std 829-1998: IEEE Recommended e for Software Test Documentation

WWW.IGNOUINFO.COM

Page160

WWW.IGNOUINFO.COM

Page161

You might also like