Ignou Mca Project Ignou Bca Project
Ignou Mca Project Ignou Bca Project
Ignou Mca Project Ignou Bca Project
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
WWW.IGNOUINFO.COM
Page3
2. INTRODUCTION
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
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.
WWW.IGNOUINFO.COM
Page7
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
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
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
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
System Analysis
System Design
Coding
Testing
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
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
CMS
WWW.IGNOUINFO.COM
Page14
WWW.IGNOUINFO.COM
Page15
WWW.IGNOUINFO.COM
Page16
WWW.IGNOUINFO.COM
Page17
WWW.IGNOUINFO.COM
Page18
7.2
ER Diagram
WWW.IGNOUINFO.COM
Page19
8.1
(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.
maintaining the employee record along with their salary, bank account, leave so that easy deployment of employees can be possible.
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)
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.
(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
Description Stores the unique client id Stores the company id of particular client
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 Type
Constraints Description Stores the corresponding work id Stores the employee id Stores the project id
(vii) Event Management: Stores information about different Events assigned by the employee and client with their employee id.
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
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
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
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.
Step 1 Step 2
: :
: : :
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 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
WWW.IGNOUINFO.COM
Page27
WWW.IGNOUINFO.COM
Page28
(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.
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
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
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]
[3]
[4]
[5]
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
2.
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
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.
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
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.
WWW.IGNOUINFO.COM
Page37
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
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.
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
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
Duration 20 Days
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
20
20
20
22 System Analysis
42
42
42
22 System Design
64
64
33 Coding
97
42
64
64
97
97
15 Testing
112
112
15
127
97
Early Start
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
2. Overall Description 2.1 Product Description 2.2 Functional Requirement 2.3 Non Functional 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
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
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
Page46
On the client side, at least a Pentium-IV personal computer with 256 Kbps Internet/Intranet access facility is recommended.
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.
WWW.IGNOUINFO.COM
Page47
CMS
WWW.IGNOUINFO.COM
Page48
WWW.IGNOUINFO.COM
Page49
WWW.IGNOUINFO.COM
Page50
WWW.IGNOUINFO.COM
Page51
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
(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.
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.
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
(iii) user_master: Stores the details of users along with their roles.
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.
(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)
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
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
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
Page58
(xi)
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
(xii)
Event Management: Stores information about different Events assigned by the employee and client with their employee id.
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
WWW.IGNOUINFO.COM
Page60
Adminstrator Page
WWW.IGNOUINFO.COM
Page61
WWW.IGNOUINFO.COM
Page62
WWW.IGNOUINFO.COM
Page63
WWW.IGNOUINFO.COM
Page64
WWW.IGNOUINFO.COM
Page65
WWW.IGNOUINFO.COM
Page66
WWW.IGNOUINFO.COM
Page67
WWW.IGNOUINFO.COM
Page68
WWW.IGNOUINFO.COM
Page69
WWW.IGNOUINFO.COM
Page70
WWW.IGNOUINFO.COM
Page71
WWW.IGNOUINFO.COM
Page72
WWW.IGNOUINFO.COM
Page73
WWW.IGNOUINFO.COM
Page74
Employee List
WWW.IGNOUINFO.COM
Page75
WWW.IGNOUINFO.COM
Page76
WWW.IGNOUINFO.COM
Page77
WWW.IGNOUINFO.COM
Page78
WWW.IGNOUINFO.COM
Page79
WWW.IGNOUINFO.COM
Page80
WWW.IGNOUINFO.COM
Page81
WWW.IGNOUINFO.COM
Page82
WWW.IGNOUINFO.COM
Page83
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"> </td> <td valign="top"> </td> <td> </td> <td> </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> </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;"> </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"> </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"> </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"> </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); ?>
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"> <img src="../images/logo_web.gif" width="180" height="23" /></td> <td width="18%" rowspan="2"><div align="right"><span class="style1">Administrator <br /> </span><span class="style2"><a href="logout.php" style="text-decoration:underline">Log Out</a> </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> </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"> </td> </tr> <tr> <td colspan="2" class="headerresultmenu"> </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"> </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"> </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"> </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> » Add New Project</td> </tr> <tr> <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"> </td> </tr> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3"> 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"> 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"> Select Client </span></td> <td> </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"> Project Title </span></td> <td> </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> <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
?> <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"> </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> » 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"> </td> </tr> <tr> <td height="1" colspan="2" class="headermenubg"></td> </tr> <tr> <td width="92%" height="30" class="headerbg"><span class="style3"> 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"> 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%"> </td> <td width="74%"> </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> Organisation</td> <td> </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 >= 65 && event.keyCode <= 90) || (event.keyCode >= 97 && event.keyCode <= 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> </td> <td> </td> </tr> <tr bgcolor="#CCCCCC"> <tr> <td> Password</td> <td> </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> Confirm Password</td> <td> </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"> </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"> </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"> </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> </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 & 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> > 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"> 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;"> 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%"> </td> <td width="21%"> </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;"> Last Name</td> <td> </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;"> Contact Number</td> <td> </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;"> Email ID</td> <td> </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;"> Date of Birth</td> <td> </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;"> Department</td> <td> </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> Role</td> <td> </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;"> Bank A/c No.</td> <td> </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;"> Bank</td> <td> </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;"> Username</td> <td> </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;"> Password</td> <td> </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;"> Confirm Password</td> <td> </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"> </td> </tr> <tr> <td colspan="2" class="headerresultmenu"> </td> </tr> </table></td> </tr> </table> </body> </html>
Project Generated :-
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"> <img src="../images/arrow_down_white.gif" width="14" height="16" /> 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> </td> </tr> <tr> <td height="20"><div align="right" class="style8"></div></td> <td><div align="center"></div></td> <td> </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> </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"> <img src="../images/arrow_down_white.gif" width="14" height="16" /> 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"> 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> Not Started"; $open="<img src=../images/open_project.gif width=10 height=11> Open"; $completed="<img src=../images/completed.gif width=10 height=11> 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 > </td> <td > 1 </td> <td > Concept </td> <td > <?= $c_module?></td> <td > <?= $c_mod_notdone ?></td> <td > <?=$c_status?></td> <td > <?=date_separator($c_mod_start_date)?></td> <td > <?=date_separator($c_mod_end_date)?></td> <td > <?=$c_left_days?> </td> </tr> <tr style="cursor:hand" height="20" bgcolor="#EFEFEF" onMouseOver="bgColor='#FFFFCC'" onmouseout="bgColor='#EFEFEF'">
WWW.IGNOUINFO.COM
Page133
<td > </td> <td > 2 </td> onMouseOver="bgColor='#FFFFCC'" onmouseout="bgColor='#EFEFEF'"> <td bgcolor="#EFEFEF"> </td> <td > 6 </td> <td > Maintenance</td> <td > <?= $m_module?> </td> <td > <?= $m_mod_notdone ?> </td> <td > <?=$m_status?></td> <td > <?=date_separator($m_mod_start_date)?></td> <td > <?=date_separator($m_mod_end_date)?></td> <td > <?=$m_left_days?> </td> </tr> </table></td> </tr> <tr> <td colspan="2" bgcolor="#DAE3EF" height="2"></td> </tr> <tr> <td colspan="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> <? $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 > </td> <td > <? echo $demp->fullname; ?></td> <td > <?= $demp->jobtitle ?></td> <td > <?= $usr->username ?></td> <td > <?= $demp->phone ?></td> <td > <?= $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"> <img src="../images/arrow_down_white.gif" width="14" height="16" /> 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"> Name </span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Status</span></td> <td width="14%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Task Date </span></td> <td width="11%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Due Date </span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> 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 > </td> <td > <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 > <img src=<?= $img ?> width="10" height="11"> <?= $status ?></td> <td > <?= date_separator($dtask->posted_date) ?> </td> <td > <?= 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 > <?= $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"> </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"> <img src="../images/arrow_down_white.gif" width="14" height="16" /> 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"> Name </span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Status</span></td> <? $counter=$counter+1; }?> <tr> </table></td> </tr> <tr> <td colspan="2" bgcolor="#DAE3EF" height="2"></td> </tr> <tr> <td colspan="2"> </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"> <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"> Title</span></td> <td width="13%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Status</span></td> <td width="14%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Query Date </span></td> <td width="11%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Accepted On</span></td> <td width="24%" class="headerresultmenu" style="border-left-width:2px;border-leftstyle: solid;border-left-color:#FFFFFF;"><span class="style4"> Accepted By </span></td> </tr> <? $not_start="<img src=../images/not_started.gif width=10 height=11> Not Started"; $open="<img src=../images/open_project.gif width=10 height=11> Open"; $completed="<img
WWW.IGNOUINFO.COM
Page139
$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"> </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"> <img src="../images/arrow_down_white.gif" width="14" height="16" /> 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 > <a href="query_view.php?query_id=<?= $dquery->query_id ?>"><strike><?= $dquery->query_title ?></a></td> <td > <img src="../images/completed.gif" width="10" height="11" /> Completed </td> <td > <?= date_separator($dquery->query_posted_on) ?> </td> <td > <?= date_separator($dquery->query_accepted_on) ?></td> <td ><div align="left"> <?= 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> > 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"> </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"> <img src="../images/arrow_down_white.gif" width="14" height="16" /> 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 >= 65 && event.keyCode <= 90) || (event.keyCode >= 97 && event.keyCode <= 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> </td> </tr> </table> </body> </html> <? mysql_close($link);?>
WWW.IGNOUINFO.COM
Page144
Testing
6.1 Test Case Design and Test Reports
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.
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.
Environment
Procedure
WWW.IGNOUINFO.COM
Page146
Expected Outcome
The administrator cannot logged in and a invalid user id and password will be displayed.
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
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
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.
TCT-007
Environment
Add Client Page Click on the client menu to get the page.
Procedure
WWW.IGNOUINFO.COM
Page148
Expected Outcome
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.
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
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.
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
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.
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.
TCT-003
Functionality
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.
TCT-004
Functionality
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.
TCT-005
Functionality
Expected Outcome
SL.No 1
Data Used Click on the employee menu to get the page. Click on the add employee button
TCT-006
Functionality
Expected Outcome
An error message will be displayed as the mandatory fields are not filled up.
SL.No 1
WWW.IGNOUINFO.COM
Page153
TCT-007
Functionality
Expected Outcome
SL.No 1
Data Used Click on the Client menu to get the page. Click on the add client button.
TCT-008
Functionality
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
WWW.IGNOUINFO.COM
Page154
TCT-009
Functionality
Expected Outcome
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
TCT-010
Functionality
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
WWW.IGNOUINFO.COM
Page155
without selecting client, selecting the project. 3 Click on the add query without filling the details
TCT-011
Functionality
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
An error message will be displayed saying priority and phase not selected.
WWW.IGNOUINFO.COM
Page156
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.
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
Since the organization is having all the infrastructure the cost will be minimized to human cost only i.e. Rs. 1,80,000/-
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]
[3]
[4]
[5]
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]
WWW.IGNOUINFO.COM
Page160
WWW.IGNOUINFO.COM
Page161