0% found this document useful (0 votes)
834 views95 pages

Attendance Management System Original

The document discusses an attendance management system that allows staff to record student attendance on a daily basis. Staff are given unique login credentials to mark attendance for the classes they teach. The system generates accurate attendance reports on a weekly and monthly basis. It aims to reduce paperwork and save time compared to a manual system. Key features include flexible report generation and evaluating student attendance eligibility for exams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
834 views95 pages

Attendance Management System Original

The document discusses an attendance management system that allows staff to record student attendance on a daily basis. Staff are given unique login credentials to mark attendance for the classes they teach. The system generates accurate attendance reports on a weekly and monthly basis. It aims to reduce paperwork and save time compared to a manual system. Key features include flexible report generation and evaluating student attendance eligibility for exams.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 95

Attendance Management System

ABSTRACT

Attendance Management system deals with the maintenance of the


student’s attendance details. It is generates the attendance of the student on
basis of presence in class. It is maintained on the daily basis of their
attendance. the staffs will be provided with the separate username &
password to make the student’s status.

The staffs handling the particular subjects responsible to make the


attendance for all students. Only if the student present on that particular
period, the attendance will be calculated. The students attendance reports
based on weekly and consolidate will be generated.

CHAPTER 1

INTRODUCTION

“Attendance Management System” is software developed for


maintaining the attendance of the student on the daily basis in the collage.
Here the staffs, who are handling the subjects, will be responsible to mark
the attendance of the students. Each staff will be given with a separate
username and password based on the subject they handle. An accurate report
based on the student attendance is generated here. This system will also help
in evaluating attendance eligibility criteria of a student. Report of the
student’s attendance on weekly and monthly basis is generated.

CHAPTER 2
SYSTEM ANALYSIS

2.1 INTRODUCTION

Analysis can be defined as breaking up of any whole so as to find out


their nature, function etc. It defines design as to make preliminary sketches of;
to sketch a pattern or outline for plan. To plan and carry out especially by
artistic arrangement or in a skillful wall. System analysis and design can be
characterized as a set of techniques and processes, a community of interests, a
culture and an intellectual orientation.

The various tasks in the system analysis include the following.

 Understanding application.

 Planning.

 Scheduling.

 Developing candidate solution.

 Performing trade studies.

 Performing cost benefit analysis.

 Recommending alternative solutions.

 Selling of the system.

 Supervising, installing and maintaining the system.

This system manages to the analysis of the report creation and develops
manual entry of the student attendance. First design the students entry form ,
staff allocation and time table allocation forms. This project will helps the
attendance system for the department calculate percentage and reports for
eligibility criteria of examination .The application attendance entry system will
provide flexible report for all students.
2.2 EXISTING SYSTEM

The Existing system is a manual entry for the students. Here the
attendance will be carried out in the hand written registers. It will be a tedious
job to maintain the record for the user. The human effort is more here. The
retrieval of the information is not as easy as the records are maintained in the
hand written registers.

This application requires correct feed on input into the respective field.
Suppose the wrong inputs are entered, the application resist to work. so the user
find it difficult to use.

2.3PROPOSED SYSTEM:

To overcome the drawbacks of the existing system, the proposed system


has been evolved. This project aims to reduce the paper work and saving time to
generate accurate results from the student’s attendance. The system provides
with the best user interface.

The efficient reports can be generated by using this proposed system.

2.4 Advantages of Proposed System

 It is trouble-free to use.

 It is a relatively fast approach to enter attendance

 Is highly reliable, approximate result from user

 Best user Interface

2.4 FEASIBILITY STUDY:

Feasibility analysis begins once the goals are defined. It starts by


generating broad possible solutions, which are possible to give an indication of
what the new system should look lime. This is where creativity and imagination
are used. Analysts must think up new ways of doing things- generate new ideas.
There is no need to go into the detailed system operation yet. The
solution should provide enough information to make reasonable estimates about
project cost and give users an indication of how the new system will fit into the
organization. It is important not to exert considerable effort at this stage only to
find out that the project is not worthwhile or that there is a need significantly
change the original goal.

Feasibility of a new system means ensuring that the new system, which
we are going to implement, is efficient and affordable. There are various types
of feasibility to be determined. They are,

2.4.1 Economically Feasibility:

Development of this application is highly economically feasible. The


only thing to be done is making an environment with an effective supervision.

It is cost effective in the sense that has eliminated the paper work
completely. The system is also time effective because the calculations are
automated which are made at the end of the month or as per the user
requirement.

2.4.2Technical feasibility:

The technical requirement for the system is economic and it does not use
any other additional Hardware and software. Technical evaluation must also
assess whether the existing systems can be upgraded to use the new technology
and whether the organization has the expertise to use it.

Install all upgrades framework into the php package supported widows
based application. this application depends on Microsoft office and intranet
service ,database. Enter their attendance and generate report to excel sheet.
2.4.3 Operational Feasibility:

The system working is quite easy to use and learn due to its simple but
attractive interface. User requires no special training for operating the system.
Technical performance include issues such as determining whether the system
can provide the right information for the Department personnel student details,
and whether the system can be organized so that it always delivers this
information at the right place and on time using intranet services. Acceptance
revolves around the current system and its personnel.
CHAPTER3
SYSTEM SPECIFICATION
3.1 HARDWARE REQUIREMENTS (Minimum Requirement)
 Minimum RAM:-2GB
 Hard Disk:- 500 GB
 Processor:-Intel Pentium 4 or above
3.2SOFTWARE REQUIREMENTS (minimum Requirement)
 Operating system :Windows 7/8/10
 Front_Design:PHP
 Front-End Language :Visual basic
 Back-End : Oracle 10g
 Back-End Connectivity:ADOphp

CHAPTER 4

TECHNOLOGY USED

The software we selected for our project is PHP, which provides a frame for using different
technology, like JavaScript, CSS. Reason for choosing PHP script is that, it’s suitable for
coding server side program and we can also add JavaScript in the source code for various
validations. PHP also provides some inbuilt tools for validating various fields in containing
in a Form which is to be filled by the user.

Data base technology has been described as one of the most rapidly growing areas of
computer and information science. It is know exaggeration to say that many thousands of
organizations have become critically dependent on the continued and successful operations
of a database system. Organization needs security, scalability, easy to install the software
and capable of storing huge amount of data so we selected MSQL as a backend.

PHP is an open-source page scripting/tinplating system that is very similar to JSP and ASP.
It defines its own scripting language, which looks and feels a lot like Perl. JSP uses Java as
its scripting language (although some implementations support JavaScript, such as Caucho).
ASP uses VBScript.
PHP is very popular -- it is used on over a million web sites -- but its main advantage
(IMHO) seems to be that the language, being more "script" and Perl-like, is less intimidating
to the great unwashed mass of HTML monkeys and hackers. In the long run, JSP and Java
provide a more powerful system.

4.2 Introduction of the Technology:

4.2.1 Overview of PHP

4.2.1.1 History

The origins of PHP date back to 1995, when an independent software development
contractor named Rasmus Lerdorf developed a Perl/CGI script that enabled him to know
how many visitors were reading his online résumé. His script performed two tasks: logging
visitor information, and displaying the count of visitors to the Web page. Because the
Web as we know it today was still young at that time, tools such as these were nonexistent,
and they prompted e-mails inquiring about Leadoff’s scripts. Lerdorf thus began giving
away his toolset, dubbed Personal Home Page (PHP).

The clamor for the PHP toolset prompted Lerdorf to begin developing additions to PHP, one
of which converted data entered in an HTML form into symbolic variables that allowed
users to export them to other systems. To accomplish this, he opted to continue development
in C code rather than Perl. Ongoing additions to the PHP toolset culminated in November
1997 with the release of PHP 2.0, or Personal Home Page — Form Interpreter (PHP-FI). As
a result of PHP’s rising popularity, the 2.0 release was accompanied by a number of
enhancements and improvements from programmers worldwide.

The new PHP release was extremely popular, and a core team of developers soon joined
Lerdorf. They kept the original concept of incorporating code directly alongside HTML and
rewrote the parsing engine, giving birth to PHP 3.0. By the June 1998 release of version 3.0,
over 50,000 users were using PHP to enhance their Web pages. NOTE 1997 also saw the
change of the words underlying the PHP abbreviation from Personal Home Page to
Hypertext Preprocessor.

Development continued at a hectic pace over the next two years, with hundreds of functions
being added and the user count growing in leaps and bounds. At the beginning of 1999, Net
craft reported a conservative estimate of a user base surpassing 1,000,000, making PHP one
of the most popular scripting languages in the world. Its popularity surpassed even the
greatest expectations of the developers, as it soon became apparent that users intended to use
PHP to power far larger applications than was originally anticipated. Two core developers,
Zeev Suraski and Andi Gutmans, took the initiative to spearhead a complete rethinking of
the way PHP operated, culminating in a rewriting of the PHP parser, dubbed the Zend
scripting engine. The result of this work was seen in the release of PHP 4.
PHP

Taken directly from PHP's home, “PHP is an HTML-embedded scripting language. Much of
its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features
thrown in. The goal of the language is to allow web developers to write dynamically
generated pages quickly."

This is generally a good definition of PHP. However, it does contain a lot of terms you may
not be used to. Another way to think of PHP is a powerful, behind the scenes scripting
language that your visitors won't see!

When someone visits your PHP webpage, your web server processes the PHP code. It then
sees which parts it needs to show to visitors (content and pictures) and hides the other stuff
(file operations, math calculations, etc.) then translates your PHP into HTML. After the
translation into HTML, it sends the webpage to your visitor's web browser.

Use of PHP

 It is also helpful to think of PHP in terms of what it can do for you. PHP will allow
you to:
 Reduce the time to create large websites.

 Create a customized user experience for visitors based on information that you have
gathered from them.

 Open up thousands of possibilities for online tools.

 Allow creation of shopping carts for e-commerce websites.

 HTML - Know the syntax and especially HTML Forms.

 Basic programming knowledge - This isn't required, but if you have any traditional
programming experience it will make learning PHP a great deal easier.

Usage of PHP
In year 2000 there were only few hundred web sites developed in PHP. By year 2007
number increased to more than 2, 00, 000, 00 and number is increasing and increasing. Now
a day’s most popular web site with heavy traffic has been developed in PHP.

PHP is a general-purpose scripting language that is especially suited for web development.
PHP generally runs on a web server. Any PHP code in a requested file is executed by the
PHP runtime, usually to create dynamic web page content. It can also be used for command-
line scripting and client-side GUI applications. PHP can be deployed on most web servers,
many operating systems and platforms, and can be used with many relational database
management systems. It is available free of charge, and the PHP Group provides the
complete source code for users to build, customize and extend for their own use.

PHP primarily acts as a filter, taking input from a file or stream containing text and/or PHP
instructions and outputs another stream of data; most commonly the output will be HTML.
Since PHP 4, the PHP parser compiles input to produce byte code for processing by the
Zend Engine, giving improved performance over its interpreter predecessor.
Originally designed to create dynamic web pages, PHP now focuses mainly on server-side
scripting, and it is similar to other server-side scripting languages that provide dynamic
content from a web server to a client, such as Microsoft's Active Server Pages, Sun
Microsystems' Java Server Pages, and mod_perl. PHP has also attracted the development of
many frameworks that provide building blocks and a design structure to promote rapid
application development (RAD).
Some of these include CakePHP, Symphony, Code Igniter, and Zend Framework, offering
features similar to other web application frameworks.
The LAMP and WAMP architectures have become popular in the web industry as a way of
deploying web applications. PHP is commonly used as the P in this bundle alongside Linux,
Apache and MySQL, although the P may also refer to Python or Perl.
PHP Security

The National Vulnerability Database stores all vulnerabilities found in computer software.
The overall proportion of PHP-related vulnerabilities on the database amounted to: 20% in
2004, 28% in 2005, 43% in 2006, 36% in 2007, and 35% in 2008. Most of these PHP-
related vulnerabilities can be exploited remotely: they allow hackers to steal or destroy data
from data sources linked to the web server (such as an SQL database), send spam or
contribute to DOS attacks using malware, which itself can be installed on the vulnerable
servers.

These vulnerabilities are caused mostly by not following best practice programming rules:
technical security flaws of the language itself or of its core libraries are not frequent (23 in
2008, about 1% of the total). Recognizing that programmers cannot be trusted, some
languages include taint checking to detect automatically the lack of input validation which
induces many issues. Such a feature is being developed for PHP, but its inclusion in a
release has been rejected several times in the past.

Hosting PHP applications on a server requires a careful and constant attention to deal with
these security risks. Its flexibility knows no end. There are advanced protection patches such
as Suhosin and Hardening-Patch, especially designed for web hosting environments.
Installing PHP as a CGI binary rather than as an Apache module is the preferred method for
added security.
Syntax
<Html>
<Head>
<Title>PHP Test</title>
</head>
<Body>
<? php echo’
Hello World
'; ?>
</body>
</html>

PHP code embedded within HTML


PHP only parses code within its delimiters. Anything outside its delimiters is sent directly to
the output and is not processed by PHP; however, non-PHP text is still subject to control
structures described within PHP code. The most common delimiters are <? Php to open and?
> to close PHP sections. <script language="php"> and </script> delimiters are also
available, as are the shortened forms <? Or <? = (which is used to echo back a string or
variable) and?> as well as ASP-style short forms <% or <%= and %>. While short
delimiters are used, they make script files less portable as their purpose can be disabled in
the PHP configuration, and so they are discouraged. The purpose of all these delimiters is to
separate PHP code from non-PHP code, including HTML.
The first form of delimiters, <? php and?>, in XHTML and other XML documents, creates
correctly formed XML 'processing instructions’. This means that the resulting mixture of
PHP code and other markup in the server-side file is well-formed XML.

Variables are prefixed with a dollar symbol and a type does not need to be specified in
advance. Unlike function and class names, variable names are case sensitive. Both double-
quoted ("") and heredoc strings allow the ability to embed a variable's value into the
string.PHP treats new lines as white space in the manner of a free-form language (except
when inside string quotes), and statements are terminated by a semicolon.PHP has three
types of comment syntax: /* */ marks block and inline comments; // as well as # are used for
one-line comments. The echo statement is one of several facilities PHP provides to output
text (e.g. to a web browser).
In terms of keywords and language syntax, PHP is similar to most high level languages that
follow the C style syntax. If conditions, for and while loops, and function returns are similar
in syntax to languages such as C, C++, Java and Perl.
Data types:
PHP stores whole numbers in a platform-dependent range. This range is typically that of 32-
bit signed integers. Unsigned integers are converted to signed values in certain situations;
this behavior is different from other programming languages. Integer variables can be
assigned using decimal (positive and negative), octal, and hexadecimal notations. Floating
point numbers are also stored in a platform-specific range. They can be specified using
floating point notation, or two forms of scientific notation.

PHP has a native Boolean type that is similar to the native Boolean types in Java and C++.
Using the Boolean type conversion rules, non-zero values are interpreted as true and zero as
false, as in Perl and C++.The null data type represents a variable that has no value. The only
value in the null data type is NULL. Variables of the "resource" type represent references to
resources from external sources. These are typically created by functions from a particular
extension, and can only be processed by functions from the same extension; examples
include file, image, and database resources.
Arrays can contain elements of any type that PHP can handle, including resources, objects,
and even other arrays. Order is preserved in lists of values and in hashes with both keys and
values, and the two can be inter mingled. PHP also supports strings, which can be used with
single quotes, double quotes, or heredoc syntax.
The Standard PHP Library (SPL) attempts to solve standard problems and implements
efficient data access interfaces and classes.
Functions:
PHP has hundreds of base functions and thousands more via extensions. These functions are
well documented on the PHP site; however, the built-in library has a wide variety of naming
conventions and inconsistencies. PHP currently has no functions for thread programming,
although it does support multiprocessor programming.

4.2.2 HTML

Hypertext Markup Language (HTML) is the standard markup language for creating web
pages and web applications. With Cascading Style Sheets (CSS) and JavaScript, it forms a
triad of cornerstone technologies for the World Wide Web.[4]

Web browsers receive HTML documents from a web server or from local storage and render
the documents into multimedia web pages. HTML describes the structure of a web page
semantically and originally included cues for the appearance of the document.

HTML elements are the building blocks of HTML pages. With HTML constructs, images
and other objects such as interactive forms may be embedded into the rendered page. HTML
provides a means to
create structured documents by denoting structural semantics for text
such as headings, paragraphs, lists, links, quotes and other items.

4.2.3 CSS

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation
of a document written in a markup language like HTML. CSS is a cornerstone technology of
the World Wide Web, alongside HTML and JavaScript.
CSS is designed to enable the separation of presentation and content, including layout,
colors,and fonts. This separation can improve content accessibility, provide more flexibility
and control in the specification of presentation characteristics, enable multiple web pages to
share formatting by specifying the relevant CSS in a separate css file, and reduce complexity
and repetition in the structural content.

4.2.4 MySQL:

The Structured Query Language (SQL) is a very popular database language, and its
standardization makes it quite easy to store, update and access data. One of the most
powerful SQL servers out there is called MySQL and surprisingly enough, its free.

Some of the features of MySQL Include:


 Handles large databases, in the area of 50,000,000+ records.

 No memory leaks. Tested with a commercial memory leakage detector (purify).

 A privilege and password system which is very flexible and secure, and which allows
host-based verification.

 Passwords are secure since all password traffic when connecting to a server is
encrypted.

Even several corporate web sites have started using MySQL

MySQL is a powerful Relational Database Management System (RDBMS) which we will


use to learn the basic principles of database and data manipulation using Structured Query
Language (SQL) statements. SQL is a database language that is used to retrieve, insert,
delete and update stored data.
This is achieved by constructing conditional statements that conform to a specific syntax
(i.e. the strict order required of elements for a statement to work).

Although it is assumed that most people reading this know what a database and SQL
are (if not necessarily how to use them), there follows a little recap that it does no harm ;-)

MySQL working

MySQL is a database server program and as such is installed on one machine, but
can 'serve' the database to a variety of locations. To explain look at the following diagram.

The MySQL Server is installed on a Server and can be accessed directly via various
client interfaces, which send SQL statements to the server and then display the results to a
user. Some of these are:

A Local Client – is a program on the same machine as the server. An example of


this is the command line MySQL client software we will be using in the rest of the
MySQL workshops (although there are other programs including graphical interfaces).

A Scripting Language - can pass SQL queries to the server and display the result.

A Remote Client – is a program on a different machine that can connect to the


server and run SQL statements.

You can also use two more indirect methods.

Remote Login - You may be able to connect to the Server Machine to run one of its
local clients.
Web Browser - you can use a web browser and scripts that someone has written
(we're going to use this method for the rest of the workshop).

Platforms and interfaces:

MySQL code uses C and C++. The SQL parser uses yacc and a home-brewed lexer,
sql_lex.ccMySQL works on many different system platforms, including AIX, BSDi,
FreeBSD, HP-UX, i5/OS, Linux, Mac OS X, NetBSD, Novell NetWare, OpenBSD, Open
Solaris, eComStation, OS/2 Warp, QNX, IRIX, Solaris, Symbian, SunOS, SCO Open
Server, SCO UnixWare, Sanos, Tru64 and Microsoft Windows. A port of MySQL to
OpenVMS also exists.

All major programming languages with language-specific APIs include Libraries for
accessing MySQL databases. In addition, an ODBC interface called MyODBC allows
additional programming languages that support the ODBC interface to communicate with a
MySQL database, such as ASP or Cold Fusion. The MySQL server and official libraries are
mostly implemented in ANSI C/ANSI C++.

Uses

Many web applications use MySQL as the database component of a LAMP software
stack. Its popularity for use with web applications is closely tied to the popularity of PHP,
which is often combined with MySQL. Several high-traffic web sites (including Flicker,
Facebook, Wikipedia, Google. (though not for searches), Nokia and You Tube) use MySQL
for data storage and logging of user data.

Features

As of April 2009, MySQL offers MySQL 5.1 in two different variants: the MySQL
Community Server and Enterprise Server. They have a common code base and include the
following features:
 A broad subset of ANSI SQL 99, as well as extensions

 Cross-platform support
 Stored procedures
 Triggers
 Cursors
 Updatable Views
 True Varchar support
 INFORMATION_SCHEMA
 Strict mode
 X/Open XA distributed transaction processing (DTP) support; two phase commit as
part of this, using Oracle's InnoDB engine
 Independent storage engines (MyISAM for read speed, InnoDB for transactions and
referential integrity, MySQL Archive for storing historical data in little space)
 Transactions with the InnoDB, BDB and Cluster storage engines; save points with
InnoDB
 SSL support
 Query caching
 Sub-Selects (i.e. nested Selects)
 Replication support (i.e. Master-Master Replication & Master-Slave Replication) with
one master per slave, many slaves per master, no automatic support for multiple
masters per slave.
 Full-text indexing (Index_(database)) and searching using MyISAM engine
 Embedded database library
 Partial Unicode support (UTF-8 and UCS-2 encoded strings are limited to the BMP)
 Partial ACID compliance (full compliance only when using the non-default storage
engines InnoDB, BDB and Cluster)
 Shared-nothing clustering through MySQL Cluster
 Hot backup (via mysqlhotcopy) under certain condition.

The developers release monthly versions of the MySQL Enterprise Server. The sources can
be obtained either from MySQL customer-only Enterprise site or from MySQL Bazaar
repository, both under the GPL license. The MySQL Community Server is published on an
unspecified schedule under the GPL and contains all bug fixes that were shipped with the
last MySQL Enterprise Server release. Binaries are no longer provided by MySQL for every
release of the Community Server.
Distinguishing features

MySQL implements the following features, which some other RDBMS systems may not:

 Multiple storage engines, allowing one to choose the one that is most effective for
each table in the application (in MySQL 5.0, storage engines must be compiled in; in
MySQL 5.1, storage engines can be dynamically loaded at run time):
o Native storage engines (MyISAM, Falcon, Merge, Memory (heap), Federated,
Archive, CSV, Black hole, Cluster, Berkeley DB, EXAMPLE, and Maria)
o Partner-developed storage engines (InnoDB, solids, NitroEDB, Info bright
(formerly Bright house), Kick fire, XtraDB, IBM DB2)
o Community-developed storage engines (memcache_engine, http, PBXT,
Revision Engine)
o Custom storage engines

Commit grouping, gathering multiple transactions from multiple connections together to


increase the number of commits per second.

MySQL storage engines

One powerful aspect of MySQL that sets it apart from nearly every other database
server is that it offers users many choices and options depending upon the user’s
environment. From the server point of view, its default configuration can be changed to run
well on a wide range of hardware. At the application development level, you have a variety
of data types to choose from when creating tables to store records. But what’s even more
unusual is that you can choose the type of table in which the records will be stored. You can
even mix and match tables of different types in the same database!

Storage engines used to be called table types. From time to time we refer to them as
table types when it’s less awkward to do so. In this chapter, we’ll show the major
differences between the storage engines and why those differences are important. We’ll
begin with a look at locking and concurrency as well as transactions—two concepts that are
critical to understanding some of the major differences between the various engines. Then
we’ll discuss the process of selecting the right one for your applications. Finally, we’ll look
deeper into each of the storage engines and get a feel for their features, storage formats,
strengths and weaknesses, limitations, and so on.

Before drilling down into the details, there are a few general concepts we need to
cover because they apply across all the storage engines. Some aren’t even specific to
MySQL at all; they’re classic computer science problems that just happen to occur
frequently in the world of multi-user database servers.

MySQL Architecture

It will greatly aid your thinking about storage engines and the capabilities they bring
to MySQL if you have a good mental picture of where they fit. Figure 2-1 provides a logical
view of MySQL. It doesn’t necessarily reflect the low-level implementation, which is bound
to be more complicated and less clear cut. However, it does serve as a guide that will help
you understand how storage engines fit in to MySQL. (The NDB storage engine was added
to MySQL just before this book was printed. Watch for it in the second edition.)

The topmost layer is composed of the services that aren’t unique to MySQL. They’re
services most network-based client/server tools or servers need: connection handling,
authentication, security, etc.

The second layer is where things get interesting. Much of the brains inside MySQL
live here, including query parsing, analysis, optimization, caching, and all the built-in
functions (dates, times, math, encryption, etc.). Any functionality provided across storage
engines lives at this level. Stored procedures, which will arrive in MySQL 5.0, also reside in
this layer.

The third layer is made up of storage engines. They’re responsible for the storage and
retrieval of all data stored “in” MySQL. Like the various file systems available for Linux,
each storage engine has its own benefits and drawbacks. The good news is that many of the
differences are transparent at the query layer.

The interface between the second and third layers is a single API not specific to any
given storage engine. This API is made up of roughly 20 low-level functions that perform
operations such as “begin a transaction” or “fetch the row that has this primary key” and so
on. The storage engines don’t deal with SQL or communicate with each other; they simply
respond to requests from the higher levels within MySQL. 

4.2.5 Java Script

Java Script is THE scripting language of the Web. JavaScript is used in millions of
Web pages to add functionality, validate forms, detect browsers, and much more. JavaScript,
despite the name, is essentially unrelated to the Java programming language even though the
two do have superficial similarities. Both languages use syntaxes influenced by that of C
syntax, and JavaScript copies many Java names and naming conventions. The language's
name is the result of a co-marketing deal between Netscape and Sun, in exchange for
Netscape bundling Sun's Java runtime with their then-dominant browser.[citation needed]
The key design principles within JavaScript are inherited from the Self and Scheme
programming languages.

"JavaScript" is a trademark of Sun Microsystems. It was used under license for


technology invented and implemented by Netscape Communications and current entities
such as the Mozilla Foundation.

Due to the widespread success of JavaScript as a client-side scripting language for web
pages, Microsoft developed a compatible dialect of the language, naming it JScript to avoid
trademark issues. JScript added new date methods to fix the non-Y2K-friendly methods in
JavaScript, which were based on java.util.Date.[5] JScript was included in Internet Explorer
3.0, released in August 1996. The dialects are perceived to be so similar that the terms
"JavaScript" and "JScript" are often used interchangeably. Microsoft, however, notes dozens
of ways in which JScript is not ECMA-compliant.

Use of Java Script

 JavaScript gives HTML designers a programming tool - HTML authors are


normally not programmers, but JavaScript is a scripting language with a very
simple syntax! Almost anyone can put small "snippets" of code into their HTML
pages

 JavaScript can put dynamic text into an HTML page - A JavaScript statement
like this: document. Write("<h1>" + name + "</h1>") can write a variable text into
an HTML page

 JavaScript can react to events - A JavaScript can be set to execute when


something happens, like when a page has finished loading or when a user clicks on
an HTML element

 JavaScript can read and write HTML elements - A JavaScript can read and
change the content of an HTML element

 JavaScript can be used to validate data - A JavaScript can be used to validate


form data before it is submitted to a server. This saves the server from extra
processing

 JavaScript can be used to detect the visitor's browser - A JavaScript can be


used to detect the visitor's browser, and - depending on the browser - load another
page specifically designed for that browser
 JavaScript can be used to create cookies - A JavaScript can be used to store and
retrieve information on the visitor's computer.

JavaScript Syntax

The HTML <script> tag is used to insert a JavaScript into an HTML page.
<Html>
<body>
<script type="text/JavaScript">
document. Write ("Hello World!") ;
</script>
</body>
</html>

To insert a JavaScript into an HTML page, we use the <script> tag. Inside the
<script> tag we use the type attribute to define the scripting language.

So, the <script type="text/JavaScript"> and </script> tells where the JavaScript starts
and ends:

Browsers Support:

 Browsers that do not support JavaScript will display JavaScript as page content.
 To prevent them from doing this, and as a part of the JavaScript standard, the
HTML comment tag should be used to "hide" the JavaScript.
 Just add an HTML comment tag <! -- Before the first JavaScript statement, and a
--> (end of comment) after the last JavaScript statement, like this:

 JavaScript in the body section will be executed WHILE the page loads.
 JavaScript in the head section will be executed when CALLED.

Where to Put the JavaScript

JavaScript in a page will be executed immediately while the page loads into the
browser. This is not always what we want. Sometimes we want to execute a script when a
page loads, other times when a user triggers an event.
Scripts in <head>

Scripts to be executed when they are called, or when an event is triggered, go in the
head section.

If you place a script in the head section, you will ensure that the script is loaded
before anyone uses it.

Scripts in <body>

Scripts to be executed when the page loads go in the body section.

If you place a script in the body section, it generates the content of a page.

Using an External JavaScript

If you want to run the same JavaScript on several pages, without having to write the
same script on every page, you can write a JavaScript in an external file.

Save the external JavaScript file with a .js file extension.

Note: The external script cannot contain the <script> tag!

To use the external script, point to the .js file in the "src" attribute of the <script> tag:

CHAPTER5
PROJECT DESCRIPTION
5.1 PROBLEM DEFINITION:
This system developed will reduce the manual work
and avoid redundant data. By maintaining the attendance manually, then
efficient reports cannot be generated. The system can generate efficient
weekly,consolidate report based on the attendance. As the attendances
are maintained in registers it has been a tough task for admin and staff to
maintain for long time. Instead the software can keep long and retrieve
the information when needed.
5.2 PROJECT OVERVIEW
Attendance Management System basically has two main modules for
proper functioning
 Admin module is has rights for creating any new entry of

faculty and student details.


 User has a rights of making daily attendance, generating

report. Attendance report can be taken by given details of


student details, date, class.
5.3 MODULE DESCRIPTION
The system should be designed in such a way that only authorized
people should be allowed to access some particular modules. The records
should be modified by only administrators and no one else. The user should
always be in control of the application and not the vice versa.
The user interface should be consistent so that the user can handle the
application with ease and speed. The application should be visually,
conceptually clear.
5.3.1 ADMINISTRATOR MODULE:
 Student Details:

In this module deals with the allocation of roll no and


personal details for new batch.It will generate of personal
details of student and academic details of the students with the
photos.
 Staff Details:

 It helps to allot the subject and the subject code to


the particular staffs.

 It provides the facility to have a user name and


password to the staffs .

 Time table details:

 It will retrieve the subject information from the


subject database and assign time table to the staffs.

 It will help the admin, staff to make the entry of


attendance based of the subject and period allotted
to the respective staff.

 Attendance details:

 It will be makes to the attendance database all


students. Entered attendance to stored in the
database subject ,period wise into the particular
date.

 It will help s to the get report of weekly and


consolidate of the attendance.
Report details:
Report can be taken by daily,weekly and consolidate:
 weekly report get all hour details of attendance starting date

to ending date and display the status

 Consolidate report get all student attendance details starting


date to ending date status help for the eligibility criteria of
the student to attend the examination.

5.3.2 STAFFS MODULE:


 Attendance details:

 It assists the staff to mark attendance to the students for their


subject. This will authenticate the staff before making the entry.

 Report details:

1. weekly report get particular hour details of attendance from

starting date to ending date and display the status .

2. consolidate report get all student attendance details from


starting date to ending date status help for the eligibility
criteria of the student to attend the examination

FLOW DIAGRAM:

A flowchart is a visual representation of the sequence of steps and decisions needed to


perform a process. Each step in the sequence is noted within a diagram shape. Steps are
linked by connecting lines and directional arrows. This allows anyone to view the flowchart
and logically follow the process from beginning to end.A flowchart is a powerful business
tool. With proper design and construction, it communicates the steps in a process very
effectively and efficiently.
SYSTEM FLOW DIAGRAM:

Figure 5.4-System Flow Diagram


5.4 Data Flow Diagram

• The entire system is projected with a physical diagram which specifics the actual storage
parameters that are physically necessary for any database to be stored on to the disk. The
overall systems existential idea is derived from this diagram.

• The relation upon the system is structure through a conceptual ER-Diagram, which not
only specifics the existential entities but also the standard relations through which the
system exists and the cardinalities that are necessary for the system state to continue.

• The content level DFD is provided to have an idea of the functional inputs and outputs
that are achieved through the system. The system depicts the input and output standards at
the high level of the systems existence.

A DFD does not show a sequence of steps. A DFD only shows what the different process in
a system is and what data flows between them.
The following are some DFD symbols used in the project

External entities

Process: A transaction of information that resides within


the bounds of the system to be module.

DATASTORE: A repository of data that is to


be stored for use by one or more processes,
may be as simple as buffer of queue or as a
relational database.

RULES FOR DFD:


• Fix the scope of the system by means of context diagrams.
• Organize the DFD so that the main sequence of the actions reads left to right and top to
bottom.
• Identify all inputs and outputs.
• Identify and label each process internal to the system with rounded circles.
• A process is required for all the data transformation and transfers. Therefore, never
connect a data store to a data source or the destinations or another data store with just
a data flow arrow.
• Do not indicate hardware and ignore control information.
• Make sure the names of the processes accurately convey everything the process is done.
• There must not be unnamed process.
• Indicate external sources and destinations of the data, with squares.
• Number each occurrence of repeated external entities.
• Identify all data flows for each process step, except simple Record retrievals.
• Label data flow on each arrow.
• Use details flow on each arrow.
• Use the details flow arrow to indicate data movements.
• There can’t be unnamed data flow.
• A data flow can’t connect two external entities.

LEVELS OF DFD:
The complexity of the business system means that it is a responsible to represent the
operations of any system of single data flow diagram. At the top level, an Overview of the
different systems in an organization is shown by the way of context analysis diagram. When
exploded into DFD
They are represented by:
• LEVEL-0 : SYSTEM INPUT/OUTPUT
• LEVEL-1:SUBSYSTEM LEVEL DATAFLOW FUNCTIONAL
• LEVEL-2: FILE LEVEL DETAIL DATA FLOW.
The input and output data shown should be consistent from one level to the next.

LEVEL-0: SYSTEM INPUT/OUTPUT LEVEL


A level-0 DFD describes the system-wide boundaries, dealing inputs to and outputs from the
system and major processes. This diagram is similar to the combined user-level context
diagram.

LEVEL-1: SUBSYSTEM LEVEL DATA FLOW


A level-1 DFD describes the next level of details within the system, detailing the data
flows between subsystems, which make up the whole.
5.5.1 DFD level 0:
ATTANDANCE MANAGEMENT SYSTEM REPORT
USER

DATABASE

Figure 5.5.1-DataFlowDiagram Level1


5.5.2 DFD level 1:
PERSON

ENTRY

LOGIN

INVALID
UID / PWD

USER
AUTHENDICAT CHECK
DATABASE
ION

ADMIN
STAFF
ACCESS
ACCESS

Figure 5.5.2-DataFlowDiagram Level1

5.5.3 DFD level 2:


5.5.3.1 Admin:

ALLOCATION
contribu
tion
Get details
Stored data STUDENTS
from
dat
aba
se

ATTANDANCE
contribution VIEW
Stored data from
ADMIN ACCESS STAFFS Get details
database

Stored data
from
contribu dat
aba
tion se
Get
detail
TIME TABLE s

UPDATE

REPORT

Figure 5.5.3.1-DataFlowDiagram Level2


5.5.3.2 staffs:

UPDATE Stored attendance


Update attendance
ATTENDANCE

Input Attendance Stored attendance


Attendance
USER entry
Attendance table

REPORT
Get all
student
attendanc
e

Figure 5.5.3.2-DataFlowDiagram Level2

5.5 SYSTEM DESIGN:


5.6.1 Entity Relationship Diagram:

• This document is an entity-relationship diagram, or “ERD,” for a system to manage


Inventory Management System.
• An ERD is a model that identifies the concepts or entities that exist in a system and the
relationships between those entities.
• An ERD is often used as a way to visualize a relational database: each entity represents a
database table, and the relationship lines represent the keys in one table that point to specific
records in related tables.
• ERD may also be more abstract, not necessarily capturing every table needed within a

*
database, but serving to diagram the major concepts and relationships.
*

• This ERD is of the latter type, intended to present an abstract, theoretical view of the
major entities and relationships needed for management of electronic resources.
• It may assist the database design process for an e-resource management system, but does
not identify every table that would be necessary for an electronic resource management
*
database. *
*

yea Do
IIIIV dep r B Addres
II V t s
*

Nam
VI
I e mn
VII Rollln o
TTaabbllee da o SStta
nnaamme
e y Time table Student attus
details
user

1
dat
e

1 hou
1
Attandance* Attendanc r
e details
* subjje
ct
Authendicatio
n Rolll
no
*
Staffs details

subjje
ct passwor
d
Figure 5.6.1-EntitySubjje
Relationship
Staff
Diagram
ct
name
code

5.6.2 Use case Diagram:

Unified Modelling Language Diagrams(UML):

 The unified modelling language allows the software engineer to express an analysis
model using the modelling notation that is governed by a set of syntactic semantic and
pragmatic rules.

 A UML system is represented using five different views that describe the system from
distinctly different perspective. Each view is defined by a set of diagram, which is as
follows.

User Model View

i. This view represents the system from the users perspective.

ii. The analysis representation describes a usage scenario from the end-users perspective.
Structural model view

 In this model the data and functionality are arrived from inside the system.

 This model view models the static structures.

Behavioural Model View

 It represents the dynamic of behavioural as parts of the system, depicting the


interactions of collection between various structural elements described in the user
model and structural model view.

Implementation Model View

 In this the structural and behavioural as parts of the system are represented as they
are to be built.

Environmental Model View


In this the structural and behavioural aspects of the environment in which the system is to be
implemented are represented.

UML is specifically constructed through two different domains they are

 UML Analysis modelling, which focuses on the user model and structural
model views of the system?
UML design modelling, which focuses on the behavioural modelling, implementation
modelling and environmental model views.
Figure:5.6.2 -Use case Diagram
5.6.2 Database Design:
5.6.2.1 LOGIN TABLE:
 To create a login details for the table.

FIELDS DATATYPE CONTRAINTS DESCRIPTION

Tablename varchar(20) primarykey Stored number of


tables from login
Table:5.7.2.1 -Login Table
5.6.2.2 Staffs Table:
 To create username and password for the staff details.

FIELDS DATATYPE CONSTRAINTS DESCRIPTION


Scode varchar(20) primarykey Define

separate subject
code id

ssname Varchar(15) NotNull Short subject


name
(ex:cpp)

sname Varchar(20) NotNull Staffs name


Password Varchar(20) NotNull Staff login
password

Table:5.7.2.2 –Student details Table


5.6.2.3 Student table:
 To create table for Student personal details for our department.

FIELDS DATATYPE CONSTRAIN DESCRIPTION


TS
Rollno Varchar(15) Primarykey Student rollnumber

Name Varchar(20) NotNull Student name

Dept Varchar(30) NotNull Department name

Year Number NotNull Batch year


DOB Varchar(20) NotNull Student date of
birth
ADDRESS Varchar(20) NotNull Student

permanent address

MNO Varchar(20) NotNull Student

mobile number

EID Varchar(30) NotNull Student E-mail id


CSTATUS Varchar(20) NotNull Student status
for
dayscholler/Hostel
ler
Table:5.7.2.3 –Staff Details Table
5.6.2.4 Time table:
 To create the subject time table for a particular class.

FIELDS DATATYPE CONSTRAINTS DESCRIPTION

Day Varchar(20) Primarykey Days insert


(ex:Monday)
I Varchar(20) NotNull set the period for 1
particular subject

II Varchar(20) NotNull set the period for 2


particular subject

III Varchar(20) NotNull set the period for 3


particular subject

IV Varchar(20) NotNull set the period for 4


particular subject

V Varchar(20) NotNull set the period for 5


particular subject

VI Varchar(20) NotNull set the period for 6


particular subject

VII Varchar(20) NotNull set the period for 7


particular subject
Table:5.7.2.4 -Time Table
5.6.2.5 Attendance table:
 To create attendance details for particular class .

FIELDS DATATYPE CONSTRAINTS DESCRIPTION


Dates Date Primarykey Enter day by
day
attendance
Hour Number primarykey Set particular hour
only
Subject Varchar(15) NotNull Particular Subject
Rollno Varcahar(20) NotNull Enter Present absent
(1 to details in particular
60) student(ex:M11MCA
001)
Table:5.7.2.5 -Attendance Table
5.6.3 INPUT DESIGN
Input design is part of overall system design that requires special
attention designing input data is to make the data entered easy and free from
errors. The input forms are designed using the controls available in php
framework. Validation is made for each and every data that is entered. Help
information is provided for the users during when the customer feels
difficult.
Input design is the process of converting the user originated inputs to
a computer based format. A system user interacting through a workstation
must be able to tell the system whether to accept the input to produce
reports. The collection of input data is considered to be most expensive part
of the system design. Since the input has to be planned in such a manner so
as to get relevant information, extreme care is taken to obtain pertinent
information
This project first will entered to the input of allocation forms it will be
created on student details form and subject entry form, time table form .it
will helps to calculate subject wise attendance system. next one if u want
any verification on your data’s also available in details show forms.
Attendance to entered single subject wise or all subject wise attendance
system available in this project.
5.6.4 OUTPUT DESIGN
Output design this application “Student Attendance management
system” generally refers to the results and information that are generated by
the system for many end-users; output is the main reason for developing the
system and the basis on which they evaluate the usefulness of the
application.

The output is designed in such a way that it is attractive, convenient


and informative. Forms are designed with various features, which make the
console output more pleasing.

As the outputs are the most important sources of information to the


users, better design should improve the system’s relationships with us and
also will help in decision making. Form design elaborates the way output is
presented and the layout available for capturing information.

One of the most important factors of the system is the output it


produces. This system refers to the results and information generated.
Basically the output from a computer system is used to communicate the
result of processing to the user.
Attendance management system to show the report subject wise
attendance maintaining by staffs. Taken as a whole report obtain on a
administrator privileges only. this forms will show weekly report and
consolidate report generated date, batch, and class wise to our end user. we
want to change our report to convert Excel format .if you want change any
modification.
CHAPTER 6
SYSTEM TESTING

6.1 Introduction
Once source code has been generated, software must be tested to
uncover (and correct) as many errors as possible before delivery to
customer. Our goal is to design a series of test cases that have a high
likelihood of finding errors. To uncover the errors software techniques are
used. These techniques provide systematic guidance for designing test that
(1) Exercise the internal logic of software components, and
(2) Exercise the input and output domains of the program to

uncover errors In program function, behavior and


performance.
6.1.1 Steps: Software is tested from two different perspectives:
(1) Internal program logic is exercised using ―White box‖ test case design
Techniques.
(2) Software requirements are exercised using ―block box‖ test case
Design techniques.
In both cases, the intent is to find the maximum number of errors
with the Minimum amount of effort and time.
6.2 Testing Methodologies:
A strategy for software testing must accommodate low-level tests that
are necessary to verify that a small source code segment has been correctly
implemented as well as high-level tests that validate major system functions
against customer requirements. A strategy must provide guidance for the
practitioner and a set of milestones for the manager. Because the steps of the
test strategy occur at a time when deadline pressure begins to rise, progress
must be measurable and problems must surface as early as possible.
Following testing techniques are well known and the same strategy is
adopted during this project testing.
6.2.1 Unit testing:
Unit testing focuses verification effort on the smallest unit of
software design- the software component or module. The unit test is white-
box oriented. The unit testing implemented in every module of student
attendance management System. by giving correct manual input to the
system ,the datas are stored in database and retrieved. If you want required
module to access input or get the output from the End user. any error will
accrued the time will provide handler to show what type of error will
accrued .
6.2.2 System testing:
System testing is actually a series of different tests whose primary
purpose is to fully exercise the computer-based system. Below we have
described the two types of testing which have been taken for this project. it
is to check all modules worked on input basis .if you want change any values
or inputs will change all information. so specified input is must.
6.2.4 Performance Testing
Performance testing is designed to test the run-time performance of
software within the context of an integrated system. Performance testing
occurs throughout all steps in the testing process. Even at the unit level, the
performance of an individual module may be assessed as white-box tests are
conducted.
This project reduce attendance table, codes. it will generate report
fast.no have extra time or waiting of results .entered correct data will show
result few millisecond. just used only low memory of our system.
Automatically do not getting access at another software. Get user permission
and access to other applications.
6.3 Test cases

Test case is an object for execution for other modules in the


architecture does not represent any interaction by itself. A test case is a set of
sequential steps to execute a test operating on a set of predefined inputs to
produce certain expected outputs. There are two types of test cases:-manual
and automated. A manual test case is executed manually while an
automated test case is executed using automation.
In system testing, test data should cover the possible values of each
parameter based on the requirements. Since testing every value is
impractical, a few values should be chosen from each equivalence class. An
equivalence class is a set of values that should all be treated the same.
Ideally, test cases that check error conditions are written separately
from the functional test cases and should have steps to verify the error
messages and logs. Realistically, if functional test cases are not yet written,
it is ok for testers to check for error conditions when performing normal
functional test cases. It should be clear which test data, if any is expected to
trigger errors.
TEST CASE:
6.3.1 Agent and admin login form

Sno Test Test Test Step Expecte Actu Test


case id case case d result al case
name desc Resul statu
t s
pass/fail
1 Logi Validat To Enter Login Login Pass
n e login verify the successf successf
admi that login ul or an ul
n login name error
name and message
on passwor “In valid
login d and login or
page click passwor
submit d”
button must be
displaye
d
2 Logi Validat To Enter Login Login Pass
n e login verify the successf successf
Staff that login ul or an ul
login name error
name and message
on passwor “In valid
login d and login or
page click passwor
submit d” must
button be
displayed
3 Passwor Validat To Enter An error An error fail
d e verify passwor message message
passwor that d and “passwo “passwo
d passwor login rd rd
d on name invalid” invalid”
login click must be must be
page subm displaye displaye
it d d
butto
n
6.3.2 MASTER form
Sn Test Test Test Step Expected result Actual Test
o case case case Result case
id name desc status
pass/
fai
l
1 Creat Validate To Nothing An error Inserted Pass
message
e allocatio allocate entered student name succesfu
not
suden n form separate and equal to null l
click must
t roll no submit be displayed
detail for the button
s students
2 Creat Validate To Nothing An error Inserted Pass
message
e staff allocatio allocate entered staff details succesfu
detail n form separate and password,userna l
click m
s subject submit e not equal to
null
usernam button must be
displayed
e
passwor
d for the
staffs
3 Creat Validate To Nothing An error Inserted Pass
message
e time allocate verify entered not click not succesfu
table period that data and allocation l
click subject
form stored submit table not equal
to
on button null must be
database displayed
4 View Check To generate An error An error fail
message
details verify d return null will message
of be
all data that data displayed return
stored null will
on be
database displaye
d
6.3.3 Report form
Sno Test Test Test Step Expecte Actu Test
case id case case d result al case
name desc Resul statu
t s
pass/
fail
1 Weekl Validate To select Nothin An Retrived Pass
y class that g error data
report attendan source entere messag successf
ce form and d and e on ul
destinati click not
on subm selecte
it d
butto
n
2 Consolida Validate To select Nothin An Retrived Pass
te report class that g error data
attendan depart entere messag successf
ce form on and d and e on ul
time click not
subm selecte
it d
butto
n
CHAPTER 7
SYSTEM IMPLEMENTATION

7.1Purpose

System implementation is the important stage of project when the


theoretical design is tuned into practical system. The main stages in the
implementation are as follows:
 Planning
 Training
 System testing and
 Changeover Planning
Planning is the first task in the system implementation. At the time of
implementation of any system people from different departments and system
analysis involve. They are confirmed to practical problem of controlling
various activities of people outside their own data processing departments.
The line managers controlled through an implementation coordinating
committee. The committee considers ideas, problems and complaints of user
department, it must also consider:
 The implication of system environment
 Self selection and allocation for implementation tasks
 Consultation with unions and resources available
 Standby facilities and channels of communication
Student Attendance management system will implement student
details ,staff handle subjects details, separate login details ,time table details.
It will used to entered subject wise attendance .This application elaborate
attendance table generate weekly, consolidate report provide to the End user.
Mostly this application will calculate date wise attendance
.To select starting date to end date generate reports at the time of activities.
7.2 SYSTEM MAINTENANCE
Software maintenance is far more than finding mistakes. Provision
must be made for environment changes, which may affect either the
computer, or other parts of the computer based systems. Such activity is
normally called maintenance. It includes both the improvement of the
system functions and the corrections of faults, which arise during the
operation of a new system.
It may involve the continuing involvement of a large proportion of
computer department recourses. The main task may be to adapt existing
systems in a changing environment.
Back up for the entire database files are taken and stored in storage
devices like flash drives, pen drives and disks so that it is possible to restore
the system at the earliest. If there is a breakdown or collapse, then the
system gives provision to restore database files. Storing data in a separate
secondary device leads to an effective and efficient maintains of the system.
The nominated person has sufficient knowledge of the organization’s
computer passed based system to be able to judge the relevance of each
proposed change.
CHAPTER 8
CONCLUSION AND FUTURE ENHANCEMENT
8.1 Conclusion
To conclude, Project Data Grid works like a component which can
access all the databases and picks up different functions. It overcomes the
many limitations incorporated in the attendance.
 Easy implementation Environment
 Generate report Flexibly
8.2 Scope for future development
The project has a very vast scope in future. The project can be
implemented on intranet in future. Project can be updated in near future as
and when requirement for the same arises, as it is very flexible in terms of
expansion. With the proposed software of database Space Manager ready
and fully functional the client is now able to manage and hence run the
entire work in a much better, accurate and error free manner. The following
are the future scope for the project.
 Discontinue of particular student eliminate potential attendance.

 Bar code Reader based attendance system.

 Individual Attendance system With photo using Student login.


CHAPTER 9

APPENDICES
9.1 Source code:
LOGIN:
Imports
System.Data

Public Class login


Dim con As New
ADODB.Connection Dim rs, rs1
As New ADODB.Recordset
Public str, temp1, temp2, temp3, temp4
As String Dim i As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
rs = New
ADODB.Recordset rs1 =
New ADODB.Recordset
If String.Equals(TextBox1.Text, "Admin") Or
String.Equals(TextBox1.Text, "admin") Or String.Equals(TextBox1.Text,
"ADMIN") And String.Equals(TextBox2.Text, "Admin") Or
String.Equals(TextBox2.Text, "admin") Or String.Equals(TextBox2.Text,
"ADMIN") Then
temp4 =
"MDIParent2"
TextBox1.Text = ""
TextBox2.Text = ""
MDIParent2.Show(
) Me.Hide()
i =
1
Else
Try
str = "select * from logintable"
rs.Open(str, con,
ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockPessimistic)
rs.MoveFirst()
While (rs.EOF <> True)
str = "select * from " & rs.Fields("tablename").Value
& "" rs1.Open(str, con,
ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockPessimi
stic) While (rs1.EOF <> True)
If String.Equals(rs1.Fields("sname").Value, TextBox1.Text) And
String.Equals(rs1.Fields("pass").Value, TextBox2.Text) Then
temp1 =
rs1.Fields("sname").Value
temp2 =
rs1.Fields("scode").Value
temp3 =
rs1.Fields("ssname").Value
temp4 = "MDIParent1"
TextBox1.Text = ""
TextBox2.Text = ""

MDIParent1.Sho
w() Me.Hide()
i=1
Exit While
End If
rs1.MoveNex
t()
End While
rs1.Close()
rs.MoveNex
t()

End While

If i = 0 Then
MsgBox("LOGIN NOT VAILD")
End If
Catch ex As
Exception
MsgBox(ex.ToStri
ng)
End
Try End
If

End
Sub

Private Sub Form6_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New ADODB.Connection

If (con.State =
ConnectionState.Open) Then
con.Close()
End If

con.Open("driver={microsoft ODBC for


Oracle};server=test;uid=M11MCA20;pwd=M11MCA20;")
End
Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
End

End
Sub End
Class
Attendance Entry:

Public Class attentry


Dim con As New
ADODB.Connection Dim rs, rs1
As New ADODB.Recordset Dim
str, dat As String
Dim att As String
Dim i As Integer
=1
Dim flag As Integer = 1
Dim chk1 As New
DataGridViewCheckBoxColumn() Dim chk
As New DataGridViewCheckBoxColumn()
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
rs = New
ADODB.Recordset Try
str = "select * from " & ComboBox1.SelectedItem
& "_" & ComboBox5.SelectedItem & ""
rs.Open(str, con,
ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockOptimistic)
rs.MoveFirst()
DataGridView1.Rows.Cl
ear() i = 1
While (rs.EOF <> True)
Dim row As String() = New String() {i, rs.Fields("rollno").Value,
rs.Fields("name").Value}
DataGridView1.Rows.Add(
row) i = i + 1
rs.MoveNex
t() End While

rs.Close()

DataGridView1.Columns.Add(chk)
chk.HeaderText =
"PRESENT/ABSENT" chk.Name
= "chk"
chk.Selected = True
DataGridView1.Columns.Add(chk
1) chk1.HeaderText = "ONDUTY"
chk1.Name = "chk1"
timetb()

Catch ex As Exception
'rs.Close()
MsgBox(ex.ToStri
ng)
End Try

End Sub

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
con = New ADODB.Connection

'If (con.State =
ConnectionState.Open) Then '
con.Close()
'End If

con.Open("driver={microsoft ODBC for


Oracle};server=test;uid=M11MCA20;pwd=M11M
CA20;")
Label15.Text =
login.temp1
Label16.Text =
login.temp2
Label7.Text =
login.temp3

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
str =
String.Empty
att = ""
flag = 1
dat = DateTimePicker1.Value.Date.ToString("dd-MMM-yyyy")

For Me.i = 0 To DataGridView1.RowCount - 1


If DataGridView1.Rows(i).Cells(3).Value =
True Then If (flag < 2) Then
att =
"'P'"
flag =
3
Else
att = att +
",'P'" End If

ElseIf DataGridView1.Rows(i).Cells(4).Value =
True Then If (flag < 2) Then
att =
"'O'"
flag = 3

Else
att = att +
",'O'" End If
Else
If (flag < 2)
Then att =
"'A'"
flag = 3

Else
att = att +
",'A'" End If
End If

Nex
t
Try
str = "insert into " & ComboBox1.SelectedItem & "_" &
ComboBox5.SelectedItem & "_" & ComboBox2.SelectedItem & "_" &
ComboBox3.SelectedItem & "_att values('" & dat & "'," &
ComboBox4.Text & ",'" & Label7.Text & "'," & att & ")"
con.Execute(str)
MsgBox("insert")
Catch ex As
Exception
MsgBox(ex.ToStri
ng) End Try

End Sub

Private Sub CREATEToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles CREATEToolStripMenuItem.Click

rs1 = New ADODB.Recordset


str = "select * from " & ComboBox1.Text & "_" & ComboBox5.Text
& "" rs1.Open(str, con, ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockPessimistic)
rs1.MoveFirst()
str = "create table " & ComboBox1.Text & "_" & ComboBox5.Text &
"_" & ComboBox2.Text & "_" & ComboBox3.Text & "_att(days
Date,hour number,subject varchar(15),primary key(days,hour))"
con.Execute(str)
While (rs1.EOF <> True)
str = "alter table " & ComboBox1.Text & "_" & ComboBox5.Text &
"_" & ComboBox2.Text & "_" & ComboBox3.Text & "_att add(M" &
rs1.Fields("rollno").Value & " varchar(20))"
con.Execute(s
tr)
rs1.MoveNex
t()
End While
End Sub

Private Sub timetb()


Dim temp As String
rs1 = New
ADODB.Recordset
ComboBox4.Text = "Select
One" Try
temp = "select * from " & ComboBox1.Text & "_" &
ComboBox5.Text & "_" & ComboBox2.Text & "_" & ComboBox3.Text &
"_time where(day='" & DateTimePicker1.Value.ToString("dddd") & "')"
rs1.Open(temp, con,
ADODB.CursorTypeEnum.adOpenUnspecified,
ADODB.LockTypeEnum.adLockPessimistic)
ComboBox4.Items.Clear()

For Me.i = 1 To 7
If String.Equals(rs1.Fields(i).Value, Label7.Text) Then
ComboBox4.Items.Add(i)
End If

Next
rs1.Close
()
Catch ex As
Exception
MsgBox(ex.ToStri
ng)
End

Try End

Sub

Private Sub DateTimePicker1_ValueChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
DateTimePicker1.ValueChanged
timetb

() End

Sub

Private Sub DELETEToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles DELETEToolStripMenuItem.Click
str = "drop table " & ComboBox1.Text & "_" & ComboBox5.Text &
"_" & ComboBox2.Text & "_" & ComboBox3.Text & "_" & Label7.Text
&""
con.Execute(str)
MsgBox("TABLE DELETED SUCCESSFULLY")

End Sub

Private Sub HOMEToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
HOMEToolStripMenuItem.Click
MDIParent1.Sho
w() Me.Close()
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs)

End Sub

Private Sub CheckBox1_CheckedChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
CheckBox1.CheckedChanged

If CheckBox1.Checked = True
Then i = 0
While (i < DataGridView1.Rows.Count)
DataGridView1.Rows(i).Cells(3).Value
= True i = i + 1
End
While Else
i=0
While (i < DataGridView1.Rows.Count)
DataGridView1.Rows(i).Cells(3).Value
= False i = i + 1
End
While End
If

End Sub

Private Sub DataGridView1_CellContentClick(ByVal sender As


System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick
i=0
While (i < DataGridView1.Rows.Count)
If DataGridView1.Rows(i).Cells(3).Value <> True
Then
DataGridView1.Rows(i).Cells(3).Style.BackColor =
Color.Red
Else
DataGridView1.Rows(i).Cells(3).Style.BackColor =
Color.White End If
i=i+
1 End
While
End
Sub End
Class

WEEKLY REPORT:
Imports

Microsoft.Office.Interop

Public Class awreport

Dim conn As New


ADODB.Connection Dim rs, rs1
As New ADODB.Recordset Dim
str, dat As String
Dim i, j, flag, diff, count1 As New Integer
Dim ro, temp, tot_day, pre_day, ab_day As
Integer Dim holiday As String
Private Sub Button3_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button3.Click

holiday =

String.Empty Try

rs = New
ADODB.Recordset rs1 =
New ADODB.Recordset

DataGridView1.Rows.Clear()
DataGridView1.Columns.Clear()
DataGridView2.Rows.Clear()
DataGridView2.Columns.Clear()

Dim clm1 As New


DataGridViewTextBoxColumn()
DataGridView2.Columns.Add(clm1)
clm1.HeaderText = ComboBox1.Text + "-" +
ComboBox5.Text clm1.Name = "clm1"

Dim clm2 As New


DataGridViewTextBoxColumn()
DataGridView2.Columns.Add(clm2)
clm2.HeaderText = "SEMESTER" + "-" +
ComboBox3.Text clm2.Name = "clm3"
DataGridView2.Columns(1).Width = 130
Dim clm3 As New
DataGridViewTextBoxColumn()
DataGridView1.Columns.Add(clm3)
clm3.HeaderText = "ROLLNO"
clm3.Name = "clm3"

Dim clm4 As New


DataGridViewTextBoxColumn()
DataGridView1.Columns.Add(clm4)
clm4.HeaderText = "STUDENT NAME"
clm4.Name = "clm4"
DataGridView1.Columns(1).Width = 130

str = "select * from " & ComboBox1.SelectedItem


& "_" & ComboBox5.SelectedItem & ""
rs.Open(str, conn,
ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockOptimistic)
rs.MoveFirst()

While (rs.EOF <> True)


Dim row As String() = New String() {rs.Fields("rollno").Value,
rs.Fields("name").Value}
DataGridView1.Rows.Add(row)
rs.MoveNext()
End
While
rs.Close(
)

Dim d As Date
d =
DateTimePicker1.Value.Dat
e Dim d1 As Date
d1 = DateTimePicker2.Value.Date

diff = DateDiff(DateInterval.Day,
d, d1) j = 2
While diff
>= 0 Try
str = "Select * from " & ComboBox1.SelectedItem & "_" &
ComboBox5.Text & "_" & ComboBox2.SelectedItem & "_" &
ComboBox3.SelectedItem & "_att where(days='" & d.Date.ToString("dd-
MMM-yyyy") & "')order by hour asc "
rs1.Open(str, conn,
ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockPessimistic)
rs1.MoveFirs
t() count1 =
1
Dim dtxt As New
DataGridViewTextBoxColumn()
DataGridView2.Columns.Add(dtxt)
dtxt.HeaderText = d.Date.ToString("dd-
MMM-yyyy") dtxt.Width = 140

While (rs1.EOF <> True)


Dim dtxt1 As New
DataGridViewTextBoxColumn()
DataGridView1.Columns.Add(dtxt1)
dtxt1.HeaderText =
rs1.Fields("hour").Value.ToString
dtxt1.Width = 20

Dim rcount As Integer


= 0 Dim count As
Integer = 3
While (rs1.Fields.Count > count)
DataGridView1.Rows(rcount).Cells(j).Value =
rs1.Fields(count).Value
DataGridView1.Rows(rcount).HeaderCell.Value = (rcount +
1).ToString

If String.Equals(rs1.Fields(count).Value, "A") Then


DataGridView1.Rows(rcount).Cells(j).Style.BackColor =
Color.Red
End If
rcount = rcount
+ 1 count =
count + 1
End While
count1 = count1
+ 1 j = j + 1
rs1.MoveNext()
End
While
rs1.Close
()
d = DateAdd(DateInterval.Day,
1, d) diff = diff - 1
Catch ex As Exception

holiday += "(" + d.Date.ToString("dd-MMM-yyyy") + "-

HOLIDAY) " d = DateAdd(DateInterval.Day, 1, d)

diff = diff
- 1
rs1.Close()
End
Try End
While

' MsgBox(holiday)
DataGridView1.Rows.Add(hol
iday)
Catch ex As
Exception
MsgBox(ex.ToStri
ng)
End

Try End

Sub

Private Sub creport_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
conn = New
ADODB.Connection rs =
New ADODB.Recordset
conn.Open("driver={microsoft ODBC for
Oracle};server=test;uid=M11MCA20;pwd=M11MCA20;")
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click

Panel1.Visible = True
ProgressBar1.Minimu
m=0
ProgressBar1.Maximum = 100

Dim xlApp As Excel.Application


Dim xlWorkBook As
Excel.Workbook Dim
xlWorkSheet As
Excel.Worksheet
Dim misValue As Object =
System.Reflection.Missing.Value Dim i As Integer
Dim j As Integer

xlApp = New Excel.Application


xlWorkBook =
xlApp.Workbooks.Add(misValue)
xlWorkSheet =
xlWorkBook.Sheets("sheet1") flag = 0
j=1

xlWorkSheet.Cells(1, 1) = "Dr.Mahalingam College of Engineering &


Technology ".ToString
xlWorkSheet.Cells(2, 1) = "NPT -MCET Campus, Udumalai Road -
Makkinaickenpatti - Pollachi".ToString
xlWorkSheet.Cells(3, 1) = "Phone : 04259-236030 Fax : 04259-
236070".ToString xlWorkSheet.Cells(4, 1) = "E-Mail :
[email protected] Web Site :
www.mcet.in".ToString
xlWorkSheet.Range("A5").Value = "BATCH:" +
ComboBox1.Text + "-" + ComboBox5.Text + " ATTENDANCE
DETAILS FROM " +
DateTimePicker1.Value.ToString("dd-MMM-yyyy") + " TO " +
DateTimePicker2.Value.ToString("dd-MMM-yyyy") + "
SEMESTER:" +
"-" + ComboBox3.Text

For Each col1 As DataGridViewColumn In


DataGridView2.Columns If flag < 2 Then
xlWorkSheet.Cells(6, col1.Index + 1) =
col1.HeaderText.ToString flag = flag + 1
j=j+
1 Else
j=j+1
xlWorkSheet.Cells(6, j) =
col1.HeaderText.ToString For i = 1 To 6
j=j+1
xlWorkSheet.Cells(6, j + i - 1) =
"".ToString Next
End
If Next

xlWorkSheet.Cells(6, 1) =
"SNO".ToString flag = 0
For Each col As DataGridViewColumn In
DataGridView1.Columns If flag < 2 Then
xlWorkSheet.Cells(6, col.Index + 2) =
col.HeaderText.ToString flag = flag + 1
Else
xlWorkSheet.Cells(7, col.Index + 2) =
col.HeaderText.ToString End If

Next

For i = 1 To
DataGridView1.Rows.Count - 1
xlWorkSheet.Cells(i + 7, 1) =
i.ToString
flag = 0
For j = 0 To
DataGridView1.ColumnCount - 1
Dim vv As String
If DataGridView1(j, i - 1).Value Is
Nothing Then vv = "Niet ingevuld"
Else
vv = DataGridView1(j, i -
1).Value.ToString
xlWorkSheet.Cells(i + 7, j + 2) = vv
If flag < 2 Then
xlWorkSheet.Columns(j +
2).ColumnWidth = 15
'xlWorkSheet.Columns.Merge(2)
flag = flag
+ 1 Else
xlWorkSheet.Columns(j +
2).ColumnWidth = 1 End If
End If
ProgressBar1.Value = (i /

DataGridView1.Rows.Count) * 100 Next

Next

xlWorkSheet.Range("A1:AS1").M
erge()
xlWorkSheet.Range("A2:AS2").M
erge()
xlWorkSheet.Range("A3:AS3").M
erge()
xlWorkSheet.Range("A4:AS4").M
erge()
xlWorkSheet.Range("A5:AS5").M
erge()

xlWorkSheet.Range("D6:J6").Merge()
xlWorkSheet.Range("K6:Q6").Merge()
xlWorkSheet.Range("R6:X6").Merge()
xlWorkSheet.Range("Y6:AE6").Merge()
xlWorkSheet.Range("AF6:AL6").Merge()
xlWorkSheet.Range("AM6:AS6").Merge()

xlWorkBook.Activate()
xlWorkBook.SaveAs("D:\export.xls")

xlWorkBook.Close
() xlApp.Quit()
Panel1.Visible =
False

MsgBox("You can find your report at " & "D:\

export.xls") End Sub

Private Sub HOMEToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
HOMEToolStripMenuItem.Click
MDIParent2.Sho
w() Me.Close()
End
Sub End
Class

Consolidate Report:
Imports
Microsoft.Office.Interop
Public Class consli

Dim con As New ADODB.Connection


Dim rs, rs1 As New
ADODB.Recordset Dim str, dat
As String
Dim i, j, k, diff, count1 As New Integer
Dim pre_hours(100), tot_hours(100), ab_hours(100)
As Integer Dim tot_day(100), pre_day(100),
ab_day(100) As Double

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
DataGridView1.Rows.Cle
ar() rollno()
daycalc

() End

Sub

Private Sub rollno()


DataGridView1.Rows.Clear()
Try
str = "select * from " & ComboBox1.SelectedItem
& "_" & ComboBox5.SelectedItem & ""
rs.Open(str, con,
ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockOptimistic)
rs.MoveFirs
t() i = 0
While (rs.EOF <> True)
Dim row As String() = New String() {rs.Fields("rollno").Value,
rs.Fields("name").Value}
DataGridView1.Rows.Add(row)
DataGridView1.Rows(i).HeaderCell.Value = (i +
1).ToString rs.MoveNext()
i=i+
1 End
While
rs.Close(
)
Catch ex As
Exception
MsgBox(ex.ToStri
ng)
End
Try End

Sub

Private Sub adconsoli_Load(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles MyBase.Load
con = New
ADODB.Connection rs =
New ADODB.Recordset
con.Open("driver={microsoft ODBC for
Oracle};server=test;uid=M11MCA20;pwd=M11MCA20;")

Label8.Text =
login.temp1
Label11.Text =
login.temp2
Label10.Text =
login.temp3

End Sub

Private Sub daycalc()

Dim pre_hours(100), tot_hours(100), ab_hours(100)


As Integer Try
Dim d As Date
d =
DateTimePicker1.Value.Dat
e Dim d1 As Date
d1 = DateTimePicker2.Value.Date
diff = DateDiff(DateInterval.Day,

d, d1) j = 2

While diff >= 0

Try
str = "Select * from " & ComboBox1.SelectedItem & "_" &
ComboBox5.Text & "_" & ComboBox2.SelectedItem & "_" &
ComboBox3.SelectedItem & "_att where(days='" & d.Date.ToString("dd-
MMM-yyyy") & "' and subject='" & Label10.Text & "')order by hour asc "
rs.Open(str, con,
ADODB.CursorTypeEnum.adOpenDynamic,
ADODB.LockTypeEnum.adLockPessimistic)
rs.MoveFirst()

Dim temp(100), temp1(100) As

Integer Dim flag1(100) As

Integer
While (rs.EOF <> True)
Dim rcount As Integer
= 0 Dim count As
Integer = 3 k = 0
While (rs.Fields.Count > count)
If String.Equals(rs.Fields(count).Value,
"P") Or String.Equals(rs.Fields(count).Value, "O")
Then
pre_hours(k) = pre_hours(k) + 1
ElseIf String.Equals(rs.Fields(count).Value, "A") Then
ab_hours(k) =
ab_hours(k) + 1 End If
tot_hours(k) = tot_hours(k) + 1

rcount = rcount
+ 1 count =
count + 1 k = k
+1
End
While j
=j+1

rs.MoveNex
t() End While

For Me.i = 0 To
DataGridView1.Rows.Count - 1
tot_day(i) = tot_day(i) + 1
Next
d = DateAdd(DateInterval.Day,
1, d) diff = diff - 1
rs.Close()
Catch ex As Exception
d = DateAdd(DateInterval.Day,
1, d) diff = diff - 1
rs.Close
() End Try

End While

Catch ex As
Exception
MsgBox(ex.ToStri
ng)
End Try

i=0
While (i < DataGridView1.Rows.Count - 1)
DataGridView1.Rows(i).Cells(2).Value =
pre_hours(i)
DataGridView1.Rows(i).Cells(3).Value =
ab_hours(i)
DataGridView1.Rows(i).Cells(4).Value =
tot_hours(i)

DataGridView1.Rows(i).Cells(5).Value =
Math.Round((pre_hours(i) / tot_hours(i) * 100), 2)

i=i+1
End

While End

Sub

Private Sub HOMEToolStripMenuItem_Click(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
HOMEToolStripMenuItem.Click
MDIParent1.Sho
w() Me.Close()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
Panel1.Visible = True
ProgressBar1.Minimu
m=0
ProgressBar1.Maximum = 100

Dim xlApp As Excel.Application


Dim xlWorkBook As
Excel.Workbook Dim
xlWorkSheet As
Excel.Worksheet
Dim misValue As Object =
System.Reflection.Missing.Value Dim i As Integer
Dim j As Integer

xlApp = New Excel.Application

xlWorkBook =

xlApp.Workbooks.Add(misValue)

xlWorkSheet =

xlWorkBook.Sheets("sheet1")

xlWorkSheet.Cells(1, 1) = "Dr.Mahalingam College of Engineering &


Technology ".ToString
xlWorkSheet.Cells(2, 1) = "NPT -MCET Campus, Udumalai Road -
Makkinaickenpatti - Pollachi".ToString
xlWorkSheet.Cells(3, 1) = "Phone : 04259-236030 Fax : 04259-
236070".ToString xlWorkSheet.Cells(4, 1) = "E-Mail :
[email protected] Web Site :
www.mcet.in".ToString

xlWorkSheet.Range("A5").Value = "BATCH:" +
ComboBox1.Text + "-" + ComboBox5.Text + " ATTENDANCE
DETAILS FROM " +
DateTimePicker1.Value.ToString("dd-MMM-yyyy") + " TO " +
DateTimePicker2.Value.ToString("dd-MMM-yyyy") + "
SEMESTER:" +
"-" + ComboBox3.Text
For Each col As DataGridViewColumn In DataGridView1.Columns
xlWorkSheet.Cells(6, col.Index + 1) = col.HeaderText.ToString
Next
For i = 1 To DataGridView1.Rows.Count - 1
For j = 0 To
DataGridView1.ColumnCount - 1
Dim vv As String
If DataGridView1(j, i - 1).Value Is
Nothing Then vv = "Niet ingevuld"
Else
vv = DataGridView1(j, i -

1).Value.ToString

xlWorkSheet.Cells(i + 6, j + 1) = vv

End If

Next
ProgressBar1.Value = (i /
DataGridView1.Rows.Count) * 100 Next

xlWorkBook.Activate()
xlWorkBook.SaveAs("D:\Consolidate.xls")
xlWorkBook.Close()
xlApp.Quit()
Panel1.Visible =
False
MsgBox("You can find your report at " & "D:\
Consolidate.xls") End Sub
End Class
9.2 Screen Shots:

9.2.1 LOGIN:

Figure: 9.2.1-login
9.2.2 ADMIN HOME PAGE:

Figure :9.2.2 admin home page


9.2.2.1 STUDENT DETAILS:

Figure:9.2.2.1 student details Entry


9.2.2.2 Staffs:

Figure:9.2.2.2 Staffs insertion


9.2.2.3 TIME TABLE:

Figure :9.2.2.3 time table


9.2.2.4 VIEW STUDENTS DETAILS:

Figure:9.2.2.4 view students details


9.2.2.5 Staffs details:

Figure: 9.2.2.5-Staffs details


9.2.2.6 TIME TABLE:

Figure:9.2.2.6 time table details


9.2.2.7 UPDATE:

Figure :9.2.2.7 update details


9.2.2.8 STUDENT:

Figure: 9.2.2.8 student details


9.2.2.9 ATTENDANCE ENTRY:

Figure: 9.2.2.9 attendance entry

9.2.3 WEEKLY REPORT:

Figure :9.2.3 weekly report


9.2.4 CONSOLIDATE REPORT:

Figure:9.2.4 consolidate report details


9.3STAFFS LOGIN:
9.3.1 DAILY ATTENDANCE:

Figure:9.3.1daily attendance
9.3.2 UPDATE ATTENDANCE:

Figure:9.3.1 Update attendance


9.3.3 WEEKLY REPORT:

figure :9.3.3 weekly report details


9.3.4 Consolidate:

Figure:9.3.4 Consolidate details


CHAPTER 10
REFERENCES

Books References
1. Introducing Microsoft php, Second Edition author David S. Platt.
2. Joe Mayo, “Microsoft Visual Studio 2010: A
Beginner's Guide”, Tata McGraw Hill, 2010.
3. Alex Mackey, “Introducing php 4.0: With Visual
Studio 2010”, Press, USA, 2010.

WEBSITES
1. http://www.msdnphp/
2. http://msdn.microsoft.com/en-us/library/orm-9780596518455-02.aspx
3. http://www.w3schools.com/aspphp/
4. http://www.cramerz.com/aspdotnet
5. http://www.dotnetspiderphp/
6. http://www.stackoverflow.com
7. http://www.codeproject.com

You might also like