Industrial Training Project Report On
EMPLOYEE TRACKING SYSTEM Submitted in partial fulfillment of the requirements of Degree of Bachelor of Technology in Computer Science & Engineering by
AISHWARYA GUPTA (A2324711007) (A2324711007)
B.Tech.-Computer B.Tech.-Computer Science & Engineering + MBA (2011-16) Amity School of Engineering & Technology
Industry Guide:
Faculty Guide:
Mr. Mukul Aggarwal
Ms. Shweta Bhardwaj
CEO
Assistant Professor
Xpert IT Solutions
CSE Dept. ASET, AUUP
AMITY UNIVERSITY UTTAR PRADESH
1
Acknowledgments
I would like to express my gratitude towards the Director of ASET, Dr. Ravi Prakash and also to the Head of Department, (Prof.) Dr. Abhay Bansal, Computer Science & Engineering, ASET and our Institution for giving us this opportunity to work on this project and for providing us a platform which would broaden our mindset. My deepest thanks to Ms. Shweta Bhardwaj for her guidance and constant supervision as well as for providing necessary information regarding the project and also for her support in completing the project, I would also like to acknowledge the cooperation and support extended by Mr. Mukul Aggarwal, CEO for his valuable knowledge & suggestions, which has immensely helped me in the project. Lastly, I offer my regards and blessings to all of those who supported me in any respect during the completion of the Term Paper.
Aishwarya Gupta A2324711007 B.Tech CS&E + MBA Batch of 2011-2016 ASET, AUUP
2
CERTIFICATE This is to certify that the declaration made by the candidate is correct to the best of my knowledge and belief. This is to further certify that the project entitled
EMPLOYEE
“
TRACKING SYSTEM is an authentic record of the candidate’s own work carried out by her ”
under my guidance and supervision. This work has not been submitted by her for the award of any other degree.
Industry Guide:
Faculty Guide:
Mr. Mukul Aggarwal
Ms. Shweta Bhardwaj
CEO
Assistant Professor
Xpert IT Solutions
CSE Dept. ASET, AUUP
3
ABSTRACT
In today’s world of service, safety and security, proper personnel monitoring is vital to ensuring
a successful operation. Customer satisfaction is directly linked to a profitable business. Site safety and security is dependent on how well a company monitors its employees. The Information Technology Department strived to develop a user friendly application which would enable an employer to track the location of the employees to improve resource management. The central concept of the application is to enable the employer to track the location of the employee. The web portal provides Employee and Admin login. The admin can view all the details of the Employees and can see their location data through the website. The Employee can view their credentials through the website.
4
TABLE OF CONTENTS
1. INTRODUCTION
6
1.1. Introduction to the Application
6
1.2. Objectives
6
1.3. Benefits of the Application
7
1.4. Scopes of the Application
7
2. MATERIALS AND METHODS
8
2.1. Requirement Analysis
8
2.2. System Requirements
8
2.3. Overview of Microsoft Web Expressions
8
2.4. Overview of WampServer
9
2.5 Introduction to HTML and CSS
9
2.6 Introduction to PHP
11
2.7 Introduction to MySQL
11
2.8 Working of Project
12
3. RESULTS
15
4. CONCLUSION
21
REFERENCES
22
5
INTRODUCTION 1.1 Introduction to the Application
The central concept of the application is to enable the employer to track the location of the employee. The web portal provides Employee and Admin login. The admin can view all the details of the Employees and can see their location data through the website. The Employee can view their credentials through the website.
The User access identifies the employees their Employee ID which acts as a username and lets them access the view to their credentials. The employee can update personal details through the website.
The Administrative Login takes the Username and the Password of the Administrator. The various functions that an Administrator can perform are:
View the details of an employee
Add or delete another Administrator
Insert, update or delete details of any employee
Search for any employee.
The Administrator may also delete his/her account or change password if required.
1.2 Objectives
In today’s world of service, safety and security, proper personnel monitoring is vital to ensuring
a successful operation. Customer satisfaction is directly linked to a profitable business. Site safety and security is dependent on how well a company monitors its employees. The Information Technology Department strived to develop a user friendly application which would enable an employer to track the location of the employees to improve resource management.
6
1.3 Benefits of the Application
The various benefits of this application are:
This system can easily store all details of an employee
It also tracks the location of an employee.
It can be easily handled by the person who has elementary known ledge of computer because it provides a user friendly environment.
Its hardware and software configuration is not very costly.
1.4 Scopes of Application
Employee Login
Employee Registration
Update details
View details
Location data through app
7
MATERIALS AND METHODS
2.1 Requirement Analysis
It results in the specification of software’s operational characteristics, indicates software’s interface with other system elements and establishes constraints that software must meet. The aim of analysis is to understand the problem with a view to eliminate any deficiencies in the requirement specification such as incompleteness, inconsistencies etc.
2.2 System Requirements Server
System: Intel Dual Core and above RAM: 2GB and above Hard Disk: 500GB and above. Operating System: Microsoft Windows XP and above
Client
System: Intel Core2 Duo or above, Main Memory: Recommended 512MB Hard Disk: Recommended 40GB. Operating System: Microsoft Windows XP and above. Browser: Microsoft Internet Explorer, Version 8 or higher.
Back end: MySQL Tools: Microsoft Web Expressions, WAMPSERVER Software platform: Microsoft Windows 8 Operating System Programming languages: HTML/CSS, PHP, SQL
2.3 Overview of Microsoft Web Expressions Microsoft Web Expressions is a web design and development application that provides a visual editor also referred to as the Design view and a code editor with standard features such as syntax highlighting and code completion. The Design view facilitates rapid layout design and code generation as it allows users to quickly create and manipulate the layout of HTML elements. We can use it to write HTML, CSS, JSP, XML, PHP, JavaScript, and more. Microsoft Expression Web 4 also provides an SEO Checker which analyzes produced web site against the best practices for getting the highest possible search-engine rankings.
8
2.4 Overview of WAMPSERVER
The acronym WAMP refers to first letters of the four components of a solution stack, composed entirely of free and open-source software, suitable for building high-availability heavy-duty dynamic web sites, and capable of serving tens of thousands of requests simultaneously. The meaning of the WAMP acronym depends on which specific components are used as part of the actual bundle:
Windows, the operating system,
A pache HTTP Server, the web server,
MySQL, the database management system
PHP, Perl, or Python, the scripting languages used for dynamic web pages and web development.
2.5 Introduction to HTML & CSS
HTML stands for Hypertext Markup Language, and it is the most widely used language to write Web Pages. As its name suggests, HTML is a markup language.
Hypertext refers to the way in which Web pages (HTML documents) are linked together.
When you click a link in a Web page, you are using hypertext.
Markup Language describes how HTML works. With a markup language, you simply
"mark-up" a text document with tags that tell a Web browser how to structure it to display.
The purpose of a web browser is to read HTML documents and compose them into visible or audible web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page. HTML allows images and objects to be embedded and can be used to create interactive forms. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. It can embed scripts written in languages such as Java which affect the behaviour of HTML web pages.
HTML Tags and Elements
Every tag consists of a tag name, sometimes followed by an optional list of tag attributes, all placed between opening and closing brackets (< and >). The simplest tag is nothing more than a
9
name appropriately enclosed in brackets, such as and . More complicated tags contain one or more attributes, which specify or modify the behavior of the tag.
According to the HTML standard, tag and attribute names are not case-sensitive. There's no difference in effect between , , , or even ; they are all equivalent.
CSS (Cascading Style Sheets)
Cascading Style Sheets, fondly referred to as CSS, is a simple design language intended to simplify the process of making web pages presentable.CSS handles the look and feel part of a web page. Using CSS, you can control the color of the text, the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what background images or colors are used, as well as a variety of other effects.CSS is easy to learn and understand but it provides powerful control over the presentation of an HTML document. Most commonly, CSS is combined with the markup languages HTML or XHTML.
Advantages of CSS:
CSS saves time - You can write CSS once and then reuse same sheet in multiple HTML
pages. You can define a style for each HTML element and apply it to as many Web pa ges as you want.
Pages load faster - If you are using CSS, you do not need to write HTML tag attributes
every time. Just write one CSS rule of a tag and apply to all the occurrences of that tag. So less code means faster download times.
Easy maintenance - To make a global change, simply change the style, and all elements
in all the web pages will be updated automatically.
Superior styles to HTML - CSS has a much wider array of attributes than HTML so you
can give far better look to your HTML page in comparison of HTML attributes.
Multiple Device Compatibility - Style sheets allow content to be optimized for more
than one type of device. By using the same HTML document, different versions of a website can be presented for handheld devices such as PDAs and cell phones or for printing. 10
Global web standards - Now HTML attributes are being deprecated and it is being
recommended to use CSS. So it’s a good idea to start using CSS in all the HTML pages to make them compatible to future browsers.
2.6 Introduction to PHP
PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language.PHP code can be simply mixed with HTML code, or it can be used in combination with various templating engines and web frameworks. PHP code is usually processed by a PHP interpreter, which is usually implemented as a web server's native module or a Common Gateway Interface (CGI) executable. After the PHP code is interpreted and executed, the web server sends resulting output to its client, usually in form of a part of the generated web page Advantages of PHP: Open Source: PHP is freely available for use. The community of open source PHP developers provides technical support and is constantly improving updating the core PHP functionalities.
Cross Platform: HP provides high compatibility with leading operating systems and web servers such as thereby enabling it to be easily deployed across several different platforms. PHP scripts can run across operating systems such as Linux, Windows, Solaris, OpenBSD, Mac OSX etc and also provide support for all major web servers such as Apache, IIS, iPlanet etc. Power: Several web tasks can now be easily perform using PHP. For example now we can develop from small websites to giant business and organizational websites, informative forums and chatting platforms. Extensions: Being an open source language, a large number of libraries and extensions, to extend its core functionalities, are available for download. The source code of PHP can be modified to include custom created extensions and components thereby increasing its extensibility. Security: PHP offers security as well that helps prevent malicious attacks. These security
2.7 Introduction to MySQL
MySQL is a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL is free software. MySQL is a relational database management system. A relational database stores data in separate tables rather than putting all the data in one big storeroom. This adds speed and flexibility. The tables are linked by defined relations making it possible to combine data from several tables on request. The SQL part of MySQL stands for 11
"Structured Query Language" - the most common standardized language used to access databases. Advantages of MySQL
Easy to use: While a basic knowledge of SQL is required — and most relational databases require the same knowledge — MySQL is very easy to use. With only a few simple SQL statements, you can build and interact with MySQL. Secure: MySQL includes solid data security layers that protect sensitive data from intruders. Rights can be set to allow some or all privileges to individuals. Passwords are encrypted. Inexpensive : MySQL is available by free download from MySQL Web site. Fast: In the interest of speed, MySQL designers made the decision to offer fewer features than other major database competitors. However, despite having fewer features than the other commercial database products, MySQL still offers all of the features required b y most database developers. Scalable : MySQL can handle almost any amount of data, up to as much as 50 million rows or more. The default file size limit is about 4 GB. However, you can increase this number to a theoretical limit of 8 TB of data. Manages memory very well: MySQL server has been thoroughly tested to prevent memory leaks.
2.8 Working of Project
The whole working of project can be divided into different modules.
Creating a database: A database was created with the help of sqlbuddy available on WAMPSERVER. A table employee was created to hold employee details while admin table holds admin details. Establishing a data connection: Before we can access data in a database, we must open a connection to the MySQL server. In PHP, this is done with the mysqli_connect() function. We need to specify the host, username, password and database name .
Perform the basic SQL commands: The mysql_query() function executes a query on a MySQL database. We need to specify query and MySQL connection. This function returns the query handle for SELECT queries, TRUE/FALSE for other queries, or FALSE on failure.
12
To perform commands such Add, Update and Delete, the following syntax is used. Add: $sql="INSERT INTO employee (Name, Email, Password, Address, City, Pin, Birth, Gender, Job, Joining, Phone, EmployeeID) VALUES ('$name', '$email', '$password', '$address', '$city', '$pin', '$birth', '$gender', '$job', '$joining', '$phone', '$employeeid')"; Update: mysqli_query($con,"UPDATE employee SET Name= COALESCE(NullIf('$name', ' '),Name), Email=COALESCE(NullIf('$email', ' '),Email), Password=COALESCE(NullIf('$password',' '),Password), Address=COALESCE(NullIf('$address',' '),Address), City=COALESCE(NullIf('$city',' '),City), Pin=COALESCE(NullIf('$pin', ' '), Pin), Birth=COALESCE(NullIf('$birth',' '),Birth), Gender=COALESCE(NullIf('$gender',' '),Gender), Job=COALESCE(NullIf('$job',' '),Job), Joining=COALESCE(NullIf('$joining',' '),Joining), Phone=COALESCE(NullIf('$phone',' '),Phone) WHERE EmployeeID = '$employeeid' "); Delete: mysqli_query($con,"DELETE FROM employee WHERE EmployeeID='$employeeid'");
Data Flow Graph
Login Page
Employee Login
Administrative Login
View Details
Update Details
13
Administrative Login
Open the connection to the account
Match found
Allow to access the databases
View details and Serach for an Employee
Add or delete an Employee
Match not found
Display Error Message
Add or delete an Administrator
14
RESULTS AND DISCUSSIONS
3.1 Results
All modules of the application have been coded and programmed successfully as per the original idea in mind. The same have also been combined together on a single platform as per the original concept. Screenshots and glimpses of the entire application are shown in detail below.
Fig 1. Login Page
Here, the user is greeted with the login page, to verify his identity and display information specific to him.
15
Fig 2. Employee Login
Once the user logs in, he can view his details and update them if required.
16
Fig 3. Employee Details
An employee can view the details provided during registration. The employee can update his details and also change his password.
17
Fig 4. Update employees of Employee
The Employee can update the details he had provided during registration, and the changed details can be viewed.
18
Fig 5. Admin Login
An admin can view the details of all the employees, delete the details of an employee, search for an employee, update details and change password.
19
Fig 6. Details of all Employees
The admin can view all the details of the employees which are present in the database.
20
CONCLUSION
In this report, an information systems development has been presented. It was emphasized on the basic steps, consequently taken during the project’s development course as a particular attention
was turned to the basic operative functions performed upon the data into the database. The report’s content comprises the whole task solutio n, starting from the programming environments have been selected, going through the database, the application’s analyze and construction, and
finishing with the code-implementation and test-samples, shown separately at the end.
As a future work, some additional stuff could be implemented and integrated into the application code making it much more reliable and flexible. Apparently, the role of such applications is basic within the companies that want to keep a really good control and record of the concerning information that forms the base of the organization. Every organization, in nowadays, has the necessity of managing its data on a really good level so as the staff has a better access to it at their ease. That is why the development of such applications is not just a programming business – a lot of people are ordinarily involved in such projects and one of the basic requirements is the
reliability of the system, especially what concerns the storage of data and all of the operations that will be performed upon it.
21
REFERENCES
Jon Duckett, ―Images,‖ in HTML & CSS , Indianapolis, Wiley, 2011, pp 94-124. Michele E. Davis and Jon A. Philips, ―Getting PHP to Talk to MySQL‖, in Learning PHP and MySQL, 2nd ed., Sebastopol, O’Reilly, 2007, pp 179-190.
Intro to PHP, http://www.w3schools.com/php/php_intro.asp Intro to SQL, http://www.w3schools.com/sql/sql_intro.asp http://www.tutorialspoint.com/
22